/* TipografÃ­a */
* {
    font-family: 'davcondensedRegular', sans-serif;
}

@font-face {
    font-family: 'Davivienda Condensed'; 
    src: url(https://recursos-digitales.davivienda.com/projects/assets_generales/fuente-davivienda/webkit/kitDavcss2.css) format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Fondo del Body con animaciÃ³n */
body {
    font-family: 'davcondensedRegular', sans-serif; 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    animation: fadeIn 2s ease-in-out; /* AnimaciÃ³n al cargar */
}

/* AnimaciÃ³n para el texto del tÃ­tulo */
h1 {
    font-family: 'davcondensedCnBold', sans-serif;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 5%;
    animation: slideInFromTop 1.5s ease-out;
}

/* Contenedor */
.container {
    text-align: center;
}

/* AnimaciÃ³n para el logo */
.logo {
    display: block;
    margin: 0 auto;
    max-width: 500px;
    position: relative;
    z-index: 2;
    animation: fadeInScale 1.8s ease-out;
}

/* Logo de alianzas */
.logo-alianza {
    width: 850px;
    margin-top: 1%;
    margin-bottom: 5%;
    animation: fadeIn 2s ease-in-out;
}

/* Imagen de cierre */
img.logo-cierre {
    width: 310px;
    margin-top: 5%;
    animation: slideUp 1.8s ease-out;
}

/* AnimaciÃ³n para el texto legal */
.legal-text {
    position: absolute;
    top: 250px;
    right: 50px;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-lr;
    text-align: center;
    font-size: 15px;
    color: black;
    background-color: rgb(241, 241, 241);
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 15px;
    font-family: 'davcondensedLight', sans-serif;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards;
}

/* AnimaciÃ³n para texto en rojo */
.redtext {
    color: #DC141D;
    font-family: 'davcondensedCnBold', sans-serif;
    animation: pulseRed 3s infinite; /* AnimaciÃ³n de pulsaciÃ³n sutil */
}

/* AnimaciÃ³n para pÃ¡rrafos */
p {
    text-align: justify;
    animation: fadeIn 1.5s ease-in-out;
}

/* Animaciones de Responsivo */
@media (max-width: 768px) {
    .logo {
        max-width: 300px; 
    }

    .legal-text {
        top: 120px;
        right: 10px;
        font-size: 11px;
    }

    .logo-alianza {
        width: 350px;
        margin-top: 5%;
        margin-bottom: 5%;
    }

    img.logo-cierre {
        width: 350px;
        margin-top: 5%;
        margin-bottom: 5%;
    }
}

/* Keyframes de animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulseRed {
    0%, 100% {
        color: #DC141D;
    }
    50% {
        color: #FF4C4C;
    }
}