
.equipo{
    width:90%;
       margin:auto;
    padding:40px 0;
    text-align:center;
}

.equipo h1{
    font-size:42px;
    margin-bottom:40px;
    color:#222;
}

.contenedor{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}


.card1{
    position:relative;
    width:300px;
    height:350px;
    border-radius:25px;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.card1 img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.card{
    position:relative;
    width:450px;
    height:450px;
    border-radius:25px;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.info{
    position:absolute;
    bottom:-100px;
    width:100%;
    background:rgba(245, 236, 238, 0.85);
    color:white;
    padding:25px;
    transition:0.4s;
}

.info h2{
    font-size:30px;
    margin-bottom:8px;
    color: darkred;
}

.info p{
    font-size:22px;
}



.card1:hover .info{
    bottom:0;
    color: darkred;
}

/*   TARJETAS DE IAMGEN DE NUESTRA PROPUESTA */
 /* Tarjeta 1  */

.horizontal{
    overflow:hidden;
}

.horizontal .slides{
    display:flex;
    transition:transform 1s ease;
}

.horizontal img{
    width:100%;
    flex:0 0 100%;
}


/* tarjeta 2 */
.fade-slider{
    position:relative;
    height:250px;
}

.fade-slider img{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1s;
}

.fade-slider img.active{
    opacity:1;
}


/* tarjeta 3 */
.zoom-slider{
    position:relative;
    height:250px;
}

.zoom-slider img{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:1s;
}

.zoom-slider img.active{
    opacity:1;
    animation:zoom 4s linear;
}

@keyframes zoom{
    from{
        transform:scale(1);
    }
    to{
        transform:scale(1.15);
    }
}

/* tarteja 4 */
.vertical{
    overflow:hidden;
    height:250px;
}

.vertical .slides{
    transition:transform 1s ease;
}

.vertical img{
    width:100%;
    height:250px;
    display:block;
}

/* tarjeta 5 */
.continuo{
    overflow:hidden;
}

.continuo .slides{
    display:flex;
    width:max-content;
    animation:mover 15s linear infinite;
}

.continuo img{
    width:350px;
    height:250px;
    object-fit:cover;
}

@keyframes mover{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}
/* tarjeta 6 */
.flip-slider{
    position:relative;
    height:250px;
    perspective:1000px;
}

.flip-slider img{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transform:rotateY(180deg);
    transition:1s;
}

.flip-slider img.active{
    opacity:1;
    transform:rotateY(0deg);
}

/* video institucional*/
   .video-container {
      position: relative;
      padding-bottom: 56.25%; /* Proporción 16:9 */
      height: 0;
      overflow: hidden;
      max-width: 100%;
    }
    .video-container iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }


    /* =========================
   NOSOTROS COMPLETO
   Imagen + texto + contadores + misión y visión
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Imagen del colegio */
.about-img img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

/* Texto del lado derecho */
.about-text h3 {
    font-size: 30px;
    color: #111827;
    margin-bottom: 18px;
}

.about-text p {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 18px;
    font-size: 17px;
}

/* Contadores más pequeños */
.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-box {
    background: white;
    width: 145px;          /* aquí se reduce el ancho */
    padding: 20px 15px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-8px);
}

.stat-box h4 {
    font-size: 30px;
    color: #e11d48;
    margin-bottom: 5px;
}

.stat-box span {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

/* Misión y Visión debajo de todo */
.mision-vision {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.mv-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    border-left: 8px solid #8B0000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    transition: 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.mv-card h3 {
    font-size: 28px;
    color: #8B0000;
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 17px;
    line-height: 1.8;
    color: #4b5563;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img img {
        height: 350px;
    }

    .mision-vision {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .about-img img {
        height: 260px;
    }

    .stats {
        gap: 12px;
    }

    .stat-box {
        width: 130px;
        padding: 18px 12px;
    }

    .stat-box h4 {
        font-size: 26px;
    }

    .mision-vision {
        gap: 22px;
    }

    .mv-card {
        padding: 24px;
    }

    .mv-card h3 {
        font-size: 24px;
    }

    .mv-card p {
        font-size: 16px;
    }
}