/* ============ Milenario Digital — nueva identidad ============ */
:root {
  --bg-deep: #1a070d;        /* vino casi negro */
  --bg-wine: #3a111c;        /* vino */
  --bg-wine-2: #5b1d2b;      /* vino claro (paneles) */
  --navy: #141a33;           /* toque azul noche */
  --peach: #f4a67c;          /* naranja durazno (CTA) */
  --copper: #e3a07f;         /* cobre (paleta logo) */
  --cream: #fbe0d0;          /* crema (logo) */
  --white: #fff7f2;
  --cyan: #7fe0ee;           /* acento tecnológico */
  --text: #f3e6e0;
  --text-soft: #cdb5ad;
  --glass: rgba(255, 220, 200, 0.06);
  --glass-border: rgba(251, 224, 208, 0.35);
  /* Forma Milenario: sup-izq redondeada, sup-der en punta, inf-der redondeada, inf-izq en punta
     (orden CSS: sup-izq, sup-der, inf-der, inf-izq) */
  --shape-lg: 36px 0 36px 0;   /* videos */
  --radius-asym: 30px 0 30px 0; /* tarjetas y recuadros */
  --shape-sm: 20px 0 20px 0;   /* botones y píldoras */
  --shape-sm-inner: 17px 0 17px 0; /* cara interna del botón (aro de 3px) */
  --maxw: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(244,166,124,.18), transparent 60%),
    radial-gradient(900px 700px at 100% 40%, rgba(20,26,51,.55), transparent 70%),
    radial-gradient(900px 700px at 0% 75%, rgba(91,29,43,.55), transparent 70%),
    linear-gradient(180deg, var(--bg-wine) 0%, var(--bg-deep) 35%, #22091a 70%, var(--bg-deep) 100%);
  background-color: var(--bg-deep);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
strong { color: var(--white); font-weight: 600; }
.accent { color: var(--peach); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  background: #050103; cursor: crosshair;
}
.hero canvas, .hero .eb-fallback { z-index: 0; }
.hero canvas:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; }
/* Velo vino que funde el espacio con el resto de la página */
.hero__tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(91,29,43,.45), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg-wine) 100%);
}
.hero__content {
  position: relative; z-index: 2; max-width: 640px;
  padding: clamp(40px, 9vh, 96px) 16px 120px clamp(16px, 6vw, 96px);
  pointer-events: none;
}
.hero__content .cta { pointer-events: auto; }
.logo { width: 190px; margin: 0 auto; }
.hero .logo { margin: 0; width: 170px; }
.logo--small { width: 140px; }
.tagline { margin-top: 10px; font-size: .95rem; letter-spacing: .04em; color: var(--cream); }
.hero__title {
  margin: 40px 0 18px;
  font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.15; font-weight: 700; color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.hero__lead { margin: 0 0 12px; color: var(--text-soft); font-size: 1.05rem; text-shadow: 0 2px 20px rgba(0,0,0,.7); }

/* Escritorio: textos a la izquierda, botón pegado a la derecha.
   El alto total del hero se mantiene igual que cuando el botón iba debajo del texto,
   porque la forma del planeta (Earth Blaze) depende de la proporción del hero:
   texto (mismo ancho que antes) + 185px de padding inferior = alto anterior. */
@media (min-width: 961px) {
  .hero__content {
    max-width: none; display: grid; align-items: end; column-gap: 48px;
    grid-template-columns: minmax(0, calc(640px - clamp(16px, 6vw, 96px) - 16px)) 1fr;
    padding: clamp(40px, 9vh, 96px) clamp(16px, 6vw, 96px) 185px;
  }
  .hero__content .cta { margin: 0 0 6px; justify-self: end; }
  .hero .logo { width: 150px; }
  .hero__title { margin-bottom: 34px; }
}

.intro-video { padding: 24px 0 8px; text-align: center; }

.pillars-strip {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 48px;
  margin-top: 36px; font-size: .78rem; letter-spacing: .35em; text-transform: uppercase; color: var(--cyan);
  text-shadow: 0 0 12px rgba(127,224,238,.45);
}

/* ---------- Video slots ---------- */
.video-slot {
  position: relative; margin: 0 auto; overflow: hidden;
  border-radius: var(--shape-lg);
  background: linear-gradient(135deg, rgba(91,29,43,.55), rgba(20,26,51,.6));
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(127,224,238,.15), 0 0 60px rgba(244,166,124,.18), 0 30px 60px rgba(0,0,0,.45);
}
.video-slot--wide { max-width: 980px; aspect-ratio: 16 / 9; }
.video-slot--tall { width: 100%; max-width: 340px; aspect-ratio: 9 / 16; }
.video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg-deep); }
/* Video de Vimeo + portada propia (oculta miniatura y pantalla final de Vimeo) */
.video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-cover {
  position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--bg-deep);
  transition: opacity .35s ease;
}
.video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-cover .video-slot__icon { position: relative; color: var(--cream); transition: transform .25s ease, box-shadow .25s ease; }
.video-cover:hover .video-slot__icon { transform: scale(1.08); box-shadow: 0 0 44px rgba(244,166,124,.6); }
.video-cover:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; }
.video-cover.is-hidden { opacity: 0; pointer-events: none; }
.video-cover__note {
  position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center;
  font-size: .78rem; color: var(--cream); text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.video-slot__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--cream); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
}
.video-slot__icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
  border: 1px solid var(--glass-border); background: rgba(244,166,124,.15);
  box-shadow: 0 0 30px rgba(244,166,124,.35); padding-left: 5px;
}

/* ---------- Manifiesto ---------- */
.manifesto { text-align: center; padding: 56px 16px 24px; display: grid; gap: 14px; }
.manifesto p { color: var(--text-soft); font-size: 1rem; font-weight: 300; }

/* ---------- Secciones ---------- */
.section { padding: 64px 16px; }
.section__title {
  text-align: center; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; color: var(--peach); line-height: 1.25;
}
.section__sub { text-align: center; max-width: 720px; margin: 14px auto 0; color: var(--text-soft); }

.divider {
  height: 1px; max-width: 720px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
/* Tarjeta cobre con haz de luz, marco de líneas y punto viajero.
   El marco está a --fx del borde lateral y --fy del superior/inferior; la tarjeta mantiene
   proporción 5:4, así los porcentajes del recorrido del punto coinciden con las líneas. */
.stat {
  --fx: 10%; --fy: 12%;
  --line: rgba(255, 232, 218, .22);
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 5 / 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 calc(var(--fx) + 8px);
  border-radius: var(--radius-asym);
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(26,7,13,.55), transparent 60%),
    linear-gradient(150deg, #c98462 0%, #9a5340 38%, #5e2a24 72%, #3a1418 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,230,215,.35),
    inset 0 0 0 1px rgba(255,220,200,.12),
    0 0 0 1px rgba(0,0,0,.35),
    0 24px 50px rgba(0,0,0,.45),
    0 0 40px rgba(244,166,124,.18);
}
/* Haz de luz diagonal desde la esquina superior izquierda */
.stat::before {
  content: ""; position: absolute; z-index: -1;
  width: 70%; height: 170%; left: 2%; top: -60%;
  background: linear-gradient(90deg, transparent, rgba(255,240,230,.30) 45%, rgba(255,240,230,.12) 60%, transparent);
  transform: rotate(-35deg); filter: blur(18px);
}
/* Resplandor detrás del número */
.stat::after {
  content: ""; position: absolute; z-index: -1; width: 55%; height: 45%; left: 22%; top: 30%;
  background: radial-gradient(closest-side, rgba(255,226,208,.22), transparent); filter: blur(10px);
}
.stat__frame { position: absolute; inset: 0; pointer-events: none; }
.stat__frame i { position: absolute; background: var(--line); }
.stat__frame .h { left: 0; right: 0; height: 1px; }
.stat__frame .v { top: 0; bottom: 0; width: 1px; }
.stat__frame .t { top: var(--fy); }
.stat__frame .b { bottom: var(--fy); }
.stat__frame .l { left: var(--fx); }
.stat__frame .r { right: var(--fx); }

/* Punto blanco que recorre el rectángulo formado por las líneas.
   Rectángulo: 80% × 76% de una tarjeta 5:4 → lados 4 : 3.04 → tramos 28.4% / 21.6% del perímetro */
.stat__dot {
  position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255,255,255,.75), 0 0 16px 4px rgba(255,214,190,.55);
  animation: stat-dot 9s linear infinite;
}
.stat:nth-child(2) .stat__dot { animation-delay: -3s; }
.stat:nth-child(3) .stat__dot { animation-delay: -6s; }
@keyframes stat-dot {
  0%     { left: 10%; top: 12%; }
  28.4%  { left: 90%; top: 12%; }
  50%    { left: 90%; top: 88%; }
  78.4%  { left: 10%; top: 88%; }
  100%   { left: 10%; top: 12%; }
}
@media (prefers-reduced-motion: reduce) {
  .stat__dot { animation: none; left: 90%; top: 70%; }
}

.stat__num {
  font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
  background: linear-gradient(120deg, #fff 0%, #ffe9dc 40%, rgba(255,214,190,.55) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(26,7,13,.35));
}
.stat__label { margin-top: 12px; font-size: .9rem; font-weight: 500; color: var(--white); text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* ---------- Propuesta ---------- */
.big-question {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 500; line-height: 1.3; color: var(--white); margin-bottom: 28px;
}
.narrow p { color: var(--text-soft); margin-bottom: 18px; }

/* ---------- Botón metálico WhatsApp (assets/js/metallic-button.js) ---------- */
.cta {
  display: inline-block; margin-top: 18px; padding: 15px 34px;
  border-radius: var(--shape-sm); text-decoration: none; font-weight: 600; color: var(--cream);
  background: linear-gradient(180deg, #4a1826, #1f0a12);
  border: 2px solid var(--copper);
}
.mbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 34px; border: 0; background: none; isolation: isolate;
  border-radius: var(--shape-sm); -webkit-tap-highlight-color: transparent; overflow: hidden;
  transition: transform .8s cubic-bezier(.34,1.56,.64,1);
}
/* Aro metálico: el canvas del shader vive aquí */
.mbtn__rim {
  position: absolute; inset: 0; z-index: 0; border-radius: var(--shape-sm); overflow: hidden;
  background: linear-gradient(135deg, #ffd9c2, var(--peach) 35%, #8a3b2c 60%, #f6b48c 85%); /* respaldo sin WebGL2 */
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 20px 12px rgba(0,0,0,.08), 0 9px 9px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.15), 0 0 26px rgba(244,166,124,.35);
  transition: box-shadow .15s cubic-bezier(.4,0,.2,1);
}
/* Respaldo sin WebGL2: brillo cobre que recorre el aro */
.mbtn--static .mbtn__rim {
  background: linear-gradient(110deg, #8a3b2c 0%, var(--peach) 30%, #fff1e6 45%, var(--peach) 60%, #8a3b2c 100%);
  background-size: 250% 100%;
  animation: mbtn-shine 3.2s linear infinite;
}
@keyframes mbtn-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .mbtn--static .mbtn__rim { animation: none; } }
.mbtn__rim canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: var(--shape-sm); }
/* Cara interior vino */
.mbtn__face {
  position: absolute; inset: 3px; z-index: 1; border-radius: var(--shape-sm-inner);
  background: linear-gradient(180deg, #4e1a28 0%, #24090f 100%);
  box-shadow: inset 0 1px 0 rgba(255,220,200,.12);
  transition: box-shadow .15s cubic-bezier(.4,0,.2,1);
}
.mbtn__label {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  font-size: .98rem; font-weight: 600; color: var(--cream); white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.mbtn__icon { width: 22px; height: 22px; flex: none; color: var(--peach); filter: drop-shadow(0 0 6px rgba(244,166,124,.5)); }
.mbtn:hover .mbtn__rim {
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 12px 6px rgba(0,0,0,.05), 0 8px 5px rgba(0,0,0,.1), 0 4px 4px rgba(0,0,0,.15), 0 0 40px rgba(244,166,124,.6);
}
.mbtn.is-pressed { transform: translateY(1px) scale(.98); transition-duration: .15s; }
.mbtn.is-pressed .mbtn__rim { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.3); }
.mbtn.is-pressed .mbtn__face { box-shadow: inset 0 2px 4px rgba(0,0,0,.45), inset 0 1px 2px rgba(0,0,0,.3); }
.mbtn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.mbtn__ripple {
  position: absolute; z-index: 3; width: 20px; height: 20px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,224,206,.45) 0%, rgba(255,224,206,0) 70%);
  animation: mbtn-ripple .6s ease-out forwards;
}
@keyframes mbtn-ripple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: .6; }
  100% { transform: translate(-50%, -50%) scale(12); opacity: 0; }
}
@media (max-width: 420px) {
  .mbtn { padding: 0 20px; min-height: 52px; }
  .mbtn__label { font-size: .86rem; white-space: normal; text-align: left; }
}
.cta-note, .narrow .cta-note { margin-top: 10px; font-size: .75rem; color: var(--copper); }

/* ---------- Audiencia ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.aud-card {
  padding: 34px 20px 28px; border-radius: var(--radius-asym);
  background: linear-gradient(180deg, rgba(91,29,43,.5), rgba(26,7,13,.6));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 30px rgba(244,166,124,.06);
  transition: transform .25s ease, border-color .25s ease;
}
.aud-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.aud-card__icon {
  display: block; width: 64px; height: 64px; margin: 0 auto 22px; fill: none; stroke: var(--peach); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(244,166,124,.4));
}
.aud-card__tag {
  margin: 0 -20px 18px; padding: 7px 10px; text-align: center; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: linear-gradient(90deg, #c9704a, var(--peach), #c9704a);
}
.aud-card p { font-size: .88rem; color: var(--text-soft); }

/* ---------- Método ---------- */
.highlight-box {
  max-width: 640px; margin: 0 auto 56px; padding: 30px 32px; text-align: center;
  font-size: 1.1rem; font-weight: 600; color: var(--white);
  border-radius: var(--radius-asym); border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(91,29,43,.55), rgba(20,26,51,.45));
  box-shadow: 0 0 40px rgba(244,166,124,.15);
}
.method { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; margin-bottom: 40px; }
.method__intro { font-weight: 600; color: var(--white); margin-bottom: 18px; font-size: 1.05rem; }
.pill {
  margin-bottom: 14px; border: 1px solid var(--glass-border); border-radius: var(--shape-sm);
  background: var(--glass); overflow: hidden; transition: border-color .2s ease;
}
.pill[open] { border-color: var(--peach); }
.pill summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; font-weight: 600; color: var(--peach);
}
.pill summary::-webkit-details-marker { display: none; }
.pill__mark { width: 10px; height: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg); transition: transform .2s ease; }
.pill[open] .pill__mark { transform: rotate(-135deg); }
.pill p { padding: 0 20px 16px; font-size: .92rem; color: var(--text-soft); }
.method__note { margin-top: 18px; font-size: .88rem; color: var(--text-soft); }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 44px; }
.testi {
  grid-column: span 2; padding: 26px 24px; border-radius: var(--radius-asym);
  background: rgba(255, 247, 242, .96); color: #3a111c;
  box-shadow: 0 0 0 1px rgba(251,224,208,.4), 0 20px 40px rgba(0,0,0,.35);
}
.testi:nth-child(4) { grid-column: 2 / span 2; }
.testi:nth-child(5) { grid-column: 4 / span 2; }
.testi h3 { font-size: .98rem; font-weight: 700; }
.testi__role { font-size: .78rem; font-weight: 500; color: #7a3a46; margin: 2px 0 12px; }
.testi blockquote { font-size: .84rem; font-style: italic; color: #5b3a40; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 0 16px 40px; }
.footer .logo { margin-top: 40px; }
.footer__text { margin-top: 14px; font-size: .85rem; color: var(--text-soft); }
.footer__legal { margin-top: 10px; font-size: .75rem; color: var(--copper); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .audience { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .testi, .testi:nth-child(4), .testi:nth-child(5) { grid-column: auto; }
  .method { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .logo { width: 140px; }
  .hero .logo { width: 130px; }               /* 10px más pequeño que antes en mobile */
  .hero__title { margin-top: 28px; }
  .hero__content .cta { margin-top: 38px; }   /* +20px entre el texto del hero y el botón */
  /* "Esto es para ti": tarjetas más delgadas y centradas */
  .audience { max-width: 300px; margin-left: auto; margin-right: auto; }
  .video-slot { border-radius: 26px 0 26px 0; }
  .pillars-strip { flex-direction: column; letter-spacing: .25em; }
  .stats, .audience, .testimonials { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .section { padding: 48px 16px; }
  .highlight-box { padding: 24px 20px; font-size: 1rem; }
}
