/*contenedor principal del plantel*/
.plantel {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 35px 0 75px;
    color: #3F4650;
}


/* encabezados he imagen del plantel */
.contactanos_title {
    width: 100%;
    margin-bottom: 45px;
    text-align: center;
}

.contactanos_title h1 {
    margin-bottom: 22px;
    color: var(--verde-oscuro);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.contactanos_imagen {
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #E8E8E8;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
}

.contactanos_imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.contactanos_imagen:hover img {
    transform: scale(1.025);
}


/* datos generales */

.contactanos_contenido {
    width: 100%;
    margin-bottom: 45px;
}

.contactanos_contenido > h2 {
    margin-bottom: 22px;
    color: var(--verde-oscuro);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.contactanos_contenido > p {
    max-width: 1050px;
    margin: 0 auto 20px;
    color: #626B75;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.contactanos_contenido > h3 {
    margin: 25px 0 35px;
    color: var(--verde-principal);
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}


/* informacion del plantel */
.datos-generales__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px 45px;
    margin-top: 50px;
    margin:auto;
    width: 900px;
    height: 450px;

}

.dato {
    min-width: 0;
}

.dato h3 {
    margin-bottom: 15px;
    color: #3F4650;
    font-size: 16px;
    font-weight: 700;
}

.dato p,
.dato li {
    color: #626B75;
    font-size: 14px;
    line-height: 1.6;
}

.dato ul {
    padding-left: 20px;
}

.dato a {
    color: var(--verde-principal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dato a:hover {
    color: var(--verde-oscuro);
    text-decoration: underline;
}


/* botones generales */

.plantel button {
    padding: 11px 20px;
    border: none;
    border-radius: 3px;
    background-color: var(--verde-principal);
    color: var(--blanco);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.plantel button:hover {
    background-color: var(--verde-oscuro);
    transform: translateY(-2px);
}


/* PRE-REGISTRO */

.preregistro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 55px 0;
    padding: 25px 28px;
    background-color: var(--blanco);
    border: 1px solid #E8E8E8;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.preregistro p {
    flex: 1;
    color: #626B75;
    font-size: 15px;
    line-height: 1.6;
}

.preregistro button {
    min-width: 290px;
    max-width: 330px;
    min-height: 60px;
}


/* ¿QUÉ NECESITAS? */

.necesidades {
    margin: 65px 0;
}

.necesidades > h2 {
    margin-bottom: 35px;
    color: var(--verde-oscuro);
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.necesidades__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.necesidad-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 22px;
    background-color: var(--blanco);
    border: 1px solid #EAEAEA;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.necesidad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

.necesidad-card h3 {
    min-height: 55px;
    margin-bottom: 15px;
    color: var(--verde-oscuro);
    font-size: 17px;
    line-height: 1.4;
}

.necesidad-card p {
    flex: 1;
    margin-bottom: 20px;
    color: #626B75;
    font-size: 13px;
    line-height: 1.7;
}

.necesidad-card button {
    margin-top: auto;
    font-size: 12px;
}


/* CASOS DE ÉXITO */

.casos-exito {
    margin-top: 65px;
    text-align: center;
}

.casos-exito > h2 {
    margin-bottom: 12px;
    color: var(--verde-oscuro);
    font-size: 22px;
    font-weight: 600;
}

.casos-exito__imagen {
    width: min(700px, 100%);
    height: 350px;
    margin: 25px auto;
    overflow: hidden;
    border-radius: 5px;
}

.casos-exito__imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.casos-exito p {
    max-width: 1000px;
    margin: 20px auto;
    color: #626B75;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}


/* RESPONSIVO - TABLET */

@media (max-width: 900px) {

    .plantel {
        width: 94%;
    }

    .contactanos_imagen {
        height: 280px;
    }

    .datos-generales__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .necesidades__grid {
        gap: 15px;
    }

    .necesidad-card {
        padding: 20px 16px;
    }

    .preregistro {
        gap: 20px;
    }

    .preregistro button {
        min-width: 230px;
    }
}


/*  RESPONSIVO - CELULARES */

@media (max-width: 600px) {

    .plantel {
        width: 90%;
        padding-top: 25px;
    }

    .contactanos_title h1 {
        font-size: 22px;
    }

    .contactanos_imagen {
        height: 210px;
    }

    .contactanos_contenido > h2,
    .necesidades > h2,
    .casos-exito > h2 {
        font-size: 19px;
    }

    .contactanos_contenido > p {
        font-size: 14px;
        text-align: left;
    }

    .datos-generales__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .preregistro {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
    }

    .preregistro button {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .necesidades__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .necesidad-card h3 {
        min-height: auto;
    }

    .casos-exito__imagen {
        height: 230px;
    }

    .casos-exito p {
        font-size: 13px;
        text-align: left;
    }
}
