/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    overflow-x: hidden;
}

/* ===== TIPOGRAFÍA PREMIUM ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
    font-weight: 600;
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1rem;
}

/* ===== VARIABLES CSS ===== */
:root {
    --primary-blue: #182D56;
    --primary-blue-dark: #1B191A;
    --primary-blue-light: #3b82f6;
    --accent-orange: #FBA931;
    --accent-orange-dark: #d97706;
    --text-primary: #1B191A;
    --text-secondary: #182D56;
    --text-light: #64748b;
    --text-white: #FFFFFF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #E5E5E5;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1B191A;
    --bg-blue: #182D56;
    --border-light: #E5E5E5;
    --shadow-soft: 0 4px 6px -1px rgba(27, 25, 26, 0.1), 0 2px 4px -1px rgba(27, 25, 26, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(27, 25, 26, 0.15), 0 4px 6px -2px rgba(27, 25, 26, 0.08);
    --shadow-large: 0 20px 25px -5px rgba(27, 25, 26, 0.2), 0 10px 10px -5px rgba(27, 25, 26, 0.1);
    --shadow-neomorphic: 8px 8px 16px rgba(27, 25, 26, 0.15), -8px -8px 16px rgba(255, 255, 255, 0.7);
    --shadow-neomorphic-inset: inset 8px 8px 16px rgba(27, 25, 26, 0.15), inset -8px -8px 16px rgba(255, 255, 255, 0.7);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    --gradient-bg: linear-gradient(135deg, #E5E5E5 0%, #ffffff 100%);
}

/* ===== BOTONES NEOMORFISMO ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-neomorphic);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    background: var(--gradient-primary);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    min-width: 200px;
    border-radius: 20px;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== HEADER STICKY PREMIUM ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-blue);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: var(--bg-blue);
    box-shadow: var(--shadow-large);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    margin-top: 5px;
}

.nav-logo .logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* MODIFICADO: Aplica el estilo de fondo al pasar el mouse O cuando el enlace está activo */
.nav-link:hover,
.nav-link.active {
    color: var(--accent-orange);
    background: rgba(251, 169, 49, 0.1);
}

/* MODIFICADO: Aplica el subrayado al pasar el mouse O cuando el enlace está activo */
.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-donate {
    margin-left: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== HERO SECTION BLANCA ===== */
.hero {
    padding: 140px 0 80px;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.hero-img-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    background: var(--bg-primary);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.candidate-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.candidate-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.candidate-card h3 {
    font-size: 18px;
    margin-bottom: 0.5rem;
    color: white;
}

.candidate-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.candidate-role {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.candidate-motto {
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    background: var(--bg-primary);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
}

.about-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-neomorphic);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== PROPOSALS SECTION ===== */
.proposals {
    padding: 100px 0;
    background: var(--bg-primary);
}

.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.proposal-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-neomorphic);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.proposal-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.proposal-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-medium);
}

.proposal-content {
    flex: 1;
}

.proposal-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 24px;
}

.proposal-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== APODERADOS SECTION ===== */
.apoderados {
    padding: 100px 0;
    background: var(--bg-blue);
    color: var(--text-white);
}

.apoderados-content {
    max-width: 800px;
    margin: 0 auto;
}

.apoderados-text h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.apoderados-text h4 {
    color: var(--accent-orange);
    margin: 2rem 0 1rem 0;
    font-size: 20px;
}

.apoderados-text ul {
    list-style: none;
    margin: 1rem 0;
}

.apoderados-text li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-white);
    opacity: 0.9;
}

.apoderados-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.apoderados-qr {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-neomorphic);
    color: var(--text-primary);
}

.qr-container {
    margin: 0 auto 1.5rem;
    width: 200px;
    height: 200px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.qr-placeholder {
    text-align: center;
    color: var(--text-light);
}

.qr-placeholder p:first-child {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.qr-text {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== APORTES SECTION ===== */
.aportes {
    padding: 100px 0;
    background: var(--bg-primary);
}

.aportes-content {
    max-width: 800px;
    margin: 0 auto;
}

.aportes-text {
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.aportes-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-neomorphic);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-medium);
}

.feature-content {
    flex: 1;
}

.feature-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 18px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.aportes-qr {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 24px;
    box-shadow: var(--shadow-neomorphic);
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 100px 0;
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(251,169,49,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.cta-title {
    color: white;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.cta-title::after {
    background: white;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-large);
}

.cta-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta-icon {
    margin-bottom: 2rem;
    color: var(--accent-orange);
}

.cta-card-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 24px;
}

.cta-card-description {
    color: white;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-card .btn {
    background: white;
    color: var(--primary-blue);
    box-shadow: var(--shadow-medium);
}

.cta-card .btn:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-2px);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-neomorphic);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    box-shadow: var(--shadow-neomorphic-inset);
    color: var(--text-primary);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    outline: none;
    box-shadow: var(--shadow-neomorphic-inset), 0 0 0 3px rgba(24, 45, 86, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-social {
    padding: 2rem 0;
}

.social-title {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 24px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
}

.social-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.social-link svg {
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info {
    text-align: center;
}

.footer-text {
    color: white;
    font-size: 14px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.footer-social-link svg {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-developer {
    color: white;
    opacity: 0.8;
    font-size: 14px;
}

.footer-developer a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

.footer-developer a:hover {
    text-decoration: underline;
}

/* ===== MODALES NEOMORFISMO ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-primary);
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
}

.modal-close {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.modal-close:hover {
    color: var(--primary-blue);
    background: rgba(30, 64, 175, 0.1);
}

.modal-body {
    padding: 2rem;
}

.donation-info {
    text-align: center;
}

.donation-text {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.donation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-message {
    text-align: center;
}

.success-text {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== FORMULARIOS ===== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover {
    background: var(--bg-tertiary);
}

.checkbox-input {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.checkbox-text {
    font-size: 16px;
    color: var(--text-primary);
}

/* ===== ANIMACIONES PREMIUM ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Tipografía móvil */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .btn-large {
        font-size: 18px;
        padding: 16px 32px;
    }
    
    /* Navegación móvil */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-large);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero móvil */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .candidate-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* About móvil */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Proposals móvil */
    .proposal-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* Contact móvil */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer móvil */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Modales móviles */
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .donation-actions {
        flex-direction: column;
    }
    
    /* CTA móvil */
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .proposal-item {
        padding: 1.5rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
}

/* ===== UTILIDADES ===== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus visible para navegación por teclado */
.btn:focus,
.form-input:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Alto contraste para mejor legibilidad */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--text-primary);
    }
    
    .form-input {
        border: 2px solid var(--text-primary);
    }
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ESTILO FINAL Y DEFINITIVO PARA BOTÓN DONAR ===== */

/* 1. Regla para el estado normal del botón */
/* Usamos ambas clases para máxima especificidad */
.btn-primary.nav-donate {
    background: var(--gradient-accent); /* Fondo con degradado Naranja/Amarillo */
    color: var(--primary-blue);        /* Texto en Azul Primario */
}

/* 2. Regla para el estado hover (al pasar el mouse) */
/* Debe tener la misma especificidad para anular la regla azul original */
.btn-primary.nav-donate:hover {
    background: var(--gradient-accent); /* Mantenemos el fondo Naranja/Amarillo */
    color: var(--primary-blue);        /* Mantenemos el texto Azul */
    transform: translateY(-2px);       /* Mantenemos la animación de subir */
    box-shadow: var(--shadow-large);   /* Mantenemos la sombra */
    filter: brightness(1.15);          /* Y añadimos el efecto de brillo */
}
/* DONAR: naranjo siempre, texto azul primario */
.header .nav-donate.btn-primary {
  background: var(--accent-orange) !important;
  color: var(--primary-blue) !important;
  border: 2px solid var(--accent-orange);
  box-shadow: var(--shadow-medium);
}
.header .nav-donate.btn-primary:hover,
.header .nav-donate.btn-primary:focus {
  background: var(--accent-orange) !important;
  color: var(--primary-blue) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}
/* ===== Apoderados: sombra oscura, sin brillo blanco ===== */
/* Sobrescribimos variables solo dentro de la sección */
.apoderados{
  /* Sombra única oscura (azul profunda), sin componente blanco */
  --shadow-neomorphic: 26px 26px 52px rgba(10, 26, 56, 0.48);
  --shadow-soft: 12px 18px 32px rgba(10, 26, 56, 0.30);
}

/* Rectángulo grande (panel) usa la sombra oscura */
.apoderados .apoderados-qr{
  box-shadow: var(--shadow-neomorphic) !important;
}

/* Cuadro del QR: misma línea visual (más contenida) */
.apoderados .qr-container{
  box-shadow: var(--shadow-soft) !important;
}
/* ===== Apoderados: colores y paneles ===== */

/* 1) Título y subrayado blancos */
.apoderados .section-title{
  color:#fff;
}
.apoderados .section-title::after{
  background:#fff;
}

/* 2) Párrafo introductorio en blanco (sin afectar .qr-text) */
.apoderados .apoderados-text > p{
  color:#fff;
  opacity:1;
}

/* 3) Panel grande (mismo gris que Aportes) */
.apoderados .apoderados-qr{
  background: var(--bg-secondary) !important; /* Aportes usa bg-secondary */
}

/* 4) Cuadrado QR: mismo “relieve” que en Aportes */
.apoderados .qr-container{
  background: var(--bg-tertiary) !important;
  box-shadow: var(--shadow-soft) !important;
}
/* === QR cards: MISMO efecto en Apoderados y Aportes === */
.apoderados .qr-container,
.aportes .qr-container{
  background: var(--bg-tertiary) !important;     /* gris claro consistente */
  border-radius: 16px;                            /* igual radio en ambos */
  /* sombra oscura (sin halo blanco), tono azul profundo */
  box-shadow: 26px 26px 52px rgba(10,26,56,0.42) !important;
  border: 1px solid rgba(80,110,160,0.18);       /* borde sutil para definición */
}

/* Texto dentro del cuadrado QR: azul y con buen contraste */
.apoderados .qr-container .qr-placeholder,
.aportes   .qr-container .qr-placeholder{
  color: var(--primary-blue);
  opacity: .95;
}
/* ===== NAV: colapsar desde 1175px ===== */
@media (max-width: 1175px) {
  .nav-toggle {                 /* muestra el botón hamburguesa */
    display: flex;
  }

  .nav-menu {                   /* menú móvil tipo drawer */
    position: fixed;
    left: -100%;
    top: 80px;                  /* altura del header */
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-large);
    transition: 0.3s;
    z-index: 2000;
  }

  .nav-menu.active {            /* cuando haces click en el toggle */
    left: 0;
  }
}
/* Menú hamburguesa (≤1175px): texto azul antes del hover */
@media (max-width:1175px){
  .header .nav-menu .nav-link{
    color: var(--primary-blue) !important;  /* azul por defecto */
  }
  .header .nav-menu .nav-link:hover,
  .header .nav-menu .nav-link:focus{
    color: var(--accent-orange) !important; /* mantiene hover en acento */
  }
}
/* ========== HERO: nitidez imagen + overlay más limpio ========== */

/* Mantén proporción y recorte elegante (sin deformar) */
.hero-img-container{
  aspect-ratio: 16/9;           /* define marco estable */
  max-height: 560px;            /* evita crecer demasiado */
}

/* La imagen llena el contenedor sin deformarse */
.hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;            /* recorte en lugar de estirar */
  object-position: 50% 20%;     /* ajusta el encuadre (sube si se corta la cara) */
  image-rendering: auto;
}

/* Limita el overlay SOLO a la parte inferior y con menos oscuridad */
.hero-overlay{
  height: 48%;                  /* no cubre toda la foto */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0) 100%
  );
  padding: 1.25rem 1.5rem;      /* un poco menos de padding */
}

/* Las tarjetas sobre la foto con menos “niebla” */
.candidate-card{
  background: rgba(255,255,255,0.08); /* antes 0.1 */
  backdrop-filter: blur(8px);         /* antes 10px */
  border: 1px solid rgba(255,255,255,0.18);
}
/* === HERO sin tarjetas: imagen levantada (neumorfismo) + caption === */

/* Quita overlay antiguo si quedara en el DOM */
.hero-overlay { display: none !important; }

/* Contenedor de la imagen con sombra externa azul (lift) */
.hero-img-container.lift{
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-primary); /* mantiene marco claro */
  /* Sombra externa, sin halo blanco (tono azul profundo) */
  box-shadow:
    24px 24px 60px rgba(10, 26, 56, 0.40),
    6px  12px 24px rgba(10, 26, 56, 0.18);
}

/* La imagen no se deforma y mantiene encuadre bonito */
.hero-img-container .hero-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 25%;
}

/* Ajusta el “marco” del contenedor para evitar alturas raras */
.hero-img-container{
  aspect-ratio: 16/9;
  max-height: 560px;
}

/* Caption bajo la foto */
.hero-caption{
  text-align: center;
  margin-top: 14px;
  color: var(--primary-blue);
  font-weight: 600;
  line-height: 1.3;
}
.hero-caption p{
  margin: 4px 0;
}
/* QR Apoderados: mostrar imagen SVG nítida en el recuadro */
.apoderados .qr-container{
  display: grid;
  place-items: center;
  width: min(260px, 80vw);
  aspect-ratio: 1 / 1;            /* siempre cuadrado */
  padding: 16px;                  /* “marco” blanco alrededor del QR */
  background: #fff;               /* QR necesita fondo blanco para buen contraste */
  border-radius: 16px;
  box-shadow: var(--shadow-soft); /* tu sombra existente */
}

.apoderados .qr-container .qr-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;     /* bordes nítidos en QR */
}

/* Quita el placeholder si quedara en caché */
.apoderados .qr-placeholder{ display:none !important; }
/* ===== ESTILOS PARA VIDEO DE FONDO EN HERO ===== */

/* 1. Aseguramos que el contenedor principal pueda posicionar el video */
.hero {
    position: relative; /* Necesario para posicionar el video absolutamente dentro */
    overflow: hidden;   /* Oculta cualquier parte del video que se desborde */
}

/* 2. Estilos para el video */
.hero-background-video {
    position: absolute;   /* Lo saca del flujo normal del documento */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra el video perfectamente */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;           /* Lo coloca en la capa de fondo */
    object-fit: cover;    /* Asegura que el video cubra todo el espacio sin deformarse */
}

/* 3. Aseguramos que el contenido esté por encima del video */
.hero-container {
    position: relative; /* Para que su z-index funcione */
    z-index: 2;         /* Lo coloca en una capa superior al video */
}

/* 4. (Opcional) Puedes añadir una capa oscura para mejorar la legibilidad del texto */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Ajusta la opacidad (0.3 es 30%) */
    z-index: 1; /* La capa oscura va entre el video y el texto si es necesario, si no, puedes quitar esto */
}
/* ===== ESTILOS DE TEXTO SOBRE VIDEO HERO ===== */

/* 1. Título principal "Lucho por Atacama" y subtítulo */
.hero .hero-title,
.hero .hero-subtitle {
    color: #FFFFFF; /* Color de texto blanco */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Sombra negra fuerte para contraste */
}

/* 2. Badge "K82" dorado y palpitante */
.hero .hero-badge {
    background: var(--gradient-accent); /* Fondo dorado/naranja usando tu variable de color */
    color: #FFFFFF; /* Texto "K82" en blanco */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Sombra sutil para el texto del badge */
    /* La animación "pulse" ya está aplicada, así que seguirá palpitando */
}

/* 3. Caption de Johannes Kaiser y Luis Núñez bajo la imagen */
.hero .hero-caption,
.hero .hero-caption p {
    color: #FFFFFF; /* Color de texto blanco */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Sombra negra para legibilidad */
}

/* 4. (Opcional pero recomendado) Mejorar el contraste de los botones */
.hero .btn-secondary {
    color: #FFFFFF; /* Texto del botón secundario en blanco */
    border-color: #FFFFFF; /* Borde del botón en blanco */
    background-color: rgba(255, 255, 255, 0.1); /* Fondo semitransparente */
    backdrop-filter: blur(5px); /* Efecto "vidrio esmerilado" */
}

.hero .btn-secondary:hover {
    background-color: #FFFFFF; /* Al pasar el mouse, se vuelve blanco sólido */
    color: var(--primary-blue); /* Con texto azul */
}
/* ===== SECCIÓN CONSULTA SERVEL ===== */
.servel-cta {
    padding: 3rem 0;
    background: var(--bg-blue); /* "barra azul institucional" */
    text-align: center;
}

.btn-servel {
    background: var(--gradient-accent); /* "botón dorado institucional" */
    color: var(--text-white);        /* "letra blanca" */
    box-shadow: var(--shadow-medium);
}

.btn-servel:hover {
    background: var(--gradient-accent);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    filter: brightness(1.15); /* Efecto de brillo al pasar el mouse */
}