/* ======================================================
   GOUT · LAYOUT.CSS
   ====================================================== */

/* ======================================================
   CONTAINERS & SECTION HELPERS
   ====================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide { max-width: var(--container-wide); }

.section { padding: var(--section-y) 0; }

.section-head {
  max-width: 720px;
  margin: 0 0 60px;
}

.section-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ======================================================
   NAVBAR
   ====================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  height: 78px;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  transition: box-shadow .3s var(--ease), height .3s var(--ease);
}

.nav.scrolled {
  height: 68px;
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, .65);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
}

.logo img { height: 38px; }

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 38px;
}

.nav-links a {
  position: relative;
  font-size: .96rem;
  font-weight: 500;
  color: var(--color-on-dark);
  padding: 6px 0;
  transition: color .25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-secondary);
  transition: width .3s var(--ease);
}

.nav-links a:hover { color: var(--color-secondary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }

.nav-cta .btn { padding: 12px 24px; font-size: .92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  font-size: 30px;
  line-height: 1;
  color: var(--color-secondary);
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(110% 120% at 12% 18%, rgba(0,37,35,.88) 0%, rgba(0,37,35,.55) 45%, rgba(0,37,35,.12) 80%),
    linear-gradient(180deg, rgba(0,37,35,.18), rgba(0,37,35,.65));
}

.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  padding: 140px 0 96px;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 1.3rem + 3vw, 3.7rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.hero-content h1 b { color: var(--color-secondary); font-weight: 800; }

.hero-content p {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--color-on-dark-muted);
  max-width: 750px;
  margin-bottom: 36px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 22px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(235,255,140,.12);
  backdrop-filter: blur(4px);
}

.hero-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(235,255,140,.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-on-dark-muted);
  font-size: .92rem;
}

.hero-trust .dots { display: inline-flex; }

.hero-trust .dots span {
  width: 30px; height: 30px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-deep);
  background: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-deep);
  font-size: 13px;
}

.hero-trust .dots span:first-child { margin-left: 0; }
.hero-trust b { color: #fff; }

/* ======================================================
   CLIENTES · contenedor de sección
   (el slider en sí vive en components.css)
   ====================================================== */
.clientes-section { padding: 56px 0; background: var(--color-white); }

/* ======================================================
   MÉTRICAS · banda + grid de la sección
   (la tarjeta .metric vive en components.css)
   ====================================================== */
.data-section { padding: var(--section-y) 0; background: var(--color-white); }

.data-band {
  background:
    radial-gradient(120% 140% at 85% 0%, var(--color-primary) 0%, var(--color-primary-deep) 70%);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.data-title h2 { color: #fff; }
.data-title h2 b { color: var(--color-secondary); }

.data-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* ======================================================
   QUIÉNES SOMOS · sección + grid
   (tabs, panel, visual y badge viven en components.css)
   ====================================================== */
.about-section { padding: var(--section-y) 0; background: var(--color-lila); }

.about-header { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.about-header h2 { margin-bottom: 18px; }

.about-tabs {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

/* ======================================================
   ¿POR QUÉ GOUT? · sección + grid
   (la tarjeta .why-card vive en components.css)
   ====================================================== */
.why-section { padding: var(--section-y) 0; background: var(--color-white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ======================================================
   SOLUCIONES · sección + layout
   (menú, botones y display viven en components.css)
   ====================================================== */
.section-soluciones {
  padding: var(--section-y) 0;
  background: var(--color-surface);
}

.soluciones-header {
  margin-bottom: 56px;
}

.soluciones-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
}

/* ======================================================
   SMART SALES · sección + grid de pasos
   (la tarjeta .smart-step vive en components.css)
   ====================================================== */
.smart-sales {
  padding: var(--section-y) 0;
  background:
    radial-gradient(120% 130% at 0% 0%, var(--color-primary) 0%, var(--color-primary-deep) 72%);
}

.smart-header { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.smart-header h2 { color: #fff; margin-bottom: 16px; }
.smart-header h2 b { color: var(--color-secondary); }

.smart-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ======================================================
   TECNOLOGÍA · sección + grid de columnas
   (la tarjeta .tech-col vive en components.css)
   ====================================================== */
.tech-section { padding: var(--section-y) 0; background: var(--color-lila); }

.tech-header { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.tech-header h2 { margin-bottom: 16px; }

.tech-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ======================================================
   ECOSISTEMA DE CANALES · sección + grid
   (la tarjeta .channels-card vive en components.css)
   ====================================================== */
.channels-section { padding: var(--section-y) 0; background: var(--color-white); }

.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ======================================================
   TALENTO HUMANO · split de la sección + media
   (los pills .talento-points viven en components.css)
   ====================================================== */
.talento-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.talento-texto {
  background:
    radial-gradient(130% 120% at 10% 20%, var(--color-primary) 0%, var(--color-primary-deep) 75%);
  display: flex;
  align-items: center;
  padding: 90px clamp(40px, 5vw, 96px);
}

.talento-content { max-width: 520px; }
.talento-content h2 { color: #fff; margin-bottom: 24px; }
.talento-content h2 b { color: var(--color-secondary); }

.talento-content p {
  color: var(--color-on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.talento-img { position: relative; overflow: hidden; }

.talento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================================================
   TESTIMONIOS · sección + grid
   (la tarjeta .testimonial-card vive en components.css)
   ====================================================== */
.testimonials-section { padding: var(--section-y) 0; background: var(--color-surface); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ======================================================
   CTA FINAL · sección + grid + contenido
   (las cajas de contacto y el form viven en components.css)
   ====================================================== */
.cta-final-section { padding: var(--section-y) 0; background: var(--color-white); }

.cta-final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.cta-final-content h2 { margin-bottom: 16px; }
.cta-final-content > p { font-size: 1.1rem; line-height: 1.65; color: var(--color-muted); margin-bottom: 32px; }
.cta-direct { display: grid; gap: 14px; margin-bottom: 28px; }

/* ======================================================
   FOOTER
   ====================================================== */
.footer-simple { background: var(--color-primary-deep); padding: 36px 0; }

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img { height: 38px; }
.footer-center { flex: 1; text-align: center; }
.footer-center p { margin: 0; line-height: 1.5; color: var(--color-on-dark-muted); font-size: .92rem; }
.footer-center strong { color: var(--color-on-dark); }
.footer-right { display: flex; gap: 10px; }

.footer-right a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-secondary);
  background: rgba(235, 255, 140, .08);
  transition: var(--transition);
}

.footer-right a:hover {
  background: var(--color-secondary);
  color: var(--color-primary-deep);
  transform: translateY(-3px);
}

/* ======================================================
   RESPONSIVE · LAYOUT
   ====================================================== */

/* ---------- TABLET (≤ 992px) ---------- */
@media (max-width: 992px) {

  /* HERO */
  .hero-content { padding: 120px 0 80px; }

  /* MÉTRICAS */
  .data-band {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 40px;
    text-align: center;
  }

  .data-title { max-width: 620px; margin: 0 auto; }

  /* QUIÉNES SOMOS */
  .about-tabs {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ¿POR QUÉ GOUT? */
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  /* SOLUCIONES */
  .soluciones-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* SMART SALES */
  .smart-steps { grid-template-columns: repeat(2, 1fr); }

  /* TECNOLOGÍA */
  .tech-columns { grid-template-columns: repeat(2, 1fr); }

  /* CANALES */
  .channels-grid { grid-template-columns: repeat(2, 1fr); }

  /* TALENTO */
  .talento-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .talento-img { order: -1; }
  .talento-img img { height: 320px; }
  .talento-texto { padding: 64px 32px; }

  /* TESTIMONIOS */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA FINAL · CONTACTO */
  .cta-final-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- MOBILE (≤ 768px) ---------- */
@media (max-width: 768px) {

  .container { padding: 0 20px; }
  .section-head { margin-bottom: 40px; }

  /* NAVBAR */
  .nav { height: 64px; }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    padding: 28px 24px 40px;
    gap: 0;
    flex-direction: column;
    background: var(--color-lila);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s var(--ease);
    z-index: 998;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--color-line);
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 20px 4px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
  }

  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--color-primary); }

  .nav-cta {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px 24px 28px;
    background: var(--color-lila);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }

  .nav-links.open + .nav-cta {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta .btn { width: 100%; padding: 16px; font-size: 1rem; }

  /* HERO full-screen mobile */
  .hero { min-height: 100svh; }
  .hero-content { padding: 100px 0 72px; max-width: 100%; }
  .hero-content p { font-size: 1.05rem; margin-bottom: 30px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-wrap: wrap; gap: 10px; font-size: .86rem; }

  /* Logos · contenedor de sección */
  .clientes-section { padding: 44px 0; }

  /* Métricas */
  .data-band { padding: 36px 22px; border-radius: var(--radius-lg); }
  .data-metrics { gap: 12px; }

  /* Quiénes somos */
  .about-header { margin-bottom: 36px; }

  /* ¿Por qué GOUT? */
  .why-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Smart Sales */
  .smart-steps { grid-template-columns: 1fr; gap: 16px; }

  /* Tecnología */
  .tech-columns { grid-template-columns: 1fr; gap: 16px; }

  /* Canales */
  .channels-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Talento */
  .talento-img img { height: 260px; }
  .talento-texto { padding: 48px 24px; }

  /* Testimonios */
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Footer */
  .footer-container { flex-direction: column; text-align: center; gap: 18px; }
}

/* ---------- MOBILE PEQUEÑO (≤ 480px) ---------- */
@media (max-width: 480px) {
  .hero-content { padding: 96px 0 64px; }
  .hero-content h1 { font-size: 1.95rem; }
  .data-metrics { grid-template-columns: 1fr; }
}