/* Web de Ama (amaideas.com) · base, barra, botones, videos, portada y cinta.
   Marca: «ama» en Gloock + sol naranja con degradé; texto en Onest. Las secciones viven en ama-secciones.css. */
:root {
  --sol: #FF5A1F;
  --sol-hover: #FF6E30;
  --durazno: #FFC170;
  --coral: #F38A8E;
  --crema: #FBF5EC;
  --crema-2: #F3E9DA;
  --papel: #FFFDF8;
  --cafe: #1E1714;
  --cafe-2: #2B211D;
  --cafe-suave: #5B4C45;
  --arena: #CDBBA9;
  --linea: #E9DCCB;
  --verde: #1F7A45;
  --grad-sol: linear-gradient(135deg, #FF4C14, #FF6E30 55%, #F38A8E);
  --grad-txt: linear-gradient(100deg, #FF5A1F 0%, #FF8A3D 30%, #FFC170 60%, #F38A8E 85%, #FF5A1F 100%);
  --serif: "Gloock", Georgia, serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { font: 400 17px/1.55 var(--sans); color: var(--cafe); background: var(--cafe); -webkit-font-smoothing: antialiased; }
/* La cinta girada y los soles se salen de los bordes: se recortan sin crear barra horizontal (sticky sigue funcionando). */
main, .pie { overflow-x: hidden; }
@supports (overflow-x: clip) { main, .pie { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Precio de lanzamiento: lo que ama.js oculta desde el 1-12 (data-promo) o hasta tener la cuenta (data-promo-cuenta) */
[data-promo][hidden], [data-promo-cuenta][hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--crema); color: var(--cafe); padding: 12px 16px; border-radius: 12px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -.02em; }
h2 { font-size: clamp(40px, 6vw, 84px); line-height: .98; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cafe-suave); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--grad-sol); }
.eyebrow-claro { color: var(--arena); }
.sol-txt { background: var(--grad-txt); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillo 8s linear infinite; }
@keyframes brillo { to { background-position: -200% 0; } }

/* Botones */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1.1 var(--sans); text-decoration: none; padding: 15px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn-sol { background: var(--sol); color: var(--cafe); box-shadow: 0 10px 30px -12px rgba(255, 90, 31, .8); }
.btn-sol:hover { background: var(--sol-hover); box-shadow: 0 14px 36px -10px rgba(255, 90, 31, .9); }
.btn-glass { background: rgba(251, 245, 236, .08); color: var(--crema); box-shadow: inset 0 0 0 1.5px rgba(251, 245, 236, .28); }
.btn-glass:hover { background: rgba(251, 245, 236, .16); }
.btn-cafe { background: var(--cafe); color: var(--crema); }
.btn-cafe:hover { background: #3A2C26; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.ico { width: 20px; height: 20px; flex: none; }

/* Barra superior: píldora flotante (estilo peso-latam) */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav-in { pointer-events: auto; display: flex; align-items: center; gap: 22px; width: min(1080px, 100%); margin: 0 auto; padding: 8px 8px 8px 22px; border-radius: 999px; background: rgba(30, 23, 20, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(251, 245, 236, .1); transition: background-color .3s, box-shadow .3s; }
.nav.is-scrolled .nav-in { background: rgba(30, 23, 20, .94); box-shadow: inset 0 0 0 1px rgba(251, 245, 236, .1), 0 18px 40px -20px rgba(0, 0, 0, .6); }
.nav-logo { margin-right: auto; border-radius: 8px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--arena); text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--crema); background: rgba(251, 245, 236, .08); }
/* WhatsApp de ventas: contacto secundario, solo el ícono (el botón principal es el creador) */
.nav-wa { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--crema); background: rgba(251, 245, 236, .08); box-shadow: inset 0 0 0 1px rgba(251, 245, 236, .16); transition: background-color .2s; }
.nav-wa:hover { background: rgba(251, 245, 236, .16); }
.nav-wa svg { width: 20px; height: 20px; }

/* Chips de filtro y pestañas */
.chips, .tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .tabs button { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--linea); background: transparent; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chips button img { width: 20px; height: 20px; margin-left: -4px; }
.chips .ic-d, .chips [aria-pressed="true"] .ic-l { display: none; }
.chips [aria-pressed="true"] .ic-d { display: block; }
.chips button:hover, .tabs button:hover { border-color: var(--cafe-suave); }
.chips button[aria-pressed="true"], .tabs button[aria-pressed="true"] { background: var(--cafe); color: var(--crema); border-color: var(--cafe); }

/* Video con poster: la imagen se ve siempre; el video aparece encima cuando ya reproduce (ama-video.js) */
.vid { position: relative; overflow: hidden; background: var(--cafe-2); }
.vid > img, .vid > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid > video { opacity: 0; transition: opacity .6s; }
.vid.is-playing > video { opacity: 1; }
.vid-btn { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(30, 23, 20, .62); color: var(--crema); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s; }
.vid-btn:hover { background: rgba(30, 23, 20, .85); }
.vid-btn svg { width: 16px; height: 16px; }
.vid-btn .i-play, .vid.is-paused .vid-btn .i-pausa { display: none; }
.vid.is-paused .vid-btn .i-play { display: block; }

/* Portada */
.hero { position: relative; background: var(--cafe); color: var(--crema); padding: 118px 0 0; text-align: center; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1; background: radial-gradient(50% 45% at 50% 30%, rgba(255, 110, 48, .22), rgba(255, 110, 48, 0) 70%), radial-gradient(30% 30% at 80% 10%, rgba(243, 138, 142, .14), transparent 70%); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); }
.badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--arena); padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(251, 245, 236, .06); box-shadow: inset 0 0 0 1px rgba(251, 245, 236, .12); }
.badge-sol { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-sol); box-shadow: 0 0 0 0 rgba(255, 90, 31, .6); animation: latido 2.4s ease-out infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }
.hero-t { margin-top: 22px; font-size: clamp(42px, 7vw, 104px); line-height: .96; letter-spacing: -.03em; }
.ln { display: block; overflow: hidden; padding: 0 .04em .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; text-wrap: balance; }
.br-m { display: none; } /* corte fijo en celular: mismas líneas con o sin la fuente cargada (sin salto de diseño) */
.hero-t .ln > span { animation: subir 1.1s var(--ease) both; }
.hero-t .ln:nth-child(2) > span { animation-delay: .1s; }
.hero-t .ln:nth-child(3) > span { animation: subir 1.1s var(--ease) .2s both, brillo 8s linear 1.4s infinite; }
@keyframes subir { from { transform: translateY(105%) rotate(2deg); } }
.hero .lead { margin-top: 22px; color: var(--arena); max-width: 40em; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--arena); text-wrap: balance; }
.hero-note b { color: var(--durazno); font-weight: 600; }
/* «¿Dudas? Escríbenos»: el WhatsApp de ventas como contacto secundario (44 px de alto para el dedo) */
.dudas { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.dudas svg { flex: none; width: 18px; height: 18px; }
.hero-note .dudas { display: flex; width: fit-content; margin: 6px auto 0; color: var(--crema); font-size: 15px; }
.hero-in { animation: aparecer .9s var(--ease) both; }
.hero-copy > .hero-in:nth-of-type(2) { animation-delay: .35s; }
.hero-copy > .cta.hero-in { animation-delay: .45s; }
.hero-copy > .hero-note { animation-delay: .55s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(22px); } }

.hero-stage { position: relative; width: min(1120px, 100%); height: clamp(430px, 50vw, 640px); margin: 40px auto 0; }
.hero-sun { position: absolute; left: 50%; top: 14%; width: clamp(340px, 48vw, 680px); aspect-ratio: 1; margin-left: calc(clamp(340px, 48vw, 680px) / -2); border-radius: 50%; background:
  radial-gradient(circle at 70% 28%, rgba(255, 225, 166, .92), rgba(255, 184, 122, .45) 30%, rgba(255, 184, 122, 0) 60%),
  radial-gradient(circle at 78% 86%, rgba(247, 160, 166, .75), rgba(247, 160, 166, 0) 50%), var(--grad-sol);
  box-shadow: 0 0 140px 20px rgba(255, 90, 31, .35); animation: girar 40s linear infinite; }
@keyframes girar { to { rotate: 360deg; } }
.hero-vid-wrap { position: absolute; left: 50%; top: 0; width: clamp(250px, 30vw, 420px); margin-left: calc(clamp(250px, 30vw, 420px) / -2); will-change: transform; }
.hero-vid { aspect-ratio: 540 / 676; border-radius: 32px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(251, 245, 236, .14); animation: emerger 1.4s var(--ease) .3s both; }
@keyframes emerger { from { opacity: 0; transform: translateY(140px) scale(.92); } }
.chip-pos { position: absolute; z-index: 3; will-change: transform; pointer-events: none; }
.chip-pos-wa { left: calc(50% - 520px); top: 12%; }
.chip-pos-ok { right: calc(50% - 500px); top: 30%; }
.chip-pos-qr { left: calc(50% - 400px); top: 58%; }
.chip { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--papel); color: var(--cafe); padding: 12px 16px 12px 12px; border-radius: 20px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); font-size: 14px; line-height: 1.3; animation: pop .8s cubic-bezier(.34, 1.56, .64, 1) both; }
.chip small { display: block; font-size: 12px; color: var(--cafe-suave); }
.chip b { font-weight: 600; }
.chip-wa { max-width: 290px; animation-delay: 1.1s; }
.chip-ok { animation-delay: 1.35s; min-width: 260px; }
.chip-qr { animation-delay: 1.6s; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(20px); } }
.espera .chip { animation-play-state: paused; } /* ama.js la quita cuando el video entra en pantalla */
.chip-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.chip-ico svg { width: 20px; height: 20px; }
.chip-ico-wa { background: #25D366; color: #fff; }
.chip-ico-ok { background: #E3F5E9; color: var(--verde); }
.chip-ciclo { transition: opacity .35s, filter .35s, transform .35s; }
.chip-ciclo.swap { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.pill-ok { margin-left: auto; font-style: normal; font-weight: 600; font-size: 13px; color: var(--verde); background: #E3F5E9; padding: 5px 10px; border-radius: 999px; }
.chip-qr-img { width: 46px; height: 46px; color: var(--cafe); }
.chip-qr b { color: var(--verde); }

/* Cinta que corre (sigue la velocidad del scroll en ama-motion.js) */
.cinta { position: relative; z-index: 4; margin: -44px -3vw 0; padding: 18px 0; background: linear-gradient(90deg, #FF5A1F, #FF7A35 45%, #F38A8E); color: var(--cafe); transform: rotate(-2deg); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.cinta-in { display: flex; align-items: center; gap: 44px; width: max-content; padding-right: 44px; font: 400 clamp(26px, 3.2vw, 42px)/1 var(--serif); white-space: nowrap; animation: correr 36s linear infinite; }
.cinta-in span { display: inline-flex; align-items: center; gap: .32em; }
.ci { display: grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--crema); box-shadow: 0 6px 14px -8px rgba(30, 23, 20, .6); }
.ci img { width: .74em; height: .74em; }
.cinta:hover .cinta-in { animation-play-state: paused; }
@keyframes correr { to { transform: translateX(-50%); } }

/* Paneles con esquinas redondeadas que suben sobre la sección anterior */
.panel { position: relative; z-index: 3; border-radius: 44px 44px 0 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head-c { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head-split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.sec-lead { margin-top: 18px; font-size: clamp(17px, 1.4vw, 19px); color: var(--cafe-suave); max-width: 32em; }
.sec-head-split .sec-lead { margin-top: 0; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .wi { display: inline-block; }
