/* Estilos generales */
body {
    font-family: 'Inter', sans-serif;
    padding-top: 70px;
    overflow-x: hidden;
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */
.navbar {
    background: rgba(26, 42, 108, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #fdbb2d !important;
}

.btn-donate-nav {
    background: #b21f1f;
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-donate-nav:hover {
    background: #8b1a1a;
    transform: scale(1.05);
}

/* ============================================
   HERO BANNER (SLIDER)
   ============================================ */
.hero-banner {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-donate-hero {
    background: white;
    color: #1a2a6c;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-donate-hero:hover {
    transform: scale(1.05);
    background: #fdbb2d;
    color: #1a2a6c;
}

/* Controles del slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.6);
    color: #1a2a6c;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: #fdbb2d;
    transform: scale(1.2);
}

/* ============================================
   FEATURES (CAJITAS)
   ============================================ */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.feature-card {
    background: white;
    padding: 40px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a2a6c;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 18px;
}

.feature-link {
    color: #b21f1f;
    font-weight: 600;
    text-decoration: none;
}

.feature-link:hover {
    color: #fdbb2d;
}

/* ============================================
   COUNTERS
   ============================================ */
.counters-section {
    background: #1a1a2e;
    padding: 60px 0;
    color: white;
}

.counter-item i {
    font-size: 2.8rem;
    color: #fdbb2d;
    margin-bottom: 15px;
}

.counter-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.counter-item p {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 8px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 108, 0.85);
}

.cta-banner .container {
    position: relative;
    z-index: 2;
    color: white;
}

.cta-banner h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn-cta {
    background: #b21f1f;
    color: white;
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-cta:hover {
    background: #8b1a1a;
    transform: scale(1.05);
    color: white;
}

/* ============================================
   BLOG PREVIEW
   ============================================ */
.blog-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a2a6c;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: all 0.3s;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2a6c;
    margin-bottom: 10px;
}

.blog-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.blog-link {
    color: #b21f1f;
    font-weight: 600;
    text-decoration: none;
}

.blog-link:hover {
    color: #fdbb2d;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    height: 100%;
}

.testimonial-card .fa-quote-left {
    color: #b21f1f;
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.testimonial-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.testimonial-card h5 {
    margin-top: 15px;
    color: #1a2a6c;
    font-weight: 700;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.accordion-button {
    background: white;
    font-weight: 600;
    padding: 20px 25px;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: #1a2a6c;
    color: white;
}

.accordion-body {
    background: white;
    padding: 20px 25px;
    color: #555;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    padding: 80px 0;
    background: #1a2a6c;
    color: white;
}

.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-wrapper h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-wrapper p {
    opacity: 0.8;
    margin-bottom: 25px;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    padding: 14px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
}

.btn-newsletter {
    background: #fdbb2d;
    color: #1a2a6c;
    padding: 14px 30px;
    border: none;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-newsletter:hover {
    background: #e6a800;
    color: #1a2a6c;
}

.newsletter-wrapper small {
    display: block;
    margin-top: 15px;
    opacity: 0.6;
    font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 30px;
    text-align: center;
}

.footer a {
    color: #fdbb2d;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer .social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
}

.footer .social-icons a:hover {
    color: #fdbb2d;
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn-donate-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .counter-number {
        font-size: 2.2rem;
    }
    .cta-banner h2 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .feature-card {
        padding: 25px;
    }
}

/* ============================================
   SELECTOR DE IDIOMA (MEJORADO)
   ============================================ */
.lang-selector .dropdown-toggle {
    color: white !important;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.lang-selector .dropdown-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.lang-selector .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

.lang-selector .dropdown-item.active {
    background: #1a2a6c;
    color: white !important;
}

.lang-selector .dropdown-item:hover {
    background: #fdbb2d;
    color: #1a2a6c !important;
}

.lang-selector .dropdown-item strong {
    font-weight: 600;
}

.lang-selector .dropdown-divider {
    margin: 5px 0;
}

.lang-selector .dropdown-item.text-muted {
    font-size: 0.8rem;
    color: #999 !important;
    cursor: default;
}

.lang-selector .dropdown-item.text-muted:hover {
    background: transparent;
}

/* ==========================================
   GALERÍA
   ========================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item .gallery-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item .gallery-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 40px 20px 15px 20px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-text {
    opacity: 1;
}

/* ==========================================
   MODAL (LIGHTBOX)
   ========================================== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal.show {
    display: flex;
}

.gallery-modal .modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gallery-modal .modal-caption {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
}

.gallery-modal .close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-modal .close-modal:hover {
    transform: scale(1.2);
}