/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Estilo del menú normal */
header {
    background-color: #22234c;
    color: white;
    padding: 3px 122px; /* Menú más grande */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease; /* Transición suave */
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(0px); /* Sin desenfoque al inicio */
}

.logo {
    font-size: 32px; 
    font-weight: bold;
    transition: font-size 0.4s ease, transform 0.4s ease;
}


.logo img {
    width: 200px; /* Ajusta según el tamaño que desees */
    transition: transform 0.3s, filter 0.3s ease-in-out;
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.7)); /* Efecto de brillo azul */
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 191, 255, 1)); /* Mayor brillo al pasar el mouse */
} 

/* Efecto al hacer scroll */
header.shrink {
    padding: 5px 5px;  /* Mucho más pequeño */
    background-color: rgba(2, 36, 71, 0.493); /* Fondo oscuro semi-transparente */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Sombra más pronunciada */
    backdrop-filter: blur(8px); /* Efecto de desenfoque */
    transition: all 0.4s ease-in-out; 
}

/* Cambios para el logo en scroll */
header.shrink .logo {
    font-size: 20px; /* Logo más pequeño */
    transform: scale(0.7); /* Ligeramente más comprimido */
    letter-spacing: 1px; /* Más compacto */
}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex: 2;
    gap: 20px;
}

.navbar ul {
    font-size: 20px;
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding-right: 80px;
}

.navbar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #00bfff;
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(0, 191, 255, 1)); /* Mayor brillo al pasar el mouse */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/*particulas*/

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

article {
    background: white;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
}

article img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

article:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

#article-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    line-height: 22px;
    color: #1a1e4f;
}

#article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

#article-content video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
}

#back-button {
    margin: 20px;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/*boton whatsapp*/

.btn-wsp {
    position: fixed;
    width: 55px;
    height: 55px;
    line-height: 55px;
    bottom: 30px;
    right: 30px;
    background: #0df053;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
}

.btn-wsp:hover {
    text-decoration: none;
    background: #0b3807;
    transition: 0.5s;
}

.icon-whatsapp {
    margin-top: 7px;
    width: 40px;

}


/* Contenedor del Footer */
.footer {
    display: flex;
    justify-content: space-around; /* Centrar el contenido */
    padding: 20px;
    background-color: #f0f0f0;
    flex-wrap: wrap; /* Para hacerlo responsivo */
    text-align: left; /* Alinear el texto */
    margin-top: 96px;
}

/* Estilo para la Newsletter */
.newsletter {
    background-color: #ffffff;
    padding: 20px;
    border: 2px solid #004080;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 350px;
    min-width: 280px;
}

.newsletter h3 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 10px;
    text-align: center;
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter input[type="email"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter input[type="email"]:focus {
    border-color: #00bfff;
}

/* Botón de suscripción */
.newsletter button {
    background-color: #004080;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
}

.newsletter button:hover {
    background-color: #00bfff;
    transform: scale(1.05);
}

.nav__footer {
    padding-bottom: 20px;
    display: grid;
    grid-auto-flow: row;
    height: 100%;
    margin-top: 41px;
}
.footer__title {
    font-weight: 300;
   
}

.footer__information {
    margin: 0px;
}




/* Estilo para Redes Sociales */
.redes-sociales {
    background-color: #e6f2ff;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #004080;
    border-radius: 5px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 350px;
    min-width: 280px;
}

.redes-sociales h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: bold;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ajuste para pantallas pequeñas */
}

.social-icon {
    background-color: #004080;
    color: white;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon.facebook:hover {
    background-color: #1877F2;
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

/* Derechos reservados */
#derechos-reservados {
    border-top: 3px solid #003366;
    padding: 10px;
    text-align: center;
    background-color: #003366;
}

#derechos-reservados p{
    font-size: 1em;     
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f4f4f4; 
    font-weight:lighter;
}

/* Responsive Design */
@media (max-width: 1000px) {


    header {
        padding: 15px 20px; /* Menú más compacto */
        justify-content: space-between;
    }

    /* Efecto al hacer scroll en dispositivos móviles */
    header.shrink {
        padding: 5px 15px; /* Más pequeño al hacer scroll */
        background-color: rgba(2, 36, 71, 0.493);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(6px);
    }

    /* Logo más pequeño en móviles */
    .logo {
        font-size: 20px;
        transition: font-size 0.4s ease, transform 0.4s ease;
    }

    header.shrink .logo {
        font-size: 16px; 
        transform: scale(0.85);
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        background-color: #004080;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
    }

    .navbar ul.active {
        display: flex;
    }
    /* Botón del menú hamburguesa */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        color: white;
        cursor: pointer;
        padding-right: 52px;
    }

    /* Ocultar el menú por defecto */
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 64, 128, 0.95);
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease-in-out;
    }

    /* Mostrar el menú cuando se active */
    .nav-links.active {
        display: flex;
    }

    /* Enlaces del menú */
    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: #00bfff;
    }
    .footer {
        align-items: center;
    }
    .redes-sociales{
        margin-top: 5px;
    }
   
    .newsletter, .redes-sociales {
        width: 50%;
    }   
  }

  @media (max-width: 600px) {
    header {
        justify-content: center;
    }

    .logo {
        margin-right: auto;
        padding-left: 20px;
    }

    .navbar {
        justify-content: center;
    }
    
}