/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    /* Paleta de Colores Solicitada */
    --color-gold: #ffd700;
    --color-orange: #ff8c00;
    --color-green: #2e8b57;
    
    /* Colores Secundarios / Neutrales */
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-dark: #333333;
    --color-text: #4a4a4a;
    
    /* Degradados */
    --gradient-primary: linear-gradient(135deg, var(--color-gold) 0%, var(--color-orange) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-orange) 0%, var(--color-green) 100%);
    --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    --gradient-secondary-transparent: linear-gradient(135deg, rgba(255, 140, 0, 0.8) 0%, rgba(46, 139, 87, 0.8) 100%);
    --gradient-secondary-light: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(46, 139, 87, 0.15) 100%);
    --gradient-light: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(46, 139, 87, 0.1) 100%);
    
    /* Bordes y Sombras */
    --border-radius-card: 24px;
    --border-radius-pill: 50px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 10px 25px rgba(255, 140, 0, 0.4);
    
    /* Tipografía */
    --font-main: 'Outfit', sans-serif;
    
    /* Transiciones */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* El scroll animado se maneja ahora con JavaScript para mayor control */
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-pill);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================
   BOTONES
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.5);
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-gold) 100%);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--color-white);
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(46, 139, 87, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-orange);
    color: var(--color-orange);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--color-white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-white {
    background: var(--color-white);
    color: var(--color-green);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
    background: var(--color-light);
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

.btn-white-outline {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-white-outline:hover {
    background: var(--color-white);
    color: var(--color-green);
    border-color: transparent;
}

/* Redes / Modal */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}
.btn-email {
    background-color: var(--color-dark);
    color: white;
}
.btn-email:hover {
    background-color: #000;
    color: white;
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    border-radius: 50%; /* Logo redondo si es cuadrado */
    box-shadow: var(--shadow-sm);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu ul {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--color-dark);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu a.highlight-link::after {
    width: 100%;
}

.nav-menu .highlight-link {
    color: var(--color-orange);
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../img/Team\ Recefu.jpeg') center/cover no-repeat;
    text-align: center;
    color: var(--color-white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary-transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* =========================================
   SOBRE NOSOTROS
   ========================================= */
.about {
    background: var(--gradient-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.mission-box {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-green);
}

.mission-box h3 {
    color: var(--color-green);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.about-image img {
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   EMERGENCIA TERREMOTO
   ========================================= */
.emergency {
    background: var(--color-white);
    border-radius: 40px;
    margin: 40px 20px;
    box-shadow: var(--shadow-md);
    padding: 80px 40px;
}

.emergency-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-secondary-light);
    color: var(--color-green);
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 20px 0;
}

.emergency-header p {
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-card);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
}

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

.video-item {
    background-color: #000;
    grid-column: span 2;
}

@media (max-width: 768px) {
    .video-item {
        grid-column: span 1;
    }
}


/* =========================================
   CÓMO AYUDAR
   ========================================= */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.help-card {
    background: var(--gradient-secondary);
    color: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius-card);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.help-card:hover {
    transform: translateY(-10px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--color-white);
    border-radius: 50%; /* Totalmente redondo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-green);
    box-shadow: var(--shadow-glow);
}

.help-card:nth-child(2) .icon-circle {
    background: var(--color-white);
    color: var(--color-orange);
    box-shadow: var(--shadow-glow);
}

.help-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--color-white);
}

.help-card p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.footer-contact ul {
    margin-top: 20px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--color-gold);
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* =========================================
   MODAL
   ========================================= */
.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);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: var(--border-radius-card);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: translateY(-50px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--color-dark);
}

.modal-icon {
    font-size: 3rem;
    color: var(--color-orange);
    margin-bottom: 20px;
    background: -webkit-linear-gradient(var(--color-gold), var(--color-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header h2 {
    color: var(--color-dark);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-highlight {
    font-size: 1.2rem;
    color: var(--color-green);
}

.modal-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1; /* Muestra la imagen arriba en móviles */
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-md);
        display: none; /* Oculto por defecto, se maneja con JS */
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .emergency {
        margin: 20px 10px;
        padding: 40px 20px;
        border-radius: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}

/* =========================================
   LIGHTBOX GALERÍA
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-orange);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-size: 30px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--color-orange);
}

/* =========================================
   BOTÓN FLOTANTE MOBILE
   ========================================= */
#mobile-floating-donate {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1500;
    border-radius: 0; /* flat bottom */
    padding: 18px;
    font-size: 1.2rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-floating-donate.visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #mobile-floating-donate {
        display: block; /* Visible only on mobile */
    }
}
