/* CORVUS STUDIO V2 ALPHA 02
   Conserva el menu lateral y la posicion de las redes originales.
   Inicio retocado con mucha sutileza; carruseles y contacto actualizados.
*/
:root {
  --v2-purple: #9b72c2;
  --v2-line: rgba(213,170,75,.42);
  --v2-panel: rgba(12,25,41,.91);
}

/* Espaciado editorial moderado, sin secciones vacías de 100vh */
.projects-section,
.more-videos-section {
  min-height: auto;
  display: block;
  padding-top: clamp(96px, 12vh, 145px);
  padding-bottom: clamp(80px, 10vh, 132px);
}
.projects-section { border-bottom: 1px solid rgba(213,170,75,.22); }
.more-videos-section { border-bottom: 1px solid rgba(213,170,75,.22); }
.projects-section .section-head,
.more-videos-section .section-head { max-width: none; margin-bottom: 34px; }
.projects-section .section-head::before,
.more-videos-section .section-head::before,
.contact-section .section-head::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 18px;
  background: linear-gradient(90deg,#f0d58c,#b77d26);
}
.projects-section .section-head h1,
.more-videos-section .section-head h1,
.contact-section .section-head h1 {
  font-size: clamp(3.2rem,6vw,6.25rem);
  line-height: .99;
  letter-spacing: -.04em;
}
.more-videos-section .section-head p {
  margin: 16px 0 0;
  font-size: clamp(.95rem,1.32vw,1.12rem);
  color: rgba(244,239,228,.76);
}

/* Vitrinas principales: conservan dos paneles, ahora con miniaturas seleccionables */
.project-columns { gap: clamp(16px,2.5vw,32px); align-items: start; }
.project-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(13px,1.3vw,19px);
  border-radius: 5px;
  background: linear-gradient(160deg,rgba(24,37,57,.84),rgba(7,22,38,.94));
  border: 1px solid var(--v2-line);
  box-shadow: 0 18px 50px rgba(0,0,0,.17);
}
.project-panel-head { min-height: 34px; padding: 0 3px 3px; }
.project-panel-head span {
  font-size: clamp(.69rem,.8vw,.8rem);
  letter-spacing: .2em;
  color: var(--gold-soft);
}
.project-panel .carousel-controls button {
  width: 32px;
  height: 32px;
  font-size: 19px;
  border-radius: 3px;
}
.project-carousel {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: #071521;
  border: 1px solid rgba(213,170,75,.2);
  border-radius: 3px;
}
.project-slide img { object-fit: cover; border: 0; }
.project-slide.active { z-index: 2; }
.project-slide:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: -4px; }
.project-open-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(240,213,140,.8);
  background: rgba(4,15,28,.85);
  color: #fff8df;
  font-size: .8rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.project-slide.active:hover .project-open-hint,
.project-slide.active:focus-visible .project-open-hint { opacity: 1; transform: translateY(0); }
.project-slide.is-disabled { cursor: default; }
.project-catalog-tools { display: grid; gap: 11px; min-width: 0; }
.project-current-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 24px;
  font-size: .9rem;
}
.project-current-title {
  font-weight: 760;
  color: #fff8df;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-count { color: var(--gold-soft); flex-shrink: 0; font-size: .76rem; letter-spacing: .06em; }
.project-thumbnails {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 3px 2px 7px;
  overflow-x: auto;
  scrollbar-color: rgba(213,170,75,.46) rgba(255,255,255,.04);
  scrollbar-width: thin;
}
.project-thumb {
  display: block;
  flex: 0 0 clamp(74px,7vw,108px);
  aspect-ratio: 16/9;
  padding: 2px;
  background: rgba(255,255,255,.05);
  border: 2px solid transparent;
  border-radius: 4px;
  opacity: .58;
  cursor: pointer;
  transition: opacity 150ms ease,border-color 150ms ease,transform 150ms ease;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.project-thumb.active,
.project-thumb:hover { opacity: 1; border-color: var(--gold); }
.project-thumb.active { box-shadow: 0 0 0 1px rgba(240,213,140,.32); }
.project-thumb:focus-visible { outline: 2px solid #fff7df; outline-offset: 2px; }
.project-show-all {
  justify-self: start;
  border: 1px solid rgba(213,170,75,.4);
  background: rgba(213,170,75,.075);
  color: var(--gold-soft);
  cursor: pointer;
  padding: 7px 12px;
  font: 700 .8rem Inter,Arial,sans-serif;
}
.project-show-all:hover { background: rgba(213,170,75,.18); }
.project-expanded-gallery {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  padding-top: 4px;
}
.project-expanded-gallery[hidden] { display: none; }
.project-gallery-item {
  padding: 6px;
  text-align: left;
  border: 1px solid rgba(213,170,75,.26);
  background: rgba(4,15,28,.62);
  color: var(--ivory);
  cursor: pointer;
}
.project-gallery-item img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.project-gallery-item span { display: block; margin-top: 5px; font: 700 .75rem Inter,Arial,sans-serif; }
.project-gallery-item:hover { border-color: var(--gold-soft); }

/* Categorías: banners de fondo editables en config y carruseles independientes */
.video-categories { display: grid; gap: clamp(36px,4.5vw,66px); }
.video-category { min-width: 0; --video-gap: 16px; }
.video-category-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(12px,1.5vw,22px);
  min-height: 70px;
  padding: 8px 13px 8px 0;
  overflow: hidden;
  background: linear-gradient(105deg,rgba(30,39,64,.96),rgba(10,22,40,.98) 69%);
  border: 1px solid rgba(213,170,75,.39);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.video-category-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,rgba(12,25,42,.96) 0%,rgba(16,27,50,.91) 46%,rgba(12,24,40,.75) 100%);
  pointer-events: none;
}
.video-category-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 56%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  opacity: .37;
  z-index: -2;
  filter: saturate(.75) contrast(1.07);
  mask-image: linear-gradient(90deg,transparent,black 35%,black 83%,transparent);
  pointer-events: none;
}
.video-category-icon {
  flex: 0 0 68px;
  height: 53px;
  display: grid;
  place-items: center;
  align-self: stretch;
  color: #fff4c8;
  background: linear-gradient(120deg,rgba(213,170,75,.65),rgba(213,170,75,.19));
  clip-path: polygon(17% 0,100% 0,83% 100%,0 100%);
}
.video-category-icon svg { width: 29px; height: 29px; }
.video-category-title {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: clamp(12px,2vw,28px);
}
.video-category-title h2 {
  margin: 0;
  flex: 0 0 auto;
  color: #fff8df;
  font-size: clamp(1.25rem,1.9vw,1.85rem);
  letter-spacing: -.03em;
  line-height: 1.08;
}
.video-category-title p {
  margin: 0;
  padding-left: clamp(10px,1.7vw,24px);
  border-left: 1px solid rgba(240,213,140,.65);
  color: rgba(244,239,228,.85);
  font-size: clamp(.73rem,.92vw,.89rem);
  line-height: 1.35;
}
.video-toggle-all {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 8px 11px;
  background: rgba(4,15,28,.65);
  color: #fff4d5;
  border: 1px solid rgba(240,213,140,.66);
  border-radius: 3px;
  font: 750 .8rem Inter,Arial,sans-serif;
  cursor: pointer;
}
.video-toggle-all[hidden] { display: none; }
.video-toggle-all:hover,
.video-toggle-all:focus-visible { background: rgba(213,170,75,.17); }
.video-carousel-shell { position: relative; margin-top: 14px; padding: 0 19px; }
.video-category .small-video-window { overflow: hidden; }
.video-category .small-video-track {
  --video-gap: 16px;
  gap: var(--video-gap);
  transition: transform 330ms cubic-bezier(.22,.7,.23,1);
  will-change: transform;
}
.video-category .small-video-card {
  flex: 0 0 calc((100% - (var(--items-visible) - 1) * var(--video-gap)) / var(--items-visible));
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 4px;
  background: rgba(21,34,51,.77);
  border: 1px solid rgba(213,170,75,.19);
  transition: transform 170ms ease,border-color 170ms ease,box-shadow 170ms ease;
}
.video-category .small-video-card:not(.is-disabled):hover {
  transform: translateY(-4px);
  border-color: rgba(240,213,140,.75);
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}
.video-category .small-video-thumb { border-color: rgba(213,170,75,.22); border-radius: 2px; }
.video-category .small-video-thumb img { object-fit: cover; }
.video-category .small-video-card b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #fff8df;
  font-size: clamp(.79rem,1.12vw,.98rem);
  font-weight: 760;
  line-height: 1.24;
}
.video-arrow {
  position: absolute;
  z-index: 4;
  top: 48%;
  transform: translateY(-50%);
  width: 29px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff8df;
  border: 1px solid rgba(213,170,75,.58);
  background: rgba(5,15,28,.96);
  font-size: 26px;
  line-height: 1;
  border-radius: 3px;
  cursor: pointer;
}
.video-arrow:hover:not(:disabled) { background: rgba(213,170,75,.28); }
.video-arrow:disabled { opacity: .24; cursor: default; }
.video-arrow.small-prev { left: -2px; }
.video-arrow.small-next { right: -2px; }
.video-category.is-single-page .video-arrow,
.video-category.is-expanded .video-arrow { display: none; }
.video-category-footer { display: flex; justify-content: center; min-height: 19px; padding-top: 7px; }
.video-page-count { color: rgba(240,213,140,.75); font-size: .73rem; font-weight: 700; letter-spacing: .15em; }
.video-page-count[hidden] { display: none; }
.video-category.is-expanded .small-video-window { overflow: visible; }
.video-category.is-expanded .small-video-track { transform: none !important; flex-wrap: wrap; will-change: auto; }
.video-category.is-expanded .video-carousel-shell { padding-inline: 19px; }
.video-category .small-video-card:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }

/* Contacto: el correo es el protagonista de todo el bloque */
.contact-section {
  min-height: 53vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(28px,4vw,48px);
  padding-top: clamp(100px,12vh,160px);
  padding-bottom: clamp(100px,13vh,165px);
  border-top: 1px solid rgba(213,170,75,.12);
}
.contact-section .contact-copy { width: 100%; max-width: 820px; }
.contact-section .section-head { margin-bottom: 16px; }
.contact-section .section-head::before { margin-inline: auto; }
.contact-copy > p {
  margin: 0 auto;
  color: rgba(244,239,228,.78);
  font-size: clamp(1rem,1.45vw,1.16rem);
  line-height: 1.58;
  max-width: 590px;
}
.contact-section .mail-link {
  position: relative;
  width: min(1100px,100%);
  max-width: 100%;
  min-height: 143px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(17px,3vw,37px);
  padding: 26px clamp(19px,3.1vw,47px);
  color: #081525;
  text-align: left;
  background: linear-gradient(105deg,#f3d992 0%,#dab15e 52%,#bb8835 100%);
  border: 1px solid #f8dfa0;
  border-radius: 7px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22),0 0 0 5px rgba(213,170,75,.065);
  transition: transform 200ms ease,box-shadow 200ms ease,filter 200ms ease;
}
.contact-section .mail-link:hover,
.contact-section .mail-link:focus-visible {
  background: linear-gradient(105deg,#f8e5ad 0%,#e5bd72 55%,#cb9940 100%);
  filter: saturate(1.06);
  transform: translateY(-4px);
  box-shadow: 0 25px 52px rgba(0,0,0,.29),0 0 0 5px rgba(213,170,75,.11);
}
.contact-section .mail-link:focus-visible { outline: 3px solid #fff8df; outline-offset: 5px; }
.contact-section .mail-icon {
  width: clamp(33px,4vw,56px);
  height: clamp(33px,4vw,56px);
  flex: 0 0 auto;
  color: #0a1a2b;
  stroke-width: 1.5;
}
.contact-section .mail-address-block {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
}
.contact-section .mail-cta {
  display: block;
  margin: 0;
  color: #3c311e;
  font-size: clamp(.73rem,.96vw,.88rem);
  font-weight: 850;
  letter-spacing: .15em;
}
.contact-section .mail-address {
  display: block;
  margin: 0;
  min-width: 0;
  color: #081525;
  font-size: clamp(1.12rem,2.55vw,2.35rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-transform: none;
  overflow-wrap: anywhere;
}
.contact-section .mail-address .mail-localpart,
.contact-section .mail-address .mail-domainpart {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.contact-section .mail-arrow {
  display: grid;
  place-items: center;
  margin: 0;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  color: #f7dfac;
  background: #081525;
  border-radius: 100%;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0;
}

/* Portada: evolución ligera de la misma composición original. */
.hero-section::after {
  content: '';
  position: absolute;
  inset: auto 10% 0;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(213,170,75,.34),transparent);
  pointer-events: none;
}
.hero-content::before {
  content: '';
  position: absolute;
  top: 1%;
  left: 50%;
  width: min(405px,70vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,rgba(213,170,75,.075),transparent 65%);
  border: 1px solid rgba(240,213,140,.09);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero-content .hero-logo {
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.42)) drop-shadow(0 0 20px rgba(213,170,75,.085));
}
.hero-content p { position: relative; margin-bottom: 38px; }
.hero-content p::after {
  content: '';
  position: absolute;
  width: 62px;
  height: 2px;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,transparent,var(--gold-soft),transparent);
}
.hero-section .brand-button {
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.hero-section .brand-button:hover,
.hero-section .brand-button:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42),0 9px 22px rgba(0,0,0,.27);
}
@media (max-width: 1180px) {
  .project-columns { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
  .project-thumb { flex-basis: 108px; }
  .video-category-title { display: block; }
  .video-category-title p { border-left: 0; padding-left: 0; margin-top: 5px; }
}
@media (max-width: 780px) {
  .projects-section,.more-videos-section { padding-top: 92px; padding-bottom: 72px; }
  .projects-section .section-head h1,.more-videos-section .section-head h1,.contact-section .section-head h1 { font-size: clamp(3rem,10vw,4.6rem); }
  .project-panel { padding: 12px; }
  .project-carousel { min-height: 0; }
  .video-category-header { gap: 12px; min-height: 70px; padding-right: 10px; }
  .video-category-icon { flex-basis: 54px; }
  .video-category-icon svg { width: 24px; height: 24px; }
  .video-category-title h2 { font-size: clamp(1.07rem,3.2vw,1.38rem); }
  .video-category-title p { display: none; }
  .video-toggle-all { font-size: .74rem; gap: 5px; padding: 8px; }
  .video-category .small-video-card b { font-size: .95rem; }
  .contact-section { min-height: 0; gap: 28px; }
  .contact-section .mail-link { width: 100%; min-height: 122px; }
}
@media (max-width: 480px) {
  .video-category-icon { flex-basis: 42px; }
  .video-category-header { gap: 8px; }
  .video-category-title h2 { font-size: 1rem; }
  .video-toggle-all { font-size: .68rem; }
  .video-carousel-shell { padding-inline: 16px; }
  .video-arrow { width: 23px; height: 31px; }
  .project-thumb { flex-basis: 77px; }
  .contact-section .mail-link { gap: 11px; padding: 22px 13px; }
  .contact-section .mail-icon { display: none; }
  .contact-section .mail-address { font-size: clamp(1.24rem,5.15vw,1.48rem); white-space: normal; }
  .contact-section .mail-address .mail-localpart,
  .contact-section .mail-address .mail-domainpart { display: block; white-space: nowrap; }
  .contact-section .mail-cta { font-size: .67rem; letter-spacing: .10em; }
  .contact-section .mail-arrow { width: 28px; height: 28px; flex-basis: 28px; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .project-slide,.video-category .small-video-track,.video-category .small-video-card,.project-thumb,.contact-section .mail-link,.hero-content .hero-logo { transition-duration: .01ms !important; animation: none !important; }
}

/* En el CSS anterior, el menú móvil quedaba recortado cuando se cerraba.
   Mantener la navegación retractil, pero dejar accesible su botón. */
@media (max-width: 780px) {
  .side-nav { overflow: visible; }
  body.nav-collapsed .side-nav {
    border-right: 0;
    box-shadow: none;
    background: transparent;
  }
  body.nav-collapsed .side-nav .nav-brand,
  body.nav-collapsed .side-nav .nav-links { visibility: hidden; }
}
