/* --- RESET BÁSICO Y VARIABLES DE MARCA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-dark: #260552;
    --purple-medium: #816C96;
    --yellow-accent: #C994FF; /* Color de acento cambiado a Lila */
    --white: #FFFFFF;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.main-header {
    background-color: var(--purple-medium);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

/* --- HEADER ESTRATÉGICO --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-tagline {
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    opacity: 0.8;
    animation: fadeIn 0.5s ease-out forwards;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav li {
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}
/* Animación escalonada para cada item del menú */
.main-nav li:nth-child(1) { animation-delay: 0.3s; }
.main-nav li:nth-child(2) { animation-delay: 0.4s; }
.main-nav li:nth-child(3) { animation-delay: 0.5s; }
.main-nav li:nth-child(4) { animation-delay: 0.6s; } /* NUEVO: Animación para 4to item */


.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--purple-dark);
}

.main-nav a.active-link {
    color: var(--purple-dark);
    pointer-events: none;
    cursor: default;
}


/* --- ANIMACIONES DEL HEADER --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.8; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}


/* --- BOTONES (CTA) --- */
.cta-button {
    background-color: var(--yellow-accent);
    color: var(--purple-dark);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #d8aeff;
}

.secondary-button {
    background-color: transparent;
    color: var(--purple-dark);
    padding: 10px 20px;
    border: 2px solid var(--purple-dark);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

.secondary-button:hover {
    background-color: var(--purple-dark);
    color: var(--white);
}

/* --- HERO SECTION: ALONSO --- */
.hero-alonso {
    background-color: var(--purple-dark);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-layout, .feature-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.hero-text, .feature-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p, .feature-text p {
    font-size: 1.125rem;
    margin-bottom: 20px;
    max-width: 500px;
}

.hero-image, .feature-image {
    flex: 1;
    max-width: 400px;
}

.hero-image img, .feature-image img {
    width: 100%;
    border-radius: 10px;
}


/* --- SECCIÓN PROPUESTAS --- */
.proposals-section {
    padding: 80px 0;
    background-color: #f4f4f9;
}

.proposals-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--purple-dark);
    font-weight: 900;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.proposals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* NUEVO: Estilo para grid de 2 columnas */
.proposals-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.proposal-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--purple-dark);
}

.proposal-icon {
    font-size: 3rem;
    text-align: center;
    margin-top: 30px;
}

.proposal-card h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--purple-dark);
    margin: 15px 20px;
}

.proposal-card .problem {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    padding: 0 25px 20px 25px;
    border-bottom: 1px solid #eee;
    flex-grow: 1;
}

.proposal-card .solution {
    padding: 20px 25px;
    flex-grow: 1;
}

.solution ul {
    list-style: none;
    padding: 0;
}

.solution li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #333;
}

.solution li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--purple-medium);
    font-weight: bold;
}

.proposal-card .benefit {
    margin-top: auto;
    background-color: #e8e2ee;
    padding: 20px 25px;
    border-radius: 0 0 8px 8px;
}

.benefit p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--purple-dark);
    text-align: center;
}

/* --- SECCIÓN CTA CORREDOR BIOCEÁNICO --- */
.corredor-cta-section {
    background-color: var(--purple-dark);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.corredor-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.corredor-cta-section > .container > p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.15rem;
    line-height: 1.6;
}

.corredor-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    border: 2px solid var(--purple-medium);
    padding: 20px 30px;
    border-radius: 8px;
    min-width: 220px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--yellow-accent);
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- FEATURE SECTION: BARRIONUEVO Y ROSALES --- */
.feature-barrionuevo {
    background-color: var(--white);
    padding: 60px 0;
}
.feature-text h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--purple-dark);
    margin-bottom: 20px;
}
.feature-image {
    order: -1;
}

/* --- SECCIÓN CTA CORONEL ROSALES --- */
.rosales-cta-section {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #ddd;
}
.rosales-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--purple-dark);
}
.rosales-cta-section > .container > p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #555;
}


/* --- ESTILOS PARA LA PÁGINA DEDICADA: corredor.html --- */
.page-hero {
    background-color: var(--purple-medium);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
}
.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 15px auto 0 auto;
}

.problem-solution-section {
    padding: 80px 0;
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.problem-card, .solution-card {
    padding: 30px;
    border-radius: 8px;
}
.problem-card {
    background-color: #fbe9e9;
    border-left: 5px solid #d32f2f;
}
.solution-card {
    background-color: #e8f5e9;
    border-left: 5px solid #388e3c;
}
.problem-card h3, .solution-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.problem-card h3 { color: #d32f2f; }
.solution-card h3 { color: #388e3c; }

.impact-section {
    background-color: #f4f4f9;
    padding: 80px 0;
}
.impact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--purple-dark);
    font-weight: 900;
    margin-bottom: 50px;
}

.concrete-plan-section {
    padding: 80px 0;
}
.concrete-plan-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--purple-dark);
    font-weight: 900;
    margin-bottom: 15px;
}
.concrete-plan-section > .container > p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}
.concrete-plan-section ul {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}
.concrete-plan-section li {
    margin-bottom: 15px;
}
.final-statement {
    text-align: center;
    font-size: 1.5rem !important;
    margin-top: 50px;
    color: var(--purple-dark);
}

/* --- ESTILOS ADICIONALES PARA ROSALES.HTML --- */
.hero-rosales {
    background-color: var(--white);
    color: var(--purple-dark);
    padding: 60px 0;
}
.hero-rosales .hero-text h1 {
    line-height: 1.2;
}

/* --- ESTILO DE REDES SOCIALES --- */
.candidate-socials {
    margin-top: 20px;
    margin-bottom: 20px;
}
.candidate-socials a {
    font-size: 2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
    color: var(--purple-medium);
}
.candidate-socials a:hover {
    color: var(--purple-dark);
}

.hero-alonso .candidate-socials a {
    color: var(--white);
    opacity: 0.8;
}
.hero-alonso .candidate-socials a:hover {
    color: var(--yellow-accent);
    opacity: 1;
}


/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 992px) {
    .proposals-grid {
        grid-template-columns: 1fr;
    }
    .proposals-grid.two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-layout, .feature-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text, .feature-text {
        text-align: center;
    }
    
    .hero-text h1 { font-size: 2.5rem; }
    .feature-text h2 { font-size: 2rem; }

    .feature-image, .hero-image {
        order: 0;
    }

    .proposals-section h2, .corredor-cta-section h2, .impact-section h2, .concrete-plan-section h2, .rosales-cta-section h2 {
        font-size: 2rem;
    }

    .page-hero h1 { font-size: 2.2rem; }
    .problem-solution-grid { grid-template-columns: 1fr; }
}