/* Estilos para el menú */
nav {
    width: 70vw; /* Ancho del 70% del viewport */
    margin: 20px auto; /* Añadir margen superior */
    background: rgba(0, 128, 128, 0.5); /* Fondo azul verdoso oscuro con 50% de transparencia */
    border-radius: 50px; /* Esquinas más redondeadas */
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Sombra más definida */
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 15px 0; /* Aumentar padding superior */
}

nav .logo {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

nav .logo a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav .logo a:hover {
    color: #00FFAA;
}

nav .logo i {
    margin-right: 8px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

nav a {
    color: #fff; /* Color del texto blanco */
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00FFAA; /* Color verde claro al pasar el ratón */
}

/* Estilos para el menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: rgba(0, 128, 128, 0.9);
    }

    nav.active ul {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Estilos para el footer */
footer {
    width: 70vw;
    margin: 20px auto;
    background: rgba(0, 128, 128, 0.5);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #fff;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

footer .social-icons i {
    margin-left: 10px;
    color: #fff;
    transition: color 0.3s ease;
}

footer .social-icons i:hover {
    color: #00FFAA;
}

footer a {
    color: rgb(255, 255, 255); /* */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Transiciones suaves */
button, a {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sombras y elevación */
.card-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Reducir el espacio horizontal entre las tarjetas */
    margin: 20px 0; /* Restaurar margen vertical */
}

.card {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: scale(1.05);
}

/* Gradiente de fondo para el encabezado */
.header {
    background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
    color: white;
}

/* Estilo de botones interactivos */
.button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Animación sutil de entrada */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* styles.css */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(240,240,255,0.8)), url('background-brush-stroke.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    background: #007bff;
    color: white;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

main {
    text-align: center;
    padding: 20px;
}

main h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

main a.button {
    display: inline-block;
    background: rgba(0, 128, 128, 0.5);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 20px 0;
}

main a.button:hover {
    background: rgba(0, 128, 128, 0.7);
}

section {
    background: white;
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.resumen {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.resumen h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.resumen ol {
    padding-left: 20px;
}

.resumen li {
    margin-bottom: 15px;
}

.resumen strong {
    color: #333;
}

.resumen ul {
    padding-left: 20px;
    list-style-type: disc;
}

.hero {
    margin: 20px auto;
    clear: both;
    overflow: hidden;
    background-color: transparent;
    max-width: 85%;
    text-align: center;
}

.hero-content {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}

@media (min-width: 769px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-image {
        width: 50%;
    }
    
    .hero-text {
        width: 50%;
        padding: 40px;
        position: relative;
        color: white;
        background-color: rgba(0, 0, 0, 0.6);
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .hero-text {
        width: 100%;
        padding: 20px;
        position: relative;
        color: white;
        background-color: rgba(0, 0, 0, 0.7);
        text-align: center;
    }
}

.hero-image {
    overflow: hidden;
    width: 60%; /* Reducir el tamaño de la imagen en un 25% adicional (total 40%) */
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-text h1 {
    color: white;
    margin-top: 0;
    font-size: 2em;
}

.hero-text p {
    color: white;
    font-size: 1.2em;
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #333; /* Gris oscuro */
}

.chat-form {
    max-width: 70%;
    margin: 0 auto 20px auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.chat-form:hover {
    transform: scale(1.02);
}

.chat-form h2 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.chat-form textarea {
    width: 90%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    resize: vertical;
    font-size: 1em;
}

.chat-form button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.chat-form button:hover {
    background-color: #0056b3;
}

/* Estilos para la página de noticias */
.noticias-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 30px auto;
}

.noticia {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.noticia:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.noticia-fecha {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 10px;
}

.noticia h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.leer-mas {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.leer-mas:hover {
    text-decoration: underline;
}

.suscripcion {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.suscripcion h2 {
    color: #333;
    margin-top: 0;
}

.suscripcion form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto 0;
}

.suscripcion input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.suscripcion button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.suscripcion button:hover {
    background-color: #0056b3;
}

/* Estilo para el enlace activo en el menú */
nav a.active {
    color: #00FFAA;
    border-bottom: 2px solid #00FFAA;
}

/* Estilos para los estados de carga y errores */
.cargando {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
}

.cargando p {
    font-size: 1.2em;
    color: #007bff;
}

.error-mensaje {
    text-align: center;
    padding: 20px;
    background-color: #fff8f8;
    border-radius: 10px;
    border-left: 4px solid #ff6b6b;
    margin: 20px 0;
}

.error-mensaje p {
    color: #333;
    margin-bottom: 10px;
}

.noticias-header {
    text-align: center;
    margin-bottom: 25px;
}

.noticias-header h3 {
    color: #007bff;
    font-size: 1.4em;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.noticias-header h3:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: #007bff;
    bottom: 0;
    left: 25%;
}

.actualizacion-info {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

/* Estilos para la página de normativa */
.normativa-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.normativa-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 128, 128, 0.3);
}

.normativa-seccion {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.normativa-seccion:last-child {
    border-bottom: none;
}

.normativa-seccion h2 {
    color: rgba(0, 128, 128, 0.8);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.normativa-contenido {
    padding-left: 20px;
}

.normativa-contenido h3 {
    color: #333;
    margin: 15px 0 10px 0;
    font-size: 1.3em;
}

.normativa-contenido p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

.normativa-contenido ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.normativa-contenido li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.etiquetas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.etiqueta {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.etiqueta:hover {
    transform: translateY(-5px);
}

.etiqueta h4 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.etiqueta p {
    margin: 0;
    font-size: 0.95em;
}

.documento-oficial {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.documento-oficial h3 {
    color: #333;
    margin-top: 0;
}

.documento-oficial .button {
    display: inline-block;
    background: rgba(0, 128, 128, 0.7);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.documento-oficial .button:hover {
    background: rgba(0, 128, 128, 0.9);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .etiquetas-container {
        grid-template-columns: 1fr;
    }
    
    .normativa-contenido {
        padding-left: 10px;
    }
}
