/* home.css - Fixed Blue Theme */

/* Force Body Background */
body.home.page {
    background-color: #0f172a !important;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #f8fafc !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0 !important;
}

/* Reset Global para evitar roturas de ancho */
.kusi-home-container *,
.kusi-glass-wrapper * {
    box-sizing: border-box;
}

.kusi-glass-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* HERO */
.kusi-hero-glass {
    padding: 60px 20px;
    text-align: center;
}

/* HERO CONTAINER - Adjusted for Search Alignment */
.glass-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    width: 95%;
    /* Force width */
    max-width: 1100px;
    backdrop-filter: none;
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #ffffff !important;
    /* Force White */
    margin-bottom: 10px;
    line-height: 1.2;
}

.highlight {
    color: #38bdf8;
}

.hero-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* SEARCH - Right Offset Adjustment */
.search-glass {
    margin-left: 20px;
    /* Slight offset right per user request */
    margin-right: auto;
    width: 100%;
}

.search-glass .asp_m {
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    background: #fff !important;
    height: 55px;
}

/* STATS */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #38bdf8;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SHELF (6 COLUMNS) */
.kusi-shelf {
    margin-top: 50px;
}

.section-title-glass {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
    border: none;
    padding: 0;
}

.section-quote {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.glass-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.book-card {
    /* 6 COLUMNAS: 100% / 6 = 16.66% */
    flex: 0 0 calc(16.66% - 13px);
    max-width: calc(16.66% - 13px);

    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.book-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: #38bdf8;
}

.book-link {
    text-decoration: none;
    display: block;
}

.book-img {
    width: 100%;
    aspect-ratio: 2/3.1;
    object-fit: cover;
    display: block;
}

.no-book-img {
    width: 100%;
    aspect-ratio: 2/3.1;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.book-overlay {
    padding: 12px;
    text-align: left;
}

.book-name {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.book-price-tag {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.9rem;
}

/* CHIPS - BOXED STYLE */
.kusi-cats-glass {
    margin-top: 60px;
    margin-bottom: 60px;
}

.glass-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.glass-chip {
    padding: 10px 20px;
    background: #1e293b;
    /* Solid Box */
    color: #e2e8f0;
    /* High Contrast */
    border: 1px solid #38bdf8;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.glass-chip:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

/* FOOTER ICONS */
.kusi-value {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

.value-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

.value-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.value-item h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.value-item p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .book-card {
        flex: 0 0 calc(20% - 15px);
        max-width: calc(20% - 15px);
    }

    /* 5 cols */
}

@media (max-width: 1024px) {
    .book-card {
        flex: 0 0 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }

    /* 4 cols */
    .search-glass {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .book-card {
        flex: 0 0 calc(33.33% - 14px);
        max-width: calc(33.33% - 14px);
    }

    /* 3 cols */
    .hero-title {
        font-size: 2.2rem;
    }

    .glass-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .book-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    /* 2 cols */
    .value-grid {
        flex-direction: column;
        align-items: center;
    }
}