/* Libro Café - Estética biblioteca + café | Sala101 */

/* Variables locales */
.librocafe-page {
    --lc-cafe-oscuro: #2d1810;
    --lc-cafe-medio: #4a2c1a;
    --lc-cafe-claro: #6b4423;
    --lc-crema: #f5ebe0;
    --lc-crema-oscuro: #e8d5c4;
    --lc-tostado: #8b5a2b;
    --lc-pagina: #faf6f2;
    --lc-sombra-libro: rgba(45, 24, 16, 0.25);
}

/* Hero Libro Café - Gradiente cálido fusionado con marca */
.librocafe-page .hero {
    background: linear-gradient(135deg, #280014 0%, #3c0028 15%, #4a2c1a 40%, #2d1810 70%, #280014 100%);
    background-size: 300% 300%;
    animation: librocafeGradient 12s ease infinite;
    min-height: 70vh;
}

@keyframes librocafeGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Patrón sutil de líneas como páginas de libro */
.librocafe-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 3px
        );
    pointer-events: none;
    z-index: 1;
}

/* Motivo decorativo - Estilizado de libro/taza */
.librocafe-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out both;
}

.librocafe-hero-badge span {
    font-size: 1.3rem;
}

/* Título con tipografía distintiva */
.librocafe-page .hero-title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.librocafe-page .hero-subtitle {
    font-size: 1.35rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    opacity: 0.92;
    line-height: 1.75;
}

/* Main - Fondo crema/página */
.librocafe-main {
    background: var(--lc-pagina);
    padding: 4rem 0 5rem;
    position: relative;
}

.librocafe-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lc-crema-oscuro), transparent);
    opacity: 0.6;
}

/* Grid de características - Cards tipo "ficha de libro" */
.librocafe-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.librocafe-feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 4px 20px var(--lc-sombra-libro),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid var(--lc-crema-oscuro);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.librocafe-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--lc-tostado), var(--lc-cafe-claro));
    border-radius: 4px 0 0 4px;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}

.librocafe-feature-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 
        0 12px 40px rgba(45, 24, 16, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border-color: var(--lc-tostado);
}

.librocafe-feature-card:hover::before {
    transform: scaleY(1);
}

.librocafe-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.librocafe-feature-card h3 {
    font-family: 'Ethnocentric', sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lc-cafe-oscuro);
    margin-bottom: 0.5rem;
}

.librocafe-feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Imagen principal con marco de libro */
.librocafe-imagen-wrap {
    max-width: 560px;
    margin: 0 auto 2.5rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px var(--lc-sombra-libro),
        0 0 0 1px rgba(139, 90, 43, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.librocafe-imagen-wrap::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--lc-crema-oscuro), var(--lc-tostado));
    border-radius: 10px;
    z-index: -1;
    opacity: 0.4;
}

.librocafe-imagen-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Cita / Descripción */
.librocafe-quote {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 235, 224, 0.9) 100%);
    border-radius: 20px;
    border-left: 5px solid var(--lc-tostado);
    border-right: 5px solid var(--lc-tostado);
    box-shadow: 0 8px 32px rgba(45, 24, 16, 0.08);
}

.librocafe-quote p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--lc-cafe-medio);
    font-style: italic;
}

.librocafe-quote p strong {
    color: var(--lc-cafe-oscuro);
    font-style: normal;
}

/* Sección título */
.librocafe-section-title {
    font-family: 'Ethnocentric', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lc-cafe-oscuro);
    text-align: center;
    margin-bottom: 2rem;
}

/* CTA final */
.librocafe-cta {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.librocafe-cta .whatsapp-btn {
    font-size: 1.15rem;
    padding: 1.1rem 2.5rem;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.35);
}

/* Footer Libro Café - Tono crema */
.librocafe-page .site-footer {
    background: linear-gradient(180deg, var(--lc-cafe-oscuro) 0%, #1a0f0a 100%);
    border-top-color: rgba(139, 90, 43, 0.4);
}

.librocafe-page .footer-lead {
    color: var(--lc-crema);
}

/* Responsive */
@media (max-width: 768px) {
    .librocafe-features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .librocafe-page .hero-subtitle {
        font-size: 1.2rem;
    }

    .librocafe-quote {
        padding: 1.5rem 1.25rem;
    }

    .librocafe-quote p {
        font-size: 1rem;
    }
}
