/* ============================================================
   SONCCO STUDIO — Estilos
   Paleta: negro / marfil + acento dorado champán
   Tipografía: Playfair Display (display) + Jost (texto)
   ============================================================ */

:root{
  --black: #0b0a09;
  --ink: #17140f;
  --ivory: #faf6ef;
  --white: #ffffff;
  --gold: #b6944f;
  --gold-light: #d9bd85;
  --gold-soft: rgba(182,148,79,.14);
  --gray-600: #6b6459;
  --gray-400: #a49b8c;
  --line: rgba(23,20,15,.1);
  --line-invert: rgba(250,246,239,.16);

  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 500; margin: 0; }
p{ margin: 0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor: pointer; }

::selection{ background: var(--gold); color: var(--white); }

/* subtle film-grain overlay for a premium, non-flat finish */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container, .section-inner{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Reveal-on-scroll base state (GSAP sets the animation) ===== */
.reveal-up{ opacity: 0; transform: translateY(28px); }
.no-js .reveal-up, .reveal-ready .reveal-up{ opacity: 1; transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 26px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled{
  padding: 14px 0;
  background: rgba(250,246,239,.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark{
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--ivory);
  transition: color .4s var(--ease);
}
.wordmark span{ font-style: italic; color: var(--gold-light); font-weight: 400; }
.is-scrolled .wordmark{ color: var(--ink); }
.is-scrolled .wordmark span{ color: var(--gold); }

.wordmark-logo{
  height: 40px; width: auto; display: block;
  transition: filter .4s var(--ease);
}
.is-scrolled .wordmark-logo{ filter: brightness(0); } /* logo es blanco; en negro sobre el header claro al hacer scroll */

.main-nav{ display: flex; align-items: center; gap: 34px; }
.nav-link{
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ivory); position: relative; padding-bottom: 4px;
  transition: color .4s var(--ease);
}
.nav-link::after{
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .35s var(--ease);
}
.nav-link:hover::after{ right: 0; }
.is-scrolled .nav-link{ color: var(--ink); }
.nav-cta{
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-invert); color: var(--ivory); padding: 10px 20px; border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav-cta:hover{ background: var(--ivory); color: var(--ink); }
.is-scrolled .nav-cta{ border-color: var(--ink); color: var(--ink); }
.is-scrolled .nav-cta:hover{ background: var(--ink); color: var(--ivory); }

.burger{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; padding: 0;
}
.burger span{ display:block; width: 24px; height: 1px; background: var(--ivory); transition: transform .3s var(--ease), opacity .3s var(--ease), background .4s var(--ease); }
.is-scrolled .burger span{ background: var(--ink); }
.burger.is-active span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger.is-active span:nth-child(2){ opacity: 0; }
.burger.is-active span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position: fixed; inset: 0; z-index: 450;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-link{
  font-family: var(--font-display); font-size: 30px; color: var(--ivory);
}
.mobile-cta{
  font-family: var(--font-sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold); padding: 12px 26px; border-radius: 999px; margin-top: 10px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--black);
}
.hero-text{
  position: relative;
  display: flex; align-items: center;
  padding: 120px 24px;
  z-index: 2;
}
.hero-text::before{
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(182,148,79,.16), transparent 55%),
    linear-gradient(180deg, #0b0a09 0%, #171310 60%, #0b0a09 100%);
}
.hero-text-inner{ position: relative; z-index: 1; max-width: 480px; margin-left: auto; padding-left: 40px; color: var(--ivory); }
.hero-photo{ position: relative; overflow: hidden; background: var(--black); }
.hero-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::before{
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--black) 0%, rgba(11,10,9,0) 16%);
}
.eyebrow{
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 18px;
}
.hero-title{ font-size: clamp(44px, 6vw, 88px); line-height: .95; }
.hero-title .line{ display: block; }
.hero-italic{ font-style: italic; color: var(--gold-light); }
.hero-sub{
  margin-top: 22px; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--gray-400);
}
.hero-actions{ margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn{
  display: inline-block; padding: 15px 32px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-primary{ background: var(--gold); color: var(--black); }
.btn-primary:hover{ background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost{ border: 1px solid var(--line-invert); color: var(--ivory); }
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

.scroll-cue{
  position: absolute; bottom: 34px; left: 25%; transform: translateX(-50%); z-index: 3;
  width: 1px; height: 54px; background: var(--line-invert);
}
.scroll-cue span{
  position: absolute; top: 0; left: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop{
  0%{ top: 0; opacity: 0; } 20%{ opacity: 1; } 100%{ top: 100%; opacity: 0; }
}

/* ============================================================
   SECTION GENERIC
   ============================================================ */
.section{ padding: 130px 0; position: relative; }
.kicker{
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.section-title{ font-size: clamp(32px, 4.4vw, 48px); line-height: 1.15; }
.section-lead{ margin-top: 16px; color: var(--gray-600); font-size: 16px; max-width: 520px; }
.center{ text-align: center; margin-left: auto; margin-right: auto; }

/* ===== Sobre ===== */
.sobre-grid{ display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.bio-text p{ color: var(--gray-600); font-size: 17px; margin-bottom: 18px; }
.bio-text p:first-child{ font-family: var(--font-display); font-size: 24px; font-style: italic; color: var(--ink); line-height: 1.5; }

.stats-row{ display: flex; gap: 46px; margin-top: 44px; flex-wrap: wrap; }
.stat-item{ border-top: 1px solid var(--line); padding-top: 14px; max-width: 200px; }
.stat-value{ display: block; font-family: var(--font-display); font-size: 34px; color: var(--gold); }
.stat-label{ display: block; font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* ============================================================
   PORTAFOLIO — GALERÍA
   ============================================================ */
.filters{ display: flex; gap: 10px; justify-content: center; margin: 44px 0 50px; flex-wrap: wrap; }
.filter-btn{
  background: none; border: 1px solid var(--line); color: var(--gray-600);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 22px; border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.filter-btn:hover{ border-color: var(--gold); color: var(--ink); }
.filter-btn.is-active{ background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.gallery-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin: 0;
}
.gallery-card{ margin: 0; cursor: pointer; transition: transform .3s var(--ease); }
.gallery-card:hover{ transform: translateY(-4px); }
.gallery-card:hover .gallery-visual{ box-shadow: 0 26px 46px -20px rgba(23,20,15,.45); }

.gallery-visual{
  position: relative; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  background: linear-gradient(150deg, #2a2521 0%, #171310 55%, #0b0a09 100%);
  color: var(--gold-light);
  box-shadow: 0 20px 40px -20px rgba(23,20,15,.35);
  transition: box-shadow .3s var(--ease);
}
.gallery-visual img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-visual-label{
  font-family: var(--font-display); font-style: italic; font-size: 15px; letter-spacing: .04em;
}
.gallery-visual-mono{
  font-family: var(--font-display); font-size: 46px; font-style: italic; opacity: .5;
}
.gallery-play{
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(11,10,9,.55); backdrop-filter: blur(4px);
}
.gallery-play::before{
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ivory);
}

.gallery-load-more{
  display: block; margin: 50px auto 0;
  background: none; border: 1px solid var(--line); color: var(--gray-600);
  font-family: var(--font-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 36px; border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.gallery-load-more:hover{ background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.gallery-load-more.is-hidden{ display: none; }

.portfolio-note{ text-align: center; margin-top: 40px; font-size: 13px; color: var(--gray-400); font-style: italic; }

/* ===== Lightbox ===== */
.lightbox{
  position: fixed; inset: 0; z-index: 700;
  background: rgba(11,10,9,.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 80px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.lightbox.is-open{ opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.lightbox-stage{ max-width: 100%; max-height: 78vh; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img, .lightbox-stage video{
  max-width: 100%; max-height: 78vh; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.lightbox-empty{ color: var(--gray-400); font-style: italic; font-family: var(--font-display); font-size: 20px; }
.lightbox-caption{ margin-top: 20px; color: var(--gray-400); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.lightbox-close{
  position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: none; border: 1px solid var(--line-invert); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.lightbox-close:hover{ border-color: var(--gold); color: var(--gold-light); }
.lightbox-close svg{ width: 18px; height: 18px; }
.lightbox-nav{
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: none; border: 1px solid var(--line-invert); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.lightbox-nav:hover{ border-color: var(--gold); color: var(--gold-light); }
.lightbox-nav svg{ width: 20px; height: 20px; }
.lightbox-prev{ left: 24px; }
.lightbox-next{ right: 24px; }

/* ===== Colaboraciones (marquee) ===== */
.collabs{ padding: 90px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee{ margin-top: 34px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track{ display: flex; gap: 64px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span{
  font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--gray-400);
  white-space: nowrap;
}
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ===== Servicios ===== */
.services-grid{ margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card{ background: var(--ivory); padding: 44px 34px; transition: background .35s var(--ease); }
.service-card:hover{ background: var(--white); }
.service-index{ font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 15px; }
.service-title{ font-family: var(--font-display); font-size: 24px; margin: 18px 0 12px; }
.service-desc{ color: var(--gray-600); font-size: 15px; }

/* ===== Contacto ===== */
.contacto{ background: var(--black); color: var(--ivory); }
.contacto .kicker{ color: var(--gold-light); }
.contacto .section-lead{ color: var(--gray-400); }
.contacto-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.contacto-actions{ display: flex; flex-direction: column; gap: 18px; }
.contact-card{
  border: 1px solid var(--line-invert); border-radius: 12px; padding: 26px 30px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.contact-card:hover{ border-color: var(--gold); transform: translateX(6px); background: rgba(182,148,79,.06); }
.contact-label{ font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.contact-value{ font-family: var(--font-display); font-size: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background: var(--black); color: var(--ivory); padding-top: 60px; }
.footer-inner{
  max-width: var(--container); margin: 0 auto; padding: 0 32px 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  border-bottom: 1px solid var(--line-invert);
}
.footer-wordmark{ color: var(--ivory); }
.footer-nav{ display: flex; gap: 26px; }
.footer-nav a{ font-size: 13px; color: var(--gray-400); }
.footer-nav a:hover{ color: var(--gold-light); }
.footer-socials{ display: flex; gap: 20px; }
.footer-socials a{ font-size: 13px; color: var(--gold-light); }
.footer-bottom{
  max-width: var(--container); margin: 0 auto; padding: 22px 32px 30px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--gray-400);
}
.footer-credit strong{ color: var(--gold-light); font-weight: 500; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px){
  .main-nav{ display: none; }
  .burger{ display: flex; }
  .hero{ grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; }
  .hero-photo{ order: 1; }
  .hero-text{ order: 2; padding: 64px 24px; }
  .hero-text-inner{ margin-left: 0; padding-left: 0; max-width: 100%; }
  .hero-photo::before{ background: linear-gradient(0deg, var(--black) 0%, rgba(11,10,9,0) 22%); }
  .scroll-cue{ display: none; }
  .sobre-grid{ grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .contacto-grid{ grid-template-columns: 1fr; }
  .lightbox{ padding: 90px 20px 40px; }
  .lightbox-nav{ width: 40px; height: 40px; }
  .lightbox-prev{ left: 8px; }
  .lightbox-next{ right: 8px; }
}
@media (max-width: 560px){
  .section{ padding: 90px 0; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .header-inner, .section-inner, .container{ padding: 0 20px; }
  .footer-inner, .footer-bottom{ padding-left: 20px; padding-right: 20px; }
  .stats-row{ gap: 28px; }
}
