/* --- VARIABLES Y CONFIGURACIÓN --- */
:root {
    --azul-profundo: #002E86;
    --amarillo-vibrante: #FFD500;
    --blanco: #FFFFFF;
    --gris-claro: #F5F5F5;
    --rojo-detalle: #FFD500;
    --negro-texto: #1E293B;
    --gris-oscuro: #64748B;
    --font-titles: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-elegant: 0 10px 30px rgba(0, 46, 134, 0.08);
    --radius-smooth: 12px;
    --transition-clean: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--negro-texto);
    background-color: var(--blanco);
    overflow-x: hidden;
    line-height: 1.6;
}


.logo-campana-img {
    width: 45px; 
    height: 45px;
    object-fit: contain; 
    border-radius: 4px;
}

/* --- REUTILIZABLES --- */
h1, h2, h3, h4 {
    font-family: var(--font-titles);
    font-weight: 900;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    color: var(--azul-profundo);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--azul-profundo);
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--amarillo-vibrante);
    margin: 15px auto 0;
    border-radius: 2px;
}

.accent-line.left {
    margin: 15px 0 0 0;
}

.btn-primary {
    background-color: var(--amarillo-vibrante);
    color: var(--azul-profundo);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 213, 0, 0.3);
    transition: var(--transition-clean);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 213, 0, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanco);
    padding: 12px 26px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    border: 2px solid var(--blanco);
    transition: var(--transition-clean);
}

.btn-secondary:hover {
    background-color: var(--blanco);
    color: var(--azul-profundo);
}

.modulos-principales {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.modulo-item {
    background-color: var(--azul-profundo);
    color: white;
    text-decoration: none;
    padding: 30px 20px;
    border-radius: var(--radius-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.modulo-item:hover {
    transform: translateY(-5px);
    background-color: var(--amarillo-vibrante);
    color: var(--azul-profundo);
}

.modulo-item i {
    font-size: 24px;
}
.nav-list-paginas {
    display: none;
}

/* --- 1. NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #002E86;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.navbar.scrolled {
    background-color: #ffffff; /* Cambia a fondo blanco al bajar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .logo-titulo h1 {
    color: #002E86;
}


/* --- FILA SUPERIOR --- */
.nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-titulo h1 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.logo-campana-img {
    height: 40px;
    width: auto;
}

/* Aislado con .nav-top-row para no heredar nada de la
   otra .modulos-principales/.modulo-item (la cuadrícula
   de tarjetas grandes definida más arriba) sin importar
   el orden de las reglas en el archivo. */
.nav-top-row .modulos-principales {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin: 0;
    max-width: none;
}

.nav-top-row .modulo-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background-color: transparent;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 4px;
    text-align: left;
    transition: all 0.3s ease;
}

.nav-top-row .modulo-item i {
    font-size: 14px;
}

.nav-top-row .modulo-item:hover {
    background-color: #FFD500;
    color: #002E86;
    transform: none;
}


.navbar.scrolled .nav-top-row .modulo-item {
    color: #002E86; 
}
.navbar.scrolled .nav-top-row .modulo-item:hover {
    background-color: #002E86;
    color: #FFD500;
}


/* --- FILA INFERIOR --- */
.nav-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    transition: border-color 0.3s ease;
}


.navbar.scrolled .nav-bottom-row {
    border-top: 1px solid #f0f0f0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}


.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: #F5F5F5;
}

.navbar.scrolled .nav-link {
    color: #333333;
}
.navbar.scrolled .nav-link:hover, 
.navbar.scrolled .nav-link.active {
    color: #002E86;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.btn-unete {
    display: inline-block;
    text-decoration: none;
    background-color: #ffcc00;
    color: #002E86;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-unete:hover {
    background-color: #e5b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 204, 0, 0.3);
}

.btn-unete:active {
    transform: translateY(0);
}


/* --- BOTÓN HAMBURGUESA MOBILE --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.3s ease;
}

.navbar.scrolled .menu-toggle {
    color: #333333;
}

.btn-unete {
    display: inline-block;
    text-decoration: none;
    background-color: #ffcc00;
    color: #002E86; 
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(251, 192, 45, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-unete:hover {
    background-color: #fbc02d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(251, 192, 45, 0.4);
}

.btn-unete:active {
    transform: translateY(0);
}

/* --- 2. HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, var(--azul-profundo) 65%, #0c43ad 100%);
    min-height: 100vh;
    padding: 230px 5% 60px;
    display: flex;
    align-items: center;
    color: var(--blanco);
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero-badge {
    background-color: rgba(255, 213, 0, 0.15);
    color: var(--amarillo-vibrante);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--amarillo-vibrante);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 500px;
}

.hero-graphic-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--amarillo-vibrante) 0%, transparent 70%);
    opacity: 0.2;
    z-index: 1;
    top: 10%;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 2;
    border-radius: var(--radius-smooth);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
}

.candidata-floating-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background-color: var(--blanco);
    color: var(--azul-profundo);
    padding: 15px 25px;
    border-radius: var(--radius-smooth);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 3;
    border-left: 5px solid var(--rojo-detalle);
}

.candidata-floating-card h3 {
    font-size: 1.2rem;
}

.candidata-floating-card p {
    font-size: 0.85rem;
    color: var(--gris-oscuro);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- 3. SECCIÓN PROPUESTAS --- */
.propuestas-section {
    padding: 100px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.propuestas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card-propuesta {
    display: flex;
    gap: 20px;
    background-color: var(--blanco);
    padding: 30px;
    border-radius: var(--radius-smooth);
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-clean);
    border: 1px solid #f0f4f8;
}

.card-propuesta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 46, 134, 0.12);
    border-color: var(--amarillo-vibrante);
}

.icon-wrap {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 46, 134, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-profundo);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition-clean);
}

.card-propuesta:hover .icon-wrap {
    background-color: var(--azul-profundo);
    color: var(--amarillo-vibrante);
}

.card-content h3 {
    font-size: 1.25rem;
    color: var(--azul-profundo);
    margin-bottom: 8px;
}

.card-content p {
    color: var(--gris-oscuro);
    font-size: 0.95rem;
}

/* --- 4. BIOGRAFÍA --- */
.biografia-section {
    background-color: var(--gris-claro);
    padding: 100px 5%;
}

.biografia-container {
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    gap: 60px;
}

.bio-image-side {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.bio-img {
    width: 100%;
    border-radius: var(--radius-smooth);
    box-shadow: var(--shadow-elegant);
}

.experience-badge {
    position: absolute;
    top: -25px;
    right: -25px;
    background-color: var(--azul-profundo);
    color: var(--blanco);
    padding: 20px;
    border-radius: var(--radius-smooth);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 46, 134, 0.3);
}

.badge-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--amarillo-vibrante);
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.bio-text-side {
    flex: 1;
}

.bio-lead {
    font-size: 1.2rem;
    color: var(--azul-profundo);
    font-weight: 600;
    margin: 25px 0;
}

.timeline-summary {
    margin-bottom: 30px;
}

.timeline-item-short {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
}

.time-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--rojo-detalle);
    border-radius: 50%;
}

.timeline-item-short h4 {
    font-size: 1.1rem;
    color: var(--azul-profundo);
}

.timeline-item-short p {
    color: var(--gris-oscuro);
    font-size: 0.95rem;
}

/* --- 5. ESTADÍSTICAS --- */
.stats-section {
    background-color: var(--azul-profundo);
    color: var(--blanco);
    padding: 60px 5%;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
    gap: 30px;
}

.stat-box .stat-number {
    font-family: var(--font-titles);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--amarillo-vibrante);
    line-height: 1;
}

.stat-box .stat-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* --- 6. GALERÍA MASONRY --- */
.gallery-section {
    padding: 100px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 240px;
    gap: 20px;

    grid-auto-flow: dense; 
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-smooth);
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-clean);
}

.gallery-item.size-v { grid-row: span 2; }
.gallery-item.size-h { grid-column: span 2; }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 46, 134, 0.9), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: var(--transition-clean);
}

.gallery-overlay span {
    color: var(--blanco);
    font-weight: 700;
    font-size: 1.1rem;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- 7. CRONOGRAMA INTERACTIVO --- */
.timeline-section {
    background-color: var(--gris-claro);
    padding: 100px 5%;
}

.interactive-timeline {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto 40px;
    position: relative;
}

.interactive-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #cbd5e1;
    z-index: 1;
}

.timeline-node {
    position: relative;
    z-index: 2;
    text-align: center;
    cursor: pointer;
}

.timeline-node .node-date {
    display: width;
    width: 54px;
    height: 54px;
    background-color: var(--blanco);
    border: 4px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition-clean);
}

.timeline-node .node-title {
    font-weight: 700;
    color: var(--gris-oscuro);
}

.timeline-node.active .node-date {
    border-color: var(--azul-profundo);
    background-color: var(--amarillo-vibrante);
    color: var(--azul-profundo);
}

.timeline-node.active .node-title {
    color: var(--azul-profundo);
}

.timeline-detail-box {
    max-width: 700px;
    background-color: var(--blanco);
    padding: 30px;
    border-radius: var(--radius-smooth);
    margin: 0 auto;
    box-shadow: var(--shadow-elegant);
    text-align: center;
    border-top: 4px solid var(--azul-profundo);
    animation: fadeIn 0.5s ease;
}

.timeline-detail-box h3 {
    color: var(--azul-profundo);
    margin-bottom: 10px;
}

/* --- 8. REDES SOCIALES --- */
.social-section {
    padding: 80px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius-smooth);
    text-decoration: none;
    color: var(--negro-texto);
    font-weight: 700;
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-clean);
    background-color: var(--blanco);
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    transition: var(--transition-clean);
}

.social-card:hover {
    transform: translateY(-5px);
    color: var(--blanco);
}

.social-card.facebook:hover { background-color: #1877F2; }
.social-card.instagram:hover { background-color: #E4405F; }
.social-card.tiktok:hover { background-color: #000000; }
.social-card.youtube:hover { background-color: #CD201F; }

.social-card:hover .social-icon {
    transform: scale(1.2);
}

/* --- 9. FORMULARIO CONTACTO --- */
.contacto-section {
    padding: 100px 5%;
    background-color: var(--gris-claro);
}

.contacto-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
}

.contacto-info {
    flex: 1;
    background-color: var(--azul-profundo);
    color: var(--blanco);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacto-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-item {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.contacto-form-wrapper {
    flex: 1.3;
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-clean);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--azul-profundo);
    box-shadow: 0 0 0 3px rgba(0, 46, 134, 0.1);
}

.form-group.invalid input {
    border-color: var(--rojo-detalle);
}

.error-msg {
    color: var(--rojo-detalle);
    font-size: 0.8rem;
    display: none;
    margin-top: 4px;
}

.form-group.invalid .error-msg {
    display: block;
}

.btn-submit {
    background-color: var(--azul-profundo);
    color: var(--blanco);
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-clean);
}

.btn-submit:hover {
    background-color: #0c43ad;
}

.success-alert {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* --- 10. FOOTER --- */
.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 80px 5% 30px;
    font-family: 'Poppins', sans-serif;
}


.footer-top {
    display: flex;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto 50px;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1.5;
    min-width: 250px;
}

.footer-brand .logo-titulo h3 {
    color: var(--blanco);
}

.footer-slogan {
    margin-top: 15px;
}

.footer-links, .footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer-links h4, .footer-legal h4 {
    color: var(--blanco);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-clean);
}

.footer-links ul li a:hover {
    color: var(--amarillo-vibrante);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 30px;
    font-size: 0.9rem;
}

/* --- ADICIONALES (VOLVER ARRIBA / ANIMACIONES) --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 45px;
    height: 45px;
    background-color: var(--rojo-detalle);
    color: var(--blanco);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition-clean);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    right: 30px;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- RESPONSIVE / BREAKPOINTS --- */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
}

@media (max-width: 992px) {
    .menu-toggle { display: block; }

    .nav-top-row { position: relative; }

    /* Oculto por defecto; el botón hamburguesa agrega
       la clase .mobile-active vía inicio.js */
    .nav-top-row .modulos-principales {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        width: 100%;
        background-color: #002E86;
        border-radius: var(--radius-smooth);
        box-shadow: var(--shadow-elegant);
        padding: 10px;
        z-index: 999;
    }

    .nav-top-row .modulos-principales.mobile-active {
        display: flex;
    }

    .nav-top-row .modulo-item {
        width: 100%;
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .nav-top-row .modulo-item i { font-size: 16px; width: 20px; }

    .navbar.scrolled .nav-top-row .modulos-principales {
        background-color: #ffffff;
    }

    .nav-list-paginas {
        display: none;
    }

    /* --- MENÚ SECUNDARIO (Inicio, Propuestas, Sobre Karen...) COMO CARRUSEL --- */
    .nav-bottom-row {
        gap: 8px;
    }

    .container-nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 18px;
        padding: 2px 4px 6px;
        mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
    }

    .nav-list::-webkit-scrollbar {
        display: none;
    }

    .nav-list li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .nav-link {
        display: inline-block;
        white-space: nowrap;
    }

    .nav-actions {
        flex-shrink: 0;
    }

    .btn-unete {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero-section {
        min-height: auto;
        padding: 130px 5% 50px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-buttons { justify-content: center; }
    
    .hero-image-container { margin-top: 40px; }
    
    .propuestas-grid { grid-template-columns: 1fr; }
    
    .biografia-container { flex-direction: column; }

    .bio-image-side { margin: 0 auto; }

    .experience-badge {
        top: -15px;
        right: 10px;
        padding: 14px 18px;
    }

    .candidata-floating-card {
        left: 10px;
        padding: 12px 20px;
    }
    
    .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .stats-container { flex-direction: column; gap: 40px; }
    .gallery-masonry { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .gallery-item.size-h { grid-column: auto; }
    .interactive-timeline { flex-direction: column; gap: 30px; align-items: flex-start; padding-left: 20px; }
    .interactive-timeline::before { width: 4px; height: 100%; top: 0; left: 45px; }
    .timeline-node { display: flex; gap: 20px; align-items: center; }
    .timeline-node .node-date { margin: 0; }
    .contacto-container { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { text-align: center; }
    .social-grid { grid-template-columns: 1fr; }
    .contacto-info, .contacto-form-wrapper { padding: 30px 20px; }

    .section-header h2 { font-size: 1.9rem; }

    .logo-titulo h1 { font-size: 1.05rem; }
    .logo-campana-img { width: 34px; height: 34px; }

    .experience-badge {
        top: -12px;
        right: 6px;
        padding: 10px 14px;
    }
    .badge-num { font-size: 1.5rem; }

    .candidata-floating-card {
        left: 6px;
        padding: 10px 16px;
    }
    .candidata-floating-card h3 { font-size: 1rem; }
}