body {
    font-family: 'Montserrat', sans-serif !important;
}

/*ANIMACION PARA TEXTO*/
.animation {
    animation: aparecerI 1.5s ease-out;
}

@keyframes aparecerI {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* MODAL*/
.modal-cerrado {
    background-color: #04809c;
    padding: 5px 15px;
    border-radius: 5px;
    color: #ffffff;
}

#modal::backdrop {
    background-color: rgba(0, 0, 0, .55);
}

#modal {
    max-width: 40%;
}

@media(max-width:992px) {
    #modal {
        max-width: 80%;
    }
}

@media(max-width:600px) {
    #modal {
        max-width: 80%;
    }
}

.modal-abierto {
    background: #04809c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    animation: curso 2s infinite;
}

@keyframes curso {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(19, 116, 145, 0);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(19, 116, 145, .7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(19, 116, 145, 0);
    }
}

/*Card universal para pantalla completa*/
.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    transition: .3s;
}

/* Card texto */
.hero-i {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.hero-texto {
    flex: 1;
}

.linea {
    width: 90px;
    height: 5px;
    background: #f87902;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Frase destacada */
.frase {
    background: #eef8fc;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 5px solid #04809c;
    font-family: 'Montserrat', sans-serif !important;
}

.frase strong {
    color: #04809c;
}

/* Imagen */
.hero-imagen {
    flex: 1;
    text-align: center;
}

.hero-imagen img {
    width: 100%;
    max-width: 550px;
}

/* Responsive */
@media(max-width:992px) {
    .hero-ingles {
        flex-direction: column;
        text-align: center;
    }

    .beneficios {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:600px) {
    .beneficios {
        grid-template-columns: 1fr;
    }
}

/*Card animacion vuelta*/
.cont {
    perspective: 800px;
    width: 300px;
    height: 250px;
}

.doubleCard {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.cont:hover .doubleCard {
    transform: rotateY(180deg);
}

.frontCard,
.backCard {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
}

.backCard {
    transform: rotateY(180deg);
}

/* IMPORTANTE */
.frontCard img,
.backCard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MODAL*/
.modal-cerrado {
    background-color: #04809c !important;
    padding: 5px 15px;
    border-radius: 5px;
    color: #ffffff;
}

.modal-general {
    width: 80%;
    max-width: 900px;
    border: none;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.modal-general img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.modal-general::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

/* ==== INSTALACIÓNES ====*/
/* botn CTA para rectoria*/
.cta {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 60px;
    height: 60px;
    overflow: hidden;
    padding: 10px 15px;
    border-radius: 30px;
    background: #ddd;
    transition: .4s;
    text-decoration: none;
}

.cta:hover {
    width: 220px;
    background: #6caad7;
}

.cta span {
    font-family: 'Montserrat', sans-serif !important;
    text-align: justify;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: .3s;
    font-weight: bold;
    color: #111;
}

.cta:hover span {
    opacity: 1;
    transform: translateX(0);
}

.icono {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* BTN RUIDO*/
.flex_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 15%;
}

.noise_btn {
    display: block;
    position: fixed;
    width: 200px;
    height: 40px;
    font-weight: 900;
    line-height: 6px;
    text-transform: uppercase;
    letter-spacing: 2.7px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}
.noise_btn.canvas-ready {
    opacity: 1;
}
.noise_btn strong {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
}

/* Variante 1: Color de texto oscuro */
.noise_btn--border {
    color: #312f2f;
}

/* Variante 2: Color de texto claro para fondo oscuro */
.noise_btn--bg {
    color: #ffffff;
}

.noise-container {
    display: block;
    position: relative;
}

.noise-canvas {
    position: absolute;
    top: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    left: -20px;
    pointer-events: none;
    z-index: 1;
}
/* ==============================*/
/* =====CONVENIOS PRINCIPAL======*/
/* ==============================*/
.convenios {
    position: relative;
    border-radius: 20px;
    height: 110px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.marquee-convenios {
    width: 100%;
}
.overlaycon {
    position: absolute;
    inset: 0;
    background: rgba(12, 108, 128, 0.65);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}
.overlaycon img {
    max-width: 100%;
    max-height: 100%;
}
.convenios:hover .overlaycon {
    opacity: 1;
    visibility: visible;
}
.contimg {
    border-radius: 40px;
    height: 80px;
    object-fit: contain;
    border-radius: 15px;
    margin: 15px 30px 0 30px;
}
.cont-estan {
    background-color: #ddd;
    width: 100%;
    height: max-content;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: justify;
}
.cont2 {
    background-color: #f3f2f2;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .10);
    align-items: center;
    height: 110px;
    overflow: hidden;
}
/*=========================================*/
/* ==============SERVICIOS UPJR============*/
/*=========================================*/
.servicios {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.card-servicio {
    min-height: 100px;
    padding: 25px 18px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-top: 5px solid #04809c;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(24, 59, 120, 0.20);
    border-top-color: #f87902;
    background: linear-gradient(180deg,
            #ffffff,
            #ffffff,
            #ffffff,
            #f8c391);
}
.icono {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #ddd;
    font-size: 32px;
    transition: 0.3s;
}
.card-servicio:hover .icono {
    transform: scale(1.1) rotate(5deg);
}
.card-servicio h3 {
    margin-bottom: 15px;
    color: #132f63;
    font-size: 19px;
    line-height: 1.2;
}
.card-servicio p {
    color: black;
    text-align: justify;
    font-size: 14px;
    line-height: 1.5;
}
.card-servicio a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 25px;
    background: #04809c;
    color: white;
    text-decoration: none;
    font-family: arial;
    font-size: 13px;
    transition: 0.3s;
}
.card-servicio a:hover {
    background: #f87902;
    transform: translateX(3px);
}
@media (max-width: 1200px) {
    .servicios {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 700px) {
    .servicios {
        grid-template-columns: 1fr;
    }
}
em {
    color: #f87902;
    text-decoration: none;
}
b {
    color: #04809c;
}
.txt {
    color: #f87902;
}
.lm {
    text-align: right;
    color: #04809c;
    font-weight: bold;
    transition: 0.3s;
    text-decoration: none;
}
.lm:hover {
    color: #f87902;
}
li{
    text-align: justify;
}
small{
    color:gray;
}
.cardest{
    width:450px;
    height: max-content;
    background: #ffffff;
    color: black;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    padding: 10px;
    margin: 20px auto;
    border-radius: 25px;
}
.bton-cta{
    color: #ffffff;
    background-color: #f87902;
    text-decoration: none;
    border-radius: 5px;
    padding: 10px 20px;
    display:inline-block;
    transition: background-color 0.3 ease;
}
.bton-cta:hover{
background-color: #e26e02;
}