.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #212529;
    color: #fff;
    padding: 1.5rem;
    z-index: 1050;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}
.cookie-consent-banner.active {
    transform: translateY(0);
}
.cookie-consent-banner a {
    color: #0d6efd;
    text-decoration: underline;
}
.cookie-consent-banner .btn {
    margin: 0.25rem 0.5rem;
}
/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .cookie-consent-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-buttons {
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

/* --- ESTILOS DEL BANNER DE BITKIDS --- */
:root {
    --bitkids-color-primary: #41038f; /* Azul corporativo (para el titular) */
    --bitkids-color-cta: #508f02;     /* Naranja/Verde (para el botón, gran contraste) */
    --bitkids-color-cta-hover: #7cbb2d;
    --bitkids-color-text: #333;
    --bitkids-bg-light: #f9faff;     /* Fondo muy claro para distinguirse */
    --bitkids-border-color: #41038f;
}

.bitkids-ad {
    font-family: inherit; 
    display: flex;
    flex-direction: column; /* Mobile-first: apilado */
    align-items: center;
    text-align: center;
    background: var(--bitkids-bg-light);
    border: 2px solid var(--bitkids-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2.5rem auto; /* Espacio vertical para separarlo del contenido */
    max-width: 900px;
    width: 95%;
    box-shadow: 0 4px 12px rgba(0, 120, 240, 0.08);
    overflow: hidden;
}

/* 1. Logo o Gráfico */
.bitkids-ad__logo {
    flex-shrink: 0;
    margin-bottom: 1rem;
}
.bitkids-ad__logo img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

/* 2. Contenido de Texto */
.bitkids-ad__content {
    flex-grow: 1;
}

.bitkids-ad__headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bitkids-color-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.bitkids-ad__description {
    font-size: 1rem;
    color: var(--bitkids-color-text);
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* 3. Botón CTA */
.bitkids-ad__cta {
    flex-shrink: 0;
}

.bitkids-ad__button {
    display: inline-block;
    background-color: var(--bitkids-color-cta);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

.bitkids-ad__button:hover,
.bitkids-ad__button:focus {
    background-color: var(--bitkids-color-cta-hover);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Versión de escritorio (Horizontal) */
@media (min-width: 768px) {
    .bitkids-ad {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 1.5rem 2rem;
    }

    .bitkids-ad__logo {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }

    .bitkids-ad__logo img {
        width: 90px;
        height: 90px;
    }

    .bitkids-ad__description {
        margin-bottom: 0;
    }

    .bitkids-ad__cta {
        margin-left: 2rem;
    }
}

body {
    background-color: #f8f9fa;
}

.card-colegio {
    transition: transform .2s;
}
.card-colegio:hover {
    transform: scale(1.03);
}

.badge {
    font-size: 0.9em;
}

/* --- ESTILOS DEL NUEVO HEADER --- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    width: 100%;
}

.app-header .navbar-brand {
    font-size: 1.5rem;
}

.app-header .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}
.app-header .nav-link:hover {
    color: var(--bitkids-color-primary);
}

/* --- ESTILOS DEL COMPARADOR --- */
.sticky-comparador {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
}

/* Ajustes tabla modal */
#modal-comparador-contenido table th {
    white-space: nowrap;
}
#modal-comparador-contenido table td {
    vertical-align: middle;
}

/* --- RECOMENDACIÓN EDITORIAL NATIVA --- */
.recomendacion-seccion h3 {
    text-wrap: balance;
    color: #212529;
}

.recomendacion-seccion p {
    text-wrap: pretty;
    line-height: 1.7;
}

.recomendacion-seccion .destacado-oferta {
    background-color: #ffffff;
    border-left: 4px solid var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.recomendacion-seccion .destacado-oferta p {
    color: #212529;
}

/* --- DISEÑO DE LEAD MAGNET PREMIUM --- */
.lead-magnet-banner {
    background: linear-gradient(135deg, #41038f 0%, #1a013c 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: none;
}
.lead-magnet-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 187, 45, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.lead-magnet-banner h3 {
    color: #ffffff;
    font-weight: 700;
}
.lead-magnet-banner p {
    color: #e2d9f3;
}
.lead-magnet-banner .form-control {
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.lead-magnet-banner .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.lead-magnet-banner .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #7cbb2d;
    box-shadow: none;
    color: #ffffff;
}
.lead-magnet-banner .btn-submit-lm {
    background-color: var(--bitkids-color-cta);
    color: #ffffff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    transition: background-color 0.2s;
}
.lead-magnet-banner .btn-submit-lm:hover {
    background-color: var(--bitkids-color-cta-hover);
    color: #ffffff;
}

/* Ajustes de responsive para el input-group del lead magnet */
@media (max-width: 576px) {
    .lead-magnet-banner .input-group {
        flex-direction: column;
    }
    .lead-magnet-banner .form-control {
        border-radius: 8px !important;
        margin-bottom: 10px;
    }
    .lead-magnet-banner .btn-submit-lm {
        border-radius: 8px !important;
        width: 100%;
    }
}
