/* ======================================
   Educación Inicial — estilos del micrositio
====================================== */

.ei-body {
    font-family: "Montserrat", sans-serif;
    background:
        radial-gradient(ellipse at top left, rgba(13, 110, 253, 0.06), transparent 45%),
        radial-gradient(ellipse at bottom right, rgba(25, 135, 84, 0.05), transparent 40%),
        #ffffff;
}

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

/* Ritmo vertical */
.padding-2 {
    padding-top: 2%;
    padding-bottom: 2%;
}

.padding-4 {
    padding-top: 4%;
    padding-bottom: 4%;
}

.padding-6 {
    padding-top: 6%;
    padding-bottom: 6%;
}

.justify {
    text-align: justify;
}

.ei-section-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Carrusel */
.ei-carousel {
    position: relative;
}

.ei-carousel img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.ei-carousel .carousel-caption {
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: auto;
    max-width: 90%;
}

.ei-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
    pointer-events: none;
}

.ei-carousel .carousel-caption {
    z-index: 2;
}

/* Objetivo */
.ei-objetivo {
    border-left: 5px solid var(--bs-primary);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.06);
}

.ei-objetivo-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

/* Cards de acceso */
.ei-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.ei-card {
    min-height: 175px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    background: #fff;
}

.ei-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0.85rem 1.6rem rgba(0, 0, 0, 0.12);
    border-color: rgba(13, 110, 253, 0.25);
}

.ei-card-icon-wrap {
    background: linear-gradient(160deg, #f8f9fa, #eef5ff);
    min-height: 100%;
}

.ei-card-icon {
    max-height: 78px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
}

.ei-card-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

/* Directorio CAI */
.ei-cai-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.ei-cai-img-placeholder {
    object-fit: contain;
    background: #f4f7fb;
    padding: 0.5rem;
}

.ei-badge-sede {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

/* Audio / eventos */
.ei-audio-list audio {
    width: 100%;
}

.ei-audio-list .list-group-item {
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ei-evento-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Menú */
.menu-dependencia {
    color: #fff !important;
    font-size: 0.92rem;
    padding: 0.4rem 0.65rem !important;
}

.menu-dependencia:hover,
.menu-dependencia:focus {
    opacity: 0.9;
    text-decoration: underline;
}

/* Docs */
.ei-doc-card {
    min-height: 150px;
    height: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}

.ei-doc-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* Valores */
.ei-valor-card {
    min-height: 110px;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ei-valor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.1);
}

/* Footer */
.ei-footer-social a {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.ei-footer-social a:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    .ei-carousel img {
        max-height: 280px;
    }

    .ei-section-title {
        font-size: 1.45rem;
    }

    .ei-evento-img {
        height: 180px;
        border-radius: 0.375rem 0.375rem 0 0 !important;
    }

    .menu-dependencia {
        text-align: center;
    }

    
}
