* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
}

body {
    background-image: radial-gradient(815px at 23.4% -21.8%, rgb(9, 29, 85) 0.2%, rgb(0, 0, 0) 100.2%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: flicker 10s infinite alternate;
}

.logo h1 {
    text-wrap: balance !important;
    font-size: 70px;
    font-weight: bolder;
    color: #fff;
}

@keyframes flicker {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 0 #fff, 0 0 10px #fff, 0 0 20px #fff, 0 0 40px #00bfff, 0 0 80px #00bfff, 0 0 90px #00bfff, 0 0 100px #00bfff, 0 0 150px #00bfff;
    }
}

.logo:hover {
    color: #00bfff;
    animation: colorChange 0.5s forwards;
}

@keyframes colorChange {
    from {
        color: #fff;
    }
    to {
        color: #00bfff;
    }
}

a {
    text-decoration: none;
}

#contenedor{
	height: 100% !important;
}
.contenedor {
    width: 90%;
    max-width: 1000px;
    margin: auto;
}


.grid {
    position: relative;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s linear 1s;
}

.grid.imagenes-cargadas {
    opacity: 1;
}

.grid .item {
    position: absolute;
    display: block;
    padding: 0;
    margin: 10px;
    width: calc(33.333333% - 20px);
}

.grid .item img {
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.grid .item img:hover {
    transform: scale(1.1);
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: auto;
}

.overlay.activo {
    display: flex;
}

.overlay img {
    max-width: 100%;
    max-height: 100%;
    transition: ease all 0.3s;
}

.contenedor-img {
    position: relative;
}

.overlay #btn-cerrar-popup {
    background: none;
    font-size: 25px;
    color: rgb(180, 10, 10);
    border: none;
    cursor: pointer;
    position: absolute;
    right: -20px;
    top: -20px;
}

.overlay #btn-cerrar-popup:hover {
    transform: scale(1.5);
}

section .acciones-pagina {
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

section .acciones-pagina a {
    display: block;
    width: 60px;
    height: 60px;
    color: #fff;
    margin: 20px;
    text-align: center;
    border-radius: 100px;
    transition: .3s ease all;
}

section .acciones-pagina .cerrar {
    background: #c13535;
}

section .acciones-pagina a i {
    font-size: 40px;
    line-height: 60px;
}

section .contenedor-icono:hover a {
    animation: icono .5s ease;
}

/* #div-subenciones {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 9999;
	height: auto;
} */

@keyframes icono {
    from {
        transform: rotate3d(0,0,0,0);
    }
    to {
        transform: rotate3d(0,1,0, 360deg);
    }
}

@media screen and (max-width: 700px) {
    .grid .item {
        width: calc(50% - 20px);
    }
}
