/* Tesorero digital · página principal (estilo carnavalero cruceño) */
:root {
  --verde: #00843d; --verde-osc: #006b33; --verde-noche: #053d22; --verde-claro: #e2f4e8;
  --magenta: #e6007e; --amarillo: #ffcc00; --turquesa: #00b5c8; --naranja: #ff6a13; --morado: #6a2c91;
  --crema: #fffaf0; --texto: #17231a; --gris: #56645a; --linea: #e6e0cf;
  --titulo: "Baloo 2", "Outfit", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Outfit", system-ui, sans-serif; color: var(--texto); background: var(--crema); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--verde-osc); }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.08; margin: 0; }
[hidden] { display: none !important; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; min-height: 50px; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; min-height: 40px; font-size: .9rem; }
.btn-amarillo { background: var(--amarillo); color: var(--texto); box-shadow: 0 4px 0 #c79c00; }
.btn-blanco { background: #fff; color: var(--verde-osc); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.btn-verde { background: var(--verde); color: #fff; box-shadow: 0 4px 0 var(--verde-noche); }
.btn-wa { background: #25d366; color: #0b3d1f; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 250, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.top-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.logo { font-family: var(--titulo); font-weight: 800; font-size: 1.35rem; color: var(--verde-osc); text-decoration: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.logo span { color: var(--magenta); }
.logo-mask { display: inline-block; transform: rotate(-12deg); }
.menu { display: none; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--texto); font-weight: 600; font-size: .95rem; }
.menu a:hover, .menu a.on { background: var(--verde-claro); color: var(--verde-osc); }
.top .btn-wa { margin-left: auto; }
@media (min-width: 900px) { .menu { display: flex; } .top .btn-wa { margin-left: 8px; } }

/* Confeti y serpentinas */
.confeti { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(circle, var(--amarillo) 2.5px, transparent 3px),
    radial-gradient(circle, var(--magenta) 2.5px, transparent 3px),
    radial-gradient(circle, #fff 2px, transparent 2.5px),
    radial-gradient(circle, var(--turquesa) 2.5px, transparent 3px),
    radial-gradient(circle, var(--naranja) 2px, transparent 2.5px);
  background-size: 140px 120px, 170px 150px, 110px 130px, 190px 170px, 150px 190px;
  background-position: 10px 20px, 80px 60px, 40px 90px, 120px 10px, 60px 140px; }
.confeti.suave { opacity: .35; }
.serpentina { position: absolute; width: 260px; fill: none; stroke-width: 7; stroke-linecap: round; pointer-events: none; }
.serpentina.s1 { stroke: var(--magenta); top: 30px; right: -60px; transform: rotate(18deg); }
.serpentina.s2 { stroke: var(--amarillo); bottom: 40px; left: -80px; transform: rotate(-14deg); }

/* Banderines */
.banderines { height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='34'%3E%3Cpath d='M0 2 Q90 10 180 2' stroke='%23553' stroke-width='1.5' fill='none'/%3E%3Cpath d='M4 3 L30 5 L17 30Z' fill='%2300843d'/%3E%3Cpath d='M34 5 L60 6.5 L47 32Z' fill='%23ffffff' stroke='%23e6e0cf'/%3E%3Cpath d='M64 6.5 L90 7 L77 33Z' fill='%23e6007e'/%3E%3Cpath d='M94 7 L120 6.5 L107 33Z' fill='%23ffcc00'/%3E%3Cpath d='M124 6.5 L150 5 L137 32Z' fill='%2300b5c8'/%3E%3Cpath d='M154 5 L178 3 L166 30Z' fill='%23ff6a13'/%3E%3C/svg%3E") repeat-x; background-color: var(--crema); }

/* Portada */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #13a352 0%, var(--verde) 35%, var(--verde-osc) 70%, var(--verde-noche) 100%); color: #fff; }
.hero-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 44px 16px 56px; display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.1fr .9fr; padding: 72px 16px 84px; } }
.kicker { margin: 0 0 10px; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); }
.hero .kicker { color: var(--amarillo); }
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.9rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 mark { background: none; color: var(--amarillo); position: relative; white-space: nowrap; }
@media (max-width: 420px) { .hero h1 mark { white-space: normal; } }
.lead { font-size: 1.12rem; margin: 18px 0 26px; max-width: 36em; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta.centro { justify-content: center; }
.hero-datos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hero-datos li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 10px 12px; }
.hero-datos strong { display: block; font-family: var(--titulo); font-size: 1.25rem; color: var(--amarillo); line-height: 1.1; }
.hero-datos span { font-size: .8rem; opacity: .9; line-height: 1.25; display: block; }
.hero-celus { position: relative; height: 460px; max-width: 420px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .hero-celus { height: 560px; } }
.cel { border-radius: 34px; border: 9px solid #111; background: #111; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.35); aspect-ratio: 390 / 780; }
.cel img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-celus .cel { position: absolute; width: 58%; }
.cel-atras { left: 0; top: 30px; transform: rotate(-7deg); }
.cel-frente { right: 0; top: 0; transform: rotate(5deg); }
.sticker { position: absolute; left: 34%; bottom: 6%; background: var(--magenta); color: #fff; font-family: var(--titulo); font-weight: 800; font-size: 1.3rem; padding: 10px 18px; border-radius: 999px; transform: rotate(-8deg); box-shadow: 0 6px 0 #9c0056; }

/* Bloques */
.bloque { position: relative; padding: 64px 0; overflow: hidden; }
.bloque-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.bloque-in.angosto { max-width: 760px; }
.bloque h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 14px; color: var(--verde-noche); }
.bloque .sub { color: var(--gris); max-width: 46em; margin: 0 0 26px; }
.bloque.suave { background: #fff3d6; }
.bloque.verde { background: var(--verde); color: #fff; }
.bloque.verde h2, .bloque.oscuro h2 { color: #fff; }
.bloque.verde .kicker { color: var(--amarillo); }
.bloque.oscuro { background: var(--verde-noche); color: #eaf5ec; }
.bloque.oscuro .kicker { color: var(--amarillo); }
.centro { text-align: center; }
.dos-col { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .dos-col { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Problemas */
.problemas { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 700px) { .problemas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .problemas { grid-template-columns: repeat(4, 1fr); } }
.problemas article { background: #fff; border-radius: 22px; padding: 22px; border: 2px solid var(--linea); position: relative; }
.problemas article:nth-child(1) { border-top: 6px solid var(--magenta); }
.problemas article:nth-child(2) { border-top: 6px solid var(--amarillo); }
.problemas article:nth-child(3) { border-top: 6px solid var(--turquesa); }
.problemas article:nth-child(4) { border-top: 6px solid var(--naranja); }
.problemas .emo, .condominio .emo { font-size: 2.2rem; }
.problemas h3 { font-size: 1.35rem; margin: 6px 0; color: var(--verde-noche); }
.problemas p { margin: 0; color: var(--gris); }

/* Pasos */
.pasos { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; counter-reset: paso; }
@media (min-width: 760px) { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pasos { grid-template-columns: repeat(4, 1fr); } }
.pasos li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: 22px; }
.pasos li > span { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--amarillo); color: var(--verde-noche); font-family: var(--titulo); font-weight: 800; font-size: 1.5rem; margin-bottom: 10px; }
.pasos li:nth-child(2) > span { background: var(--magenta); color: #fff; }
.pasos li:nth-child(3) > span { background: var(--turquesa); color: #fff; }
.pasos li:nth-child(4) > span { background: #fff; }
.pasos h3 { font-size: 1.3rem; margin-bottom: 6px; }
.pasos p { margin: 0; opacity: .92; }

/* Galería de ejemplos */
.galeria { display: grid; grid-auto-flow: column; grid-auto-columns: min(66%, 250px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 22px; margin: 0 -16px 18px; scrollbar-width: thin; }
@media (min-width: 1000px) { .galeria { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0 0 18px; padding: 6px 0 10px; } }
.galeria figure { margin: 0; scroll-snap-align: center; display: grid; gap: 12px; align-content: start; }
.galeria figure:nth-child(odd) .cel { transform: rotate(-1.5deg); }
.galeria figure:nth-child(even) .cel { transform: rotate(1.5deg); }
.galeria .cel { box-shadow: 0 14px 30px rgba(0, 60, 25, .2); border-width: 7px; border-radius: 28px; }
.galeria h3 { font-size: 1.2rem; color: var(--verde-noche); }
.galeria figcaption p { margin: 2px 0 4px; color: var(--gris); font-size: .93rem; }
.galeria figcaption a { font-weight: 700; color: var(--magenta); text-decoration: none; }

/* Chat de WhatsApp */
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--verde); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.oscuro .checks li::before { background: var(--amarillo); color: var(--verde-noche); }
.checks.dos { grid-template-columns: 1fr; }
@media (min-width: 700px) { .checks.dos { grid-template-columns: 1fr 1fr; } }
.chat { max-width: 380px; width: 100%; justify-self: center; border-radius: 26px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.18); background: #efe7dd; border: 8px solid #111; }
.chat-top { background: #075e54; color: #fff; display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.chat-top small { display: block; opacity: .8; font-size: .75rem; }
.chat-av { width: 36px; height: 36px; border-radius: 50%; background: var(--magenta); display: grid; place-items: center; font-weight: 700; }
.chat-cuerpo { padding: 16px 12px 22px; display: grid; gap: 10px; background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px); background-size: 14px 14px; }
.burbuja { background: #dcf8c6; border-radius: 12px 0 12px 12px; padding: 9px 11px 18px; font-size: .9rem; line-height: 1.4; justify-self: end; max-width: 92%; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.burbuja.ella { background: #fff; border-radius: 0 12px 12px 12px; justify-self: start; }
.burbuja small { position: absolute; right: 8px; bottom: 3px; font-size: .68rem; color: #6b7b72; }
.burbuja .enlace { color: #027eb5; text-decoration: underline; }

/* Puerta */
.cel-sombra { max-width: 300px; margin: 0 auto; transform: rotate(-3deg); }

/* Funciones */
.funciones { display: grid; gap: 14px; margin-top: 26px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.funciones article { background: #fff; border-radius: 20px; padding: 20px; border: 2px solid var(--linea); }
.funciones span { font-size: 1.8rem; }
.funciones h3 { font-size: 1.2rem; margin: 4px 0; color: var(--verde-noche); }
.funciones p { margin: 0; color: var(--gris); font-size: .95rem; }

/* Precios */
.lanzamiento { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 2px dashed var(--magenta); border-radius: 16px; padding: 8px 14px; margin: 0 0 22px; }
.lanz-tag { background: var(--magenta); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.planes { display: grid; gap: 16px; }
@media (min-width: 820px) { .planes { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; background: #fff; border-radius: 26px; padding: 26px 22px; border: 2px solid var(--linea); display: grid; gap: 6px; align-content: start; }
.plan.destacado { background: var(--verde); color: #fff; border-color: var(--verde); box-shadow: 0 18px 40px rgba(0, 100, 45, .3); }
.plan-tag { position: absolute; top: -14px; left: 22px; background: var(--amarillo); color: var(--verde-noche); font-weight: 800; padding: 4px 14px; border-radius: 999px; font-size: .82rem; transform: rotate(-3deg); }
.plan h3 { font-size: 1.5rem; }
.plan-nota { margin: 0; color: var(--gris); font-weight: 600; }
.plan.destacado .plan-nota, .plan.destacado .plan-por { color: #d9f2e1; }
.precio { margin: 10px 0 0; display: grid; }
.precio strong { font-family: var(--titulo); font-size: 2.8rem; line-height: 1; font-weight: 800; }
.precio span { font-size: .9rem; opacity: .8; }
.plan-por { margin: 0 0 14px; color: var(--gris); font-size: .9rem; }
.plan .btn { width: 100%; }
#porPersona { margin: 22px auto 0; max-width: none; }
.incluye { margin-top: 28px; background: #fff; border-radius: 22px; padding: 22px; border: 2px solid var(--linea); }
.incluye h3 { font-size: 1.3rem; color: var(--verde-noche); }

/* Condominios */
.condominio { display: grid; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--verde-claro), #fff); border: 2px solid var(--linea); border-radius: 26px; padding: 26px; }
@media (min-width: 820px) { .condominio { grid-template-columns: auto 1fr auto; padding: 30px 36px; } }
.condominio h2 { margin-bottom: 6px; }
.condominio p { margin: 0; color: var(--gris); }

/* Preguntas */
details { background: #fff; border-radius: 16px; border: 2px solid var(--linea); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--titulo); font-size: 1.5rem; line-height: 1; color: var(--magenta); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 18px 16px; color: var(--gris); }

/* Cierre */
.cta-final { position: relative; overflow: hidden; text-align: center; padding: 72px 16px; background: linear-gradient(135deg, var(--magenta), #b4006a 55%, var(--morado)); color: #fff; }
.cta-final h2 { position: relative; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; }
.cta-final p { position: relative; font-size: 1.1rem; margin: 10px 0 24px; }
.cta-final .hero-cta { position: relative; }

/* Pie */
.pie { background: var(--verde-noche); color: #cfe3d5; text-align: center; padding: 30px 16px calc(36px + env(safe-area-inset-bottom, 0px)); }
.pie .logo { justify-content: center; color: #fff; margin: 0 0 6px; }
.pie .logo span { color: var(--amarillo); }
.pie p { margin: 4px 0; }
.pie .peq { font-size: .85rem; opacity: .85; }
.pie a { color: #fff; }
.pie + .wa-flotante, .wa-flotante { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.wa-flotante svg { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media (max-width: 899px) { .serpentina.s1 { top: auto; bottom: 46%; right: -150px; opacity: .8; } .serpentina.s2 { bottom: 8px; } }

/* Precio tachado + precio de lanzamiento */
.precio s { font-family: var(--titulo); font-size: 1.35rem; font-weight: 700; color: var(--gris); text-decoration-color: var(--magenta); text-decoration-thickness: 3px; line-height: 1.1; }
.plan.destacado .precio s { color: #cfe9d8; text-decoration-color: var(--amarillo); }
.plan-lanz { justify-self: start; margin: 4px 0 6px; background: var(--magenta); color: #fff !important; opacity: 1 !important; font-size: .72rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan.destacado .plan-lanz { background: var(--amarillo); color: var(--verde-noche) !important; }
