/*
 * Evento Halloween: página /participa y gancho de la portada.
 * Único archivo de estilos del evento; las vistas Blade no llevan estilos.
 */

/* ===================== Página /participa ===================== */
.anuncio {
    --noche: #19181f;
    --noche-profunda: #0c0b10;
    --tablero: #201f27;
    --tablero-borde: #3a3844;
    --calabaza: #f28c1e;
    --calabaza-oscura: #c25e0c;
    --brillo: #ffd35c;
    --oro: #f6b05a;
    --texto: #e6e3f0;
    --texto-suave: #a9a6bf;
    --error: #ff7a6b;
    --titulo: 'Kanit', 'Segoe UI', system-ui, sans-serif;
    --cuerpo: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Texturas generadas (sin imágenes externas): grano fino y nubes/moho */
    --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
    --nubes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.005' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .34 0 0 0 0 .32 0 0 0 0 .4 .7 0 0 0 -.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
    --manchas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .02 0 0 0 0 .02 0 0 0 0 .06 .55 0 0 0 -.24'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");

    --guardiana: clamp(260px, 86vw, 620px);
    --guardiana-alto: calc(var(--guardiana) * .585);

    width: min(720px, calc(100vw - 24px));
    max-width: none;
    margin: 0 auto;
    position: relative;
    /* Hueco para que la calabaza se asome sin salirse de la pantalla */
    padding: calc(var(--guardiana-alto) * .77) 0 0;
    border: 0;
    color: var(--texto);
    font-family: var(--cuerpo);
    font-size: 15px;
    line-height: 1.6;
    background: transparent;
    /* Visible: deja que la calabaza guardiana se asome fuera del borde */
    overflow: visible;
}

.anuncio *, .anuncio *::before, .anuncio *::after { box-sizing: border-box; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Contenedor de definiciones SVG (gradientes y símbolos): no ocupa espacio */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Fondo de la página: noche de cementerio (solo /participa; este archivo también se carga en la portada) */
.evento-pagina {
    margin: 0;
    min-height: 100dvh;
    padding: 12px 12px 48px;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 75% 60% at 50% 45%, rgba(8, 6, 20, .15), rgba(5, 4, 12, .6)),
        url('../../images/eventos/fondo-noche.webp') center / cover no-repeat fixed,
        #0a0813;
}

.anuncio { display: block; animation: anuncio-entrar .4s cubic-bezier(.2, .9, .3, 1.15); }

@keyframes anuncio-entrar {
    from { opacity: 0; transform: translateY(26px) scale(.95); }
    to { opacity: 1; transform: none; }
}

.anuncio__scroll {
    position: relative;
    z-index: 1;
    border-radius: 26px 20px 28px 18px / 20px 26px 18px 28px;
    background: var(--tablero);
    box-shadow:
        0 0 0 2px #09080c,
        0 0 0 4px rgba(246, 176, 90, .22),
        0 30px 90px rgba(0, 0, 0, .75),
        0 0 120px rgba(242, 140, 30, .12);
    overflow: hidden;
}

/* Espantapájaros: el torso va detrás de la tarjeta y sus garras por delante */
.anuncio__guardian {
    position: absolute;
    left: 50%;
    top: 0;
    width: var(--guardiana);
    transform: translateX(-50%);
    pointer-events: none;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(255, 150, 40, .22));
    animation: anuncio-asomar 7s ease-in-out infinite;
}

.anuncio__guardian--fondo { z-index: 0; }

/* Copias recortadas a cada garra, dibujadas encima del borde */
.anuncio__guardian--garra {
    z-index: 3;
    /* Sin sombra: el recorte recto delataría su borde sobre la tarjeta */
    filter: none;
}

.anuncio__guardian--garra-der { clip-path: polygon(82% 42%, 100% 42%, 100% 100%, 82% 100%); }
.anuncio__guardian--garra-izq { clip-path: polygon(0 60%, 46% 60%, 46% 100%, 0 100%); }

.anuncio__cerrar {
    text-decoration: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: rgba(12, 11, 16, .78);
    border: 2px solid rgba(246, 176, 90, .55);
    border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
    cursor: pointer;
    transition: background .15s, transform .2s;
}

.anuncio__cerrar:hover { background: var(--calabaza-oscura); transform: rotate(90deg); }
.anuncio__cerrar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.anuncio__cerrar svg { width: 16px; height: 16px; }

/* ---------- Cabecera: cielo nublado, árboles secos y resplandor ---------- */
/* Cabecera sobre el mismo tablero de piedra que el cuerpo, para que se lea continuo */
.anuncio__cabecera {
    position: relative;
    padding: 30px 20px 0;
    text-align: center;
    background:
        var(--grano),
        var(--manchas),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 150, 40, .16), transparent 75%),
        #22212a;
    background-size: 220px, 480px, auto, auto;
    overflow: hidden;
}

.anuncio__cabecera > * { position: relative; z-index: 2; }

.anuncio__cabecera > .anuncio__decor { position: absolute; z-index: 0; pointer-events: none; }

.anuncio__telarana {
    top: 0;
    width: clamp(110px, 24vw, 170px);
    fill: none;
    stroke: url(#an-hilo);
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(220, 225, 255, .18));
}

.anuncio__telarana--izq { left: 0; }
.anuncio__telarana--der { right: 0; transform: scaleX(-1); }
.anuncio__telarana path { stroke-width: .8; }
.anuncio__telarana circle { fill: rgba(235, 238, 255, .55); stroke: none; }


/* Cinta tipo estandarte con puntas en cola de golondrina */
.anuncio .cinta {
    display: inline-block;
    position: relative;
    margin: 10px 0 0;
    padding: 4px 30px 5px;
    font-family: var(--titulo);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .04em;
    color: #efd9b8;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23302e39'/%3E%3Cstop offset='1' stop-color='%231b1a21'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2.5 5.8 L60 4.6 L130 5.4 L197.5 3.8 L187.6 20.4 L196.2 36.4 L120 35.2 L70 36.4 L3.6 36.9 L12.8 19.6 Z' fill='url(%23g)' stroke='%23b98a4e' stroke-width='1.4' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M17 9.2 L183 8.2 M17 32.4 L183 31.6' stroke='%23b98a4e' stroke-opacity='.3' stroke-width='1' stroke-dasharray='4 3' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
}

/* ---------- Presentación: título en arco, subtítulo y texto ---------- */
/* ---------- Secciones de presentación y condiciones (sin recuadro) ---------- */
.panel {
    position: relative;
    margin-bottom: 22px;
    padding: 10px 0 30px;
    text-align: center;
}

.condiciones__lista {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: clamp(17px, 4.2vw, 20px);
    line-height: 1.4;
    color: #d9d6e2;
}

.condiciones__lista {
    display: grid;
    gap: 10px;
    max-width: 520px;
    margin: 18px auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.condiciones__lista li {
    position: relative;
    padding: 10px 14px 10px 40px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.condiciones__lista--plegada li:nth-child(n + 5) { display: none; }

/* Flechita para desplegar el resto de condiciones */
.condiciones__mas {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 12px;
    padding: 4px 12px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--oro);
    background: none;
    border: 0;
    cursor: pointer;
}

.condiciones__mas svg { width: 30px; height: 30px; animation: condiciones-rebote 1.6s ease-in-out infinite; }
.condiciones__mas[aria-expanded="true"] svg { rotate: 180deg; animation: none; }
.condiciones__mas:focus-visible { outline: 2px solid var(--calabaza); outline-offset: 2px; border-radius: 6px; }

@keyframes condiciones-rebote {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.condiciones__monto {
    font-family: var(--titulo);
    font-weight: 700;
    font-size: 1.15em;
    line-height: 1;
    color: var(--brillo);
    text-shadow: 0 0 10px rgba(255, 200, 80, .3);
}

/* Viñeta: rombo naranja */
.condiciones__lista li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 11px;
    height: 11px;
    margin-top: -5.5px;
    background: linear-gradient(135deg, #ffc15a, #e0701a);
    box-shadow: 0 0 8px rgba(255, 150, 40, .6);
    rotate: 45deg;
}

.presentacion { max-width: 560px; margin: 0 auto; padding-top: 8px; }

.presentacion__arana {
    display: block;
    width: 18px;
    height: 28px;
    margin: 10px auto 0;
    fill: #c9c6d6;
    stroke: #c9c6d6;
    animation: presentacion-colgar 4s ease-in-out infinite;
}

@keyframes presentacion-colgar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.presentacion__titulo { margin: 0 auto; line-height: 1; }

.presentacion__arco {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55)) drop-shadow(0 8px 22px rgba(0, 0, 0, .8));
}

.presentacion__arco text {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 800;
    font-size: 62px;
    letter-spacing: .03em;
}

.presentacion__sub {
    display: block;
    margin-top: -2px;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 700;
    font-size: clamp(22px, 5.4vw, 32px);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8d8fa0;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 6px 18px rgba(0, 0, 0, .7);
}

/* Separador: líneas finas con un rombo naranja al centro */
.presentacion__rombo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(260px, 70%);
    margin: 12px auto 0;
}

.presentacion__rombo::before,
.presentacion__rombo::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7a6a58);
}

.presentacion__rombo::after { background: linear-gradient(90deg, #7a6a58, transparent); }

.presentacion__rombo span {
    width: 10px;
    height: 10px;
    rotate: 45deg;
    background: linear-gradient(135deg, #ffc15a, #e0701a);
    box-shadow: 0 0 10px rgba(255, 150, 40, .7);
}

.presentacion__texto {
    margin: 12px auto 0;
    max-width: 44ch;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: clamp(18px, 4.4vw, 22px);
    line-height: 1.35;
    color: #e4e1ea;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
    text-wrap: pretty;
}

.anuncio__calabazas {
    position: relative;
    height: clamp(120px, 26vw, 170px);
    margin-top: 4px;
}

.anuncio__calabaza {
    position: absolute;
    bottom: -18px;
    filter: drop-shadow(0 0 22px rgba(255, 150, 40, .55)) drop-shadow(0 8px 10px rgba(0, 0, 0, .5));
    animation: anuncio-flotar 5s ease-in-out infinite;
}

.anuncio__calabaza--centro { width: clamp(150px, 32vw, 210px); left: 50%; margin-left: calc(clamp(150px, 32vw, 210px) / -2); bottom: -10px; z-index: 2; }
.anuncio__calabaza--izq,
.anuncio__calabaza--der { width: clamp(72px, 15vw, 104px); bottom: 10px; animation-duration: 6.5s; }
.anuncio__calabaza--izq { left: 9%; transform: rotate(-11deg); animation-delay: -2s; }
.anuncio__calabaza--der { right: 9%; transform: rotate(9deg); animation-delay: -4s; }

@keyframes anuncio-flotar {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
}

.anuncio__reja {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    display: block;
    width: 100%;
    height: 34px;
    fill: #0c0b10;
}

/* ---------- Cuerpo: tablero de piedra agrietada ---------- */
.anuncio__cuerpo {
    position: relative;
    padding: 30px clamp(18px, 5vw, 44px) 120px;
    background:
        var(--grano),
        var(--manchas),
        radial-gradient(ellipse 80% 30% at 50% 0%, rgba(242, 140, 30, .12), transparent 70%),
        linear-gradient(180deg, #22212a 0%, #1d1c24 60%, #18171e 100%);
    background-size: 220px, 480px, auto, auto;
    box-shadow: inset 0 0 90px rgba(0, 0, 0, .45);
}

.anuncio__cuerpo > * { position: relative; z-index: 1; }

.anuncio__cuerpo > .anuncio__grietas,
.anuncio__cuerpo > .anuncio__cementerio { position: absolute; z-index: 0; pointer-events: none; }

/* Grietas: trazo oscuro y un reflejo claro apenas desplazado */
.grietas__sombra { stroke: #09080c; stroke-width: 1.6; opacity: .45; fill: none; }
.grietas__luz { stroke: #fff; stroke-width: .8; opacity: .035; fill: none; transform: translate(1.2px, 1.2px); }

.anuncio__grietas {
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.anuncio__cementerio {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 96px;
    fill: #0e0d12;
}

/* ---------- Intro ---------- */
.anuncio__intro { text-align: center; }

.anuncio__intro h3 {
    margin: 0 0 12px;
    font-family: var(--titulo);
    line-height: 1.2;
}

.anuncio__intro h3 strong { display: block; font-weight: 800; font-size: clamp(25px, 6vw, 32px); color: #f6c580; text-shadow: 0 3px 12px rgba(0, 0, 0, .6); }

/* ---------- Separador: hilo punteado irregular con arañas ---------- */
.anuncio__divisor {
    display: flex;
    align-items: flex-start;
    margin: 24px 0 14px;
}

.anuncio__hilo { flex: 1; height: 16px; order: 2; margin: 4px 4px 0; overflow: visible; }
.anuncio__hilo path { fill: none; stroke: #4a4854; stroke-width: 2; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }

.anuncio__arana { flex: none; width: 26px; height: 40px; fill: #08070b; stroke: #08070b; animation: anuncio-colgar 3s ease-in-out infinite; transform-origin: 50% 0; }
.anuncio__arana--izq { order: 1; }
.anuncio__arana--der { order: 3; animation-delay: -1.5s; }

@keyframes anuncio-colgar {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}

.anuncio__seccion { text-align: center; margin-bottom: 22px; }

.anuncio__seccion h3 {
    margin: 6px 0 0;
    font-family: var(--titulo);
    font-weight: 800;
    font-size: clamp(28px, 6.4vw, 36px);
    line-height: 1.1;
    color: #f29a3a;
    text-shadow: 0 2px 0 #4a2a0c, 0 6px 16px rgba(0, 0, 0, .6);
}

.titulo-arco { width: min(360px, 90%); margin: 0 auto; line-height: 1; }

.titulo-arco svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 3px 0 #4a2a0c) drop-shadow(0 8px 16px rgba(0, 0, 0, .6));
}

.titulo-arco text {
    font-family: var(--titulo);
    font-weight: 800;
    font-size: 58px;
    letter-spacing: .01em;
}

.seccion__texto {
    margin: 8px auto 0;
    max-width: 34ch;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: clamp(18px, 4.4vw, 21px);
    line-height: 1.35;
    color: #e4e1ea;
    text-wrap: balance;
}

/* ---------- Premios en círculos de contorno irregular ---------- */
.anuncio__premios {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(10px, 3.5vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.premio {
    --metal: #c9ced8;
    --metal-oscuro: #6f7482;
    flex: 0 1 170px;
    min-width: 0;
    text-align: center;
}

.premio--oro { --metal: #ffd35c; --metal-oscuro: #b7791f; }
.premio--bronce { --metal: #f0a36b; --metal-oscuro: #8a4a22; }

/* Podio: 2.º a la izquierda, 1.º al centro (más grande), 3.º a la derecha */
.anuncio__premios { align-items: flex-end; }
.premio--plata { order: 1; }
.premio--oro { order: 2; flex-basis: 220px; }
.premio--bronce { order: 3; }
.premio--oro .premio__circulo { filter: drop-shadow(0 0 28px rgba(255, 200, 80, .35)); }
.premio--oro .premio__lugar { font-size: clamp(16px, 4vw, 19px); }

.premio__circulo {
    position: relative;
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
    transition: transform .25s;
}

.premio__circulo::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--metal) 35%, transparent), transparent 70%);
    filter: blur(14px);
    opacity: .45;
    transition: opacity .25s;
}

.premio:hover .premio__circulo { transform: translateY(-4px) rotate(-2deg); }
.premio:hover .premio__circulo::before { opacity: .9; }

.premio__circulo svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); }

/* Capas del círculo: aro exterior, surco, fondo, sombra interior y muescas */
.premio__aro { fill: #0c0b10; stroke: #4a4753; stroke-width: 1.6; }
.premio__surco { fill: #1a1920; stroke: #09080c; stroke-width: 1.4; }
.premio__fondo { fill: url(#an-fondo-premio); stroke: #35333e; stroke-width: 1.2; }
.premio__sombra { fill: url(#an-sombra-premio); }
.premio__muescas { fill: none; stroke: #09080c; stroke-width: 1.6; stroke-linecap: round; }
.premio__trofeo { color: var(--metal); }

.premio__numero {
    position: absolute;
    left: 50%;
    bottom: -8px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    font-family: var(--titulo);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: #2a1a05;
    background: radial-gradient(circle at 35% 30%, #fff 0, var(--metal) 40%, var(--metal-oscuro) 100%);
    border: 3px solid #0c0b10;
    border-radius: 46% 54% 50% 50% / 52% 48% 55% 45%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .55);
}

.premio__lugar {
    display: block;
    margin-top: 18px;
    font-family: var(--titulo);
    font-weight: 700;
    font-size: clamp(14px, 3.4vw, 16px);
    letter-spacing: .01em;
    color: var(--metal);
}

.premio__texto {
    display: block;
    margin-top: 2px;
    font-weight: 700;
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.35;
    color: var(--texto);
    overflow-wrap: anywhere;
}

.premio--oro .premio__texto {
    font-family: var(--titulo);
    font-weight: 800;
    font-size: clamp(42px, 12vw, 64px);
    line-height: 1.05;
    color: var(--brillo);
    text-shadow: 0 0 18px rgba(255, 200, 80, .45);
}

/* ---------- Formulario (marco de contorno irregular) ---------- */
.anuncio__marco {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.anuncio__campos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.anuncio__campo--ancho { grid-column: 1 / -1; }

.anuncio__campo label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 14px;
    color: var(--texto);
}

/* Recuadro con los datos para la transferencia */
.pago {
    margin-top: 18px;
    padding: 14px 16px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(246, 176, 90, .08), rgba(0, 0, 0, .25));
    box-shadow: inset 0 0 0 1px rgba(246, 176, 90, .3);
}

.pago__cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(246, 176, 90, .3);
}

.pago__titulo { font-family: var(--titulo); font-weight: 600; font-size: 15px; color: var(--oro); }

.pago__monto {
    flex: none;
    font-family: var(--titulo);
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
    color: var(--brillo);
}

.pago__datos { display: grid; gap: 6px; margin: 0; font-size: 14px; }
.pago__datos > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pago__datos dt { flex: none; color: var(--texto-suave); }
.pago__datos dd { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--texto); text-align: right; overflow-wrap: anywhere; }
.pago__numero { font-variant-numeric: tabular-nums; letter-spacing: .03em; }

.pago__copiar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--oro);
    background: rgba(246, 176, 90, .1);
    border: 1px solid rgba(246, 176, 90, .35);
    border-radius: 999px;
    cursor: pointer;
}

.pago__copiar svg { width: 13px; height: 13px; }
.pago__copiar:hover { background: rgba(246, 176, 90, .18); }
.pago__copiar:focus-visible { outline: 2px solid var(--calabaza); outline-offset: 2px; }

@media (max-width: 420px) {
    .pago__fila-numero { flex-wrap: wrap; }
}

/* Campo de archivo: caja punteada que muestra el nombre del archivo elegido */
.anuncio__archivo { margin-top: 14px; }

.anuncio__archivo input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.anuncio__archivo-caja {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    margin: 0 !important;
    padding: 10px 14px;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--texto-suave) !important;
    text-align: center;
    background: #121117;
    border: 2px dashed #4a4854;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    overflow-wrap: anywhere;
}

.anuncio__archivo-caja svg { flex: none; width: 22px; height: 22px; color: var(--oro); }
.anuncio__archivo-caja:hover,
.anuncio__archivo input:focus-visible + .anuncio__archivo-caja,
.anuncio__archivo-caja:has(+ input:focus-visible) { border-color: var(--calabaza); color: var(--texto) !important; }
.anuncio__archivo--listo .anuncio__archivo-caja { border-style: solid; border-color: var(--oro); color: var(--texto) !important; }
.anuncio__campo--error .anuncio__archivo-caja { border-color: var(--error); }

.anuncio__acepta { margin-top: 18px; }

.anuncio__acepta label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--texto);
    cursor: pointer;
}

.anuncio__acepta input {
    flex: none;
    appearance: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 2px solid #4a4854;
    border-radius: 7px;
    background: #121117;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.anuncio__acepta input::after {
    content: '';
    width: 6px;
    height: 11px;
    margin-top: -3px;
    border: solid #2b1400;
    border-width: 0 3px 3px 0;
    rotate: 45deg;
    scale: 0;
    transition: scale .15s;
}

.anuncio__acepta input:checked { border-color: var(--calabaza); background: linear-gradient(180deg, var(--brillo), var(--calabaza)); }
.anuncio__acepta input:checked::after { scale: 1; }
.anuncio__acepta input:focus-visible { outline: 3px solid var(--calabaza); outline-offset: 2px; }
.anuncio__acepta--error input { border-color: var(--error); }
.anuncio__acepta a { color: var(--oro); text-underline-offset: 3px; }

.anuncio__campo label small { font-weight: 500; font-size: 11px; color: var(--texto-suave); }

.anuncio__campo input,
.anuncio__campo select {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    font: inherit;
    font-size: 16px;
    color: var(--texto);
    background: rgba(8, 7, 11, .75);
    border: 2px solid #35333e;
    border-radius: 11px 15px 10px 14px / 14px 10px 15px 11px;
    outline: none;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45);
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}

.anuncio__campo select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f6b05a' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.anuncio__campo select option,
.anuncio__campo select optgroup { background: #121117; color: var(--texto); }
.anuncio__campo input::placeholder { color: #6b6887; }

.anuncio__campo input:focus,
.anuncio__campo select:focus { border-color: var(--calabaza); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45), 0 0 0 4px rgba(242, 140, 30, .18), 0 0 18px rgba(242, 140, 30, .25); }

.anuncio__campo--error input,
.anuncio__campo--error select { border-color: var(--error); }

.anuncio__error { margin: 5px 0 0; font-size: 13px; font-weight: 700; color: var(--error); }

.anuncio__boton {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-width: 210px;
    margin: 22px auto 0;
    padding: 10px 30px;
    font-family: var(--titulo);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: .02em;
    color: #3a1a00;
    text-shadow: 0 1px 0 rgba(255, 235, 170, .6);
    background: linear-gradient(180deg, var(--brillo), var(--calabaza) 55%, var(--calabaza-oscura));
    border: 0;
    border-radius: 14px 18px 13px 17px / 18px 13px 17px 14px;
    box-shadow: 0 5px 0 #6e3304, 0 0 0 2px #0c0b10, 0 12px 28px rgba(242, 140, 30, .35), inset 0 2px 0 rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, filter .12s;
}

.anuncio__boton:hover { filter: brightness(1.08); }
.anuncio__boton:active { transform: translateY(4px); box-shadow: 0 1px 0 #6e3304, 0 0 0 2px #0c0b10, 0 6px 16px rgba(242, 140, 30, .3), inset 0 2px 0 rgba(255, 255, 255, .4); }
.anuncio__boton:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.anuncio__boton svg { width: 20px; height: 20px; }

.anuncio__alerta {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px 14px 9px 13px;
    font-weight: 700;
    color: #ffd9d4;
    background: rgba(255, 122, 107, .12);
    border: 1px solid rgba(255, 122, 107, .4);
}

.anuncio__aviso { text-align: center; }
.anuncio__aviso svg { width: 96px; margin-bottom: 6px; filter: drop-shadow(0 0 20px rgba(255, 176, 60, .5)); }

.anuncio__aviso h4 {
    margin: 0 0 6px;
    font-family: var(--titulo);
    font-weight: 800;
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.15;
    color: var(--brillo);
}

.anuncio__aviso p { margin: 0 auto; max-width: 40ch; color: var(--texto-suave); }

/* Detallito bajo el "¡Listo!": aviso de que se le contactará con las indicaciones */
.anuncio__aviso .anuncio__aviso-nota {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 14px;
    font-size: 13px;
    color: #efd9b8;
    background: rgba(246, 176, 90, .08);
    border: 1px solid rgba(246, 176, 90, .25);
    border-radius: 999px;
}

.anuncio__aviso .anuncio__aviso-nota svg { flex: none; width: 16px; height: 16px; margin: 0; color: var(--oro); filter: none; }


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

@media (prefers-reduced-motion: reduce) {
    .anuncio *, .anuncio, .anuncio-lanzador, .gancho, .gancho * { animation: none !important; transition: none !important; }
}

/* ---------- Cielo de la página: estrellitas y murciélagos detrás del card ---------- */
.cielo {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.anuncio { z-index: 1; }

.cielo__astros { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Estrellas (círculos) y destellos (símbolo): mismas animaciones con ritmos distintos */
.cielo__estrella,
.cielo__destello {
    transform-box: fill-box;
    transform-origin: center;
    animation: cielo-titilar 5.5s ease-in-out infinite;
}

.cielo__estrella {
    fill: #fff;
    opacity: .15;
    filter: drop-shadow(0 0 3px rgba(210, 220, 255, .55));
}

.cielo__destello {
    fill: #eef0ff;
    opacity: .1;
    filter: drop-shadow(0 0 4px rgba(210, 220, 255, .7));
    animation-duration: 7s;
}

/* Duración y retraso se cruzan con ciclos distintos para que no titilen a la vez */
.cielo__astros > :nth-child(3n) { animation-duration: 3.8s; }
.cielo__astros > :nth-child(3n + 1) { animation-duration: 6.6s; }
.cielo__astros > :nth-child(4n) { animation-duration: 7.4s; }
.cielo__astros > :nth-child(5n + 1) { animation-delay: -1.2s; }
.cielo__astros > :nth-child(5n + 2) { animation-delay: -2.7s; }
.cielo__astros > :nth-child(5n + 3) { animation-delay: -4.1s; }
.cielo__astros > :nth-child(5n + 4) { animation-delay: -5.6s; }
.cielo__astros > :nth-child(7n) { animation-delay: -6.8s; }

@keyframes cielo-titilar {
    0%, 100% { opacity: .12; transform: scale(.85); }
    50% { opacity: .8; transform: scale(1); }
}

/* Murciélago: cruza la pantalla (vuelo), sube y baja suave (planeo) y aletea */
.cielo__vuelo {
    position: absolute;
    left: 0;
    animation: cielo-cruzar linear infinite;
    /* Mientras espera su primer vuelo se queda fuera de pantalla */
    animation-fill-mode: backwards;
}

.cielo__vuelo--izq { animation-name: cielo-cruzar-izq; }

/* Cada murciélago: altura, tamaño y cada cuánto aparece */
.cielo__vuelo--1 { top: 16%; animation-duration: 60s; animation-delay: 3s; }
.cielo__vuelo--1 .cielo__planeo { animation-delay: 1s; }
.cielo__vuelo--1 .cielo__murcielago { width: 34px; }
.cielo__vuelo--2 { top: 30%; animation-duration: 75s; animation-delay: 40s; }
.cielo__vuelo--2 .cielo__planeo { animation-delay: 13.3s; }
.cielo__vuelo--2 .cielo__murcielago { width: 28px; }

.cielo__planeo { animation: cielo-planear 4.5s ease-in-out infinite alternate; }

.cielo__murcielago {
    display: block;
    /* Silueta en sombra, sin brillo */
    fill: #050409;
    opacity: .7;
    animation: cielo-aletear .42s ease-in-out infinite alternate;
    transform-origin: 50% 40%;
}

.cielo__vuelo--izq .cielo__murcielago { scale: -1 1; }

/* Cruzan durante el primer 40% del ciclo; el resto del tiempo esperan fuera de pantalla */
@keyframes cielo-cruzar {
    0% { transform: translateX(-12vw); }
    40%, 100% { transform: translateX(112vw); }
}

@keyframes cielo-cruzar-izq {
    0% { transform: translateX(112vw); }
    40%, 100% { transform: translateX(-12vw); }
}

@keyframes cielo-planear {
    0% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-26px) rotate(2deg); }
    100% { transform: translateY(12px) rotate(-1deg); }
}

@keyframes cielo-aletear {
    from { transform: scaleY(1); }
    to { transform: scaleY(.55); }
}

@media (prefers-reduced-motion: reduce) {
    .cielo * { animation: none !important; }
    .cielo__vuelo { display: none; }
}

/* ===================== Gancho de la portada ===================== */
/* ---------- Anuncio de gancho (lo primero que se ve al entrar) ---------- */
.gancho {
    --ancho: min(400px, calc(100vw - 72px));
    --crema: #f6e7cf;
    --dorado: #ffc25a;
    width: var(--ancho);
    max-width: none;
    margin: auto;
    padding: 0;
    border: 0;
    color: var(--crema);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: transparent;
    overflow: visible;
}

.gancho::backdrop {
    background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 14, 30, .55), rgba(4, 6, 14, .88));
    backdrop-filter: blur(4px);
}

.gancho[open] { animation: gancho-entrar .55s cubic-bezier(.2, .9, .3, 1.2); }

@keyframes gancho-entrar {
    from { opacity: 0; transform: translateY(30px) scale(.9); }
    to { opacity: 1; transform: none; }
}

/* Card: fondo azul noche con borde dorado suave */
.gancho__card {
    position: relative;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 170, 60, .16), transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 45%, #1d3350, transparent 80%),
        linear-gradient(180deg, #15253a, #0e192a 70%, #0a1320);
    box-shadow:
        inset 0 0 0 1px rgba(246, 176, 90, .35),
        0 0 0 2px #070a12,
        0 30px 80px rgba(0, 0, 0, .75),
        0 0 90px rgba(255, 170, 60, .12);
}

.gancho__noche {
    position: relative;
    z-index: 1;
    padding: 60px 30px 36px;
    text-align: center;
}

/* Decoración ilustrada alrededor del arco (medidas relativas al ancho) */
.gancho__deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}

.gancho__deco--brilla { filter: drop-shadow(0 0 18px rgba(255, 150, 40, .65)) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }

.gancho__deco--rama-arco { width: 112%; left: -7%; top: calc(var(--ancho) * -.17); z-index: 3; }
.gancho__deco--rama-izq { width: 20%; left: -11%; top: 14%; z-index: 2; transform: rotate(2deg); }
.gancho__deco--rama-der { width: 16%; right: -7%; top: calc(var(--ancho) * -.06); z-index: 2; transform: rotate(-8deg); }
.gancho__deco--calabaza-grande { width: 38%; left: -17%; top: calc(var(--ancho) * -.2); z-index: 4; transform: rotate(-8deg); }
.gancho__deco--calabaza-colgante { width: 17%; left: 48%; top: calc(var(--ancho) * -.27); z-index: 4; animation: gancho-mecer 4s ease-in-out infinite; transform-origin: 50% 0; }
.gancho__deco--linterna { width: 12%; right: -5%; top: calc(var(--ancho) * .3); z-index: 3; animation: gancho-mecer 3.4s ease-in-out infinite; transform-origin: 50% 0; }

@keyframes gancho-mecer {
    0%, 100% { rotate: -4deg; }
    50% { rotate: 4deg; }
}

/* Luz de la linterna parpadeando */
.gancho__deco--linterna { animation: gancho-mecer 3.4s ease-in-out infinite, gancho-parpadeo 2.6s steps(1) infinite; }

@keyframes gancho-parpadeo {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 160, 50, .8)) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
    47% { filter: drop-shadow(0 0 12px rgba(255, 160, 50, .5)) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
    52% { filter: drop-shadow(0 0 24px rgba(255, 170, 60, .9)) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
}

.gancho__etiqueta {
    margin: 0;
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: #e6a456;
}

.gancho__separador {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto 0;
    width: 70%;
}

.gancho__separador::before,
.gancho__separador::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c98a3e);
}

.gancho__separador::after { background: linear-gradient(90deg, #c98a3e, transparent); }
.gancho__separador svg { width: 22px; height: 21px; filter: drop-shadow(0 0 6px rgba(255, 170, 60, .7)); }

.gancho__titulo {
    margin: 12px 0 0;
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.01em;
}

.gancho__titulo span {
    display: block;
    font-size: clamp(40px, 12vw, 58px);
    color: var(--crema);
    text-shadow: 0 0 26px rgba(255, 220, 170, .35);
}

.gancho__titulo strong {
    display: block;
    font-size: clamp(58px, 18vw, 88px);
    color: var(--dorado);
    background: linear-gradient(180deg, #ffe08a, #ffb347 55%, #f08a24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 0 #7a3a08) drop-shadow(0 0 22px rgba(255, 170, 60, .45));
}

.gancho__texto {
    margin: 14px auto 0;
    max-width: 28ch;
    font-size: 17px;
    line-height: 1.45;
    color: #d9dbe6;
    text-wrap: pretty;
}

.gancho__texto mark { background: none; color: var(--dorado); font-weight: 700; }

.gancho__boton {
    box-sizing: border-box;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
    padding: 15px 22px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #2b1400;
    background: linear-gradient(180deg, #ffd27a, #ffab3d 55%, #f08f25);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 0 #9a4f0e, 0 0 0 2px #0b0d16, 0 14px 30px rgba(255, 150, 40, .35), inset 0 2px 0 rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, filter .12s;
}

.gancho__boton:hover { filter: brightness(1.06); }
.gancho__boton:active { transform: translateY(3px); box-shadow: 0 1px 0 #9a4f0e, 0 0 0 2px #0b0d16, 0 8px 18px rgba(255, 150, 40, .3), inset 0 2px 0 rgba(255, 255, 255, .5); }
.gancho__boton:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.gancho__boton svg { width: 18px; height: 18px; }

.gancho__cerrar {
    position: absolute;
    top: calc(var(--ancho) * -.02);
    right: calc(var(--ancho) * -.14);
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #e8e2d4;
    background: rgba(10, 14, 24, .75);
    border: 2px solid #c98a3e;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.gancho__cerrar svg { width: 18px; height: 18px; }
.gancho__cerrar:hover { background: rgba(40, 30, 20, .9); transform: rotate(90deg); }
.gancho__cerrar:focus-visible { outline: 3px solid #f28c1e; outline-offset: 2px; }

@media (max-width: 480px) {
    .gancho__cerrar { right: -4px; top: calc(var(--ancho) * -.3); }
    .gancho__noche { padding: 54px 18px 28px; }
    .gancho__texto { font-size: 15px; }
}

/* ---------- Botón flotante para reabrir ---------- */
.anuncio-lanzador {
    text-decoration: none;
    position: fixed;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 8px;
    font-family: 'Kanit', 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
    color: #fff;
    background: linear-gradient(180deg, #2a2833, #17161d);
    border: 2px solid #f6b05a;
    border-radius: 999px 900px 999px 950px / 700px 999px 800px 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 24px rgba(242, 140, 30, .35);
    cursor: pointer;
    animation: anuncio-latir 2.4s ease-in-out infinite;
}

.anuncio-lanzador[hidden] { display: none; }
.anuncio-lanzador svg { width: 34px; height: 34px; }
.anuncio-lanzador:focus-visible { outline: 3px solid #f28c1e; outline-offset: 3px; }

@keyframes anuncio-latir {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .anuncio-lanzador, .gancho, .gancho * { animation: none !important; transition: none !important; }
}
