/* =========================================
   ARCHIVO: estilos_ley.css
   PROYECTO: Ley Efectiva (Mobile-First)
   PALETA: Azul Oxford & Dorado Institucional
   ========================================= */

:root {
    --teal-dark: #1A2530;   /* Principal: Seriedad, Ley, Autoridad (Azul Oxford) */
    --teal-light: #14495E;  /* Acentos: Estructura y neutralidad (Azul Acero) */
    --coral: #B8962E;       /* ACENTO DORADO: Acción, Prestigio, Cero política partidista */
    --bone: #F9F9F6;        /* Fondo General: Blanco hueso muy sutil para descanso visual */
    --dark: #212529;        /* Textos principales oscuros y legibles */
    --white: #FFFFFF;       /* Blanco puro para tarjetas */
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bone);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   HEADER (BARRA DE NAVEGACIÓN SUPERIOR)
   ========================================= */
header {
    background-color: var(--white);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.logo-text span { 
    color: var(--coral); 
}

/* Enlaces del Header */
.nav-menu { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}
.nav-item { 
    color: var(--teal-dark); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: bold; 
    transition: 0.3s;
}
.nav-item:hover { 
    color: var(--coral); 
}
.btn-outline { 
    border: 2px solid var(--teal-dark); 
    padding: 6px 15px; 
    border-radius: 20px; 
}
.btn-outline:hover {
    background-color: var(--teal-dark);
    color: var(--white);
}

/* =========================================
   ESTRUCTURA DIVIDIDA (PORTADA INDEX)
   ========================================= */
.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- LADO IZQUIERDO: PRESENTACIÓN (HERO) --- */
.hero-section {
    /* CORRECCIÓN APLICADA: El RGBA ahora coincide con #1A2530 y #14495E (Azul Oxford) */
    background: linear-gradient(135deg, rgba(26, 37, 48, 0.9) 0%, rgba(20, 73, 94, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1531266752426-aad472b7bbf4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Botón Principal (Dorado) */
.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--coral);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    /* CORRECCIÓN APLICADA: Sombra ahora usa los valores RGB del color dorado */
    box-shadow: 0 4px 15px rgba(184, 150, 46, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-main:hover {
    box-shadow: 0 6px 20px rgba(184, 150, 46, 0.6);
}
.btn-main:active { 
    transform: scale(0.95); 
}

/* =========================================
   SECCIÓN DE PROPUESTAS / INICIATIVAS
   ========================================= */
.proposals-section, .causas-container {
    padding: 40px 20px;
    background-color: var(--bone);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--teal-dark);
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
}

/* Tarjeta de la Causa */
.causa-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--teal-light);
    transition: transform 0.2s;
}
.causa-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.causa-tag {
    /* CORRECCIÓN APLICADA: Fondo translúcido del color Azul Acero */
    background-color: rgba(20, 73, 94, 0.1);
    color: var(--teal-light);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.causa-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.causa-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.btn-leer-mas { 
    background: transparent; 
    color: var(--teal-dark); 
    border: none; 
    font-weight: bold; 
    text-decoration: underline; 
    cursor: pointer; 
    margin-bottom: 15px; 
    display: inline-block; 
    font-size: 0.9rem; 
    transition: 0.2s;
}
.btn-leer-mas:hover {
    color: var(--coral);
}

/* --- BARRA DE PROGRESO DE FIRMAS --- */
.progress-stats {
    display: flex; justify-content: space-between; align-items: flex-end;
    font-size: 0.85rem; font-weight: 700; margin-bottom: 8px;
}
.progress-stats .actual { color: var(--coral); font-size: 1rem; }
.progress-stats .meta { color: #888; }
.progress-bar-bg { 
    width: 100%; height: 8px; 
    background-color: #E0E0E0; 
    border-radius: 4px; overflow: hidden; margin-bottom: 15px; 
}
.progress-bar-fill { 
    height: 100%; 
    background-color: var(--coral); 
    border-radius: 4px; transition: width 1s ease-in-out; 
}

/* Botón Firmar Secundario */
.btn-firma {
    display: block; width: 100%; text-align: center;
    background-color: var(--white); color: var(--teal-dark); 
    border: 2px solid var(--teal-dark);
    padding: 12px; border-radius: 8px; font-weight: 700; 
    text-decoration: none; transition: 0.3s;
}
.btn-firma:hover { 
    background-color: var(--teal-dark); color: var(--white); 
}

/* --- ELEMENTOS EXTRAS (CHECKBOX, ESTADO VACÍO) --- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    background: white;
    border-radius: 15px;
    border: 2px dashed #ccc;
}

.legal-check-container { 
    display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; 
    text-align: left; background: #f9f9f9; padding: 10px; 
    border-radius: 5px; border: 1px solid #ddd; 
}
.legal-check-container input { margin-top: 3px; width: 18px; height: 18px; cursor:pointer; }
.legal-check-container label { font-size: 0.75rem; color: #555; line-height: 1.3; cursor:pointer;}
.legal-check-container a { color: var(--teal-dark); font-weight: bold; }

/* --- FOOTER --- */
footer {
    background-color: var(--dark);
    color: var(--bone);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
}
footer a { color: var(--bone); text-decoration: none; transition: 0.2s; }
footer a:hover { color: var(--coral); text-decoration: underline; }

/* =========================================
   DISEÑO PARA COMPUTADORAS (PANTALLA DIVIDIDA)
   ========================================= */
@media (min-width: 900px) {
    .layout-wrapper {
        flex-direction: row;
        height: calc(100vh - 65px); /* Menos el header */
        overflow: hidden;
    }
    
    .hero-section {
        width: 45%;
        height: 100%;
        position: sticky;
        top: 0;
        padding: 60px;
        align-items: flex-start;
        text-align: left;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.15rem; padding: 0; }
    
    .proposals-section {
        width: 55%;
        height: 100%;
        overflow-y: auto; /* El lado derecho hace scroll independiente */
        padding: 50px 8%;
    }
    
    .section-title { text-align: left; font-size: 1.8rem; }
}

/* ESTILO PANTALLA COMPLETA HERO (Para Portada) */
.hero-fullscreen {
    flex: 1;
    background: linear-gradient(135deg, rgba(26, 37, 48, 0.9) 0%, rgba(20, 73, 94, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1531266752426-aad472b7bbf4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; color: var(--white); padding: 40px 20px;
}
.hero-fullscreen h1 { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero-fullscreen p { font-size: 1.1rem; max-width: 600px; margin-bottom: 35px; line-height: 1.6; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }