/* ===== MR CANDIDATO - CUSTOM STYLES ===== */

/* === ROOT VARIABLES === */
:root {
    /* Colores principales */
    --primary-blue: #004AAD;
    --primary-red: #D72638;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), #0066CC);
    --gradient-secondary: linear-gradient(135deg, var(--primary-red), #FF4757);
    --gradient-hero: linear-gradient(135deg, rgba(0, 74, 173, 0.9), rgba(215, 38, 56, 0.8));
    
    /* Tipografías */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--dark-gray);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* === NAVEGACIÓN === */
.navbar {
    background: rgba(0, 74, 173, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--primary-blue);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white) !important;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: #FFD700 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width var(--transition-fast);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.btn-donate {
    background: var(--gradient-secondary) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .text-primary {
    color: #FFD700 !important;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.hero-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.hero-photo:hover {
    transform: scale(1.05);
}

.btn-play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.btn-play:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* === BOTONES === */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid var(--white);
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

/* === TIMELINE DE BIOGRAFÍA === */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-red);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* === CARDS DE PROPUESTAS === */
.proposal-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: none;
    transition: all var(--transition-fast);
    height: 100%;
}

.proposal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.proposal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.proposal-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.card-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.card-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* === CARDS DE NOTICIAS === */
.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-content h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

/* === CARDS DE EVENTOS === */
.event-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    border-radius: 10px;
    padding: 1rem;
    min-width: 70px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 600;
}

.event-content h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.event-location,
.event-time {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-location i,
.event-time i {
    color: var(--primary-red);
}

/* === GALERÍA === */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 74, 173, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* === CTA SECTION === */
.cta-section {
    background: var(--gradient-hero);
    position: relative;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.cta-buttons .btn {
    margin: 0.5rem;
}

/* === FOOTER === */
.footer {
    background: #1a1a1a !important;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer h5,
.footer h6 {
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 600;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: #FFD700;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

/* === ELEMENTOS FLOTANTES === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #128C7E;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-photo {
        width: 250px;
        height: 250px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .proposal-card,
    .news-card {
        margin-bottom: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        margin: 0;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        margin: 0;
        width: 100%;
        max-width: 300px;
    }
}

/* === MODO OSCURO (OPCIONAL) === */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --dark-gray: #ffffff;
    }
    
    .dark-mode body {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .dark-mode .bg-light {
        background: #2d2d2d !important;
    }
    
    .dark-mode .proposal-card,
    .dark-mode .news-card,
    .dark-mode .event-card {
        background: #2d2d2d;
        color: #ffffff;
    }
}

/* === ANIMACIONES ADICIONALES === */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === LOADING SPINNER === */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === ESTADOS DE FORMULARIOS === */
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.25);
}

.was-validated .form-control:valid {
    border-color: var(--success-green);
}

.was-validated .form-control:invalid {
    border-color: var(--primary-red);
}

/* === UTILIDADES === */
.text-primary-custom {
    color: var(--primary-blue) !important;
}

.bg-primary-custom {
    background: var(--primary-blue) !important;
}

.text-secondary-custom {
    color: var(--primary-red) !important;
}

.bg-secondary-custom {
    background: var(--primary-red) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-lg) !important;
}

.border-radius-custom {
    border-radius: 15px !important;
}

.font-primary {
    font-family: var(--font-primary) !important;
}

.font-secondary {
    font-family: var(--font-secondary) !important;
}