/* Inter y Playfair Display autoalojadas (SIL OFL 1.1). Sin peticiones a terceros. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/inter-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/playfair-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfair-700.woff2') format('woff2');
}
/* =============================================================
   Luna Confidente · Marketplace de tarotistas + chat propio
   con guiños sutiles a WhatsApp.
   ============================================================= */

:root {
    --brand: #7c3aed;            /* morado */
    --brand-2: #c026d3;          /* magenta */
    --brand-dark: #5b21b6;
    --accent: #d6409f;
    --bg: #f6f4fb;               /* lila muy claro */
    --card: #ffffff;
    --border: #ece8f3;
    --text: #2a2340;
    --muted: #7c7791;
    --star: #f5a623;
    --green: #22c55e;
    --orange: #f59e0b;
    --grey: #b8bcc4;
    --danger: #dc2626;
    --chat-bg: #f0ecf7;
    --bubble-in: #ffffff;
    --bubble-out: #e9dcff;       /* lavanda (guiño WhatsApp, tono del sitio) */
}

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

html, body { min-height: 100%; font-family: 'Inter', "Segoe UI", system-ui, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); }
body.in-chat { overflow: hidden; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
.link-btn { border: none; background: none; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ============ Avatares ============ */
.avatar {
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    flex-shrink: 0; position: relative;
}
/* La imagen se recorta en círculo por sí misma; así el contenedor no necesita
   overflow:hidden y el badge de estado puede sobresalir sin recortarse. */
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar-lg { width: 120px; height: 120px; font-size: 40px; margin: 0 auto; }

.status-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green { background: var(--green); }
.dot-orange { background: var(--orange); }
.dot-grey { background: var(--grey); }

/* ============ Cabecera del sitio ============ */
#site-header {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 10px rgba(80, 40, 120, 0.05);
}
body.in-chat #site-header { display: none; }
.brand { font-size: 18px; font-weight: 800; color: var(--brand-dark); letter-spacing: -.01em; }
.brand-logo { font-size: 20px; }
.header-right { display: flex; align-items: center; gap: 12px; position: relative; }
.pill-free { background: #e9f9ef; color: #158a45; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
#btn-settings { border: none; background: none; font-size: 22px; color: var(--muted); width: 38px; height: 38px; border-radius: 50%; }
#btn-settings:hover { background: var(--bg); }

.global-warning { background: #fff4e0; border-bottom: 1px solid #f0c36d; padding: 8px 22px; font-size: 13px; }

/* Menú */
.menu { position: absolute; top: 46px; right: 0; background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(40, 20, 60, 0.18); z-index: 60; overflow: hidden; min-width: 250px; }
.menu-item { display: block; width: 100%; text-align: left; border: none; background: none; padding: 13px 20px; font-size: 14.5px; color: var(--text); }
.menu-item:hover { background: var(--bg); }
.menu-danger { color: var(--danger); }

/* ============ Portada ============ */
.hero {
    text-align: center; color: #fff;
    /* Altura responsive: crece con el ancho para recortar lo mínimo la imagen
       (en pantallas anchas se ve casi entera, incluida la onda inferior). */
    padding: 54px 20px 64px;
    /* Imagen de cabecera como fondo (con el degradado morado de reserva por si
       no cargara). Tamaño original basado en el padding. */
    /* La ilustración se coloca un poco más abajo (posición vertical 35%) sin
       cambiar la altura del hero. */
    background:
        url('hero.png?v=1') center 35% / cover no-repeat,
        linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    /* Curva uniforme en TODO el borde inferior: arco de elipse. Los laterales
       siguen rectos y solo el fondo curva, de forma pareja (sin que las
       esquinas se redondeen más que el centro). */
    clip-path: ellipse(85% 100% at 50% 0%);
}
.hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(30, 0, 50, 0.55); }
.hero p { font-size: clamp(15px, 2vw, 18px); max-width: 620px; margin: 0 auto 22px; opacity: .95; line-height: 1.5; text-shadow: 0 1px 10px rgba(30, 0, 50, 0.55); }
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badges span { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25); padding: 8px 16px; border-radius: 22px; font-size: 14px; font-weight: 600; }

/* position/z-index para que las tarjetas queden POR ENCIMA del hero (el
   clip-path del hero crea un contexto de apilado y, sin esto, lo pintaría
   sobre las tarjetas que suben -32px para solaparse). */
.readers-wrap { max-width: 1220px; margin: -32px auto 0; padding: 0 20px 40px; position: relative; z-index: 1; }
.readers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid-loading { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 60px 0; }

/* Tarjeta de tarotista */
.reader-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 18px;
    padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: 0 6px 22px rgba(80, 40, 120, 0.07); cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease; text-align: center;
}
.reader-card { height: 100%; }   /* rellena la celda de la rejilla (misma altura por fila) */
.reader-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(80, 40, 120, 0.16); }
.card-top { display: flex; justify-content: center; }
.reader-photo { width: 96px; height: 96px; font-size: 32px; box-shadow: 0 4px 14px rgba(80, 40, 120, 0.18); }
.reader-photo .status-dot { position: absolute; bottom: 4px; right: 4px; width: 16px; height: 16px; border: 3px solid #fff; }
.card-name { font-size: 19px; font-weight: 700; }
.card-tagline { font-size: 13px; color: var(--brand); font-weight: 600; }
.card-rating { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 13.5px; }
.star { color: #dcd6e6; font-size: 15px; line-height: 1; }
.star.on { color: var(--star); }
.rating-num { font-weight: 700; margin-left: 4px; }
.rating-count { color: var(--muted); }
.card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.45; min-height: 38px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tag { background: #f3eefb; color: var(--brand-dark); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
/* margin-top:auto empuja el pie (estado + botón) al fondo, así el botón
   "Consultar / Ver conversación" queda siempre a la misma altura aunque los
   tags ocupen 1 o 2 líneas. */
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; font-size: 12.5px; }
.status-line { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.free-badge { background: #e9f9ef; color: #158a45; font-weight: 700; padding: 3px 10px; border-radius: 14px; }
.card-cta { margin-top: 6px; border: none; border-radius: 24px; padding: 11px; font-size: 14.5px; font-weight: 700; color: #fff; }
.cta-on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.cta-on:hover { filter: brightness(1.06); }
.cta-off { background: #ece8f3; color: #8a83a0; }

.site-legal { max-width: 900px; margin: 0 auto; padding: 20px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ============ Vista de chat ============ */
#chat-view { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--chat-bg); }
#chat-header {
    display: flex; align-items: center; gap: 12px; padding: 10px 18px; min-height: 64px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; z-index: 2;
}
.chat-avatar { width: 44px; height: 44px; font-size: 16px; border: 2px solid rgba(255,255,255,.5); cursor: pointer; }
.chat-header-info { flex: 1; min-width: 0; cursor: pointer; }
.chat-title { font-size: 16px; font-weight: 700; }
.chat-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .92; margin-top: 1px; }
.chat-sub .status-dot { border: 1px solid rgba(255,255,255,.6); }
.icon-btn { border: none; background: none; color: #fff; font-size: 24px; width: 40px; height: 40px; border-radius: 50%; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; text-align: center; }
.icon-btn svg { width: 22px; height: 22px; display: block; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }

#messages {
    flex: 1; overflow-y: auto; width: 100%; max-width: 900px; margin: 0 auto;
    padding: 22px 18px; display: flex; flex-direction: column; gap: 5px;
    background-image: radial-gradient(rgba(120, 80, 160, 0.05) 1.4px, transparent 1.4px);
    background-size: 24px 24px;
}
.msg { display: flex; margin-bottom: 2px; }
.msg .bubble {
    position: relative; max-width: 74%; padding: 9px 13px 9px; border-radius: 12px;
    font-size: 15px; line-height: 1.45; box-shadow: 0 1px 1.5px rgba(40, 20, 60, 0.12);
    white-space: pre-wrap; word-wrap: break-word;
}
.msg.in { justify-content: flex-start; }
.msg.in .bubble { background: var(--bubble-in); border-top-left-radius: 3px; }
.msg.out { justify-content: flex-end; }
.msg.out .bubble { background: var(--bubble-out); border-top-right-radius: 3px; }
.bubble .msg-time { display: inline-block; float: right; font-size: 11px; color: var(--muted); margin: 7px 0 0 10px; }

.chip-row { display: flex; justify-content: center; margin: 10px 0; }
.chip { background: rgba(124, 58, 237, 0.10); color: var(--brand-dark); font-size: 12.5px; padding: 6px 14px; border-radius: 14px; text-align: center; max-width: 80%; }
/* Puntos suspensivos animados del aviso "te atenderá en breve": van
   apareciendo . .. ... y vuelven a empezar. El contenedor reserva el ancho de
   "..." (con los puntos alineados a la izquierda) para que el texto no dé
   saltos mientras se anima. */
.wait-dots { display: inline-block; width: 1em; text-align: left; }
.wait-dots::after {
    content: '';
    animation: wait-ellipsis 1.5s steps(1, end) infinite;
}
@keyframes wait-ellipsis {
    0%       { content: ''; }
    25%      { content: '.'; }
    50%      { content: '..'; }
    75%, 100%{ content: '...'; }
}

.typing .bubble { display: flex; gap: 5px; align-items: center; padding: 13px 15px; }
.typing .dot { width: 7px; height: 7px; border-radius: 50%; background: #b0a6c4; animation: typing-bounce 1.2s infinite; }
.typing .dot:nth-child(2) { animation-delay: .15s; }
.typing .dot:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.bubble-image { padding: 5px; }
.bubble-image img { display: block; max-width: 260px; width: 100%; border-radius: 10px; cursor: pointer; }
.bubble-image .msg-time { float: none; display: block; text-align: right; margin: 4px 2px 0 0; }

.banner { text-align: center; font-size: 13px; padding: 10px 14px; }
.banner-blocked { background: #fff4e0; color: #8a6d1a; font-weight: 500; }

/* Barra de escritura: fondo blanco a todo el ancho; el input queda alineado
   con la columna de mensajes (máx. 900px, centrada). */
#composer { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border-top: 1px solid var(--border); padding: 12px max(18px, calc((100% - 900px) / 2 + 18px)); }
#msg-input { flex: 1; border: 1px solid var(--border); border-radius: 24px; padding: 13px 18px; font-size: 15px; outline: none; background: #faf9fd; }
#msg-input:focus { border-color: var(--brand); background: #fff; }
#msg-input:disabled { background: #efedf4; cursor: not-allowed; }
#btn-send { width: 48px; height: 48px; border: none; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 19px; flex-shrink: 0; }
#btn-send:hover:not(:disabled) { filter: brightness(1.07); }
#btn-send:disabled { background: #cfc8dc; cursor: not-allowed; }

/* ============ Ficha (panel lateral) ============ */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; background: var(--bg); z-index: 50; box-shadow: -6px 0 30px rgba(40, 20, 60, 0.2); display: flex; flex-direction: column; }
.panel-header { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 16px; font-weight: 600; }
.panel-body { flex: 1; overflow-y: auto; padding: 28px 24px; text-align: center; }
.panel-body h2 { margin: 16px 0 4px; font-size: 22px; }
.profile-tagline { color: var(--brand); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.profile-rating { font-size: 14px; margin-bottom: 10px; }
.profile-rating .star { font-size: 16px; }
.profile-status { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.profile-desc { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-bottom: 8px; }
.profile-section { text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.profile-label { font-size: 12px; color: var(--brand); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-avail { font-size: 14px; }
.btn-primary.wide { width: 100%; margin-top: 18px; }

/* ============ Modales ============ */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(30, 15, 45, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: #fff; border-radius: 16px; padding: 26px 24px; width: 100%; max-width: 380px; box-shadow: 0 16px 50px rgba(30, 15, 45, 0.35); }
.modal-card-lg { max-width: 520px; }
.modal-card h2 { font-size: 20px; margin-bottom: 10px; }
.modal-info { font-size: 14px; color: var(--muted); line-height: 1.5; }
.privacy-list { text-align: left; margin: 8px 0 4px 18px; display: flex; flex-direction: column; gap: 8px; }
.privacy-list li { font-size: 14px; line-height: 1.45; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-primary { border: none; border-radius: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; padding: 11px 24px; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { border: 1px solid var(--border); border-radius: 24px; background: #fff; color: var(--text); padding: 11px 20px; }
.btn-danger { border: none; border-radius: 24px; background: var(--danger); color: #fff; font-weight: 700; padding: 11px 20px; }
.btn-danger:hover { filter: brightness(1.05); }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #2a1e3a; color: #fff; font-size: 13.5px; padding: 12px 22px; border-radius: 10px; box-shadow: 0 8px 26px rgba(30, 15, 45, 0.4); z-index: 400; max-width: 90vw; display: none; }

.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.86); display: none; align-items: center; justify-content: center; z-index: 350; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 10px; }

/* ============ Reseñas (panel de perfil) ============ */
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-item { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.review-item .review-stars .star { color: #dcd6e6; font-size: 13px; }
.review-item .review-stars .star.on { color: var(--star); }
.review-comment { font-size: 14px; color: var(--text); margin-top: 4px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.review-date { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.review-note { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.review-stars-input { display: flex; gap: 5px; font-size: 27px; margin-bottom: 10px; }
.review-stars-input .rstar { color: #dcd6e6; cursor: pointer; line-height: 1; transition: color .1s ease; }
.review-stars-input .rstar.on { color: var(--star); }
.review-textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; line-height: 1.4; resize: vertical; margin-bottom: 10px; background: #fff; color: var(--text); }
.review-textarea:focus { outline: none; border-color: var(--brand); }
.review-feedback { font-size: 13px; margin-top: 8px; line-height: 1.4; }
.review-feedback.ok { color: #158a45; }
.review-feedback.err { color: var(--danger); }

/* ============ Responsive ============ */
@media (max-width: 640px) {
    /* En móvil la curva del hero resulta excesiva: borde inferior recto. */
    .hero { padding: 40px 18px 52px; clip-path: none; }
    .readers-grid { grid-template-columns: 1fr; }
    #messages { padding: 16px 12px; }
    .msg .bubble { max-width: 84%; }
    .panel { width: 100%; }
}

/* ============================================================
   Apoyar el proyecto + Libro de apoyo
   El Libro es un bloque permanente de la portada (columna derecha
   en escritorio); el modal es solo la capa de acción.
   Paleta cálida: marfil, lila suave, morado y rosa muy claro.
   ============================================================ */
:root {
    --sup-ivory:  #ffffff;   /* blanco limpio, como la maqueta */
    --sup-cream:  #f8f6ff;   /* lavanda muy claro */
    --sup-lilac:  #faf5ff;
    --sup-lilac2: #f4ecfe;
    --sup-line:   #e9e3fa;   /* borde lavanda */
    --sup-ink:    #4a4363;   /* texto principal */
    --sup-soft:   #7b7396;   /* texto secundario */
    --sup-violet: #6d28d9;
    --sup-deep:   #4c1d95;
    --sup-radius: 16px;      /* esquinas suaves, no pastilla */
    --sup-shadow: 0 10px 34px rgba(93, 63, 165, .10);
}

/* --- Botón de la cabecera --- */
.support-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--sup-deep); border: 1.5px solid #e6dbfb;
    border-radius: 24px; padding: 9px 17px; font: inherit; font-size: 14px; font-weight: 700;
    box-shadow: 0 3px 12px rgba(109, 40, 217, .10); cursor: pointer; text-decoration: none;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.support-btn:hover { background: #fdfaff; box-shadow: 0 6px 18px rgba(109, 40, 217, .16); transform: translateY(-1px); }
.support-btn:active { transform: translateY(0); }
.support-btn svg { width: 17px; height: 17px; color: #d946a6; flex-shrink: 0; }
.support-btn-short { display: none; }

/* ============ Portada en dos columnas ============ */
/* El contenedor se ensancha lo que ocupa el Libro (248 + 20), para que la
   rejilla de tarotistas conserve su ancho de siempre y siga con 4 tarjetas
   por fila: el Libro se añade A LA DERECHA, no ocupa el sitio de una tarjeta. */
.landing-cols {
    max-width: 1488px; margin: -32px auto 0; padding: 0 20px 44px;
    display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 20px;
    align-items: start; position: relative; z-index: 1;
}
.landing-cols .readers-wrap { max-width: none; margin: 0; padding: 0; }

/* ============ Panel del Libro de apoyo ============ */
/* Adosado al lateral de las tarjetas: más estrecho y con menos peso visual que
   ellas (fondo casi transparente, sombra mínima), para no robarles el foco. */
.support-book-panel {
    position: relative;          /* acompaña al scroll de la página, sin fijarse */
    background: #fff; border: 1px solid var(--sup-line); border-radius: 18px;
    padding: 16px 15px 0; box-shadow: 0 3px 14px rgba(94, 48, 160, .06);
}
.book-panel-head { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 2px; }
.book-head-icon { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; margin-top: -2px; }
.book-panel-head h2 { font-size: 14.5px; font-weight: 800; color: var(--sup-deep); letter-spacing: -.01em; margin-bottom: 3px; }
.book-panel-head p { font-size: 11.8px; color: var(--sup-soft); line-height: 1.5; }

.support-book-list { display: flex; flex-direction: column; }
.support-book-empty { font-size: 12.4px; color: var(--sup-soft); line-height: 1.55; padding: 12px 2px; }

.support-sig { display: flex; align-items: flex-start; gap: 9px; padding: 11px 1px; border-top: 1px solid var(--sup-line); }
.support-book-list .support-sig:first-child { border-top: none; padding-top: 8px; }
.sig-av {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    color: #fff; font-size: 11.5px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.sig-body { flex: 1; min-width: 0; }
.sig-name { font-size: 12.8px; font-weight: 700; color: var(--sup-deep); word-break: break-word; line-height: 1.3; }
.sig-msg {
    font-size: 12.2px; color: var(--sup-ink); line-height: 1.5; margin-top: 3px; word-break: break-word;

}
.sig-date { font-size: 10.8px; color: var(--sup-soft); margin-top: 4px; }
.sig-heart { color: #a78bfa; font-size: 12px; flex-shrink: 0; line-height: 1.5; }
.sig-badge { display: inline-block; font-size: 10px; font-weight: 800; color: var(--sup-violet); background: #f3ebfe; border-radius: 8px; padding: 3px 8px; margin-left: 8px; letter-spacing: .03em; vertical-align: 1px; }

.support-book-all {
    display: block; text-align: center; margin-top: 12px; padding: 9px 14px;
    background: #fff; border: 1.5px solid #e4dcf8; border-radius: 12px;
    color: var(--sup-violet); font-size: 12.4px; font-weight: 700; text-decoration: none;
    transition: background .18s ease, box-shadow .18s ease;
}
.support-book-all:hover { background: var(--sup-lilac); box-shadow: 0 4px 14px rgba(109, 40, 217, .12); }

/* Cierre emocional del panel: franja inferior, no un texto suelto */
.book-panel-foot {
    margin: 14px -15px 0; padding: 13px 14px 15px; text-align: center;
    background: #f7f4ff;
    border-top: 1px solid var(--sup-line); border-radius: 0 0 17px 17px;
}
.foot-heart { width: 26px; height: 26px; object-fit: contain; display: block; margin: 0 auto 5px; }
.book-panel-foot p { font-size: 12px; font-weight: 600; color: var(--sup-deep); line-height: 1.45; margin-bottom: 9px; }
.foot-cta {
    border: none; border-radius: 11px; padding: 9px 17px; font: inherit; font-size: 12.2px; font-weight: 700;
    color: #fff; background: #6d3fc4; cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, .24); transition: filter .18s ease, transform .18s ease;
}
.foot-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ============ Modal ============ */
/* Se alinea arriba y hace scroll el propio overlay: con align-items:center, un
   contenido más alto que la pantalla recorta la cabecera sin poder llegar. */
/* scrollbar-gutter: reserva el hueco de la barra a AMBOS lados; si no, cuando
   el modal es más alto que la pantalla, la barra lo descentra unos 7 px. */
#support-modal { align-items: flex-start; overflow-y: auto; scrollbar-gutter: stable both-edges; background: rgba(46, 26, 71, .5); }
#support-modal .support-wrap { margin: auto; display: flex; justify-content: center; width: 100%; }

.support-card {
    position: relative; width: 100%; max-width: 620px;
    background: var(--sup-ivory); border-radius: 24px; padding: 34px 34px 30px;
    box-shadow: 0 30px 80px rgba(46, 26, 71, .34);
    background-image: radial-gradient(520px 240px at 100% 0%, rgba(217, 70, 166, .045), transparent 72%);
}
.support-x {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; border: none; background: #f5efff;
    color: var(--sup-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.support-x:hover { background: var(--sup-lilac2); color: var(--sup-deep); }
.support-x svg { width: 17px; height: 17px; display: block; }

.support-head { display: flex; align-items: flex-start; gap: 14px; padding-right: 44px; }
.support-head-icon { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; margin-top: -5px; }
.support-card h2 { font-size: 26px; font-weight: 800; color: var(--sup-deep); margin-bottom: 7px; letter-spacing: -.015em; line-height: 1.2; }
.support-sub { font-size: 15px; color: var(--sup-soft); line-height: 1.55; }

.support-note {
    display: flex; align-items: center; gap: 15px; margin-top: 22px;
    background: #f7f4ff;
    border: 1px solid var(--sup-line); border-radius: 20px; padding: 18px 20px;
}
.support-note-icon { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; margin: -4px 0 -4px -4px; }
.support-note p { font-size: 14px; color: var(--sup-ink); line-height: 1.65; }

.support-h { font-size: 15.5px; font-weight: 700; color: var(--sup-deep); margin: 26px 0 13px; }

/* --- Importes --- */
.support-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.amount-opt {
    position: relative; background: #fff; border: 1.5px solid var(--sup-line); border-radius: 14px;
    padding: 17px 6px; font: inherit; font-size: 16.5px; font-weight: 700; color: var(--sup-ink);
    cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.amount-opt:hover { border-color: #dbc9f8; background: #fdfaff; transform: translateY(-1px); }
.amount-opt.on { border-color: #8b5cf6; background: #f8f2ff; color: var(--sup-deep); box-shadow: 0 6px 18px rgba(139, 92, 246, .18); }
.amount-pencil { color: var(--sup-soft); font-weight: 400; font-size: 13.5px; }
.amount-tag {
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff;
    font-size: 9.5px; font-weight: 800; padding: 3px 9px; border-radius: 8px;
    letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    box-shadow: 0 3px 9px rgba(124, 58, 237, .3);
}
.support-custom { margin-top: 16px; }
.support-custom label { display: block; font-size: 13px; font-weight: 600; color: var(--sup-soft); margin-bottom: 7px; }
.amount-field { display: flex; align-items: center; gap: 8px; border: 1.5px solid #e4dcf8; border-radius: 13px; padding: 0 16px; background: #fff; transition: border-color .18s ease; }
.amount-field:focus-within { border-color: #8b5cf6; }
.amount-field input { flex: 1; border: none; outline: none; padding: 13px 0; font: inherit; font-size: 16px; color: var(--sup-ink); background: none; }
.amount-field span { color: var(--sup-soft); font-weight: 700; }
.support-hint { font-size: 12.8px; color: var(--sup-soft); margin-top: 8px; line-height: 1.5; }

/* --- Qué recibe el colaborador --- */
.support-perks {
    margin-top: 24px; background: #fbfaff;
    border: 1px solid var(--sup-line); border-radius: 20px; padding: 22px 20px 24px;
}
.support-perks h3 { font-size: 15px; font-weight: 700; color: var(--sup-deep); margin-bottom: 18px; text-align: center; }
.support-perks ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
.support-perks li {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
    font-size: 12.8px; color: var(--sup-ink); line-height: 1.5;
}
.perk-icon { width: 48px; height: 48px; object-fit: contain; }

/* --- Firma --- */
.support-sign {
    position: relative; overflow: hidden; margin-top: 22px;
    background: #f8f5ff;
    border: 1px solid var(--sup-line); border-radius: 20px; padding: 22px 22px 20px;
}
.sign-illus { position: absolute; right: 8px; bottom: 2px; width: 122px; height: auto; opacity: .7; pointer-events: none; }
.support-sign h3 { font-size: 15px; font-weight: 700; color: var(--sup-deep); margin-bottom: 7px; }
.sign-intro { font-size: 13.2px; color: var(--sup-soft); line-height: 1.6; margin-bottom: 4px; max-width: 80%; }
.support-sign label { display: block; font-size: 13px; font-weight: 600; color: var(--sup-soft); margin: 14px 0 6px; }
.support-optional { font-weight: 500; }
.support-sign input[type=text], .support-sign textarea {
    width: 100%; border: 1.5px solid #e4dcf8; border-radius: 13px; padding: 13px 15px;
    font: inherit; font-size: 15px; color: var(--sup-ink); background: #fff; resize: vertical; position: relative;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.support-sign input::placeholder, .support-sign textarea::placeholder { color: #b3a6bc; }
.support-sign input[type=text]:focus, .support-sign textarea:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
.support-counter { text-align: right; font-size: 11.8px; color: var(--sup-soft); margin-top: 6px; }
.support-check { display: flex; align-items: center; gap: 10px; font-size: 13.8px; color: var(--sup-ink); font-weight: 500; margin: 12px 0 0; cursor: pointer; position: relative; line-height: 1.4; }
.support-check input { width: 18px; height: 18px; accent-color: #7c3aed; flex-shrink: 0; }

.support-secure { text-align: center; font-size: 12.6px; color: var(--sup-soft); margin-top: 20px; line-height: 1.5; }
.support-error { margin-top: 16px; background: #fdeef2; color: #b4174a; border-radius: 14px; padding: 13px 16px; font-size: 13.5px; line-height: 1.5; }

#support-modal .btn-primary.wide {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-top: 18px; padding: 16px 24px; font-size: 16.5px; font-weight: 700;
    border-radius: 14px; background: #6d3fc4;
    box-shadow: 0 10px 26px rgba(124, 58, 237, .32); transition: filter .18s ease, transform .18s ease;
}
#support-modal .btn-primary.wide:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cta-heart { width: 19px; height: 19px; color: #fff; flex-shrink: 0; }
.support-legal { text-align: center; font-size: 12.6px; color: var(--sup-soft); margin-top: 13px; }

/* El modal va CENTRADO en la pantalla, no respecto a las tarjetas. El Libro
   queda a su derecha (atenuado por el velo, como el resto de la página).
   En la franja 1081-1180 px el modal y el Libro llegarían a tocarse, así que
   ahí se estrecha un poco la tarjeta en vez de descentrarla. */
@media (min-width: 1081px) and (max-width: 1180px) {
    .support-card { max-width: 560px; }
}

.support-thanks-card { text-align: center; max-width: 430px; border-radius: 26px; padding: 32px 28px; }
.support-thanks-card h2 { font-size: 22px; color: var(--sup-deep); line-height: 1.3; }
.support-thanks-card .modal-info { color: var(--sup-ink); line-height: 1.6; }
.support-thanks-card .modal-actions { justify-content: center; flex-wrap: wrap; }
.support-thanks-card .btn-secondary { text-decoration: none; display: inline-block; }
.thanks-illus { width: 88px; height: 88px; object-fit: contain; display: block; margin: 0 auto 10px; }

body.no-scroll { overflow: hidden; }

#support-modal :focus-visible, #support-thanks :focus-visible, .support-btn:focus-visible, .foot-cta:focus-visible {
    outline: 3px solid rgba(139, 92, 246, .45); outline-offset: 2px; border-radius: 12px;
}

/* ============ Página completa del Libro de apoyo ============ */
.book-page { max-width: 720px; margin: 0 auto; padding: 28px 18px 64px; }
.book-head { text-align: center; margin-bottom: 28px; }
.book-illus { width: 118px; height: auto; object-fit: contain; display: block; margin: 0 auto 8px; }
.book-head h1 { font-size: 28px; font-weight: 800; color: var(--sup-deep); margin: 8px 0 10px; letter-spacing: -.015em; }
.book-head p { color: var(--sup-soft); font-size: 15px; line-height: 1.6; }
.book-list {
    background: var(--sup-ivory); border: 1px solid var(--sup-line); border-radius: 24px;
    padding: 10px 24px; box-shadow: var(--sup-shadow);
}
.book-list .support-sig:first-child { border-top: none; }
.book-back { display: inline-flex; align-items: center; gap: 6px; color: var(--sup-violet); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.book-pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.book-pager a { padding: 11px 20px; background: #fff; border: 1.5px solid #e6dbfb; border-radius: 24px; color: var(--sup-violet); text-decoration: none; font-size: 14px; font-weight: 600; }
.book-pager a:hover { background: var(--sup-lilac); }
.book-pager span { color: var(--sup-soft); font-size: 13px; }
.book-cta { text-align: center; margin-top: 32px; }
.book-cta .support-book-all { display: inline-block; padding: 13px 26px; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
    /* El Libro pasa debajo de las tarjetas, en versión reducida. */
    .landing-cols { grid-template-columns: 1fr; gap: 22px; max-width: 1220px; }
    .support-book-panel { max-width: 560px; margin: 0 auto; width: 100%; }
    .support-book-list .support-sig:nth-child(n+4) { display: none; }
    #support-modal { padding-right: 16px; }
}
@media (max-width: 640px) {
    .support-btn { padding: 8px 14px; font-size: 13.5px; }
    .support-btn-long { display: none; }
    .support-btn-short { display: inline; }
    .landing-cols { padding: 0 14px 34px; }
    .support-book-panel { padding: 20px 18px 0; border-radius: 22px; }
    .book-panel-foot { margin: 18px -18px 0; padding: 16px 18px 18px; border-radius: 0 0 21px 21px; }
    .modal-overlay { padding: 12px; }
    #support-modal { padding-right: 12px; }
    .support-card { border-radius: 24px; padding: 26px 20px 24px; }
    .support-card h2 { font-size: 22px; }
    .support-head-icon { width: 42px; height: 42px; }
    .support-note { padding: 16px; gap: 12px; }
    .support-note-icon { width: 48px; height: 48px; }
    .support-amounts { grid-template-columns: repeat(2, 1fr); }
    /* Con 3 ventajas en 2 columnas, la última quedaba suelta a la izquierda:
       ocupa toda la fila y así queda centrada. */
    .support-perks ul { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    .support-perks li:last-child { grid-column: 1 / -1; }
    .sign-intro { max-width: 100%; }
    .sign-illus { display: none; }
    .support-x { top: 12px; right: 12px; }
    .book-head h1 { font-size: 24px; }
    .book-list { padding: 6px 16px; border-radius: 20px; }
}

/* ============ Tipografía como la maqueta ============
   Serif de display en los títulos grandes, Inter en el resto de la interfaz.
   No se aplica a todos los h2 del sitio: solo a los títulos protagonistas. */
.hero h1,
.support-card h2,
.support-thanks-card h2,
.book-panel-head h2,
.book-head h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0;
}
.support-card h2 { font-size: 28px; line-height: 1.22; }
.book-panel-head h2 { font-size: 16px; }
.book-head h1 { font-size: 30px; }
.support-h, .support-perks h3, .support-sign h3 { letter-spacing: -.005em; }

/* ============================================================
   "Apoyar a la tarotista" (solo dentro del chat)
   Sistema independiente del apoyo al proyecto: estilos propios,
   prefijo .rsup-. Comparte la paleta, nada más.
   ============================================================ */

/* --- Botón flotante sobre el campo de escritura --- */
.rsup-float {
    position: absolute; left: 0; right: 0; bottom: 90px; z-index: 6;   /* 73px de barra + aire */
    display: flex; justify-content: center; pointer-events: none; padding: 0 12px;
}
.rsup-float.hidden { display: none; }
.rsup-btn {
    pointer-events: auto; display: inline-flex; align-items: center; gap: 11px;
    border: none; border-radius: 999px; padding: 10px 20px 10px 17px; cursor: pointer;
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%); color: #fff; font: inherit;
    box-shadow: 0 8px 26px rgba(124, 58, 237, .34); max-width: 100%;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.rsup-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 58, 237, .42); filter: brightness(1.04); }
.rsup-btn:active { transform: translateY(0); }
.rsup-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.rsup-btn-texts { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; min-width: 0; }
.rsup-btn-main { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.rsup-btn-sub { font-size: 11.5px; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }

/* Hueco para que el botón no tape el último mensaje */
#chat-view.with-rsup #messages { padding-bottom: 100px; }

/* --- Modal propio --- */
#rsup-modal { align-items: flex-start; overflow-y: auto; scrollbar-gutter: stable both-edges; background: rgba(46, 26, 71, .5); }
.rsup-card {
    position: relative; margin: auto; width: 100%; max-width: 560px;
    background: #fff; border-radius: 24px; padding: 30px 30px 26px;
    box-shadow: 0 30px 80px rgba(46, 26, 71, .34);
    background-image: radial-gradient(460px 220px at 100% 0%, rgba(192, 38, 211, .05), transparent 72%);
}
.rsup-head { display: flex; align-items: center; gap: 15px; padding-right: 44px; }
.rsup-avatar { width: 62px; height: 62px; flex-shrink: 0; }
.rsup-avatar .avatar-img, .rsup-avatar img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.rsup-head-txt { min-width: 0; }
.rsup-card h2 {
    font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
    font-size: 24px; color: var(--sup-deep); line-height: 1.22; margin-bottom: 6px;
}
.rsup-sub { font-size: 14px; color: var(--sup-soft); line-height: 1.55; }

.rsup-note {
    display: flex; align-items: center; gap: 14px; margin-top: 20px;
    background: #f7f4ff; border: 1px solid var(--sup-line); border-radius: 18px; padding: 16px 18px;
}
.rsup-note img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; margin: -4px 0 -4px -4px; }
.rsup-note p { font-size: 13.6px; color: var(--sup-ink); line-height: 1.6; }
.rsup-optional { font-size: 12.6px; color: var(--sup-soft); line-height: 1.5; margin-top: 10px; text-align: center; }

.rsup-h { font-size: 15px; font-weight: 700; color: var(--sup-deep); margin: 22px 0 12px; }
.rsup-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rsup-amount {
    position: relative; background: #fff; border: 1.5px solid var(--sup-line); border-radius: 14px;
    padding: 15px 6px; font: inherit; font-size: 16px; font-weight: 700; color: var(--sup-ink);
    cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.rsup-amount:hover { border-color: #dbc9f8; background: #fdfaff; }
.rsup-amount.on { border-color: #8b5cf6; background: #f8f2ff; color: var(--sup-deep); box-shadow: 0 6px 18px rgba(139, 92, 246, .18); }

.rsup-words { margin-top: 20px; background: #f8f5ff; border: 1px solid var(--sup-line); border-radius: 18px; padding: 20px; }
.rsup-words h3 { font-size: 15px; font-weight: 700; color: var(--sup-deep); margin-bottom: 4px; }
.rsup-words label { display: block; font-size: 13px; font-weight: 600; color: var(--sup-soft); margin: 13px 0 6px; }
.rsup-words input[type=text], .rsup-words textarea {
    width: 100%; border: 1.5px solid #e4dcf8; border-radius: 13px; padding: 12px 14px;
    font: inherit; font-size: 15px; color: var(--sup-ink); background: #fff; resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.rsup-words input::placeholder, .rsup-words textarea::placeholder { color: #b3a6bc; }
.rsup-words input[type=text]:focus, .rsup-words textarea:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
.rsup-privacy { font-size: 12px; color: var(--sup-soft); line-height: 1.5; margin-top: 12px; }

#rsup-modal .btn-primary.wide {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-top: 18px; padding: 15px 24px; font-size: 16px; font-weight: 700;
    border-radius: 14px; background: #6d3fc4; box-shadow: 0 10px 24px rgba(109, 63, 196, .3);
}
#rsup-modal .btn-primary.wide:hover { filter: brightness(1.06); }
#rsup-modal :focus-visible, .rsup-btn:focus-visible {
    outline: 3px solid rgba(139, 92, 246, .45); outline-offset: 2px; border-radius: 12px;
}

@media (max-width: 640px) {
    /* Versión compacta: sin subtexto, para no comerse la pantalla ni tapar
       el campo de escritura. */
    .rsup-float { bottom: 84px; }
    .rsup-btn { padding: 9px 16px; gap: 8px; }
    .rsup-btn-main { font-size: 13.5px; max-width: 62vw; }
    .rsup-btn-sub { display: none; }
    #chat-view.with-rsup #messages { padding-bottom: 92px; }
    .rsup-card { border-radius: 20px; padding: 24px 18px 22px; }
    .rsup-card h2 { font-size: 21px; }
    .rsup-avatar, .rsup-avatar .avatar-img, .rsup-avatar img { width: 52px; height: 52px; }
    .rsup-amounts { grid-template-columns: repeat(2, 1fr); }
    .rsup-words { padding: 16px; }
}

/* Aviso de modo de prueba (visible en los dos modales mientras esté activo) */
.test-mode-note {
    margin-top: 16px; background: #fff7e6; border: 1px solid #f5dfae; color: #8a5a00;
    border-radius: 12px; padding: 11px 14px; font-size: 12.8px; line-height: 1.5; text-align: center;
}
.rsup-hint-inline { font-size: 11.8px; color: var(--sup-soft); margin-top: 6px; line-height: 1.45; }

/* --- Pantalla de vuelta desde el pago ---
   Stripe devuelve a index.php y el chat se abre después por JS. Sin esto se
   vería la portada un instante y luego el salto al chat. */
body.rsup-returning #app, body.rsup-returning .modal-overlay { visibility: hidden; }
.rsup-return {
    position: fixed; inset: 0; z-index: 500; background: var(--bg);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.rsup-return-card { text-align: center; max-width: 320px; }
.rsup-return-av {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px;
    box-shadow: 0 10px 30px rgba(94, 48, 160, .22);
}
.rsup-return-card p { font-size: 15px; color: var(--sup-ink); line-height: 1.5; }
.rsup-return-card strong { color: var(--sup-deep); }
.rsup-return-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.rsup-return-dots span {
    width: 7px; height: 7px; border-radius: 50%; background: #b9a4ea;
    animation: rsupDot 1.1s infinite ease-in-out;
}
.rsup-return-dots span:nth-child(2) { animation-delay: .15s; }
.rsup-return-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes rsupDot { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }

/* ============================================================
   Diseño «Luna Confidente» (21/11/2026)
   Portada nueva: cabecera, hero lunar, filtros, tarjetas, panel de
   apoyo con citas, «cómo empezar» y pie. Clases con prefijo .lc- para
   no chocar con el chat ni con los modales. Debajo, la paleta del resto
   de la web se suaviza al mismo violeta.
   ============================================================ */
:root {
    --lc-ink: #292235; --lc-muted: #665e72; --lc-purple: #684394; --lc-purple-dark: #4f2e77;
    --lc-line: #e8e2ee; --lc-paper: #faf9fc; --lc-soft: #f0ebf6; --lc-gold: #dbbd87; --lc-green: #287052;
    --lc-serif: Georgia, 'Times New Roman', serif;
    --lc-sans: 'Segoe UI', 'Inter', system-ui, Arial, sans-serif;

    /* Paleta general (chat, perfil y modales) al violeta del diseño */
    --brand: #684394; --brand-2: #8a63ad; --brand-dark: #4f2e77; --accent: #a5658f;
    --bg: #faf9fc; --border: #e8e2ee; --text: #292235; --muted: #665e72;
    --star: #a5742c; --green: #398362;
    --chat-bg: #f3eff8; --bubble-out: #ece3f6;
    --sup-violet: #684394; --sup-deep: #4f2e77; --sup-ink: #4b3f59; --sup-soft: #665e72; --sup-line: #e8e2ee;
}
body { background: var(--lc-paper); }
.lc-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.lc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lc-landing, .lc-header { font-family: var(--lc-sans); color: var(--lc-ink); line-height: 1.6; }
.lc-landing button:focus-visible, .lc-landing a:focus-visible, .lc-header button:focus-visible, .lc-header a:focus-visible { outline: 3px solid #ad84cf; outline-offset: 5px; }
.lc-landing svg, .lc-header svg { display: block; }

/* --- Cabecera --- */
#site-header.lc-header { position: static; display: block; padding: 0; background: var(--lc-paper); border: 0; box-shadow: none; }
.lc-topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lc-brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--lc-ink); }
.lc-brand-icon { color: var(--lc-purple); width: 38px; height: 44px; }
.lc-brand-name { font-family: var(--lc-serif); font-size: 25px; letter-spacing: -.8px; line-height: 1.2; }
.lc-brand-name span { display: block; font: 11px/1.8 var(--lc-sans); letter-spacing: 3px; text-transform: uppercase; color: var(--lc-muted); }
.lc-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.lc-nav-link { text-decoration: none; color: var(--lc-ink); }
.lc-nav-link:hover { color: var(--lc-purple); }
.lc-support-link { border: 1px solid var(--lc-line); background: transparent; color: var(--lc-ink); padding: 10px 18px; border-radius: 30px; display: flex; align-items: center; gap: 9px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.lc-support-link:hover { background: var(--lc-soft); }
.lc-support-link svg { width: 16px; height: 16px; color: var(--lc-purple); }
.lc-nav .header-right { margin-left: -14px; }

/* --- Hero --- */
.lc-hero { background: #30233f; color: #fff; position: relative; overflow: hidden; }
.lc-hero:before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, #70577d55, transparent 55%); pointer-events: none; }
.lc-hero-inner { min-height: 370px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; position: relative; }
.lc-hero-copy { padding: 48px 0 50px; z-index: 1; }
.lc-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2.8px; text-transform: uppercase; color: var(--lc-gold); display: flex; gap: 12px; align-items: center; margin: 0 0 18px; }
.lc-eyebrow:before { content: ""; height: 1px; width: 28px; background: var(--lc-gold); }
.lc-hero h1 { font-family: var(--lc-serif); font-size: clamp(36px, 4.2vw, 54px); line-height: 1.13; font-weight: 400; letter-spacing: -1.5px; margin: 0 0 20px; }
.lc-hero h1 em { color: #e0c5ed; font-weight: 400; }
.lc-hero-description { color: #e5deec; font-size: 16px; max-width: 500px; line-height: 1.75; margin: 0; }
.lc-benefits { display: flex; gap: 24px; margin-top: 27px; flex-wrap: wrap; font-size: 13px; color: #f1eaf6; }
.lc-benefits span { display: flex; gap: 8px; align-items: center; }
.lc-benefits svg { width: 15px; height: 15px; color: var(--lc-gold); }
.lc-moon-art { height: 342px; width: 100%; color: var(--lc-gold); opacity: .9; align-self: center; }
.lc-hero-bottom { height: 5px; background: linear-gradient(90deg, #9c7dbb55, #d6b98caa, #9c7dbb55); }

/* --- Sección de tarotistas --- */
.lc-main { padding-top: 42px; padding-bottom: 56px; }
.lc-section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.lc-section-head h2, .lc-aside h2 { font: 400 32px/1.2 var(--lc-serif); letter-spacing: -.5px; margin: 0 0 8px; color: var(--lc-ink); }
.lc-section-head p { color: var(--lc-muted); margin: 0; font-size: 15px; }
.lc-section-note { font-size: 12px; color: var(--lc-muted); text-align: right; white-space: nowrap; }
.lc-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.lc-filter { font: inherit; font-size: 14px; padding: 8px 18px; border-radius: 24px; background: transparent; border: 1px solid var(--lc-line); color: var(--lc-muted); transition: background .15s; }
.lc-filter:hover { background: var(--lc-soft); }
.lc-filter[aria-pressed=true] { background: var(--lc-purple); color: #fff; border-color: var(--lc-purple); }
.lc-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 238px; gap: 28px; align-items: start; }
.lc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lc-grid .grid-loading { grid-column: 1/-1; padding: 40px 0; }

/* --- Tarjeta --- */
.lc-card { background: #fff; border: 1px solid var(--lc-line); border-radius: 16px; padding: 25px 21px 20px; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 3px 7px #37214803; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.lc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px #34203f0c; }
.lc-avatar-wrap { position: relative; width: 82px; height: 82px; margin-bottom: 18px; }
.lc-avatar { width: 82px; height: 82px; font-size: 28px; outline: 1px solid var(--lc-line); outline-offset: 4px; }
.lc-online-dot { position: absolute; width: 14px; height: 14px; bottom: 2px; right: 3px; border: 3px solid #fff; border-radius: 100%; z-index: 1; }
.lc-online-dot.dot-green { background: #398362; }
.lc-online-dot.dot-orange { background: #c58b2e; }
.lc-online-dot.dot-grey { background: #b9b2c2; }
.lc-card h3 { font: 400 25px/1.25 var(--lc-serif); letter-spacing: -.5px; margin: 0 0 5px; }
.lc-speciality { font-size: 14px; color: var(--lc-purple-dark); font-weight: 600; min-height: 21px; margin: 0 0 10px; }
.lc-rating { font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--lc-muted); margin-bottom: 15px; }
.lc-rating .lc-star { color: #a5742c; font-size: 17px; line-height: 1; }
.lc-rating b { color: var(--lc-ink); font-weight: 600; }
.lc-description { font-size: 16px; line-height: 1.7; color: var(--lc-muted); margin: 0 0 18px; min-height: 72px; }
.lc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; margin-bottom: 21px; min-height: 26px; }
.lc-tag { font-size: 12px; background: #f4f0f8; color: #5b4472; border-radius: 5px; padding: 3px 8px; }
.lc-card-bottom { border-top: 1px solid #f0ecf3; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 12px; gap: 8px; }
.lc-status { color: var(--lc-green); }
.lc-status.offline { color: var(--lc-muted); }
.lc-free { color: var(--lc-green); font-weight: 600; }
.lc-consult { width: 100%; background: var(--lc-purple); color: #fff; border: 1px solid var(--lc-purple); font: inherit; font-size: 14px; font-weight: 600; padding: 11px 8px; border-radius: 8px; transition: background .15s; }
.lc-consult:hover { background: var(--lc-purple-dark); }
.lc-consult.secondary { background: #fff; color: var(--lc-purple); border-color: #dcd1e9; }
.lc-consult.secondary:hover { background: var(--lc-soft); }
.lc-show-more { display: block; margin: 26px auto 0; border: 1px solid #d8cce3; border-radius: 8px; background: transparent; color: var(--lc-purple-dark); padding: 11px 24px; font: inherit; font-size: 14px; }
.lc-show-more:hover { background: var(--lc-soft); }

/* --- Panel de apoyo --- */
.lc-aside { border: 1px solid var(--lc-line); border-radius: 16px; background: #f3eff8; overflow: hidden; }
.lc-aside-top { padding: 25px 22px 18px; }
.lc-aside-symbol { color: var(--lc-purple); width: 30px; height: 30px; margin-bottom: 17px; }
.lc-aside h2 { font-size: 23px; line-height: 1.2; margin-bottom: 10px; }
.lc-aside-intro { font-size: 16px; color: var(--lc-muted); line-height: 1.7; margin: 0; }
.lc-testimonials { padding: 0 22px; }
.lc-quote { padding: 19px 0; border-top: 1px solid #e2d9ec; margin: 0; }
.lc-quote p { font-family: var(--lc-serif); font-size: 16px; line-height: 1.6; margin: 0 0 10px; color: #4b3f59; word-break: break-word; }
.lc-quote cite { font-style: normal; font-size: 12px; color: var(--lc-muted); display: flex; gap: 8px; align-items: center; word-break: break-word; }
.lc-quote cite:before { content: ""; width: 16px; height: 1px; background: #b9a7cb; flex-shrink: 0; }
.lc-quote-empty { font-size: 14px; color: var(--lc-muted); border-top: 1px solid #e2d9ec; padding: 16px 0; margin: 0; }
.lc-aside-bottom { padding: 0 22px 23px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lc-aside-bottom button, .lc-aside-bottom a { font: inherit; font-size: 13px; color: var(--lc-purple-dark); text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; padding: 0; }
.lc-quiet-note { font-size: 12px; line-height: 1.7; color: var(--lc-muted); text-align: center; margin: 18px 8px 0; }

/* --- Cómo empezar y pie --- */
.lc-how { margin-top: 48px; border-top: 1px solid var(--lc-line); padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 38px; }
.lc-how-item { display: flex; gap: 13px; }
.lc-how-item svg { height: 23px; width: 23px; color: var(--lc-purple); flex-shrink: 0; margin-top: 4px; }
.lc-how h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.lc-how p { font-size: 13px; color: var(--lc-muted); line-height: 1.7; margin: 0; }
.lc-footer { border-top: 1px solid var(--lc-line); padding: 27px 0; background: #fff; }
.lc-footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.lc-footer p { font-size: 12px; line-height: 1.8; color: var(--lc-muted); margin: 0; max-width: 700px; }
.lc-footer button { font: inherit; font-size: 12px; border: 0; background: none; color: var(--lc-purple-dark); padding: 8px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* --- Libro de apoyo (página) con la cabecera nueva --- */
.book-page { font-family: var(--lc-sans); }
.book-head h1 { font-family: var(--lc-serif); font-weight: 400; color: var(--lc-ink); }
.sig-av { background: linear-gradient(135deg, var(--lc-purple-dark), var(--lc-purple)); }

/* --- Responsive (como la maqueta) --- */
@media (min-width: 1450px) {
    .lc-wrap { max-width: 1360px; }
    .lc-hero-inner { min-height: 395px; }
    .lc-card { padding: 27px 24px 22px; }
    .lc-content-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
    .lc-description { min-height: 66px; }
}
@media (max-width: 1100px) {
    .lc-content-layout { grid-template-columns: minmax(0, 1fr) 215px; gap: 20px; }
    .lc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lc-hero-inner { grid-template-columns: 1.4fr 1fr; }
    .lc-hero-description { max-width: 440px; }
    .lc-moon-art { height: 290px; }
    .lc-benefits { gap: 15px; }
    .lc-nav { gap: 20px; }
}
@media (max-width: 760px) {
    .lc-wrap { padding: 0 22px; }
    .lc-topbar { height: 80px; }
    .lc-brand-name { font-size: 23px; }
    .lc-nav-link { display: none; }
    .lc-support-link { padding: 9px 12px; font-size: 12px; }
    .lc-nav .header-right { margin-left: -10px; }
    .lc-hero-inner { min-height: 365px; display: block; }
    .lc-hero-copy { padding: 42px 0; max-width: 550px; }
    .lc-moon-art { position: absolute; right: -110px; top: 0; width: 350px; height: 350px; opacity: .13; pointer-events: none; }
    .lc-hero h1 { font-size: 43px; max-width: 490px; }
    .lc-hero-description { font-size: 15px; position: relative; max-width: 420px; }
    .lc-benefits { font-size: 12px; gap: 18px; }
    .lc-content-layout { grid-template-columns: 1fr; }
    .lc-aside { margin-top: 16px; }
    .lc-aside-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-bottom: 20px; }
    .lc-aside-symbol { margin: 0; width: 25px; height: 25px; }
    .lc-aside h2 { margin: 0; font-size: 23px; }
    .lc-aside-intro { width: 100%; margin-top: 8px; }
    .lc-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .lc-quote p { font-size: 15px; }
    .lc-quote { padding-top: 15px; }
    .lc-aside-bottom { padding-top: 5px; }
    .lc-quiet-note { display: none; }
    .lc-how { gap: 22px; }
    .lc-section-note { display: none; }
    .lc-footer-inner { align-items: start; }
    .lc-section-head { margin-bottom: 20px; }
    .lc-main { padding-top: 32px; }
    .lc-filter-row { gap: 7px; }
    .lc-filter { padding: 7px 15px; font-size: 13px; }
}
@media (max-width: 480px) {
    .lc-wrap { padding: 0 20px; }
    .lc-brand-icon { width: 28px; height: 36px; }
    .lc-brand { gap: 9px; }
    .lc-brand-name { font-size: 21px; }
    .lc-brand-name span { font-size: 9px; letter-spacing: 2.6px; }
    .lc-support-link { border: none; padding: 8px 0; gap: 6px; }
    .lc-support-link .lc-long { display: none; }
    .lc-nav { gap: 14px; }
    .lc-nav .header-right { margin-left: 0; }
    .lc-hero-copy { padding: 37px 0 34px; }
    .lc-hero-inner { min-height: 0; }
    .lc-eyebrow { font-size: 10px; letter-spacing: 2.1px; }
    .lc-hero h1 { font-size: 38px; letter-spacing: -1px; margin-bottom: 18px; }
    .lc-hero-description { font-size: 15px; max-width: 330px; }
    .lc-benefits { gap: 13px; row-gap: 10px; font-size: 11px; margin-top: 23px; }
    .lc-benefits svg { width: 13px; height: 13px; }
    .lc-section-head h2 { font-size: 29px; }
    .lc-section-head p { font-size: 14px; }
    .lc-grid { grid-template-columns: 1fr; gap: 16px; }
    .lc-card { padding: 23px; display: grid; grid-template-columns: 72px 1fr; column-gap: 19px; align-items: start; }
    .lc-avatar-wrap { grid-row: 1/4; width: 68px; height: 68px; margin: 5px 0 0; }
    .lc-avatar { width: 68px; height: 68px; }
    .lc-card h3 { font-size: 26px; }
    .lc-speciality { font-size: 14px; margin: 2px 0 4px; }
    .lc-rating { margin: 0 0 18px; }
    .lc-description { grid-column: 1/-1; min-height: 0; margin: 0 0 16px; font-size: 15px; }
    .lc-tags { grid-column: 1/-1; margin-bottom: 16px; min-height: 0; }
    .lc-card-bottom { grid-column: 1/-1; margin-bottom: 12px; font-size: 13px; }
    .lc-consult { grid-column: 1/-1; padding: 12px; font-size: 15px; }
    .lc-testimonials { grid-template-columns: 1fr; gap: 0; }
    .lc-testimonials .lc-quote:nth-child(3) { display: none; }
    .lc-how { grid-template-columns: 1fr; gap: 20px; margin-top: 35px; }
    .lc-how h3 { font-size: 15px; }
    .lc-how p { font-size: 14px; }
    .lc-footer-inner { display: block; }
    .lc-footer button { padding: 12px 0 0; }
    .lc-filter-row { margin-bottom: 23px; }
    .lc-show-more { width: 100%; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .lc-card, .lc-filter, .lc-consult { transition: none !important; }
}

/* Tics de leído (como WhatsApp) y "escribiendo…" en la cabecera del chat */
.bubble .msg-time .ticks { display: inline-flex; align-items: center; margin-left: 4px; vertical-align: -1px; }
.bubble .msg-time .ticks svg { height: 11px; width: 16px; }
.bubble .msg-time .ticks-sent svg { width: 12px; }
.bubble .msg-time .ticks-sent, .bubble .msg-time .ticks-delivered { color: #8c8496; }
.bubble .msg-time .ticks-read { color: #34a5e0; }
#chat-sub.is-typing { font-style: italic; }

/* Pie: «Aviso de privacidad» y «Cookies» juntos (22/11/2026) */
.lc-footer-links { display: flex; gap: 6px; flex-shrink: 0; }
