:root {
    --orange-main: #e6391d;
    --dark-bg: #000000;
    --text-white: #ffffff;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    text-align: center;
}

/* Header & Footer */
.main-header, .main-footer {
    padding: 30px 10px;
    display: flex;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 64px;
    filter: brightness(0) invert(1); /* Si los logos son oscuros, esto los hace blancos */
}

.vertical-divider {
    width: 1px;
    height: 30px;
    background-color: #555;
}

/* Hero Section con banner.jpg */
.hero {
    position: relative;
    background-image: url('../img/banner.png');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Capa oscura para que el texto sea legible */
.hero-overlay {
    background: rgba(0, 0, 0, 0.4); 
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.warning-icon {
    width: 120px; /* Ajuste del exclamation.png */
    height: auto;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Los listones naranjas con flecha */
.ribbon-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.ribbon {
    background-color: var(--orange-main);
    padding: 12px 25px;
    font-weight: bold;
    font-size: 0.95rem;
    position: relative;
    max-width: 90%;
}

/* Triángulo/Flecha hacia abajo */
.ribbon::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--orange-main);
}

/* Secciones de texto */
.content-section, .risks-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

h2 {
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Grid de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.stats-box ul {
    list-style: none;
    margin-top: 10px;
}

.stats-box li {
    margin-bottom: 8px;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
}

/* Lista de riesgos */
.risks-list {
    text-align: left;
    list-style: none;
    padding: 0 20px;
}

.risks-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.risks-list li::before {
    content: "-";
    position: absolute;
    left: 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    h1 { font-size: 1.5rem; }
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }
    .warning-icon { width: 90px; }
    .ribbon { font-size: 0.8rem; }
}


/* SECCIÓN DE RIESGOS (CON FONDO DE CÓDIGO ACTUALIZADA) */
.risks-section {
    width: 100%; /* Fondo de ancho completo */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/banner2.png'); /* Capa oscura superpuesta */
    background-size: cover;
    background-position: center;
    padding: 60px 0; /* Padding vertical en la sección, no en el wrapper */
}

.risks-content-wrapper {
    max-width: 800px; /* Ancho máximo para el contenido de texto */
    margin: 0 auto; /* Centrar el contenido de texto */
    padding: 0 20px; /* Padding horizontal para el texto */
    text-align: center; /* Centrar el texto en general */
}

/* Asegurar que el listón dentro del wrapper esté centrado */
.risks-section .ribbon-container {
    justify-content: center;
}

/* Lista de riesgos */
.risks-list {
    text-align: left; /* Alinear los puntos de la lista a la izquierda */
    list-style: none;
    padding: 0;
    max-width: 700px; /* Ligeramente más estrecho para legibilidad */
    margin: 20px auto; /* Centrar la lista */
}

.risks-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.risks-list li::before {
    content: "-";
    position: absolute;
    left: 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    h1 { font-size: 1.5rem; }
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }
    .warning-icon { width: 90px; }
    .ribbon { font-size: 0.8rem; }
    .risks-list { padding: 0 20px; } /* Añadir padding para móviles */
}