/* ==========================================================================
   FASE 2 · INICIO INTELIGENTE (UX)
   - Banner principal más compacto: el contenido aparece sin tener que bajar
   - Carrusel "Continuar leyendo" (tarjetas horizontales, Dark Luxury)
   Se carga después de los demás CSS; no modifica los archivos base.
   ========================================================================== */

/* ---------- Banner (hero) compacto ---------- */
.hero-slider {
    height: 340px;
    margin-bottom: 1.5rem;
}
.hero-slide { padding: 2.5rem 4rem; }
.hero-content h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    margin-bottom: 0.7rem;
}
.hero-content p {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.4rem;
}
.hero-btn { padding: 0.7rem 1.8rem; }

@media (max-width: 900px) {
    .hero-slider { height: 280px; }
    .hero-slide { padding: 1.8rem 1.5rem; }
}
@media (max-width: 600px) {
    .hero-slider { height: 230px; margin-bottom: 1rem; }
    .hero-slide { padding: 1.2rem; }
    .hero-content h2 { font-size: 1.35rem; }
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-btn { padding: 0.55rem 1.2rem; font-size: 0.75rem; }
}

/* ---------- Continuar leyendo ---------- */
.continuar-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.continuar-card {
    position: relative;
    flex: 0 0 320px;
    display: flex;
    gap: 0.9rem;
    padding: 0.8rem;
    border-radius: 14px;
    cursor: pointer;
    scroll-snap-align: start;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: continuarEntrada 0.4s ease both;
}
.continuar-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold, #b8975a);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.continuar-cover {
    width: 72px;
    height: 104px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.continuar-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding-right: 1.2rem;
}
.continuar-titulo {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink, #f3eee4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.continuar-autor {
    font-size: 0.78rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.continuar-detalle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--gold, #b8975a);
    font-weight: 600;
}
.continuar-detalle svg, .continuar-detalle i { width: 13px; height: 13px; }
.continuar-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-dark, #8a6c27), var(--gold, #b8975a));
}
.continuar-btn svg, .continuar-btn i { width: 13px; height: 13px; }
.continuar-quitar {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: var(--ink, #fff);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
}
.continuar-quitar svg, .continuar-quitar i { width: 14px; height: 14px; }
.continuar-card:hover .continuar-quitar,
.continuar-quitar:focus-visible { opacity: 1; }
.continuar-quitar:hover { background: rgba(220, 38, 38, 0.8); color: #fff; }

/* En pantallas táctiles el botón de quitar siempre visible */
@media (hover: none) {
    .continuar-quitar { opacity: 0.8; }
}
@media (max-width: 600px) {
    .continuar-card { flex-basis: 82vw; }
}

/* Tema claro */
body.white-theme .continuar-card {
    background: linear-gradient(135deg, rgba(184, 151, 90, 0.12), rgba(255, 255, 255, 0.9));
    border-color: rgba(184, 151, 90, 0.35);
}
body.white-theme .continuar-quitar { background: rgba(0, 0, 0, 0.08); }

@keyframes continuarEntrada {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .continuar-card { animation: none; transition: none; }
}
