/* Cita de Terciopelo — estilos compartidos de todas las pantallas */
:root {
    --burdeo-profundo: #1f050b;
    --carmesi: #8c1a2e;
    --carmesi-hover: #a32238;
    --crema: #f3e6d8;
    --crema-88: rgba(243, 230, 216, 0.88);
    --crema-80: rgba(243, 230, 216, 0.8);
    --crema-75: rgba(243, 230, 216, 0.75);
    --linea: rgba(243, 230, 216, 0.15);
    --linea-fuerte: rgba(243, 230, 216, 0.3);
    --rosa: #e9b8a8;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--crema);
    font-family: var(--sans);
    background-color: var(--burdeo-profundo);
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-image:
        linear-gradient(rgba(20, 3, 7, 0.84), rgba(20, 3, 7, 0.93)),
        url('/images/terciopelo.jpg');
}

body.fondo-abierto {
    background-image:
        radial-gradient(ellipse 80% 55% at 50% 40%, rgba(20, 3, 7, 0.78), rgba(20, 3, 7, 0.45) 80%),
        url('/images/terciopelo.jpg');
}

body.fondo-foco {
    background-image:
        radial-gradient(ellipse 90% 50% at 50% 22%, rgba(20, 3, 7, 0.55), rgba(20, 3, 7, 0.92) 85%),
        url('/images/terciopelo.jpg');
}

a { color: var(--rosa); }
a:hover { color: var(--crema); }
button { font: inherit; color: inherit; cursor: pointer; }

.pagina {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Encabezados */
.barra { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.barra-izq { display: flex; align-items: center; gap: 8px; }
.volver {
    display: flex; width: 44px; height: 44px; margin-left: -12px;
    align-items: center; justify-content: center; color: var(--crema);
}
.marca { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.marca em, .titulo em { color: var(--rosa); font-weight: 500; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crema-80); }
.titulo { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; font-weight: 600; }
.titulo-grande { font-size: clamp(2.25rem, 10vw, 3rem); line-height: 1.05; }
.texto { font-size: 0.9rem; line-height: 1.5; color: var(--crema-88); }
.nota { font-size: 0.75rem; line-height: 1.5; color: var(--crema-75); text-align: center; }
.cita-texto { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.35; }
.centro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empuja { margin-top: auto; }
.pila { display: flex; flex-direction: column; gap: 10px; }
.fila { display: flex; gap: 10px; }
.fila > * { flex: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* Tarjetas */
.tarjeta {
    padding: 16px; border-radius: 14px;
    background: rgba(243, 230, 216, 0.06); border: 1px solid var(--linea);
}
.tarjeta-activa { background: rgba(140, 26, 46, 0.3); border-color: var(--carmesi); }
.tarjeta-pendiente { border: 1px dashed var(--linea-fuerte); background: transparent; }
.dato { font-size: 0.75rem; color: var(--crema-80); }
.cifra { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--rosa); line-height: 1.2; }

/* Botones */
.boton, .boton-sec, .boton-borde {
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 18px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
    transition: background 0.2s;
}
.boton { background: var(--carmesi); color: var(--crema); border: 0; }
.boton:hover { background: var(--carmesi-hover); color: var(--crema); }
.boton-sec { background: transparent; color: var(--crema); border: 1px solid var(--linea-fuerte); font-weight: 500; }
.boton-sec:hover { background: rgba(243, 230, 216, 0.08); color: var(--crema); }
.boton-borde { background: transparent; color: var(--rosa); border: 1px solid var(--rosa); font-size: 0.9rem; }
.boton-chico { min-height: 44px; font-size: 0.875rem; }
.enlace { background: none; border: 0; min-height: 44px; color: var(--rosa); text-decoration: underline; font-size: 0.875rem; }

/* Opciones elegibles */
.opcion {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
    padding: 16px 18px; border-radius: 14px; text-align: left;
    border: 1px solid rgba(243, 230, 216, 0.2); background: rgba(243, 230, 216, 0.05);
    font-size: 0.95rem; font-weight: 500;
}
.opcion[aria-pressed="true"] { border-color: var(--rosa); background: rgba(140, 26, 46, 0.4); font-weight: 600; }
.opcion small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--crema-80); margin-top: 2px; }
.opcion .precio { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.opcion-frase { font-family: var(--serif); font-style: italic; font-size: 1.2rem; font-weight: 500; line-height: 1.35; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 8px 12px; border-radius: 999px; background: rgba(243, 230, 216, 0.08); border: 1px solid rgba(243, 230, 216, 0.18); font-size: 0.8rem; }

/* Fotos ocultas (silueta difuminada) */
.foto {
    border-radius: 50%; overflow: hidden; flex-shrink: 0;
}
.foto::before {
    content: ""; display: block; width: 100%; height: 100%; transform: scale(1.25);
    background:
        radial-gradient(circle at 50% 36%, #e9b8a8 0 20%, transparent 21%),
        radial-gradient(ellipse 40% 30% at 50% 92%, #b87a6c 0 99%, transparent 100%),
        linear-gradient(160deg, #5a1a28, #22060c);
    filter: blur(var(--difuminado, 14px));
}
.silueta {
    width: 96px; height: 96px; border-radius: 50%;
    border: 1px solid var(--linea-fuerte);
    background:
        radial-gradient(circle at 50% 38%, var(--crema) 0 18%, transparent 19%),
        radial-gradient(ellipse 34% 26% at 50% 88%, var(--crema) 0 99%, transparent 100%),
        rgba(243, 230, 216, 0.08);
    filter: blur(12px); opacity: 0.6;
    animation: revelar 6s ease-in-out infinite alternate;
}
@keyframes revelar { 0% { filter: blur(14px); opacity: 0.5; } 100% { filter: blur(3px); opacity: 0.9; } }

.icono-texto { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; line-height: 1.45; }
.icono-texto svg { flex-shrink: 0; margin-top: 1px; }
.paso { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 600; font-size: 0.875rem; }
.paso-listo { background: var(--rosa); color: var(--burdeo-profundo); }
.paso-actual { border: 2px solid var(--rosa); color: var(--rosa); }
.paso-pendiente { border: 1px solid rgba(243, 230, 216, 0.45); color: var(--crema-80); }
.codigo { text-align: center; padding: 14px; border-radius: 10px; background: rgba(20, 3, 7, 0.6); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.2em; }

.progreso { height: 4px; border-radius: 4px; background: rgba(243, 230, 216, 0.15); }
.progreso > div { height: 4px; border-radius: 4px; background: var(--rosa); }
.segmentos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.segmentos span { height: 4px; border-radius: 4px; background: rgba(243, 230, 216, 0.18); }
.segmentos span.on { background: var(--rosa); }

/* Interruptores (casillas) */
.interruptor { display: flex; gap: 14px; align-items: center; cursor: pointer; }
.interruptor input { width: 22px; height: 22px; accent-color: var(--rosa); flex-shrink: 0; }
.interruptor strong { display: block; font-size: 0.9rem; }
.interruptor span span { display: block; font-size: 0.75rem; color: var(--crema-80); margin-top: 2px; }

/* Chat */
.chat { padding: 0; gap: 0; }
.chat-cabeza { padding: 18px 16px 14px; border-bottom: 1px solid var(--linea); background: rgba(20, 3, 7, 0.5); display: flex; flex-direction: column; gap: 12px; }
.chat-mensajes { flex-grow: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.burbuja { max-width: 78%; padding: 10px 14px; font-size: 0.9rem; line-height: 1.45; }
.burbuja-otro { align-self: flex-start; background: rgba(243, 230, 216, 0.1); border-radius: 16px 16px 16px 4px; }
.burbuja-yo { align-self: flex-end; background: var(--carmesi); border-radius: 16px 16px 4px 16px; }
.aviso { align-self: center; max-width: 92%; display: flex; gap: 10px; align-items: center; margin: 6px 0; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(233, 184, 168, 0.45); background: rgba(140, 26, 46, 0.25); font-size: 0.8rem; line-height: 1.4; }
.consejo { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(243, 230, 216, 0.06); font-size: 0.75rem; line-height: 1.45; color: var(--crema-80); }
.chat-pie { padding: 12px 16px 20px; border-top: 1px solid var(--linea); background: rgba(20, 3, 7, 0.55); display: flex; flex-direction: column; gap: 10px; }
.escribir { display: flex; gap: 8px; }
.escribir input { flex-grow: 1; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(243, 230, 216, 0.25); background: rgba(243, 230, 216, 0.06); color: var(--crema); font: 400 0.9rem var(--sans); }
.escribir input::placeholder { color: var(--crema-75); }
.redondo { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--carmesi); color: var(--crema); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Menú inferior */
.menu {
    position: sticky; bottom: 0; margin: auto -24px -28px; padding: 10px 24px 14px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--linea); background: rgba(20, 3, 7, 0.85);
}
.menu a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; font-size: 0.7rem; text-decoration: none; color: var(--crema-80); }
.menu a[aria-current="page"] { color: var(--rosa); }

@media (prefers-reduced-motion: reduce) {
    .silueta { animation: none; filter: blur(8px); opacity: 0.7; }
}
