* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Calibri, sans-serif;
}

body {
    color: white;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("../IMG/fondo2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.contenedor {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a97cf;
    padding: 15px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-size: 24px; font-weight: bold; }

.nav-menu { display: flex; list-style: none; gap: 25px; }
.nav-menu a { text-decoration: none; color: white; font-weight: bold; transition: 0.3s; }
.nav-menu a:hover { color: black; }

/* Logo pequeño para que no bloquee el menú */
.logo-nav {
    height: 90px; /* Tamaño pequeño para el menú */
    width: auto;
    cursor: pointer;
}

.banner {
    height: 450px;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
        url("../IMG/1.png");
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Caja de texto dentro del banner suave */
.banner-texto-claro {
    background: rgba(255, 255, 255, 0.5); /* Fondo muy sutil */
    padding: 20px;
    border-radius: 10px;
}

/* Corregir el z-index del header para que los clics funcionen siempre */
header {
    background: #2a97cf;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* FOTO (Aquí quité el óvalo) */
.foto {
    width: 350px;
    height: auto;
    border-radius: 10px; /* Esquinas ligeramente redondeadas para que se vea moderno */
    margin-bottom: 20px;
    border: 5px solid #2a97cf;
}

/* CARRUSEL */
.carrusel-contenedor {
    max-width: 800px;
    margin: 40px auto;
    border: 5px solid #2a97cf;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.fade { animation: fadeEffect 1s; }
@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* BIENVENIDA */
#bienvenida {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ventana {
    background: white;
    padding: 40px;
    border-radius: 20px;
    color: #333;
    text-align: center;
}

button {
    padding: 12px 30px;
    background: #2a97cf;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    margin: 5px;
    transition: 0.3s;
}

button:hover { transform: scale(1.1); }

/* RESPONSIVE */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: white; }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: absolute; top: 60px; left: 0;
        background: #2a97cf; width: 100%;
        flex-direction: column; display: none;
        padding: 20px;
    }
    .nav-menu.active { display: flex; }
    .foto { width: 90%; }
}

.enlaces-interes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.enlaces-interes img {
    width: 200px; /* Tamaño de los banners de sitios de interés */
    transition: 0.3s;
}

.enlaces-interes img:hover {
    transform: scale(1.05);
}

/* ESTILOS DEL FOOTER */
footer {
    background-color: #2a97cf; /* Mismo azul que el menú */
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
    text-align: center;
}

.contenedor-footer {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

footer h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    text-transform: uppercase;
}

footer p {
    margin: 5px 0;
    line-height: 1.6;
}

footer a {
    color: #000; /* Los correos se verán en negro para resaltar */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

footer a:hover {
    color: white; /* Al pasar el mouse, el correo cambia a blanco */
    text-decoration: underline;
}

.footer-creditos {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    footer {
        padding: 30px 10px;
    }
}

/* Esto asegura que el fondo general no sea tan oscuro y el texto resalte */
body {
    background-color: #f4f4f4; /* Un gris muy claro de fondo */
    color: #000; /* Color de texto principal oscuro */
}

/* Ajuste para que las tarjetas de denuncia se vean bien con el texto negro */
.card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
    text-align: center;
}

/* DISEÑO DEL FORMULARIO DE CONTACTO */
.contacto {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.contenedor-formulario {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Sombra suave para dar profundidad */
    max-width: 600px;
    width: 100%;
    text-align: center;
    border-top: 5px solid #2a97cf; /* Línea azul decorativa arriba */
}

.grupo-entrada {
    text-align: left;
    margin-bottom: 20px;
}

.grupo-entrada label {
    display: block;
    margin-bottom: 8px;
    color: #2a97cf;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Estilo de los cuadros (Inputs) */
.grupo-entrada input, 
.grupo-entrada textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px; /* Bordes redondeados */
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* Efecto cuando haces clic en el cuadro */
.grupo-entrada input:focus, 
.grupo-entrada textarea:focus {
    border-color: #2a97cf;
    box-shadow: 0 0 8px rgba(42, 151, 207, 0.2);
    background-color: #f9f9f9;
}

.btn-enviar {
    background-color: #2a97cf;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-enviar:hover {
    background-color: #1e709a;
}

/* CLASE PARA CUADROS QUE DESTACAN SOBRE EL GRIS */
.cuadro-blanco {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
    color: #000; /* Texto siempre negro */
}