/* ═══════════════════════════════════════════════════
   SÍ HAY BANDITA CHIDA — "Aquí también se cuenta tu historia"
   Un cuaderno donde se van juntando historias. Colores planos de la marca, sin degradados.
   ═══════════════════════════════════════════════════ */

.hs-page {
    --hs-dark: #0b3340;
    --hs-turq: #2ac6e8;
    --hs-turq-claro: #dff6fc;
    --hs-yellow: #f6c72c;
    --hs-cream: #ffffff;        /* fondo de la página: blanco, sin tono amarillo */
    --hs-papel: #ffffff;
    --hs-suave: #f3fafc;        /* cajas de apoyo: un celeste casi blanco */
    --hs-purple: #5b1fa0;
    --hs-orange: #f0ae4a;
    --hs-text: #1a2e35;
    --hs-text2: #4a6370;
    --hs-error: #b3261e;
    --hs-mano: 'Caveat', 'Lobster', cursive;
    background: var(--hs-cream);
    color: var(--hs-text);
}
.hs-page main { display: block; }
.hs-page [hidden] { display: none !important; }   /* que ningún display de este archivo anule el atributo hidden */

/* ─── Entrada ─── */
.hs-hero { padding: 104px 0 36px; background: var(--hs-cream); }
/* Portada centrada en una sola columna: logos apilados, título, texto, botón y las notas debajo */
.hs-hero-grid { display: block; max-width: 860px; margin: 0 auto; text-align: center; }

.hs-logos { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0 auto 14px; text-decoration: none; color: inherit; }
.hs-logos:focus-visible { outline: 3px solid var(--hs-turq); outline-offset: 6px; border-radius: 10px; }
.hs-logo-wrap img { display: block; height: auto; }
.hs-logo-wrap img { max-width: 100%; }
.hs-logo-sihay img { width: clamp(150px, 40vw, 280px); }
.hs-logo-bandita img { width: clamp(250px, 70vw, 470px); margin-top: -2%; }
/* Si todavía no están los archivos de los logos, queda el nombre escrito */
.hs-logo-texto { display: inline-block; line-height: .95; }
.hs-logo-texto-sihay { font-family: 'Reem Kufi', sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--hs-purple); text-shadow: 3px 3px 0 var(--hs-yellow); }
.hs-logo-texto-bandita { font-family: 'Lobster', cursive; font-size: 2.6rem; color: #1a6fd0; text-shadow: 3px 3px 0 var(--hs-orange); }

.hs-page .hs-hero h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); line-height: 1.06; color: var(--hs-dark); margin: 0 0 1rem; }
.hs-subrayada { position: relative; display: inline-block; white-space: nowrap; }
.hs-trazo { position: absolute; left: 0; bottom: -6px; width: 100%; height: 14px; z-index: -1; }
.hs-desc { font-size: 1.1rem; line-height: 1.65; color: var(--hs-text2); max-width: 560px; margin: 0 auto 1.6rem; }


/* Botones: como stickers, con borde y sombra plana */
.hs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 50px; padding: 12px 26px; border: 2.5px solid var(--hs-dark); border-radius: 14px;
    font: 700 1rem/1.2 'Inter', sans-serif; text-decoration: none; cursor: pointer; color: var(--hs-dark);
    box-shadow: 4px 4px 0 var(--hs-dark); transition: transform .12s ease, box-shadow .12s ease;
}
.hs-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--hs-dark); }
.hs-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--hs-dark); }
.hs-btn:focus-visible { outline: 3px solid var(--hs-turq); outline-offset: 3px; }
.hs-btn-amarillo { background: var(--hs-yellow); }
.hs-btn-blanco { background: #fff; }
.hs-btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: 4px 4px 0 var(--hs-dark); }

/* Notas pegadas con ideas para arrancar */
.hs-notas { position: relative; padding: 8px 0 0; margin: 44px auto 0; max-width: 780px; }
.hs-notas-titulo { font-family: var(--hs-mano); font-weight: 700; font-size: 1.6rem; color: var(--hs-dark); margin: 0 0 12px; }
.hs-notas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 14px; }
.hs-nota {
    text-align: left; --giro: 0deg; transform: rotate(var(--giro)); transition: transform .2s ease;
    position: relative; font-family: var(--hs-mano); font-weight: 700; font-size: 1.4rem; line-height: 1.15; color: var(--hs-dark);
    padding: 14px 16px 12px; max-width: 220px; box-shadow: 3px 4px 0 rgba(11,51,64,.22);
}
.hs-nota::before { content: ''; position: absolute; top: -9px; left: 50%; width: 54px; height: 16px; margin-left: -27px; background: rgba(246,199,44,.85); transform: rotate(-3deg); }
.hs-nota-1 { background: #fff2a8; --giro: -2.2deg; }
.hs-nota-2 { background: var(--hs-turq-claro); --giro: 1.8deg; }
.hs-nota-3 { background: #ffe3c2; --giro: -1.2deg; }
.hs-nota-4 { background: #eadfff; --giro: 2.2deg; }
.hs-nota-5 { background: #fff2a8; --giro: -1.6deg; }
.hs-notas-pie { font-family: var(--hs-mano); font-weight: 700; font-size: 1.35rem; color: var(--hs-purple); margin: 18px 0 0; }

/* ─── Cuaderno ─── */
.hs-seccion { padding: 28px 0 80px; scroll-margin-top: 70px; }
.hs-cuaderno {
    position: relative; max-width: 780px; margin: 0 auto;
    background: var(--hs-papel); border: 3px solid var(--hs-dark); border-radius: 10px 20px 20px 10px;
    padding: 40px 34px 34px 74px; box-shadow: 9px 9px 0 var(--hs-yellow), 9px 9px 0 3px var(--hs-dark);
}
.hs-espiral {
    position: absolute; left: 10px; top: 20px; bottom: 20px; width: 28px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='44'%3E%3Ccircle cx='14' cy='22' r='7' fill='%23fff' stroke='%230b3340' stroke-width='2.5'/%3E%3C/svg%3E") repeat-y;
}
/* margen del cuaderno */
.hs-cuaderno::after { content: ''; position: absolute; left: 52px; top: 0; bottom: 0; width: 2px; background: #f4b6b0; opacity: .8; pointer-events: none; }
.hs-cinta { position: absolute; width: 96px; height: 26px; background: rgba(42,198,232,.7); z-index: 2; }
.hs-cinta-1 { top: -14px; right: 34px; transform: rotate(4deg); }
.hs-cinta-2 { bottom: -12px; left: 90px; transform: rotate(-3deg); background: rgba(246,199,44,.8); }

.hs-form, .hs-gracias { position: relative; z-index: 1; }
.hs-page .hs-form-titulo { font-size: clamp(1.9rem, 4.5vw, 2.5rem); color: var(--hs-dark); margin: 0 0 4px; }
.hs-form-titulo span { color: var(--hs-purple); }
.hs-form-intro { font-size: 1.02rem; color: var(--hs-text2); margin: 0 0 24px; }

.hs-campo { margin-bottom: 22px; }
.hs-campo label, .hs-decide legend { font-family: 'Reem Kufi', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--hs-dark); display: block; }
.hs-opcional { font: 500 .85rem 'Inter', sans-serif; color: var(--hs-text2); }
.hs-ayuda { font-size: .9rem; line-height: 1.45; color: var(--hs-text2); margin: 2px 0 8px; }
.hs-guia { font-family: var(--hs-mano); font-weight: 700; font-size: 1.5rem; color: var(--hs-purple); line-height: 1.1; margin: 0 0 8px; }

.hs-form input[type="text"], .hs-form textarea {
    width: 100%; font: 400 1rem/1.5 'Inter', sans-serif; color: var(--hs-text);
    background: #fff; border: 2px solid var(--hs-dark); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.hs-form input[type="text"]:focus, .hs-form textarea:focus { outline: 3px solid var(--hs-turq); outline-offset: 2px; }
.hs-form [aria-invalid="true"] { border-color: var(--hs-error); background: #fff7f6; }
/* la hoja de la historia lleva renglones */
.hs-form textarea {
    resize: vertical; min-height: 230px; line-height: 32px; padding: 4px 14px 8px; background-attachment: local;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='32'%3E%3Cline x1='0' y1='31' x2='40' y2='31' stroke='%23bfe6f0' stroke-width='2'/%3E%3C/svg%3E");
}
.hs-form textarea::placeholder, .hs-form input::placeholder { color: #7a8e97; }
.hs-pie-campo { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-top: 6px; }
.hs-contador { margin-left: auto; font-size: .82rem; color: var(--hs-text2); white-space: nowrap; }
.hs-error { color: var(--hs-error); font-weight: 600; font-size: .92rem; line-height: 1.4; margin: 6px 0 0; }
.hs-error[hidden] { display: none; }
.hs-error-general { font-size: 1rem; background: #fff0ee; border: 2px solid var(--hs-error); border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; }

.hs-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.hs-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── Las tres decisiones ─── */
.hs-decide { border: 2.5px dashed var(--hs-dark); border-radius: 16px; padding: 14px 18px 6px; margin: 6px 0 22px; min-width: 0; background: var(--hs-suave); }
.hs-decide legend { font-family: 'Lobster', cursive; font-weight: 400; font-size: 1.55rem; padding: 0 10px; background: var(--hs-papel); }
.hs-paso { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.hs-paso + .hs-paso { border-top: 2px dotted rgba(11,51,64,.28); }
.hs-paso p { margin: 0; font-size: .98rem; line-height: 1.5; }
.hs-paso-cuerpo { flex: 1; min-width: 0; }
.hs-num {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--hs-dark); background: var(--hs-yellow);
    font: 800 1rem/27px 'Reem Kufi', sans-serif; text-align: center; color: var(--hs-dark);
}
.hs-ayuda-sangria { margin: 4px 0 0 38px; }

.hs-check, .hs-radio { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-height: 44px; font: 400 .98rem/1.5 'Inter', sans-serif; color: var(--hs-text); }
.hs-check input, .hs-radio input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; left: 0; top: 0; cursor: pointer; }
.hs-caja, .hs-punto { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; background: #fff; border: 2.5px solid var(--hs-dark); }
.hs-caja { border-radius: 7px; }
.hs-punto { border-radius: 50%; }
.hs-check input:checked + .hs-caja {
    background-color: var(--hs-turq);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M5 14 L11 20 L21 6' fill='none' stroke='%230b3340' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}
.hs-punto { position: relative; }
.hs-radio input:checked + .hs-punto { background: var(--hs-turq); }
.hs-radio input:checked + .hs-punto::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--hs-dark); }
.hs-check input:focus-visible + .hs-caja, .hs-radio input:focus-visible + .hs-punto { outline: 3px solid var(--hs-turq); outline-offset: 3px; }
.hs-check-texto strong { font-weight: 700; }
.hs-mostrar { margin: 12px 0 2px 38px; background: var(--hs-turq-claro); border: 2px solid var(--hs-dark); border-radius: 12px; padding: 12px 14px 8px; }
.hs-mostrar[hidden] { display: none; }
.hs-mostrar-titulo { font-family: var(--hs-mano); font-weight: 700; font-size: 1.45rem; margin: 0 0 4px !important; color: var(--hs-dark); }
.hs-radio em { font-style: normal; color: var(--hs-text2); }
.hs-cambio { font-size: .9rem; color: var(--hs-text2); padding: 12px 0 10px; border-top: 2px dotted rgba(11,51,64,.28); margin: 0; }
.hs-cambio a { color: var(--hs-dark); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.hs-envio { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hs-envio .hs-ayuda { margin: 0; flex: 1 1 200px; }
.hs-btn-enviar { min-width: 220px; font-size: 1.05rem; }

/* ─── Gracias ─── */
.hs-gracias { text-align: center; padding: 6px 0 4px; }
.hs-gracias[hidden] { display: none; }
.hs-gracias:focus { outline: none; }
.hs-gracias-dibujo { width: 112px; height: 102px; margin: 0 auto 6px; display: block; }
.hs-page .hs-gracias h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--hs-dark); margin: 0 0 12px; }
.hs-gracias-texto { font-size: 1.1rem; line-height: 1.65; max-width: 540px; margin: 0 auto 10px; }
.hs-gracias-aviso { font-family: var(--hs-mano); font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: var(--hs-purple); max-width: 520px; margin: 0 auto 20px; }
.hs-resumen { max-width: 440px; margin: 0 auto 24px; text-align: left; background: var(--hs-suave); border: 2.5px dashed var(--hs-dark); border-radius: 14px; padding: 12px 18px; }
.hs-resumen-titulo { font: 700 .8rem 'Inter', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hs-text2); margin: 0 0 6px; }
.hs-resumen ul { list-style: none; margin: 0; padding: 0; }
.hs-resumen li { font-size: .98rem; line-height: 1.45; padding: 5px 0 5px 26px; position: relative; }
.hs-resumen li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; color: #1a8fb0; }
.hs-resumen li.no::before { content: '–'; color: var(--hs-text2); }
.hs-gracias-botones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Celular ─── */
@media (max-width: 860px) {
    .hs-hero { padding-top: 92px; }
    .hs-notas { margin-top: 36px; }
}
@media (max-width: 640px) {
    .hs-seccion { padding-bottom: 56px; }
    .hs-cuaderno { padding: 30px 18px 26px 46px; box-shadow: 6px 6px 0 var(--hs-yellow), 6px 6px 0 3px var(--hs-dark); }
    .hs-espiral { left: 6px; width: 24px; background-size: 24px 38px; }
    .hs-cuaderno::after { left: 34px; }
    .hs-doble { grid-template-columns: 1fr; }
    .hs-ayuda-sangria, .hs-mostrar { margin-left: 0; }
    .hs-paso { gap: 10px; }
    .hs-btn-enviar { width: 100%; }
    .hs-btn { text-align: center; }
    .hs-comunidad .hs-btn, .hs-cierre .hs-btn { font-size: .95rem; padding: 12px 18px; }   /* que "Conoce la comunidad Bandita Chida" quepa en un renglón */
    .hs-nota { font-size: 1.3rem; max-width: none; }
}
@media (max-width: 380px) {
    .hs-comunidad .hs-btn, .hs-cierre .hs-btn { font-size: .86rem; padding: 12px 14px; }
    .hs-cuaderno { padding-left: 40px; padding-right: 14px; }
    .hs-cuaderno::after { left: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-btn, .hs-btn:hover, .hs-btn:active { transition: none; transform: none; }
}

/* "Quiero contar mi historia": lo primero que se ve, lleva directo al formulario */
.hs-quiero {
    display: inline-flex; align-items: center; gap: .5rem; margin: 0 auto 18px; padding: 12px 24px;
    font: 700 1rem/1.2 'Inter', sans-serif; color: var(--hs-dark); text-decoration: none;
    background: #fff; border: 2.5px solid var(--hs-dark); border-radius: 999px; box-shadow: 3px 3px 0 var(--hs-dark);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.hs-quiero:hover { background: var(--hs-yellow); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hs-dark); }
.hs-quiero:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hs-dark); }
.hs-quiero:focus-visible { outline: 3px solid var(--hs-turq); outline-offset: 3px; }
.hs-quiero span { display: inline-block; }

/* Botón "Conoce la comunidad": arriba, debajo del botón principal, y al final de la página */
.hs-comunidad { margin: 4px 0 0; }
.hs-cierre { text-align: center; padding: 0 1.5rem 72px; }
.hs-enviado .hs-cierre { display: none; }   /* ya salió el agradecimiento, que trae su propio botón a Bandita Chida */

/* ═══ Movimiento (se apaga solo para quien pide reducir movimiento) ═══ */
@media (prefers-reduced-motion: no-preference) {
    @keyframes hs-sube { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
    @keyframes hs-pop { 0% { opacity: 0; transform: scale(.55) rotate(-7deg); } 62% { opacity: 1; transform: scale(1.07) rotate(2deg); } 100% { opacity: 1; transform: none; } }
    @keyframes hs-pega { 0% { opacity: 0; transform: translateY(-26px) rotate(calc(var(--giro) - 9deg)) scale(1.12); } 65% { opacity: 1; transform: translateY(3px) rotate(calc(var(--giro) + 1.5deg)) scale(.98); } 100% { opacity: 1; transform: rotate(var(--giro)); } }
    @keyframes hs-trazar { to { stroke-dashoffset: 0; } }
    @keyframes hs-flota { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-.8deg); } }
    @keyframes hs-marca { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
    @keyframes hs-sacude { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
    @keyframes hs-cae { from { opacity: 0; transform: translateY(-14px) rotate(0); } to { opacity: 1; } }
    @keyframes hs-chispa { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

    /* Entrada de la portada */
    .hs-js .hs-logo-sihay { animation: hs-pop .7s .05s cubic-bezier(.2, .8, .3, 1) both; }
    .hs-js .hs-logo-bandita { animation: hs-pop .75s .2s cubic-bezier(.2, .8, .3, 1) both; }
    .hs-js .hs-logo-bandita img { animation: hs-flota 6s 1.2s ease-in-out infinite; }
    .hs-logos:hover .hs-logo-wrap img { animation-play-state: paused; }
    .hs-js .hs-hero h1 { animation: hs-sube .6s .35s ease-out both; }
    .hs-js .hs-desc { animation: hs-sube .6s .5s ease-out both; }
    .hs-js .hs-comunidad { animation: hs-sube .6s .8s ease-out both; }
    .hs-trazo path { stroke-dasharray: 1; stroke-dashoffset: 1; }
    .hs-js .hs-trazo path { animation: hs-trazar .9s .95s ease-out forwards; }
    html:not(.hs-js) .hs-trazo path { stroke-dashoffset: 0; }

    /* Cosas que aparecen al llegar a ellas */
    .hs-js .hs-reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
    .hs-js .hs-reveal.hs-in { opacity: 1; transform: none; }
    .hs-js .hs-notas.hs-reveal { transform: none; }
    .hs-js .hs-notas:not(.hs-in) .hs-nota { opacity: 0; }
    .hs-js .hs-notas.hs-in .hs-nota { animation: hs-pega .6s ease-out both; }
    .hs-js .hs-notas.hs-in .hs-nota-1 { animation-delay: .05s; }
    .hs-js .hs-notas.hs-in .hs-nota-2 { animation-delay: .17s; }
    .hs-js .hs-notas.hs-in .hs-nota-3 { animation-delay: .29s; }
    .hs-js .hs-notas.hs-in .hs-nota-4 { animation-delay: .41s; }
    .hs-js .hs-notas.hs-in .hs-nota-5 { animation-delay: .53s; }
    .hs-nota:hover { transform: rotate(0deg) translateY(-4px); }
    .hs-js .hs-cuaderno.hs-in .hs-cinta-1 { animation: hs-cae .5s .45s ease-out both; }
    .hs-js .hs-cuaderno.hs-in .hs-cinta-2 { animation: hs-cae .5s .65s ease-out both; }
    .hs-js .hs-quiero { animation: hs-sube .5s both; }
    .hs-quiero span { animation: hs-rebota 1.8s 1.4s ease-in-out infinite; }
    @keyframes hs-rebota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
    .hs-btn span { display: inline-block; transition: transform .2s; }
    .hs-btn:hover span { transform: translateX(4px); }

    /* Detalles del formulario */
    .hs-check input:checked + .hs-caja { animation: hs-marca .28s ease-out; }
    .hs-radio input:checked + .hs-punto { animation: hs-marca .28s ease-out; }
    .hs-mostrar:not([hidden]) { animation: hs-sube .3s ease-out; }
    .hs-error:not([hidden]) { animation: hs-sacude .35s ease-in-out; }
    .hs-form input[type="text"], .hs-form textarea { transition: box-shadow .15s ease; }
    .hs-form input[type="text"]:focus, .hs-form textarea:focus { box-shadow: 4px 4px 0 var(--hs-turq); }

    /* Agradecimiento */
    .hs-gracias:not([hidden]) .hs-gracias-dibujo { animation: hs-pop .65s cubic-bezier(.2, .8, .3, 1) both; }
    .hs-gracias:not([hidden]) .hs-check-trazo { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hs-trazar .5s .55s ease-out forwards; }
    .hs-gracias:not([hidden]) h2 { animation: hs-sube .5s .25s ease-out both; }
    .hs-gracias:not([hidden]) .hs-gracias-texto { animation: hs-sube .5s .4s ease-out both; }
    .hs-gracias:not([hidden]) .hs-gracias-aviso { animation: hs-sube .5s .55s ease-out both; }
    .hs-gracias:not([hidden]) .hs-resumen { animation: hs-sube .5s .7s ease-out both; }
    .hs-gracias:not([hidden]) .hs-resumen li { animation: hs-sube .4s ease-out both; }
    .hs-gracias:not([hidden]) .hs-resumen li:nth-child(1) { animation-delay: .85s; }
    .hs-gracias:not([hidden]) .hs-resumen li:nth-child(2) { animation-delay: 1s; }
    .hs-gracias:not([hidden]) .hs-resumen li:nth-child(3) { animation-delay: 1.15s; }
    .hs-gracias:not([hidden]) .hs-gracias-botones { animation: hs-sube .5s 1.2s ease-out both; }
}
