/* ==========================================================================
   MARTÍN TRONCOSO — NEGOCIOS EXITOSOS
   Brand Design System & Page Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BRAND TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --noche: #060f20;
  --marino: #0a1830;
  --resalte: #1b3358;
  --dorado: #c9a24b;
  --dorado2: #d9b45c;
  --dorado-glow: rgba(201, 162, 75, 0.35);
  --dorado-translucent: rgba(201, 162, 75, 0.15);
  --dorado-subtle: rgba(201, 162, 75, 0.08);

  --marfil: #f2eee6;
  --gris: #8fa3bf;
  --niebla: #b8c4d6;
  --claro: #dde5ef;

  /* Crema editorial (secciones claras alternadas) */
  --crema: #fbf8f2;
  --crema-card: #fffdf8;
  --crema-borde: #e7ddc6;
  --carbon: #2e3030;
  --carbon-suave: #57534a;

  /* Typography */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Lato', system-ui, -apple-system, sans-serif;

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. BASE & RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* auto y no smooth: ScrollTrigger pide que no este, porque le interfiere
     el calculo de posiciones. Los saltos a anclajes ya los suaviza el JS,
     con Lenis o con scrollIntoView. */
  scroll-behavior: auto;
  font-size: 16px;
  /* El color base va acá: si queda en body, la capa de fondo (body::before,
     en z-index -1) podría pintarse por detrás y no verse el gradiente. */
  background-color: var(--noche);
}

body {
  color: var(--marfil);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* El gradiente iba en el body con background-attachment: fixed, que obliga
   al navegador a repintar el fondo entero en cada cuadro de scroll. Con una
   capa fija propia se ve exactamente igual, pero se compone una sola vez. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--noche);
  background-image: radial-gradient(circle at 50% 0%, var(--marino) 0%, var(--noche) 85%);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--marfil);
  line-height: 1.25;
}

/* Gold Italic Accent in Titles */
.accent-gold-italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--dorado);
  font-weight: 400;
}

p {
  color: var(--niebla);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Anclas bajo la navbar fija */
section[id] {
  scroll-margin-top: 90px;
}

/* Foco visible accesible en links y botones */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--dorado2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. REUSABLE COMPONENTS & GRAPHIC ELEMENTS
   -------------------------------------------------------------------------- */

/* Eyebrow / Kicker */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--dorado);
  margin-bottom: 0.75rem;
}

.eyebrow--niebla {
  color: var(--niebla);
}

/* Header Ornament (line - dot - line) */
.header-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.header-ornament-line {
  height: 1px;
  width: 45px;
  background: linear-gradient(90deg, transparent, var(--dorado));
}

.header-ornament-line--right {
  background: linear-gradient(90deg, var(--dorado), transparent);
}

.header-ornament-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dorado);
  box-shadow: 0 0 8px var(--dorado-glow);
}

/* Section Divider with Gold Gradient */
.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--dorado-translucent) 20%, var(--dorado) 50%, var(--dorado-translucent) 80%, transparent 100%);
  margin-top: 0;
  margin-bottom: 0;
  border: none;
}

/* Buttons / CTAs */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dorado2), var(--dorado));
  color: var(--noche);
  border-color: var(--dorado2);
  box-shadow: 0 4px 20px rgba(201, 162, 75, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e5bf68, var(--dorado2));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 75, 0.4);
  color: var(--noche);
}

.btn-secondary {
  background: transparent;
  color: var(--dorado);
  border-color: var(--dorado);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: var(--dorado-translucent);
  color: var(--marfil);
  border-color: var(--dorado2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 75, 0.2);
}

.btn-large {
  padding: 1.1rem 2.75rem;
  font-size: 0.95rem;
}

/* Brand Card */
.brand-card {
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.7) 0%, rgba(10, 24, 48, 0.85) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Spotlight dorado que sigue al cursor (custom properties seteadas por JS) */
.brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      rgba(201, 162, 75, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-card:hover {
  border-color: rgba(201, 162, 75, 0.5);
  transform: perspective(900px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 12px 30px rgba(6, 15, 32, 0.6), 0 0 15px rgba(201, 162, 75, 0.15);
}

/* Decorative Double Gold Frame Accent */
.double-gold-frame {
  position: relative;
  border: 1px solid var(--dorado);
  border-radius: var(--radius-md);
}

.double-gold-frame::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 0.5px solid rgba(201, 162, 75, 0.4);
  border-radius: calc(var(--radius-md) - 3px);
  pointer-events: none;
}

/* Lucide Icon Style Helper */
.gold-icon {
  color: var(--dorado);
  stroke-width: 2.3px;
}

/* Section Spacing */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Section Title Group */
.section-header {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--niebla);
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVIGATION (STICKY)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-fast);
  background: rgba(6, 15, 32, 0.4);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.1);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(6, 15, 32, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(201, 162, 75, 0.25);
}

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

/* Logo / Wordmark */
.brand-wordmark {
  display: flex;
  flex-direction: column;
}

.brand-wordmark-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--marfil);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-wordmark-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--dorado);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--claro);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--dorado);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--dorado);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--dorado-translucent);
  color: var(--dorado);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--noche);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--dorado-translucent);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(27, 51, 88, 0.6) 0%, rgba(6, 15, 32, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-section {
    padding-top: 8rem;
  }

  .header-ornament {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--marfil);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 620px;
}

@media (max-width: 992px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .hero-ctas {
    justify-content: center;
  }
}

.hero-credibility {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--gris);
  font-weight: 500;
}

@media (max-width: 992px) {
  .hero-credibility {
    justify-content: center;
  }
}

.hero-credibility-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--dorado);
}

.hero-image-wrapper {
  position: relative;
  perspective: 1200px;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--resalte), var(--marino));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  will-change: transform;
  transform-style: preserve-3d;
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.05) brightness(0.95);
  transition: var(--transition-smooth);
}

.hero-image-card:hover img {
  filter: contrast(1.1) brightness(1);
  transform: scale(1.02);
}

.hero-image-placeholder {
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--resalte) 0%, var(--marino) 100%);
  color: var(--niebla);
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--dorado-translucent);
}

/* --------------------------------------------------------------------------
   6. SOCIAL PROOF / TRUST INDICATORS
   -------------------------------------------------------------------------- */
.social-proof-section {
  background: rgba(10, 24, 48, 0.6);
  padding: 3rem 0;
  border-top: 1px solid rgba(201, 162, 75, 0.15);
  border-bottom: 1px solid rgba(201, 162, 75, 0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.stat-item {
  position: relative;
  padding: 1rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--dorado-translucent), transparent);
}

@media (max-width: 992px) {
  .stat-item:not(:last-child)::after {
    display: none;
  }
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--niebla);
}

/* --------------------------------------------------------------------------
   7. ABOUT ME (SOBRE MÍ)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-photo-wrapper {
  position: relative;
}

.about-photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.about-photo-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Alternate Section Background (Azul Resalte) for Visual Rhythm */
.section-resalte-bg {
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.85) 0%, rgba(10, 24, 48, 0.95) 100%);
  border-top: 1px solid rgba(201, 162, 75, 0.2);
  border-bottom: 1px solid rgba(201, 162, 75, 0.2);
  position: relative;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  font-size: 1.08rem;
  color: var(--niebla);
  line-height: 1.75;
}

.about-highlight-box {
  margin-top: 1rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.8), rgba(10, 24, 48, 0.9));
  border-left: 3px solid var(--dorado);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-highlight-phrase {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--marfil);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   8. PAIN POINTS / PARA QUÉ ES (DOLORES)
   -------------------------------------------------------------------------- */
.pains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .pains-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.pain-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.pain-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--resalte);
  border: 1px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pain-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--marfil);
  margin-bottom: 0.5rem;
}

.pain-desc {
  font-size: 0.98rem;
  color: var(--niebla);
}

.pains-closing-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.9), rgba(6, 15, 32, 0.95));
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--dorado-translucent);
}

.pains-closing-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--marfil);
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   9. WHAT I DO / CÓMO TE AYUDO
   -------------------------------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.value-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
}

.value-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.value-card-title {
  font-size: 1.6rem;
  color: var(--dorado);
  margin-bottom: 1rem;
}

.value-prop-box {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(10, 24, 48, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 75, 0.15);
}

.value-prop-text {
  font-size: 1.18rem;
  color: var(--marfil);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. METHOD / POR QUÉ DISTINTO
   -------------------------------------------------------------------------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.method-card {
  padding: 2.25rem;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-title {
  font-size: 1.3rem;
  color: var(--marfil);
}

/* --------------------------------------------------------------------------
   11. ECOSYSTEM / PROJECTS (EN QUÉ ANDO)
   -------------------------------------------------------------------------- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

.ecosystem-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ecosystem-top {
  margin-bottom: 1.5rem;
}

.ecosystem-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dorado);
  margin-bottom: 0.75rem;
}

.ecosystem-title {
  font-size: 1.45rem;
  color: var(--marfil);
  margin-bottom: 0.75rem;
}

.ecosystem-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dorado);
  transition: var(--transition-fast);
}

.ecosystem-link:hover {
  color: var(--dorado2);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   12. CASES / TESTIMONIALS (CASOS REALES)
   -------------------------------------------------------------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.case-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--resalte);
  border: 1px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dorado);
  flex-shrink: 0;
  overflow: hidden;
}

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

.case-meta {
  display: flex;
  flex-direction: column;
}

.case-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--marfil);
  line-height: 1.2;
}

.case-sub {
  font-size: 0.82rem;
  color: var(--gris);
}

.case-text {
  font-size: 0.98rem;
  color: var(--niebla);
  line-height: 1.65;
}

.cases-placeholder-box {
  padding: 2rem;
  text-align: center;
  background: rgba(10, 24, 48, 0.4);
  border: 1px dashed rgba(201, 162, 75, 0.25);
  border-radius: var(--radius-md);
  color: var(--gris);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   13. FULL-WIDTH QUOTE BANNER
   -------------------------------------------------------------------------- */
.quote-banner-section {
  background: linear-gradient(135deg, var(--resalte) 0%, var(--marino) 50%, var(--noche) 100%);
  padding: 5rem 0;
  border-top: 1px solid var(--dorado-translucent);
  border-bottom: 1px solid var(--dorado-translucent);
  text-align: center;
  position: relative;
}

.quote-banner-text {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-style: italic;
  color: var(--marfil);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .quote-banner-text {
    font-size: 1.85rem;
  }
}

.quote-banner-author {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--dorado);
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   14. FAQ (ACCORDION)
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.6), rgba(10, 24, 48, 0.8));
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(201, 162, 75, 0.4);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 1.75rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--marfil);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.faq-icon {
  color: var(--dorado);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.75rem;
}

.faq-item.active .faq-content {
  max-height: 500px;
  transition: max-height 0.35s ease-in-out;
  padding: 0 1.75rem 1.5rem 1.75rem;
}

.faq-answer {
  color: var(--niebla);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   15. CONTACT SECTION (WHATSAPP + FORM)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-wa-box {
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.wa-big-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--dorado-translucent);
  border: 1px solid var(--dorado);
  color: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--dorado-glow);
}

/* Video Testimonial Card */
.case-video-card {
  max-width: 850px;
  margin: 2.5rem auto 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--resalte), var(--marino));
  padding: 1.5rem;
}

.case-video-player {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  display: block;
}

.case-video-caption {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--marfil);
  text-align: center;
  margin-top: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--niebla);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(6, 15, 32, 0.6);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: var(--radius-sm);
  color: var(--marfil);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.25);
  background: rgba(6, 15, 32, 0.85);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25D366;
  color: #25D366;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* --------------------------------------------------------------------------
   16. FOOTER & SCROLL TO TOP
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--noche);
  border-top: 1px solid rgba(201, 162, 75, 0.2);
  padding: 4.5rem 0 2rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dorado);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--niebla);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--dorado);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(27, 51, 88, 0.6);
  border: 1px solid var(--dorado-translucent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dorado);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.social-icon-btn i,
.social-icon-btn svg {
  color: inherit;
  fill: currentColor;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon-btn:hover {
  background: var(--dorado);
  color: var(--noche);
  border-color: var(--dorado);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 162, 75, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gris);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dorado);
  color: var(--noche);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 99;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  background: var(--dorado2);
}

/* --------------------------------------------------------------------------
   17. ADVANCED FULL-RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, DESKTOP)
   -------------------------------------------------------------------------- */

/* Responsive Typography Fluid Clamping */
.hero-title {
  font-size: clamp(2.2rem, 6.5vw, 3.8rem);
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

/* Form input font size 16px to prevent iOS auto-zoom */
.form-input,
.form-textarea {
  font-size: 16px !important;
}

/* Mobile & Small Screens (< 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Buttons fill width on small mobile if needed */
  .hero-ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-pill {
    width: 100%;
    padding: 0.95rem 1.5rem;
    text-align: center;
  }

  .hero-image-card img,
  .hero-image-placeholder {
    height: clamp(300px, 45vh, 420px);
  }

  .about-photo-frame img {
    height: clamp(320px, 48vh, 440px);
  }

  .brand-card {
    padding: 1.5rem;
  }

  .pain-card {
    flex-direction: row;
    gap: 1rem;
  }

  .pain-icon-box {
    width: 46px;
    height: 46px;
  }

  .pain-title {
    font-size: 1.15rem;
  }

  .pains-closing-banner {
    padding: 2rem 1.25rem;
  }

  .pains-closing-text {
    font-size: 1.2rem;
  }

  .value-card {
    padding: 1.75rem 1.25rem;
  }

  .quote-banner-section {
    padding: 3.5rem 1rem;
  }

  .quote-banner-text {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
  }

  .faq-trigger {
    padding: 1.25rem;
    font-size: 1.05rem;
  }

  .faq-content {
    padding: 0 1.25rem;
  }

  .faq-item.active .faq-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .contact-wa-box {
    padding: 2.25rem 1.25rem;
  }

  .scroll-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}

/* Extra Small Devices (< 480px) */
@media (max-width: 480px) {
  .brand-wordmark-title {
    font-size: 1.2rem;
  }

  .brand-wordmark-sub {
    font-size: 0.58rem;
    letter-spacing: 2px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
  }

  .pain-card {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   18. MOTION SYSTEM (SCROLL REVEAL, HERO ENTRANCE, MARQUEE, 3D)
   Todo gated detrás de html.js para no ocultar contenido si falla el JS.
   -------------------------------------------------------------------------- */

/* --- 18.1 Scroll Reveal genérico (IntersectionObserver en martin-troncoso.js) --- */
html.js .reveal,
html.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal--left {
  transform: translateX(-32px);
}

html.js .reveal--right {
  transform: translateX(32px);
}

html.js .reveal--scale {
  transform: scale(0.94);
}

html.js .reveal.reveal-visible,
html.js .reveal-stagger.reveal-visible > * {
  opacity: 1;
  transform: none;
}

html.js .reveal[data-delay="1"] {
  transition-delay: 0.12s;
}

html.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

/* --- 18.2 Hero: entrada coreografiada escalonada --- */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

html.js .hero-content > * {
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.js .hero-content > *:nth-child(1) {
  animation-delay: 0.05s;
}

html.js .hero-content > *:nth-child(2) {
  animation-delay: 0.13s;
}

html.js .hero-content > *:nth-child(3) {
  animation-delay: 0.21s;
}

html.js .hero-content > *:nth-child(4) {
  animation-delay: 0.31s;
}

html.js .hero-content > *:nth-child(5) {
  animation-delay: 0.41s;
}

html.js .hero-image-wrapper {
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* --- 18.3 Subrayado SVG dorado que se dibuja bajo "líder" --- */
.word-underline {
  position: relative;
  display: inline-block;
}

.underline-draw {
  position: absolute;
  left: -4%;
  bottom: -0.22em;
  width: 108%;
  height: 0.35em;
  overflow: visible;
  pointer-events: none;
}

html.js .underline-draw path {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: draw-underline 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes draw-underline {
  to {
    stroke-dashoffset: 0;
  }
}

/* --- 18.4 Marquee infinito de logos de clientes --- */
.clients-marquee-section {
  padding: 2.5rem 0 3rem;
}

.clients-marquee-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gris);
}

.clients-marquee {
  overflow: hidden;
  margin-top: 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  flex-shrink: 0;
}

.marquee-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.75;
  transition: var(--transition-fast);
}

.marquee-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(201, 162, 75, 0.35));
}

.clients-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .marquee-group {
    gap: 2.25rem;
    padding-right: 2.25rem;
  }

  .marquee-logo {
    height: 32px;
  }
}

/* --- 18.5 CTA posterior a Casos reales --- */
.cases-cta {
  text-align: center;
  margin-top: 3rem;
}

.cases-cta-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--marfil);
  margin-bottom: 1.25rem;
}

/* --- 18.6 Avatar de monograma (testimonios sin foto real) --- */
.case-avatar--monogram {
  background: linear-gradient(135deg, rgba(201, 162, 75, 0.2), rgba(201, 162, 75, 0.06));
  border: 1px solid var(--dorado);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveals visibles sin animación */
  html.js .reveal,
  html.js .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Subrayado dibujado visible de inmediato */
  html.js .underline-draw path {
    stroke-dashoffset: 0 !important;
  }

  /* Marquee detenido */
  .marquee-track {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   19. SECCIONES CREMA (RITMO OSCURO → CREMA) + MOTION AVANZADO v3.1
   -------------------------------------------------------------------------- */

/* --- 19.1 Sección con fondo crema editorial (.section--crema) --- */
.section--crema {
  background: var(--crema);
  border-top: 1px solid rgba(201, 162, 75, 0.3);
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
  color: var(--carbon);
}

/* Tipografía: Lora oscura, cuerpo carbón suave, dorado intacto para acentos */
.section--crema .section-title,
.section--crema .method-title,
.section--crema h2,
.section--crema h3 {
  color: var(--carbon);
}

.section--crema p,
.section--crema .pain-desc,
.section--crema .about-text {
  color: var(--carbon-suave);
}

/* Tarjetas en versión clara (spotlight dorado se mantiene, opacidad ajustada) */
.section--crema .brand-card {
  background: var(--crema-card);
  border: 1px solid var(--crema-borde);
  backdrop-filter: none;
  box-shadow: 0 10px 30px rgba(120, 100, 60, 0.08);
}

.section--crema .brand-card::before {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      rgba(201, 162, 75, 0.18), transparent 65%);
}

.section--crema .brand-card:hover {
  border-color: rgba(201, 162, 75, 0.6);
  box-shadow: 0 16px 38px rgba(120, 100, 60, 0.16), 0 0 18px rgba(201, 162, 75, 0.15);
}

/* Highlight box de Sobre mí en versión papel */
.section--crema .about-highlight-box {
  background: #fffdf7;
  border-left: 3px solid var(--dorado);
  box-shadow: 0 10px 30px rgba(120, 100, 60, 0.1);
}

.section--crema .about-highlight-phrase {
  color: var(--carbon);
}

/* Marco de la foto: sombra cálida en vez de sombra noche */
.section--crema .about-photo-frame {
  box-shadow: 0 20px 45px rgba(120, 100, 60, 0.18);
}

/* --- 19.2 Sobre mí: foto de grayscale a color + parallax (JS scrub) --- */
/* Default color (sin JS / reduced-motion). JS setea --gray por frame. */
.about-photo-frame img {
  filter: grayscale(var(--gray, 0));
  will-change: filter, transform;
}

/* --- 19.3 Quote banner: reveal palabra por palabra (spans .qword vía JS) --- */
.quote-banner-text .qword {
  display: inline-block;
  will-change: opacity, filter;
}

/* --- 19.4 Método: timeline vertical que se dibuja con el scroll --- */
.method-timeline {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
}

/* Riel de fondo (siempre visible, dorado tenue) */
.method-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(201, 162, 75, 0.18);
}

/* Línea dorada que se dibuja: scaleY(0→1) con --tl-progress (default 1 sin JS) */
.method-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--dorado2), var(--dorado));
  transform: scaleY(var(--tl-progress, 1));
  transform-origin: top;
}

.method-step {
  position: relative;
  width: calc(50% - 3rem);
  margin-bottom: 3rem;
}

.method-step--left {
  margin-right: auto;
}

.method-step--right {
  margin-left: auto;
}

.method-step:last-child {
  margin-bottom: 0;
}

/* Nodo dorado sobre la línea (iluminado por defecto = estado final sin JS) */
.method-node {
  position: absolute;
  top: 2.6rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dorado);
  border: 2px solid var(--dorado);
  box-shadow: 0 0 16px var(--dorado-glow);
  z-index: 2;
  transition: background-color 0.4s, box-shadow 0.4s;
}

.method-step--left .method-node {
  right: -3rem;
  transform: translateX(50%);
}

.method-step--right .method-node {
  left: -3rem;
  transform: translateX(-50%);
}

/* Con JS activo (tl-active): nodos apagados hasta que la línea los alcanza */
.method-timeline.tl-active .method-node {
  background: var(--crema);
  box-shadow: none;
}

.method-timeline.tl-active .method-step.lit .method-node {
  background: var(--dorado);
  box-shadow: 0 0 18px var(--dorado-glow);
}

/* Timeline en mobile: línea a la izquierda, tarjetas a ancho completo */
@media (max-width: 768px) {
  .method-timeline::before,
  .method-line {
    left: 7px;
    margin-left: 0;
  }

  .method-step {
    width: 100%;
    margin-bottom: 2rem;
    padding-left: 2.5rem;
  }

  .method-step--left .method-node,
  .method-step--right .method-node {
    left: 0;
    right: auto;
    transform: none;
    top: 2.2rem;
  }
}

/* Timeline horizontal en desktop: 4 pasos en fila (menos scroll vertical),
   la línea dorada se dibuja de izquierda a derecha con el scroll */
@media (min-width: 993px) {
  .method-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    max-width: none;
  }

  .method-timeline::before,
  .method-line {
    top: 7px;
    bottom: auto;
    left: 12.5%;
    right: 12.5%;
    width: auto;
    height: 2px;
    margin-left: 0;
  }

  .method-line {
    background: linear-gradient(90deg, var(--dorado2), var(--dorado));
    transform: scaleX(var(--tl-progress, 1));
    transform-origin: left;
  }

  .method-step {
    width: auto;
    margin: 0;
    padding-top: 2.25rem;
  }

  .method-step--left,
  .method-step--right {
    margin-left: 0;
    margin-right: 0;
  }

  .method-step--left .method-node,
  .method-step--right .method-node {
    left: 50%;
    right: auto;
    top: 0;
    transform: translateX(-50%);
  }
}

/* --- 19.5 Sello circular rotatorio ("De dueño a líder · Negocios Exitosos") --- */
.rotating-seal {
  position: absolute;
  right: 2.75rem;
  bottom: 2.75rem;
  width: 120px;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}

.rotating-seal-text {
  display: block;
  animation: seal-spin 26s linear infinite;
}

.rotating-seal-ring {
  fill: none;
  stroke: rgba(201, 162, 75, 0.35);
  stroke-width: 1;
}

.rotating-seal-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  fill: var(--dorado);
}

.rotating-seal-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--dorado);
}

/* Entrada coreografiada junto al hero */
html.js .rotating-seal {
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

@keyframes seal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Solo desktop amplio: evita colisiones con la grilla del hero */
@media (max-width: 1100px) {
  .rotating-seal {
    display: none;
  }
}

/* --- 19.6 Reduced motion: estados finales estáticos para el motion nuevo --- */
@media (prefers-reduced-motion: reduce) {
  .rotating-seal-text {
    animation: none !important;
  }

  /* Línea del timeline dibujada completa y nodos iluminados */
  .method-line {
    transform: none !important;
  }

  .method-timeline.tl-active .method-node {
    background: var(--dorado) !important;
    box-shadow: 0 0 16px var(--dorado-glow) !important;
  }
}

/* --------------------------------------------------------------------------
   20. RITMO VERTICAL COMPACTO + CASOS EN FILA
   Reduce el alto total de la página (~25%) sin tocar contenido:
   paddings de sección, headers, tarjetas, hero, footer.
   Las reglas acá van al final del archivo para ganar por orden de cascada.
   -------------------------------------------------------------------------- */
.section-padding {
  padding-top: 3.9rem;
  padding-bottom: 3.9rem;
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.3rem);
}

.brand-card {
  padding: 1.8rem;
}

/* Hero: menos alto de viewport, foto más baja */
.hero-section {
  min-height: 80vh;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.hero-ctas {
  margin-bottom: 0;
}

.hero-image-card img {
  height: 430px;
}

/* Marquee de clientes más compacto */
.clients-marquee-section {
  padding: 1.75rem 0 2.25rem;
}

.clients-marquee {
  margin-top: 1.25rem;
}

/* Barra de prueba social */
.social-proof-section {
  padding: 2.25rem 0;
}

.stat-number {
  font-size: 2.6rem;
}

/* Sobre mí: foto más baja */
.about-photo-frame img {
  height: 470px;
}

/* Sobre mí: foto wide (charla en vivo) — se ve completa, sin recorte vertical */
.about-photo-frame img.about-photo-wide {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* Dolores: grilla y banner de cierre más compactos */
.pains-grid {
  margin-bottom: 2rem;
}

.pains-closing-banner {
  padding: 2rem;
}

.pains-closing-text {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

/* Qué hago */
.value-grid {
  margin-bottom: 2rem;
}

.value-card {
  padding: 1.9rem 1.5rem;
}

.value-prop-box {
  padding: 1.5rem 2rem;
}

/* Ecosistema */
.ecosystem-top {
  margin-bottom: 1rem;
}

/* Casos: grilla sin margen extra; video + CTA pasan a una fila */
.cases-grid {
  margin-bottom: 0;
}

.cases-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}

.cases-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.cases-videos .case-video-card {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.cases-bottom .cases-cta {
  margin-top: 0;
}

/* Cita de cierre más baja */
.quote-banner-section {
  padding: 3.5rem 0;
}

.quote-banner-text {
  font-size: 2.4rem;
}

/* FAQ más compacto */
.faq-container {
  gap: 0.9rem;
}

.faq-trigger {
  padding: 1.1rem 1.5rem;
  font-size: 1.1rem;
}

/* Contacto */
.contact-wa-box {
  padding: 2rem 1.75rem;
  gap: 1.1rem;
}

.form-textarea {
  min-height: 96px;
}

/* Footer */
.site-footer {
  padding: 3.25rem 0 1.75rem 0;
}

.footer-grid {
  margin-bottom: 2.25rem;
}

@media (max-width: 992px) {
  .cases-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cases-videos {
    grid-template-columns: 1fr;
  }

  .cases-videos .case-video-card {
    margin: 0 auto;
    max-width: 850px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .quote-banner-section {
    padding: 2.75rem 0;
  }

  .quote-banner-text {
    font-size: 1.85rem;
  }
}

/* --------------------------------------------------------------------------
   21. FUSIONES DE SECCIONES (DOLOR→SOLUCIÓN y CONTACTO+FAQ)
   Layouts a dos columnas para reducir el alto total de la página.
   -------------------------------------------------------------------------- */

/* Dolor → Solución: dos columnas en desktop */
.duo-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.75rem;
  max-width: none;
}

.pains-list,
.value-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pains-list .pain-card {
  padding: 1.4rem 1.6rem;
  gap: 1.1rem;
}

/* Tarjetas de valor en formato fila: ícono a la izquierda, título dorado */
.value-list .value-card {
  text-align: left;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
}

.value-list .value-card-icon {
  margin: 0;
  width: 54px;
  height: 54px;
  background: var(--resalte);
  flex-shrink: 0;
}

.value-list .value-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pains-closing-sub {
  max-width: 760px;
  margin: 0 auto 1.5rem auto;
  color: var(--niebla);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Video testimonial: altura acotada (es vertical) */
.case-video-player {
  max-height: 380px;
}

/* Franja WhatsApp horizontal dentro de Contacto */
.contact-wa-strip {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.4rem 2rem;
  margin-bottom: 2.5rem;
}

.contact-wa-strip .wa-big-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.wa-strip-text {
  flex: 1;
  text-align: left;
}

.wa-strip-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--marfil);
  margin-bottom: 0.25rem;
}

.contact-wa-strip .btn-pill {
  flex-shrink: 0;
}

/* FAQ como columna dentro de Contacto */
.faq-col .faq-container {
  max-width: none;
  margin: 0;
}

.faq-col > .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .duo-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .contact-wa-strip {
    flex-direction: column;
    text-align: center;
    gap: 1.1rem;
  }

  .wa-strip-text {
    text-align: center;
  }

  .contact-wa-strip .btn-pill {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   22. NUEVO SISTEMA DE BOTONES (Fase 1 modernización)
   Simpleza estática, riqueza en movimiento:
   - Radius intermedio 12px (adiós pill completo)
   - Sentence case, sin tracking forzado
   - Dorado sólido (adiós degradé + sombra pesada)
   - Hover: text-swap (el texto rola) + shimmer + flecha viva
   - Secundario -> link con subrayado animado
   data-text lo setea JS desde el span; sin JS los botones se ven normales.
   -------------------------------------------------------------------------- */
:root {
  --btn-radius: 12px;
  --ease-swap: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Base: nueva anatomía */
.btn-pill {
  position: relative;
  overflow: hidden;
  border-radius: var(--btn-radius);
  padding: 0.95rem 1.9rem;
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.btn-large {
  padding: 1.05rem 2.1rem;
  font-size: 1rem;
}

/* Capa de texto que rola en hover (text-swap) */
.btn-pill>span {
  display: inline-block;
  transition: transform 0.45s var(--ease-swap);
}

.btn-pill::after {
  content: attr(data-text);
  position: absolute;
  left: 1.9rem;
  top: 50%;
  transform: translateY(160%);
  transition: transform 0.45s var(--ease-swap);
  font: inherit;
  white-space: nowrap;
  pointer-events: none;
}

.btn-large::after {
  left: 2.1rem;
}

.btn-pill:hover>span {
  transform: translateY(-160%);
}

.btn-pill:hover::after {
  transform: translateY(-50%);
}

/* Flecha viva: el ícono se desplaza en hover */
.btn-pill svg {
  transition: transform 0.18s ease-out;
}

.btn-pill:hover svg {
  transform: translateX(4px);
}

/* Primary: dorado sólido + barrido de luz (shimmer) */
.btn-primary {
  background: var(--dorado);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(201, 162, 75, 0.18);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--dorado2);
  border-color: transparent;
  color: var(--noche);
  transform: none;
  box-shadow: 0 4px 16px rgba(201, 162, 75, 0.28);
}

.btn-primary:hover::before {
  left: 130%;
}

/* Secondary: deja de ser botón -> link con subrayado animado */
.btn-secondary {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0.35rem 0;
  color: var(--dorado);
}

.btn-secondary::after {
  content: '';
  left: 0;
  top: auto;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--dorado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}

.btn-secondary:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--dorado2);
  transform: none;
}

.btn-secondary:hover>span {
  transform: none;
}

.btn-secondary:hover::after {
  transform: scaleX(1);
}

/* Focus visible accesible */
.btn-pill:focus-visible {
  outline: 2px solid var(--dorado2);
  outline-offset: 3px;
}

/* Reduced motion: estados estáticos, sin swap ni shimmer */
@media (prefers-reduced-motion: reduce) {
  .btn-pill::after {
    display: none;
  }

  .btn-pill:hover>span {
    transform: none;
  }

  .btn-primary::before {
    display: none;
  }

  .btn-secondary::after {
    display: block;
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   23. MATERIAL (Fase 3) + CTA STICKY MOBILE (Fase 4)
   - Escala de radios consistente: 8px inputs / 12px botones / 16px tarjetas
   - Textura noise sutil sobre toda la página (mata el "plástico liso")
   - Focus ring moderno en inputs (outline offset, adiós glow)
   - CTA sticky abajo en mobile (se oculta al llegar a Contacto)
   -------------------------------------------------------------------------- */
:root {
  --radius-md: 16px;
}

/* Noise texture: SVG inline con feTurbulence, ~4.5% de opacidad */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Focus ring moderno en formularios */
.form-input:focus,
.form-textarea:focus {
  box-shadow: none;
  outline: 2px solid var(--dorado);
  outline-offset: 2px;
}

/* CTA sticky mobile */
.sticky-mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: inline-flex;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 997;
    justify-content: center;
    transform: translateY(calc(100% + 2.5rem));
    transition: transform 0.45s var(--ease-out-expo);
    box-shadow: 0 8px 24px rgba(6, 15, 32, 0.55);
  }

  .sticky-mobile-cta.visible {
    transform: translateY(0);
  }

  /* El botón de scroll-to-top sube para no chocar con el CTA */
  .scroll-top-btn {
    bottom: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-mobile-cta {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   24. PERFORMANCE (mobile): eliminar trabajo de composición por frame
   - body::after noise fijo: obliga a re-mezclar toda la pantalla cada frame
     → en mobile se desactiva (en desktop el costo es despreciable)
   - backdrop-filter blur en navbar y brand-cards: repinta el fondo difuminado
     en cada frame de scroll → en mobile se reemplaza por fondos sólidos
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body::after {
    display: none;
  }

  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 15, 32, 0.88);
  }

  .brand-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(135deg, rgba(27, 51, 88, 0.94) 0%, rgba(10, 24, 48, 0.96) 100%);
  }
}


/* ==========================================================================
   LÍNEA DE TIEMPO — escena anclada
   La sección se "clava" mientras se scrollea y cada etapa entra desde la
   derecha tapando a la anterior. El alto del riel define cuánto scroll
   ocupa el recorrido: --paso por cada etapa después de la primera.
   ========================================================================== */
.tl2 {
  --paso: 68vh;
  background: var(--crema);
  position: relative;
}

/* El pin lo hace ScrollTrigger con su propio spacer: no va sticky acá,
   se pelearían. */
/* Ya no se clava en pantalla: es una seccion normal. Por eso tampoco
   necesita reservar el alto del navbar fijo ni un alto en svh. */
.tl2-fijo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 5.5rem 0;
}

.tl2-cab {
  text-align: center;
  flex-shrink: 0;
}

.tl2-titulo {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--carbon);
  margin: 0;
}

/* --- escena: las etapas se apilan una sobre otra ---
   El que crece es el .container que la envuelve; la escena lo llena.
   Si el flex:1 queda en .tl2-escena, colapsa a 2px de alto. */
/* --- escena: tarjeta partida al medio ---
   Izquierda la diapositiva del Canva, derecha el texto. */
.tl2-escena-cont {
  display: flex;
  justify-content: center;
}

/* La proporcion de la tarjeta NO es arbitraria: sale de que la mitad de
   imagen tiene que quedar en 3:2, igual que las placas del Canva, para que
   no aparezcan bandas de fondo. Si la imagen ocupa la fraccion f del ancho,
   la tarjeta tiene que ser 1.5/f : 1. Con f = 0.55 -> 2.727.
   Si se cambia el reparto de columnas, hay que recalcular este numero. */
.tl2-escena {
  position: relative;
  aspect-ratio: 2.727;
  width: 100%;
  height: auto;
  /* Las etapas se apilan en la MISMA celda en vez de posicionarse absolutas:
     asi la mas alta define el alto de la tarjeta. Con position:absolute el
     contenedor colapsaba a 2px en cuanto no habia un alto fijo (mobile). */
  display: grid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--crema-card);
  border: 1px solid var(--crema-borde);
  box-shadow: 0 24px 60px rgba(46, 48, 48, 0.1);
}

.tl2-etapa {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 55fr 45fr;
  background: var(--crema-card);
  /* Sin transicion: la posicion la maneja el scroll cuadro a cuadro.
     Tampoco lleva will-change fijo: con 8 paneles a pantalla completa eran
     8 capas compositadas permanentes. GSAP lo pone solo mientras anima. */
}

.tl2-etapa-tapa {
  position: absolute;
  inset: 0;
  background: var(--noche);
  opacity: 0;
  pointer-events: none;
}

.tl2-media {
  position: relative;
  overflow: hidden;
  /* Mismo azul que el fondo de las placas del Canva: como van con
     object-fit contain (son 3:2 y esta mitad es mas cuadrada), las bandas
     que sobran quedan invisibles y el collage no se recorta nunca. */
  background: var(--noche);
}

/* La caja quedo en 3:2 igual que la placa, asi que cover no recorta nada;
   esta para absorber el redondeo de subpixel y que no asome el fondo. */
.tl2-media img,
.tl2-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl2-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  min-width: 0;
}

.tl2-texto-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.tl2-chapa {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6d0b;
  background: rgba(201, 162, 75, 0.16);
  border: 1px solid rgba(201, 162, 75, 0.45);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.tl2-etapa-titulo {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--carbon);
  margin: 0 0 0.75rem;
}

.tl2-etapa-texto {
  font-family: var(--font-sans);
  color: var(--carbon-suave);
  line-height: 1.62;
  margin: 0;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
}

/* --- eje de años --- */
.tl2-eje {
  position: relative;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

.tl2-linea {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 9px;
  height: 2px;
  background: var(--crema-borde);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.tl2-linea > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--dorado), var(--dorado2));
}

.tl2-anios {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
}

/* Sin texto de anio, el boton medía 15px de alto. El punto se ve chico
   pero el area de toque es de 44px, el minimo tactil. */
.tl2-anio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex: 1 0 auto;
}

.tl2-punto {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--crema);
  border: 2px solid var(--crema-borde);
  transition: var(--transition-smooth);
}

.tl2-anio-btn.es-hecho .tl2-punto {
  border-color: var(--dorado);
  background: var(--dorado-translucent);
}

.tl2-anio-btn.es-activo .tl2-punto {
  border-color: var(--dorado);
  background: var(--dorado);
  transform: scale(1.2);
  box-shadow: 0 0 0 5px var(--dorado-subtle);
}




/* Instruccion de uso: va en el encabezado y queda siempre visible.
   Antes era una pista al pie que se desvanecia al arrancar, y quedaba
   gente sin entender que la seccion se maneja con el scroll. */
.tl2-instruccion {
  /* El texto va adentro de un <span>: con inline-flex, cada fragmento suelto
     se vuelve un item flex y se le aplica el gap, quedando huecos alrededor
     de cada <b> y antes del punto final. Asi son solo dos items: icono y texto. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.6rem auto 0;
  padding: 0.45rem 1rem;
  max-width: 640px;
  border-radius: var(--radius-pill);
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid rgba(201, 162, 75, 0.3);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--carbon-suave);
}

.tl2-instruccion b {
  color: var(--carbon);
  font-weight: 700;
}

.tl2-instruccion svg {
  width: 15px;
  height: 15px;
  color: var(--dorado);
  flex-shrink: 0;
}

/* --- flechas: van encima de la escena para no sumar alto --- */
.tl2-escena-cont {
  position: relative;
}

.tl2-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 248, 242, 0.94);
  border: 1px solid var(--crema-borde);
  color: var(--carbon);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(46, 48, 48, 0.18);
  transition: var(--transition-smooth);
}

.tl2-flecha--atras {
  left: calc(20px + 0.6rem);
}

.tl2-flecha--adelante {
  right: calc(20px + 0.6rem);
}

.tl2-flecha:hover:not(:disabled) {
  background: var(--dorado);
  border-color: var(--dorado);
  color: var(--noche);
}

.tl2-flecha:disabled {
  opacity: 0;
  pointer-events: none;
}

.tl2-flecha svg {
  width: 22px;
  height: 22px;
}


@media (max-width: 860px) {
  .tl2 {
    --paso: 58vh;
  }

  .tl2-instruccion {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  /* 44px es el minimo tactil: no bajar de ahi. */
  .tl2-flecha {
    width: 44px;
    height: 44px;
    /* En mobile la etapa es media arriba y texto abajo: centradas quedarian
       tapando el texto, asi que suben sobre la imagen. */
    top: 25%;
  }

  .tl2-flecha--atras {
    left: 24px;
  }

  .tl2-flecha--adelante {
    right: 24px;
  }

  /* En vertical la tarjeta no lleva la proporcion 2.727, que existe para
     que la MITAD de imagen quede 3:2 en el layout horizontal. Acá la
     imagen es una fila propia y ya tiene su 3/2, asi que la tarjeta
     simplemente llena el alto disponible. */
  .tl2-escena {
    aspect-ratio: auto;
  }

  /* Vertical: la diapositiva arriba y el texto abajo.
     aspect-ratio 3/2 en la mitad de imagen = la proporcion exacta de las
     placas, asi que con object-fit contain la llena sin bandas y el resto
     del alto queda entero para el texto. */
  .tl2-etapa {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tl2-media {
    aspect-ratio: 3 / 2;
  }

  .tl2-fijo {
    padding: 3.5rem 0;
    gap: 1rem;
  }

  .tl2-titulo {
    font-size: 1.35rem;
  }

  .tl2-instruccion {
    margin-top: 0.45rem;
  }

  /* Mas alto para el texto de la etapa y menos para la imagen: es donde
     aprieta cuando la escena se achica. */


  .tl2-punto {
    width: 15px;
    height: 15px;
  }
}

/* Telefonos bajos (iPhone SE y companiia): con 667px de alto el texto de la
   etapa quedaba 1px recortado. Se recupera achicando encabezado y tipografia,
   no la imagen, que a 157px ya esta al limite de aportar algo. */
/* Sin pin, el alto de pantalla ya no aprieta: este bloque queda solo por
   comodidad de lectura en telefonos chicos. */
@media (max-width: 640px) {
  .tl2-etapa-titulo {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
  }

  .tl2-etapa-texto {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .tl2-texto {
    padding: 1rem 1.1rem;
  }
}

/* Sin GSAP o con movimiento reducido: se apila en vertical y se lee
   de corrido, sin animación. */
.tl2.es-estatico .tl2-fijo {
  height: auto;
  overflow: visible;
  padding: 2.5rem 0;
}

.tl2.es-estatico .tl2-escena {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.tl2.es-estatico .tl2-etapa {
  position: relative;
  inset: auto;
  transform: none !important;
  min-height: 320px;
  border: 1px solid var(--crema-borde);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Sin pin, el eje de anios y las flechas no tienen a donde llevar. */
.tl2.es-estatico .tl2-etapa-tapa,
.tl2.es-estatico .tl2-instruccion,
.tl2.es-estatico .tl2-flecha,
.tl2.es-estatico .tl2-eje {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .tl2-fijo {
    position: static;
    height: auto;
    overflow: visible;
  }

  .tl2-escena {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }

  .tl2-etapa {
    position: relative;
    inset: auto;
    transform: none !important;
    min-height: 320px;
    border: 1px solid var(--crema-borde);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .tl2-etapa-tapa {
    display: none;
  }

  .tl2-eje,
  .tl2-instruccion,
  .tl2-flecha {
    display: none;
  }
}

/* ==========================================================================
   ESCALA DE MOBILE
   En 375px la pagina medía 16316px: 20 pantallas. Estos bloques recuperan
   las grillas que colapsaban a una sola columna y compactan las tarjetas.
   VAN AL FINAL: varias reglas base sin media query (.stat-number en 2218,
   .pains-closing-banner en 2240) ya dejaban muertos los bloques mobile de
   mas arriba, asi que estas solo ganan por orden de aparicion.
   ========================================================================== */
@media (max-width: 768px) {
  /* 4 tarjetas apiladas median 1204px. En 2x2 entran en 2 filas. */
  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .ecosystem-card {
    padding: 1.15rem 0.95rem;
  }

  .ecosystem-top {
    margin-bottom: 0.75rem;
  }

  .ecosystem-badge {
    font-size: 0.62rem;
  }

  .ecosystem-title {
    font-size: 1.05rem;
  }

  .ecosystem-card .pain-desc {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .ecosystem-link {
    font-size: 0.68rem;
    letter-spacing: 0;
    min-height: 44px;
    align-items: center;
  }

  /* Sin el flex-shrink el icono se aplasta de 16px a 5px en la tarjeta de
     texto mas largo y queda como un glifo roto. */
  .ecosystem-link svg,
  .ecosystem-link i {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
  }

  /* Red de seguridad a 320px: "acompanamiento" no entra y .brand-card tiene
     overflow:hidden, asi que se recortaria en silencio. */
  .ecosystem-link span {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 576px) {
  /* --- que hago: tarjetas de dolor y de valor ---
     Todo scopeado a #que-hago: metodo, ecosistema, casos y contacto tambien
     usan .pain-desc y no hay que tocarlos. */
  #que-hago .pains-list,
  #que-hago .value-list {
    gap: 0.75rem;
  }

  #que-hago .pain-card,
  #que-hago .value-card {
    padding: 1.05rem 1.1rem;
    gap: 0.8rem;
  }

  #que-hago .pain-icon-box,
  #que-hago .value-card-icon {
    width: 40px;
    height: 40px;
  }

  #que-hago .pain-title,
  #que-hago .value-card-title {
    line-height: 1.28;
    margin-bottom: 0.3rem;
  }

  #que-hago .pain-title {
    font-size: 1.05rem;
  }

  /* Un escalon arriba de los titulos de dolor, igual que en desktop: son el
     argumento de venta. Cuesta 6px y vale la pena. */
  #que-hago .value-card-title {
    font-size: 1.15rem;
  }

  #que-hago .pain-desc {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* --- que hago: banner de cierre ---
     El prefijo #que-hago es load-bearing: las reglas de nivel raiz de la
     linea 2240 ganan hoy incluso en mobile. Si alguien "limpia" el id, este
     bloque deja de aplicar en silencio. */
  #que-hago .pains-closing-banner {
    padding: 1.5rem 1.15rem;
  }

  #que-hago .pains-closing-text {
    font-size: 1.12rem;
    line-height: 1.32;
    margin-bottom: 0.9rem;
  }

  #que-hago .pains-closing-sub {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
  }

  /* --- stats en 2x2 en vez de 4 apilados --- */
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0.75rem;
  }

  .stat-item {
    padding: 0.5rem 0.25rem;
  }

  /* El clamp es obligatorio: "Fundador" es una palabra sola que no wrappea y
     a 1.9rem fijo se sale 12px de la celda por debajo de 340px. Como body
     tiene overflow-x:hidden, eso no se ve como scroll sino como texto
     pisando el gap. */
  .stat-number {
    font-size: clamp(1.45rem, 8.1vw, 1.9rem);
  }
}

/* ==========================================================================
   CARRILES DE CASOS (mobile)
   Los testimonios en video y los escritos dejan de apilarse.
   ========================================================================== */
@media (max-width: 768px) {
  .cases-videos {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.9rem;
    padding-bottom: 0.6rem;
  }

  .cases-videos::-webkit-scrollbar,
  .cases-grid::-webkit-scrollbar {
    display: none;
  }

  /* 84% DEL RIEL, no 86vw: con vw el calculo ignora el padding lateral del
     container y el asomo da -1.9px, o sea cero senial de que hay un segundo
     video. Con 84% asoman 39px. */
  .cases-videos .case-video-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }

  /* El segundo video arranca clipeado por el riel, asi que el
     IntersectionObserver de .reveal nunca dispara y lo dejaria en opacity 0
     para siempre. */
  html.js .cases-videos > .reveal {
    opacity: 1;
    transform: none;
  }

  .cases-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.9rem;
    padding-bottom: 0.6rem;
    margin-bottom: 0;
  }

  /* 78vw y no 82vw: 82 deja un asomo de 12.9px que no invita a nada, y 78 no
     cuesta ni un px de alto porque la cita rompe en 5 lineas igual. Ademas es
     el ancho que ya usa .team-grid en la home. */
  .case-card {
    min-width: 78vw;
    max-width: 78vw;
    flex: 0 0 auto;
    height: auto;
    scroll-snap-align: center;
  }

  /* overflow-x:auto hace que overflow-y compute a auto: el :hover pegajoso
     del touch levanta la tarjeta 4px y el riel le come el borde y el glow. */
  .cases-grid .brand-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   GUIA DE CARRIL — version oscura de esta pagina
   VA A PRIMER NIVEL, no adentro de un @media: la visibilidad la decide
   js/carrusel.js con la clase .es-visible, y solo la pone cuando el carril
   realmente scrollea. Si el `display: none` base queda dentro del media
   query, en desktop la regla no existe y la guia aparece igual.
   ========================================================================== */
/* --- guia del carril, version oscura --- */
.carril-guia {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
}

.carril-guia.es-visible {
  display: flex;
}

.carril-guia-txt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--niebla);
}

.carril-guia-txt svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--dorado);
}

.carril-guia-btns {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.carril-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid rgba(201, 162, 75, 0.35);
  color: var(--dorado);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carril-btn svg {
  width: 20px;
  height: 20px;
}

.carril-btn:hover:not(:disabled) {
  background: var(--dorado);
  color: var(--noche);
}

.carril-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ==========================================================================
   AMPLIAR LA DIAPOSITIVA
   ========================================================================== */
.tl2-media {
  cursor: zoom-in;
}

/* El boton va sobre el video tambien, donde el click del medio es de sus
   propios controles y no puede ampliar. */
.tl2-expandir {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 15, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--marfil);
  cursor: zoom-in;
  opacity: 0;
  transition: var(--transition-fast);
}

.tl2-expandir svg {
  width: 17px;
  height: 17px;
}

.tl2-etapa:hover .tl2-expandir,
.tl2-expandir:focus-visible {
  opacity: 1;
}

.tl2-expandir:hover {
  background: var(--dorado);
  border-color: var(--dorado);
  color: var(--noche);
}

/* En touch no hay hover: siempre visible. */
@media (hover: none) {
  .tl2-expandir {
    opacity: 1;
    width: 44px;
    height: 44px;
  }
}

.tl2-lupa {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.5rem 1rem 1.5rem;
  background: rgba(6, 15, 32, 0.94);
  backdrop-filter: blur(6px);
}

.tl2-lupa.es-visible {
  display: flex;
}

.tl2-lupa-caja {
  margin: 0;
  max-width: min(100%, 1600px);
  /* Respeta el 3:2 de las placas y entra siempre entera. */
  max-height: calc(100% - 3rem);
  aspect-ratio: 3 / 2;
  width: min(100%, calc((100vh - 8rem) * 3 / 2));
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.tl2-lupa-caja img,
.tl2-lupa-caja video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--noche);
}

.tl2-lupa-pie {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--niebla);
  text-align: center;
  max-width: 40rem;
}

.tl2-lupa-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--marfil);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tl2-lupa-cerrar:hover {
  background: var(--dorado);
  border-color: var(--dorado);
  color: var(--noche);
}
