/* ============================================================
   STUDIO IVR — css/galeria.css
   Un solo archivo. Mismos tokens que styles.css del homepage.
   ============================================================ */

/* ── RESET & TOKENS ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0D0D12;
  --violet:     #7C3AED;
  --violet-glow:#7C3AED;
  --magenta:    #EC4899;
  --white:      #FFFFFF;
  --gray-100:   rgba(255,255,255,0.85);
  --gray-300:   rgba(255,255,255,0.52);
  --gray-500:   rgba(255,255,255,0.32);
  --gray-700:   rgba(255,255,255,0.18);
  --gray-900:   rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.09);
  --border-md:  rgba(255,255,255,0.14);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:      72px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); }


/* ── BOTONES ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn--sm  { font-size: 0.8125rem; padding: 0.5rem 1.125rem; }
.btn--lg  { font-size: 1rem;      padding: 0.875rem 1.875rem; font-weight: 700; }
.btn--violet { background: var(--violet); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.6); }


/* ── NAVBAR ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(13,13,18,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-900);
  transition: background 0.25s ease;
}
.nav.is-scrolled { background: rgba(13,13,18,0.96); }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
  z-index: 901;
}
.nav__logo-img {
  width: 24px; height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  padding: 0; margin: 0;
}
.nav__menu a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-300);
  transition: color 0.15s;
  line-height: 1;
}
.nav__menu a:hover { color: var(--white); }

.nav__actions { display: flex; align-items: center; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 901;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav__burger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-active span:nth-child(2) { opacity: 0; }
.nav__burger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,13,18,0.98);
  z-index: 899;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0 2rem;
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav__drawer .btn { margin-top: 0.25rem; font-size: 0.9375rem; padding: 0.75rem 2rem; }


/* ============================================================
   HERO — Galería
   ============================================================ */
.ghero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  text-align: center;
}

.ghero__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -65%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ghero__glow--magenta {
  position: absolute;
  top: 55%; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.ghero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 4rem 1.5rem;
}

.ghero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.12);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167,139,250,0.9);
  margin-bottom: 2.5rem;
}

.ghero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

.ghero__h1 {
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.ghero__accent {
  background: linear-gradient(135deg, rgba(167,139,250,1) 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ghero__line2 {
  display: block;
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  color: var(--gray-500);
  -webkit-text-fill-color: var(--gray-500);
  background: none;
}

.ghero__sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--gray-300);
  line-height: 1.7;
  max-width: 520px;
  margin: 1.75rem auto 0;
}
.ghero__sub strong {
  color: var(--gray-100);
  font-weight: 500;
}


/* ============================================================
   GALERÍA
   ============================================================ */
.gallery {
  padding: 5rem 0 7rem;
  position: relative;
  z-index: 1;
}

.gallery__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.gallery__eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.gallery__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ── Video Card ── */
.vcard {
  background: #111116;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.vcard:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(124,58,237,0.14);
}

.vcard__embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #09090F;
}
.vcard__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.vcard__info {
  padding: 1rem 1.25rem 1.25rem;
}

.vcard__niche {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(167,139,250,0.9);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.625rem;
}

.vcard__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin: 0;
}


/* ============================================================
   IMPACTO
   ============================================================ */
.impact {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0A0A0F;
  text-align: center;
}

.impact__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.impact__h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.impact__sub {
  font-size: 0.9375rem;
  color: var(--gray-300);
}
.impact__sub strong {
  color: var(--gray-100);
  font-weight: 500;
}


/* ============================================================
   CÓMO FUNCIONA (pipeline, estilo homepage)
   ============================================================ */
.como {
  padding: 7rem 0;
}

.como__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.como__header {
  margin-bottom: 3.5rem;
}

.como__h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.como__sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--gray-300);
  max-width: 560px;
}

/* ── Pipeline grid ── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  position: relative;
}

/* Connector line */
.pipeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(124,58,237,0.3) 20%, rgba(124,58,237,0.3) 80%, transparent);
  z-index: 0;
}

.pipeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.pipeline__ico-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: #111116;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
  color: rgba(167,139,250,0.9);
}

.pipeline__step:hover .pipeline__ico-wrap {
  border-color: rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.06);
}

.pipeline__num {
  position: absolute;
  top: -7px; right: -7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--violet);
  font-size: 0.5625rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.pipeline__desc {
  font-size: 0.75rem;
  color: var(--gray-300);
  line-height: 1.55;
}


/* ============================================================
   CTA
   ============================================================ */
.gcta {
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.gcta__glow {
  position: absolute;
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.16) 0%, rgba(236,72,153,0.06) 50%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.gcta__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.gcta__h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.gcta__sub {
  font-size: 1.0625rem;
  color: var(--gray-300);
  margin-bottom: 2rem;
}

.gcta__btn {
  box-shadow: 0 8px 32px rgba(124,58,237,0.32);
}
.gcta__btn:hover {
  box-shadow: 0 16px 40px rgba(124,58,237,0.48);
}

.gcta__micro {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}


/* ============================================================
   FOOTER (idéntico al homepage)
   ============================================================ */
.footer {
  background: #0A0A0F;
  border-top: 1px solid var(--border);
}

.footer__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer__logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
  max-width: 240px;
}

.footer__nav { display: contents; }

.footer__nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.footer__nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.footer__nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0; margin: 0;
}
.footer__nav-group a {
  font-size: 0.875rem;
  color: var(--gray-300);
  transition: color 0.15s;
}
.footer__nav-group a:hover { color: var(--white); }

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.footer__social-links { display: flex; gap: 0.75rem; }

.footer__social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.footer__social-link:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  color: var(--white);
}

.footer__bottom { border-top: 1px solid var(--border); }
.footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.78rem; color: var(--gray-700); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a {
  font-size: 0.78rem;
  color: var(--gray-700);
  transition: color 0.15s;
}
.footer__legal a:hover { color: var(--gray-300); }


/* ============================================================
   HERO ENTRANCE (CSS keyframes)
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ghero__badge {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: 0.15s;
}
.ghero__h1 {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: 0.3s;
}
.ghero__sub {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: 0.5s;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.25rem;
  }
  .pipeline::before { display: none; }
}

@media (max-width: 767px) {
  .nav { padding: 0 1.25rem; }
  .nav__menu    { display: none; }
  .nav__actions { display: none; }
  .nav__burger  { display: flex; }

  .ghero {
    align-items: flex-end;
    padding-top: 0;
  }
  .ghero__inner {
    padding: 0 1.25rem 5rem;
    margin-top: auto;
  }
  .ghero__h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }

  .gallery__wrap { padding: 0 1.25rem; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery { padding: 3.5rem 0 5rem; }

  .impact__inner { padding: 0 1.25rem; }

  .como { padding: 4.5rem 0; }
  .como__wrap { padding: 0 1.25rem; }
  .pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0.75rem;
  }

  .gcta__inner { padding: 0 1.25rem; }
  .gcta { padding: 5rem 0; }

  .footer__wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
  }
  .footer__bottom-inner {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .ghero__h1 { font-size: 2.4rem; }
}