/* ============================================================
   Complemento Goga MX — one-page site
   Tokens
   ============================================================ */
:root{
  --bg-void: #121113;
  --bg-panel: #1b1a1d;
  --bg-panel-2: #232226;
  --bg-facet-1: #1a1919;
  --bg-facet-2: #242224;
  --bg-facet-3: #16161a;
  --ink: #f4f1ea;
  --ink-dim: #b6b2ab;
  --ink-faint: #8a8680;
  --gold: #c9a24d;
  --gold-bright: #e2bd6c;
  --gold-soft: rgba(201,162,77,0.14);
  --line: rgba(244,241,234,0.12);
  --line-soft: rgba(244,241,234,0.07);

  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(.22,.9,.3,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  background: var(--bg-void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

::selection{ background: var(--gold); color: #1a1610; }

:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.2px;
}

p{ margin: 0; }

.eyebrow{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before{
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.light{ color: var(--gold-bright); }

.section{
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}
.section-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}
.section-inner.narrow{ max-width: 820px; }

/* ============================================================
   Signature facet field (bookend background motif)
   ============================================================ */
.facet-field{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.facet-field svg{
  width: 100%;
  height: 100%;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.facet-field .f{ transition: opacity 0.6s ease; }
.f1{ fill: var(--bg-facet-2); }
.f2{ fill: var(--bg-facet-1); }
.f3{ fill: var(--bg-facet-3); }
.f4{ fill: var(--bg-facet-2); }
.f5{ fill: var(--bg-facet-1); }
.f6{ fill: var(--bg-facet-3); }
.f7{ fill: var(--bg-facet-2); }
.f8{ fill: var(--bg-facet-1); }
.f9{ fill: var(--bg-facet-2); }
.f10{ fill: var(--bg-facet-1); }
.f11{ fill: var(--bg-facet-3); }
.f12{ fill: var(--bg-facet-2); }
.fl{ stroke: rgba(201,162,77,0.15); stroke-width: 1; }

.facet-field--bookend{
  opacity: 0.5;
  transform: rotate(180deg);
}

/* ============================================================
   Nav
   ============================================================ */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 2.5rem);
  background: rgba(18,17,19,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}
.site-nav.scrolled{
  background: rgba(18,17,19,0.85);
  border-bottom-color: var(--line-soft);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand{
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-mark svg{
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}
.brand-mark circle:first-child{ fill: var(--gold-soft); }
.brand-mark path, .brand-mark circle:not(:first-child){ stroke: var(--gold-bright); }
.brand-text{
  font-family: var(--font-display);
  font-size: 0.68rem;
  line-height: 1.25;
  letter-spacing: 0.09em;
  color: var(--ink-dim);
  font-weight: 500;
}
.brand-text strong{
  display: block;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-text strong em{
  font-style: normal;
  color: var(--gold);
}
.brand-sm .brand-text{ font-size: 0.62rem; }
.brand-sm .brand-text strong{ font-size: 0.85rem; display: inline; margin-left: 0.35em; }

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dim);
}
.nav-links a{
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}
.nav-links a:not(.nav-cta)::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover{ color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after{ right: 0; }

.nav-cta{
  background: var(--gold);
  color: #1c1610;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease;
}
.nav-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(201,162,77,0.55);
  background: var(--gold-bright);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-void);
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,17,19,0.15) 0%, rgba(18,17,19,0.35) 55%, var(--bg-void) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner{
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 7rem clamp(1.25rem, 5vw, 2.5rem) 5rem;
  width: 100%;
}
.hero-title{
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.04;
  margin: 0 0 1.4rem;
  max-width: 14ch;
}
.hero-title span{
  display: block;
  opacity: 0;
  transform: translateY(0.5em);
}
.hero-title .accent{ color: var(--gold); }

.hero-sub{
  display: block;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 46ch;
  margin-bottom: 2.4rem;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn-primary{
  background: var(--gold);
  color: #1c1610;
  box-shadow: 0 14px 30px -12px rgba(201,162,77,0.5);
}
.btn-primary:hover{
  background: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -12px rgba(201,162,77,0.65);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover{
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-3px);
}

.scroll-cue{
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span{
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue{
  0%{ transform: translateY(0); opacity: 1; }
  70%{ transform: translateY(14px); opacity: 0; }
  71%{ transform: translateY(0); opacity: 0; }
  100%{ transform: translateY(0); opacity: 1; }
}

/* ============================================================
   Quiénes somos
   ============================================================ */
.quienes{ background: var(--bg-void); text-align: center; }
.quienes .eyebrow{ justify-content: center; }
.quienes .eyebrow::before{ display: none; }
.lead{
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.28;
  margin-bottom: 1.6rem;
}
.body-lg{
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink-dim);
  max-width: 62ch;
  margin: 0 auto;
}

/* ============================================================
   Split sections (enfoque / contacto)
   ============================================================ */
.section-inner.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.section-inner.split.reverse .split-media{ order: 2; }
.section-inner.split.reverse .split-text{ order: 1; }

.enfoque{ background: var(--bg-panel); }

.split-text h2{
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 1.6rem;
  line-height: 1.15;
}

.focus-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.focus-list li{
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: var(--ink-dim);
  font-size: 1.02rem;
  line-height: 1.5;
}
.focus-list .dot{
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.media-frame{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
}
.media-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
  transition: transform 0.6s var(--ease), filter 0.6s ease;
}
.media-frame::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(201,162,77,0.38), rgba(18,17,19,0.55) 70%);
  mix-blend-mode: color;
  pointer-events: none;
}
.media-frame::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(244,241,234,0.08);
  z-index: 2;
  pointer-events: none;
}
.split-media:hover .media-frame img{ transform: scale(1.05); }

/* ============================================================
   Misión / Visión / Valores
   ============================================================ */
.mision{ background: var(--bg-void); }
.mision > .section-inner{ text-align: center; }
.mision h2{
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 3rem;
}
.mvv-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  text-align: left;
}
.mvv-card{
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, background 0.4s ease;
}
.mvv-card:hover{
  transform: translateY(-6px);
  border-color: var(--gold);
  background: var(--bg-panel-2);
}
.mvv-icon{
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.mvv-icon svg{
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mvv-card h3{
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}
.mvv-card p{
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}
.chip-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-list li{
  font-size: 0.82rem;
  color: var(--ink-dim);
  background: var(--bg-panel-2);
  border: 1px solid var(--line-soft);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

/* ============================================================
   Servicios
   ============================================================ */
.servicios{
  background: var(--bg-panel);
  overflow: hidden;
}
.servicios-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.servicios-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.35);
  opacity: 0.55;
}
.servicios-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-panel) 0%, rgba(27,26,29,0.72) 35%, var(--bg-panel) 100%);
}
.servicios > .section-inner{
  position: relative;
  z-index: 1;
  text-align: center;
}
.servicios h2{
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  max-width: 20ch;
  margin: 0 auto 3.2rem;
  color: var(--ink);
}
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  text-align: left;
}
.service-card{
  position: relative;
  background: rgba(27,26,29,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card::before{
  content: "";
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.service-card:hover{
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 24px 44px -20px rgba(0,0,0,0.6);
}
.service-card:hover::before{ transform: scaleX(1); }
.service-card h3{
  font-size: 1.4rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.service-card p{
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.service-card p:last-child{ margin-bottom: 0; }

/* ============================================================
   Contacto
   ============================================================ */
.contacto{ background: var(--bg-void); position: relative; overflow: hidden; }
.contacto .section-inner{ position: relative; z-index: 1; }
.contact-list{
  margin: 0 0 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.contact-list dt{
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.contact-list dd{
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}
.contact-list a{
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-list a:hover{
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  background: var(--bg-panel);
  border-top: 1px solid var(--line-soft);
  padding: 2.2rem clamp(1.25rem, 5vw, 2.5rem);
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy{
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.back-top{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, color 0.3s ease;
  color: var(--ink-dim);
}
.back-top:hover{
  transform: translateY(-4px);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}
.hero-title span.in-view{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-title span:nth-child(1){ transition-delay: 0.05s; }
.hero-title span:nth-child(2){ transition-delay: 0.18s; }
.hero-title span:nth-child(3){ transition-delay: 0.31s; }

@media (prefers-reduced-motion: reduce){
  .reveal, .hero-title span{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue span{ animation: none; }
  .facet-field svg{ transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px){
  .nav-links{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-panel);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem 2.2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-cta{ margin-top: 0.5rem; }
  .nav-toggle{ display: flex; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .section-inner.split{ grid-template-columns: 1fr; }
  .section-inner.split.reverse .split-media{ order: 1; }
  .section-inner.split.reverse .split-text{ order: 2; }
  .media-frame{ aspect-ratio: 16/10; }

  .mvv-grid, .services-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .hero-inner{ padding-top: 6.5rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .btn{ text-align: center; }
}
