:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --background-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.azul {
  color: #3498db;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 0; /* CONTEXTO para z-index hijos */
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 8%;
  color: white;
  overflow: hidden;
}

/* Contenedor de fondo principal */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Debajo del overlay y contenido */
}

/* Imágenes de fondo */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
  opacity: 1;
}

/* Overlay azul semitransparente */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.7);
  z-index: 1; /* Encima de las imágenes */
}

/* Contenido alineado a la izquierda */
.hero-content {
  position: relative;
  z-index: 2; /* Encima de todo */
  width: 50%;
  max-width: 600px;
  padding-right: 40px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero .subtitulo {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero .descripcion {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 5% 80px;
    text-align: center;
  }
  
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitulo {
    font-size: 1.2rem;
  }
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}
.btn {
  display: inline-block;
  background-color: var(--secondary-color, #3498db); /* respaldo si no está definido */
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  margin: 10px 10px 0 0;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color, #2c3e50);
}



/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: center; /* Centra el contenido horizontal */
}

.about-text {
  flex: 1 1 60%;
  max-width: 520px;
  text-align: justify;
  margin-left: 10px; /* Ajuste fino para mover un poco a la derecha */
}

.about-image {
  flex: 1 1 55%;
  max-width: 800px;           /* MÁS ancho */
  height: 350px;              /* MÁS alto, puedes ajustar */
  aspect-ratio: unset;        /* Quitamos aspect-ratio para usar height fijo */
  overflow: hidden;
  position: relative;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Data Section */
.data-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.data-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.data-item:hover {
    transform: translateY(-10px);
}

.data-item i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.data-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Visualizations Section */
.visualizations {
    text-align: center;
}

.chart-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.chart-placeholder {
    background-color: #f5f5f5;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    border-radius: 5px;
}

/* Prediction Section */
.prediction-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.prediction-model {
    flex: 1;
}

.prediction-example {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.prediction-example h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group select, .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

/* Conclusion Section */
.conclusion-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.conclusion-point {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.conclusion-point h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Resources Section */
.resources {
    text-align: center;
}

.resource-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.resource-card {
    background-color: white;
    width: 200px;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.resource-card:hover {
    transform: translateY(-10px);
}

.resource-card i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.resource-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content, .prediction-content, .contact-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}

/* Ajustes para el hero section */
.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.hero-text {
    flex: 1;
    max-width: 60%;
}

.hero-buttons {
    flex: 1;
    text-align: right;
}

.hero-buttons .btn {
    display: block;
    margin: 10px 0;
    width: 200px;
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-text, .hero-buttons {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        margin-top: 30px;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        margin: 10px;
    }
}

.denuncias-compactas {
  padding: 60px 0; /* Más espacio arriba y abajo */
  background-color: #f8f9fa;
}

.denuncias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Tres columnas iguales */
  gap: 30px; /* Espacio entre íconos */
  max-width: 900px;
  margin: 0 auto;
}



.denuncia-compacta {
  background: white;
  border-radius: 8px;
  padding: 25px 15px; /* padding más grande */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.denuncia-compacta:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.denuncia-compacta i {
  font-size: 30px; /* íconos más grandes */
  color: #3498db;
  display: block;
  margin-bottom: 12px;
}

.denuncia-compacta span {
  font-size: 16px; /* texto un poco más grande */
  color: #2c3e50;
}

/* Panel de detalles */
.detalle-denuncia {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.detalle-contenido {
  background: white;
  padding: 25px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: aparecer 0.3s;
}

@keyframes aparecer {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.cerrar-detalle {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

#detalle-titulo {
  color: #2c3e50;
  margin-bottom: 15px;
}

#detalle-texto {
  color: #555;
  line-height: 1.6;
}

.detalle-contenido ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.detalle-contenido ul li {
  margin-bottom: 5px;
  color: #333;
}

.about-image {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carrusel-fade {
  position: relative;
  width: 100%;
  height: 100%;
}

.carrusel-imagen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que se recorte sin dejar espacio */
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}


.carrusel-imagen.activo {
  opacity: 1;
  z-index: 2;
}


@keyframes deslizar {
  0% { transform: translateX(0); }
  20% { transform: translateX(-100%); }
  40% { transform: translateX(-200%); }
  60% { transform: translateX(-300%); }
  80% { transform: translateX(-400%); }
  100% { transform: translateX(0); }
}
