﻿:root {
    --texto:#f8f8f8; /*Para el texto */
    --primario: #2c3e50;    /* Azul oscuro */
    --acciones: #e73c75;     /* accent Azul brillante para acciones */
    --advertencias: #e74c3c;     /* danger Rojo para denuncias */
    --fondo-web: #f4f6f8;    /* Gris muy claro de fondo */
    --menu-navegacion: #0a1128;
    --shadow: 0 4px 6px #0000001a; /* Sombra suave */
    --radius: 8px;         /* Bordes redondeados */
    --boton: #e6195e; /* Rojo/Rosado del botón*/
    --hover-text: #0a1128;     
}

/* RESETEO BÁSICO */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    background-color: var(--fondo-web);
    color: #333;
    line-height: 1.6;
    padding-bottom: 50px;
}

/* --- HEADER (BARRA DE NAVEGACIÓN) --- */
header {
    background: var(--menu-navegacion);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px #0000000d;
    position: sticky; /* Se queda fijo al bajar */
    top: 0;
    z-index: 1000;
}

/* ---SECCIÓN PRINCIPAL (HERO) --- */
.hero-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10rem 10%;
    max-width: 1280px;
    margin: 0 auto;
    gap: 2rem;
}

.hero-titulo {
    flex: 1;
            max-width: 600px;
        }

        .hero-content h1 {
            font-size: 3.2rem;
            font-weight: 800;
            color: #0d1321;
            line-height: 1.2;
            margin-bottom: 1.2rem;
        }

        .hero-content p {
            font-size: 1rem;
            font-weight: 400;
            color: #333333;
            line-height: 1.5;
        }

        .hero-image {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-image img {
            width: 100%;
            max-width: 550px;
            height: auto;
            /* Si la imagen tiene fondo blanco, esto ayuda a que se funda con el fondo */
            mix-blend-mode: multiply; 
        }


.btn-denunciar {
    background-color: var(--boton);
    color: rgb(255, 255, 255);
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 8px; /* Bordes ligeramente redondeados */
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-denunciar:hover {
    color: var(--hover-text)
}

/* Control estricto del logo para que no rompa el diseño */
#main-logo {
    height: 40px; 
    width: auto;
    object-fit: contain;



.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}


}

nav ul {
    
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    position: relative;   
    text-decoration: none;
    color: var(--texto);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--boton);
}

/* --- HERO SECTION (INTRODUCCIÓN) --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, rgb(51, 73, 94) 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.seccion-contenedor {
    background: var(--danger);
    color: var(--white);
    text-align: center;
    padding: 25rem 1rem;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* --- CONTENEDOR PRINCIPAL --- */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

h3.section-title {
    padding-left: 0px;
    margin-bottom: 20px;
    color: var(--primary);
}

h3.section-title-center {
    text-align: center;
    padding-left: 0px;
    margin-bottom: 20px;
    color: var(--primary);
}

/* --- TARJETAS DE INFOGRAFÍAS (GRID MEJORADO) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive automático */
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease; /* Efecto de elevación */
    text-align: center;
}

.card:hover {
    transform: translateY(-5px); /* Se levanta al pasar el mouse */
}

.icon-placeholder {
    font-size: 3rem;
    margin-bottom: 10px;
    background: #eef2f7;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
}

.btn-download {
    display: block;
    width: 100%;
    background: var(--boton);
    color: var(--texto);
    border: none;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-download:hover {
    background: #a81043;
}

/* --- CONTACTO DE EMERGENCIA --- */
.alert-box {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-alert {
    background: var(--advertencias);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
}

/* --- BUSCADOR LEGAL --- */
.search-container {
      margin-bottom: 20px;
}

#buscadorLegal {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 50px; /* Borde redondo */
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

#buscadorLegal:focus {
    border-color: var(--accent);
}

.termino-item {
    background: var(--white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid transparent;
}

.termino-item:hover {
    border-left: 4px solid var(--hover-text);
}

.termino-titulo {
    font-size: 1.2rem;
    color: var(--hover-text);
    font-weight: bold;
}

.termino-vulgar {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ley-tag {
    background: #f6e8f5;
    color: var(--acciones);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- MOBILE (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 10px;
        font-size: 0.9rem;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
}
/* --- ESTILOS PARA LA SECCIÓN DE LEY COMPLETA (ACORDEÓN) --- */

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ley-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden; /* Para que el contenido no se salga al animar */
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
}

/* Efecto cuando se abre */
.ley-card[open] {
    border-left: 5px solid var(--accent);
}

/* El encabezado clickeable */
.ley-card summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none; /* Quita el triángulo feo por defecto */
    color: var(--primary);
}

/* Ocultar el marcador por defecto en algunos navegadores */
.ley-card summary::-webkit-details-marker {
    display: none;
}

.ley-card summary:hover {
    background-color: #f8f9fa;
}

/* Número del artículo (Etiqueta visual) */
.art-num {
    background-color: var(--hover-text);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 10px;
}

/* Contenido oculto (Texto de la ley) */
.ley-content {
    padding: 0 20px 20px 20px;
    color: #555;
    background-color: #fff;
    border-top: 1px solid #eee;
    line-height: 1.8;
    text-align: justify;
}

/* Animación de la flechita */
.ley-card[open] .arrow-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.arrow-icon {
    transition: transform 0.3s ease;
    color: var(--accent);
}



/* Contenedor que organiza las dos columnas */
.contenedor-global {
    display: flex;
   max-width: 1200px;
    margin: 0 auto;
    gap: 1px; /* Espacio entre el contenido y la barra lateral */
    padding: 1px;
}

/* El contenido que ya tenías ocupa el 70% */
.contenido-principal {
    flex: 1;
}

/* La barra lateral ocupa el 30% */
.sidebar-social {
    flex: 1;
    padding: px;
    border-radius: 5px;
}

.social-item {
    margin-bottom: 0px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* --- RESPONSIVE: En celulares se pone uno debajo del otro --- */
@media (max-width: 900px) {
    .contenedor-global {
    flex-direction: column;
    }
    .sidebar-social {
        width: 100%;
    }
}

/* --- Se centran las imagenes --- */
.image-center {
    display: block; /* Convierte la imagen en un bloque que ocupa toda la línea */
    margin-left: auto;  /* Empuja desde la izquierda */
    margin-right: auto; /* Empuja desde la derecha */
    max-width: 250px;  /* Tamaño de la imagen */
}

.lista-centrada {
  list-style: none; /* Quitamos el punto por defecto */
  padding: 0;
}

.lista-centrada li {
  display: flex;             /* Activamos Flexbox */
  align-items: center;       /* Centramos verticalmente */
  gap: 10px;                 /* Espacio entre el punto y el texto */
  margin-bottom: 10px;
}

/* Creamos el punto personalizado */
.lista-centrada li::before {
  content: "•";              /* El carácter del punto (o usa un código unicode) */
  font-size: 2em;            /* Tamaño del punto */
  line-height: 1;            /* Evita que el punto tenga altura extra */
  color: #007bff;            /* Color del punto */
}

/* --- ESTILOS EXCLUSIVOS DE LA PÁGINA DE EDUCACIÓN --- */
.educacion-page {
  padding: 4rem 8%;
  max-width: 1200px;
  margin: 0 auto;
}

.educacion-header {
  text-align: center;
  margin-bottom: 3rem;
}

.educacion-header h1 {
    font-size: 2.8rem;
    color: #060b19;
    margin-bottom: 1rem;
}

.educacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Reutilizamos los estilos de las tarjetas */
.edu-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

    .edu-card:hover {
    transform: translateY(-5px);
}

.card-icon { font-size: 3rem; margin-bottom: 1rem; }
.edu-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: #060b19; }
.edu-card p { color: #666; margin-bottom: 1.5rem; line-height: 1.5; }
        
.btn-outline {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #ff0055;
    color: #ff0055;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.btn-outline:hover { 
    background-color: #ff0055; color: #ffffff; 
}