* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-color: rgba(255, 255, 255,0.5);
    pointer-events: none;
    filter: blur(130px);
}

.cuadro {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.7;
}

.contenido {
    position: relative;
    z-index: 1;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: 50px;
}

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    background: linear-gradient(to right, #1d3557, #457b9d);
    color: white;
    padding: 15px 40px;
    font-size: 17px;
}

@media screen and (max-width: 770px) {
    .centro strong {
        font-size: 26px !important;
    }

    .logo {
        width: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    .logo * {
        display: none;
    }

    .encabezado {
        justify-content: center;
        text-align: center;
    }
}

.inferior {
    color: #fdfdfd;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.logo-p {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.circulo {
    background-color: #2a3c7a;
    color: white;
    border-radius: 20%;
    width: 65px;
    height: 65px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circulo img {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

.centro {
    text-align: center;
    color: #fdfdfd;
}

.centro strong {
    font-size: 42px;
}

.contenido h1 {
    font-size: 42px;
    color: #21315a;
}

.contenido p {
    font-size: 25px;
    color: #474545;
}

.subrayado {
    width: 400px;
    height: 4px;
    background-color: #2a64f8;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Estilo de las card*/
.tarjetas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto;
}

.tarjeta {
    background-color: white;
    border-radius: 15px;
    box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.3),
            0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 30px 20px;
    text-align: center;
    width: 250px;
    transition: transform 0.2s;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.4),
            0 6px 10px rgba(0, 0, 0, 0.25);}

.icono {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icono img {
    width: 30px;
    height: 30px;
}

.tarjeta h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.tarjeta p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.boton {
    display: inline-block;
    padding: 10px 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
}

/* Estilo infografias */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.modal img {
    max-width: 600px;
    max-height: 600px;
}

.cerrar {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }


.infografia {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ANIMACIÓN DE PULSO */
@keyframes pulso {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animaciones icono y boton */
.tarjeta:hover .boton {
    animation: pulso 1s ease-in-out infinite;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}
.tarjeta:hover .icono {
    animation: pulso 1s ease-in-out infinite;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #030330;
    color: #fff;
    padding: 5px 0;
    text-align: center;
    font-size: 12px;
    margin-top: 40px;
}

.contenedor-footer {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}