/*=========================================
    MUNDO ESCOLAR - ESTILO INDEX
    Solo para index.php
=========================================*/

/* Carrusel de imagenes destacadas (JS propio) */
.carrusel{
    position: relative;
    max-width: 1100px;
    margin: 30px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}
.carrusel-track{
    display: flex;
    transition: transform .5s ease-in-out;
}
.carrusel-track img{
    width: 100%;
    flex-shrink: 0;
    height: 380px;
    object-fit: cover;
}
.carrusel-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.35);
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}
.carrusel-btn:hover{ background: rgba(0,0,0,.6); }
.carrusel-btn.prev{ left: 16px; }
.carrusel-btn.next{ right: 16px; }
.carrusel-puntos{
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.carrusel-puntos .punto{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    transition: .2s;
}
.carrusel-puntos .punto.activo{ background: #ffffff; }

@media (max-width: 700px){
    .carrusel-track img{ height: 220px; }
    .carrusel-btn{ width: 34px; height: 34px; font-size: 20px; }
}

.portada{
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    padding: 60px 0;
}
.portada .contenedor{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.portada-texto{ max-width: 500px; color: #ffffff; }
.portada-texto h2{ font-size: 36px; margin-bottom: 16px; }
.portada-texto p{ font-size: 17px; line-height: 1.6; }
.portada-icono{
    font-size: 105px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Franja de imagenes con scroll infinito */
.banner-scroll{
    width: 100%;
    overflow: hidden;
    height: 180px;
    position: relative;
    background: #fff;
}
.banner-scroll .franja{
    display: flex;
    width: 200%;
    height: 100%;
    animation: deslizar-banner 22s linear infinite;
}
.banner-scroll .franja img{
    width: 50%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}
@keyframes deslizar-banner{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
}

.productos-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.producto{
    background: white;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(26, 29, 35, .08), 0 1px 2px rgba(26, 29, 35, .05);
    transition: .2s;
}
.producto:hover{ transform: translateY(-4px); }
.producto .imagen-producto{ width: 100%; height: 140px; margin-bottom: 12px; }
.producto .imagen-producto img{ width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.producto h3{ color: var(--color-primario); margin-bottom: 6px; font-size: 18px; }
.producto p{ font-size: 14px; color: var(--color-texto-claro); margin-bottom: 8px; min-height: 34px; }
.precio{ font-weight: bold; color: var(--color-secundario); font-size: 19px; margin-bottom: 8px; }

.ofertas{
    background: var(--color-primario);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 50px;
}
.ofertas h2{ font-size: 28px; margin-bottom: 10px; }
.ofertas p{ font-size: 16px; }

.contacto-resumen{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}
.info-contacto{ flex: 1; min-width: 260px; background: white; padding: 25px; border-radius: 10px; box-shadow: 0 1px 3px rgba(26, 29, 35, .08), 0 1px 2px rgba(26, 29, 35, .05); font-size: 15.5px; line-height: 1.7; }
.mapa{ flex: 1; min-width: 260px; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(26, 29, 35, .08), 0 1px 2px rgba(26, 29, 35, .05); }
