/* Pancho Villa — portada "Cartel revolucionario" (index.view.php) */
@import url('https://fonts.googleapis.com/css2?family=Rye&display=swap');

body.pancho-villa-portada {
    --pv-cafe: #3A2A1C;
    --pv-cafe-b: #47331d; /* texto secundario: más oscuro para mejor legibilidad sobre el papel */
    --pv-papel: #F4EFE1;
    --pv-papel-b: #e9e0c8;
    --pv-rojo: #8B2E1F;
    --pv-oro: #C8A24A;
    --pv-verde: #3F7A4D;
    background: #F4EFE1;
    background-image: radial-gradient(rgba(58, 42, 28, 0.06) 1px, transparent 1.5px);
    background-size: 6px 6px;
}
.pv-portada { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem 2rem; color: var(--pv-cafe); font-family: 'Lato', sans-serif; }
.pv-portada h2, .pv-titulo, .pv-cartel-titulo, .pv-timbre, .pv-recompensa b { font-family: 'Rye', 'Playfair Display', serif; font-weight: 400; }
html:has(.pv-portada), html:has(.pv-portada) body { overflow-x: clip; }

/* ---------- Botón principal: boleto de rifa ---------- */
.pv-btn-boleto { --c: var(--pv-rojo, #8B2E1F); display: inline-flex; align-items: center; min-height: 56px; padding: 0 1.7rem 0 1.2rem; background: var(--c); color: #fff; font-family: 'Lato', sans-serif; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; transition: filter 0.15s ease, transform 0.15s ease;
    -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.pv-btn-boleto:hover { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.12); transform: translateY(-2px); filter: drop-shadow(0 6px 10px rgba(58,42,28,.28)); }
.pv-btn-boleto:active { transform: translateY(0); filter: none; }
.pv-talon { display: grid; place-items: center; align-self: stretch; margin-right: 0.9rem; padding: 0 0.9rem 0 0.4rem; border-right: 2px dashed rgba(255, 255, 255, 0.6); font-size: 1.1rem; }

/* ---------- Botón secundario: sello "Se busca" ---------- */
/* Sello de goma: doble marco y estrellas; se "entinta" al pasar el dedo (sin motas blancas) */
.pv-btn-sello { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 54px; padding: 0 1.6rem; border: 3px solid #8B2E1F; border-radius: 6px; background: rgba(139, 46, 31, 0.05); box-shadow: inset 0 0 0 3px #F4EFE1, inset 0 0 0 5px #8B2E1F; color: #8B2E1F; font-family: 'Rye', serif; font-size: 1.12rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.pv-btn-sello::before, .pv-btn-sello::after { content: '★'; font-family: 'Lato', sans-serif; font-size: 0.7rem; }
.pv-btn-sello:hover { background: #8B2E1F; color: #F4EFE1; box-shadow: inset 0 0 0 3px #8B2E1F, inset 0 0 0 5px #F4EFE1; transform: translateY(-2px); }
.pv-btn-sello:active { transform: translateY(0); }
.pv-btn-ancho { width: 100%; }

/* ---------- Héroe ---------- */
.pv-heroe { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2.5rem; padding: 2.2rem 0 1.8rem; }
.pv-sello-marca { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem; border: 2px dashed var(--pv-rojo); color: var(--pv-rojo); font-weight: 900; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; transform: rotate(-2deg); }
.pv-heroe h2 { margin: 1rem 0 0.8rem; color: var(--pv-cafe); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.03; text-shadow: 3px 3px 0 var(--pv-papel-b); }
.pv-bajada { max-width: 30rem; color: var(--pv-cafe-b); font-size: 1.2rem; }
.pv-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 1.8rem; }

/* Cartel clavado en la pared */
.pv-cartel { top: 0; position: relative; display: block; padding: 1.5rem 1.5rem 1.3rem; border: 2px solid #c9b88f; background: #f8f1dc; background-image: radial-gradient(ellipse at 20% 10%, rgba(139, 46, 31, 0.07), transparent 50%), radial-gradient(ellipse at 90% 90%, rgba(58, 42, 28, 0.08), transparent 45%); color: var(--pv-cafe); text-align: center; text-decoration: none; box-shadow: 0 25px 45px rgba(58, 42, 28, 0.28); transform: rotate(1.5deg); transition: top 0.25s ease; }
.pv-cartel:hover { top: -4px; }
.pv-cartel::before, .pv-cartel::after { content: ''; position: absolute; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ccc, #555); }
.pv-cartel::before { left: 12px; }
.pv-cartel::after { right: 12px; }
.pv-cartel-titulo { display: block; margin: 0.4rem 1.2rem 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.pv-cartel-foto { display: block; border: 4px solid var(--pv-cafe); background: var(--pv-cafe); }
.pv-cartel-foto img { filter: sepia(0.12); }
.pv-recompensa { position: absolute; right: -22px; top: 44%; display: grid; place-items: center; width: 122px; height: 122px; border: 4px double #f3d9a0; border-radius: 50%; background: var(--pv-rojo); color: #fff; text-align: center; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); transform: rotate(-12deg); }
.pv-recompensa small { display: block; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.pv-recompensa b { font-size: 1.45rem; }

.pv-avance { display: block; margin-top: 0.9rem; text-align: left; }
.pv-avance-fila { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; font-weight: 900; }
.pv-barra { display: block; height: 14px; margin-top: 0.3rem; border: 2px solid var(--pv-cafe); background: var(--pv-papel-b); }
.pv-barra > span { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--pv-rojo) 0 8px, #a63a28 8px 16px); }
.pv-cierre { display: block; margin-top: 0.5rem; color: var(--pv-cafe-b); font-size: 0.85rem; font-weight: 700; }
.pv-paquetes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-top: 0.8rem; }
.pv-paquetes > span { padding: 0.2rem 0.7rem; border: 1px solid #c9b88f; background: #fffaf0; color: var(--pv-cafe-b); font-size: 0.8rem; font-weight: 700; }
.pv-paquetes b { color: var(--pv-verde); }

/* ---------- Tarjetas de rifa ---------- */
.pv-titulo { margin: 2.4rem 0 1.4rem; color: var(--pv-cafe); font-size: clamp(2rem, 4.4vw, 2.6rem); text-align: center; }
.pv-titulo::after { content: '★ ★ ★'; display: block; margin-top: 0.3rem; color: var(--pv-rojo); font-family: 'Lato', sans-serif; font-size: 0.9rem; letter-spacing: 0.5em; }
.pv-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.pv-tarjetas:has(> :only-child) { max-width: 520px; margin: 0 auto; }
.pv-tarjeta { display: flex; flex-direction: column; border: 2px solid var(--pv-cafe); background: #fffaf0; box-shadow: 8px 8px 0 var(--pv-papel-b); }
/* Foto completa (sin recortes) sobre fondo difuminado; todas las tarjetas del mismo alto */
.pv-tarjeta-foto { position: relative; display: block; overflow: hidden; border-bottom: 2px solid var(--pv-cafe); background: var(--pv-cafe); }
.pv-tarjeta-foto::before { content: ''; position: absolute; inset: -20px; background: var(--pv-fondo, none) center / cover; filter: blur(16px) brightness(0.7); }
.pv-tarjeta-foto .carousel { aspect-ratio: 4 / 3 !important; max-width: none !important; }
.pv-timbre { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 0.3rem 0.7rem; border: 2px dashed var(--pv-rojo); background: var(--pv-papel); color: var(--pv-rojo); font-size: 1.15rem; }
.pv-quedan { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 0.3rem 0.7rem; background: var(--pv-rojo); color: #fff; font-size: 0.9rem; font-weight: 900; }
.pv-tarjeta-cuerpo { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; padding: 1.1rem 1.2rem 1.4rem; }
.pv-tarjeta h4 { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.pv-tarjeta h4 a { color: var(--pv-cafe); text-decoration: none; }
.pv-tarjeta p { margin: 0; color: var(--pv-cafe-b); font-size: 0.92rem; }
.pv-tarjeta .pv-paquetes { justify-content: flex-start; margin: 0; }
.pv-tarjeta .pv-btn-sello { margin-top: auto; }
.pv-tarjeta .pv-avance { margin-top: 0; }
.pv-tarjeta-foto .vista-contador { font-size: 0.85rem; }
.pv-vacio { padding: 2.5rem 1rem; text-align: center; color: var(--pv-cafe-b); }
.pv-vacio i { font-size: 2.4rem; color: var(--pv-rojo); }

/* ---------- Preguntas ---------- */
.pv-faqs-lista { max-width: 860px; margin: 0 auto; border: 2px solid var(--pv-cafe); background: #fffaf0; }
.pv-faq { margin: 0 !important; padding: 0 !important; border-top: 1px dashed #c9b88f; }
.pv-faq:first-child { border-top: 0; }
.pv-faq .faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 1.1rem 1.3rem; border: 0 !important; border-radius: 0 !important; background: transparent; }
.pv-faq .faq-question h4 { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--pv-cafe); }
.pv-faq .faq-question i { color: var(--pv-rojo); }
.pv-faq .faq-question.active { background: var(--pv-papel-b); }
.pv-faq .faq-answer-content { padding: 0.9rem 1.3rem 1.2rem; color: var(--pv-cafe-b); line-height: 1.6; }
.pv-sin-faqs, .pv-faqs-lista .no-faqs { padding: 2rem 1rem; text-align: center; }

/* ---------- Pie ---------- */
.pv-pie { margin-top: 3.5rem; padding: 0; background: #3A2A1C; color: #F4EFE1; text-align: center; font-family: 'Lato', sans-serif; }
.pv-pie-interior { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; padding: 2.2rem 1.5rem 2.4rem; }
.pv-pie-copy { color: #c9b88f; font-size: 0.85rem; }
.pv-pie-contacto, .pv-pie-redes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1.4rem; }
.pv-pie a { color: #F4EFE1; text-decoration: none; }
.pv-pie a:hover { color: #C8A24A; }
.pv-pie .vista-redes-titulo { flex-basis: 100%; color: #C8A24A; font-family: 'Rye', serif; font-size: 1.1rem; }

/* ---------- Barra fija de compra (solo celular) ---------- */
.pv-barra-fija { display: none; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
    .pv-heroe { grid-template-columns: 1fr; gap: 2.4rem; }
    .pv-cartel { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 640px) {
    .pv-portada { padding: 0 1rem 1.5rem; }
    .pv-heroe { padding-top: 2rem; }
    .pv-acciones .pv-btn-boleto { width: 100%; justify-content: center; }
    .pv-acciones .pv-btn-sello { width: 100%; }
    .pv-cartel { transform: none; padding: 1.2rem 1rem 1.1rem; }
    .pv-recompensa { right: -6px; width: 96px; height: 96px; }
    .pv-recompensa b { font-size: 1.15rem; }
    .pv-barra-fija { transform: translateY(110%); transition: transform 0.25s ease; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem calc(0.55rem + env(safe-area-inset-bottom)); border-top: 3px solid #C8A24A; background: #3A2A1C; }
    .pv-barra-fija > span { min-width: 0; color: #F4EFE1; font-size: 0.8rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pv-barra-fija b { display: block; color: #C8A24A; font-size: 1rem; }
    .pv-barra-fija .pv-btn-boleto { flex: 0 0 auto; min-height: 48px; margin-left: auto; padding-right: 1.2rem; font-size: 0.8rem; }
    .pv-barra-fija.is-visible { transform: none; }
    body.pancho-villa-portada { padding-bottom: 76px; }
}
