/* Editorial ultra — Josman Sanchez */

:root {
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --gold: #c59b74;
  --dark: #1c1815;
  --cream: #fdfbf7;
}

html { scroll-behavior: smooth; }

body {
  cursor: default;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.gold-gradient-text {
  background: linear-gradient(135deg, #c59b74 0%, #a87c51 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #c59b74 0%, #a87c51 100%);
}

/* Nav states */
#main-header {
  transition: background 0.45s var(--ease-editorial),
              border-color 0.45s var(--ease-editorial),
              backdrop-filter 0.45s var(--ease-editorial),
              padding 0.45s var(--ease-editorial);
}

#main-header.is-top {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}

#main-header.is-top .nav-brand-name,
#main-header.is-top .nav-link,
#main-header.is-top #menu-icon {
  color: #fff;
}

#main-header.is-top .nav-tagline {
  color: rgba(255, 255, 255, 0.65);
}

#main-header.is-top .nav-mono {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

#main-header.is-scrolled {
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 220, 206, 0.7);
}

/* Hero cinematográfico */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-cinematic__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-cinematic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenBurns 22s var(--ease-editorial) infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.16) translate(-1.5%, -1%); }
}

.hero-cinematic__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(28, 24, 21, 0.35) 0%, rgba(28, 24, 21, 0.15) 35%, rgba(28, 24, 21, 0.72) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(197, 155, 116, 0.18), transparent 55%);
}

.hero-cinematic__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem 5.5rem;
}

@media (min-width: 1024px) {
  .hero-cinematic__content {
    padding: 0 3rem 6.5rem;
  }
}

.hero-cinematic__brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-cinematic__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  max-width: 28rem;
  opacity: 0.95;
  margin-bottom: 0.85rem;
}

.hero-cinematic__lead {
  max-width: 32rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-scroll-hint span {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Stats strip */
.stats-strip {
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid rgba(197, 155, 116, 0.25);
}

/* Image zoom */
.img-zoom-container { overflow: hidden; }
.img-zoom-container img {
  transition: transform 1.1s var(--ease-editorial);
}
.img-zoom-container:hover img { transform: scale(1.07); }

/* ── Portafolio por sesiones ───────────────────────────────── */
.sessions-gallery {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(197, 155, 116, 0.08), transparent 42%),
    linear-gradient(180deg, #fdfbf7 0%, #f7f3ec 48%, #fdfbf7 100%);
}

.sessions-gallery__intro {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.sessions-gallery__lead {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: #736b65;
}

.session-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(229, 220, 206, 0.9);
}

.session-tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #736b65;
  cursor: pointer;
  position: relative;
  transition: color 0.35s var(--ease-editorial);
}

.session-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.3rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-editorial);
}

.session-tab:hover { color: var(--dark); }

.session-tab.is-active {
  color: var(--dark);
}

.session-tab.is-active::after {
  transform: scaleX(1);
}

.session-panel {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  transition: opacity 0.35s ease;
}

.session-panel.is-switching {
  opacity: 0.35;
}

.session-panel__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.session-panel__title {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--dark);
}

.session-panel__text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: #736b65;
}

.sessions-gallery__empty {
  text-align: center;
  padding: 3.5rem 1rem;
  font-size: 0.95rem;
  color: #736b65;
  font-weight: 300;
}

.sessions-gallery__empty.hidden { display: none; }

.gallery-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.gallery-more-wrap[hidden] {
  display: none !important;
}

.gallery-more-btn {
  appearance: none;
  border: 1px solid rgba(197, 155, 116, 0.55);
  background: transparent;
  color: var(--dark);
  min-width: 4.5rem;
  min-height: 4.5rem;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  cursor: pointer;
  transition: background 0.35s var(--ease-editorial), border-color 0.35s var(--ease-editorial), transform 0.35s var(--ease-editorial);
}

.gallery-more-btn:hover {
  background: rgba(197, 155, 116, 0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.gallery-more-btn__plus {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold);
}

.gallery-more-btn__label {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #736b65;
}

/* Gallery masonry */
.gallery-masonry {
  columns: 1;
  column-gap: 1.35rem;
  transition: opacity 0.3s ease;
}

.gallery-masonry.is-switching { opacity: 0.25; }

@media (min-width: 640px) { .gallery-masonry { columns: 2; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 3; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.35rem;
  position: relative;
  border-radius: 0.35rem;
  overflow: hidden;
  cursor: zoom-in;
  background: #ebe4d8;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 1.15s var(--ease-editorial), filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
  filter: brightness(0.9);
}

.gallery-item__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(28, 24, 21, 0.88), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-editorial), transform 0.45s var(--ease-editorial);
}

.gallery-item:hover .gallery-item__meta,
.gallery-item:focus-within .gallery-item__meta {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:nth-child(3n + 1) img { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-item:nth-child(3n + 2) img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-item:nth-child(3n) img { aspect-ratio: 1 / 1; object-fit: cover; }

.gallery-item.is-hidden { display: none; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-editorial), transform 0.9s var(--ease-editorial);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 9, 0.94);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
}

.lightbox.is-open { display: flex; }

.lightbox__img-wrap {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
}

.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: lightboxIn 0.45s var(--ease-editorial);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox__caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
}

.lightbox__caption small {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 155, 116, 0.45);
  background: rgba(28, 24, 21, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.lightbox__btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox__prev { left: 0.75rem; }
.lightbox__next { right: 0.75rem; }

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
}

/* Page load */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-editorial), visibility 0.7s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__mark {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 2rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  animation: breath 1.4s ease-in-out infinite;
}

@keyframes breath {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* Grain overlay (subtle film feel) */
.film-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft section dividers */
.section-label {
  letter-spacing: 0.28em;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-cinematic__media img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-loader__mark { animation: none; }
  .wa-fab { transition: none; }
}

/* ── Footer estable + WhatsApp flotante ─────────────────────── */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 3.5rem 1.5rem;
}

.site-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    justify-items: stretch;
  }

  .site-footer__socials {
    justify-content: center;
  }

  .site-footer__wa {
    justify-self: end;
  }
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 155, 116, 0.4);
  color: #c59b74;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex: 0 0 2.75rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  background: rgba(197, 155, 116, 0.15);
  border-color: #c59b74;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.site-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #e2c29f;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 155, 116, 0.35);
  transition: background 0.25s ease, color 0.25s ease;
}

.site-footer__wa i {
  font-size: 1.1rem;
  color: #25d366;
}

.site-footer__wa:hover {
  background: rgba(37, 211, 102, 0.12);
  color: #fff;
}

/* Botón flotante WhatsApp (siempre visible en móvil) */
.wa-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-fab.is-visible {
  display: inline-flex;
}

.wa-fab:hover,
.wa-fab:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
  outline: none;
}

@media (min-width: 768px) {
  .wa-fab {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.75rem;
    height: 3.75rem;
  }
}

/* Evita que el FAB tape el contenido inferior en móvil */
body {
  padding-bottom: env(safe-area-inset-bottom);
}
