/* ==================== VARIABLES ==================== */
:root {
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --black-lighter: #2a2a2a;
    --gray: #888888;
    --gray-dark: #333333;
    --white: #ffffff;
    --gold: #D4AF37;
    --gold-light: #E8C857;
    --gold-dark: #B8962E;
    --whatsapp: #25D366;
    
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    --transition: all 0.3s ease;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

/* ==================== UTILITIES ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.gold {
    color: var(--gold);
}

.section {
    padding: 60px 0;
}

.section-dark {
    background-color: var(--black);
}

.section-light {
    background-color: var(--black-light);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    color: var(--black);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: transparent;
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-full {
    width: 100%;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 50px;
}

/* ==================== HEADER ==================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 40px;
    width: auto;
}

#nav-menu {
    display: none;
}

#nav-menu ul {
    display: flex;
    gap: 8px;
}

#nav-menu a {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

#nav-menu a:hover {
    color: var(--gold);
}

.header-cta {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ==================== HERO SLIDER ==================== */
.hero-slider-clean {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-top: 70px;
}

.hero-slider-clean .slides-container {
    position: relative;
    height: 100%;
}

.hero-slider-clean .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slider-clean .slide.active {
    opacity: 1;
}

.hero-slider-clean .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}

.slider-controls-clean {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--gold);
}

/* ==================== WELCOME SECTION ==================== */
.welcome-section {
    background: var(--black);
    padding: 50px 0;
}

.welcome-content {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-tag {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.welcome-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.welcome-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.7;
    padding: 0 10px;
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    max-width: 320px;
    margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 10px;
}

.stat-card {
    background: var(--black-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    display: block;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--gray);
    margin-top: 8px;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), rgba(212, 175, 55, 0.2));
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 25px;
}

.timeline-year {
    position: absolute;
    left: -30px;
    top: 0;
    background: var(--gold);
    color: var(--black);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.timeline-content {
    background: var(--black);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 18px;
}

.timeline-content h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 6px;
}

.timeline-content p {
    color: var(--gray);
    font-size: 13px;
}

/* ==================== CAUSES ==================== */
.causes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
}

.cause-card {
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: 16px;
    padding: 25px;
    transition: var(--transition);
}

.cause-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

.cause-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.cause-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.cause-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ==================== TWO COLUMN LAYOUT ==================== */
.two-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 10px;
}

.column-content .section-tag,
.column-content .section-title,
.column-content .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.column-form .section-tag,
.column-form .section-title {
    text-align: left;
}

.text-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* La Rueliza Logo */
.rueliza-section .rueliza-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rueliza-logo img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

.benefits-title {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 12px;
    margin-top: 20px;
}

.benefits-list {
    margin-bottom: 20px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.benefits-list li::before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
    flex-shrink: 0;
}

/* ==================== FORMS ==================== */
.section-form {
    background: var(--black-light);
    position: relative;
}

.form-card {
    background: var(--black);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
}

.form-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.form-card > p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-disclaimer {
    font-size: 11px;
    color: var(--gray);
    text-align: center;
    margin-top: 15px;
}

/* ==================== CONTACT ==================== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: 14px;
    padding: 16px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-text span {
    display: block;
    font-size: 12px;
    color: var(--gray);
}

.contact-text a,
.contact-text p {
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    margin: 0;
}

.contact-text a:hover {
    color: var(--gold);
}

.social-links-box {
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: 14px;
    padding: 20px;
}

.social-links-box h4 {
    color: var(--white);
    margin-bottom: 14px;
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--black-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold);
    color: var(--black);
}

/* ==================== FOOTER ==================== */
#footer {
    background: var(--black);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 50px 0 25px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 35px;
    padding: 0 10px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: var(--black-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--black);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    font-size: 15px;
    margin-bottom: 15px;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact li {
    color: var(--gray);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--gray-dark);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 12px;
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* ==================== MOBILE MENU ACTIVE STATE ==================== */
#nav-menu.active {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 30px 20px;
    z-index: 999;
}

#nav-menu.active ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#nav-menu.active a {
    font-size: 18px;
    padding: 12px 20px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== TABLET STYLES (768px+) ==================== */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    /* Header */
    .logo img {
        height: 45px;
    }
    
    /* Hero Slider */
    .hero-slider-clean {
        height: 70vh;
        min-height: 500px;
        max-height: 700px;
    }
    
    /* Welcome */
    .welcome-section {
        padding: 70px 0;
    }
    
    .welcome-title {
        font-size: 3.5rem;
    }
    
    .welcome-message {
        font-size: 18px;
    }
    
    .welcome-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
        gap: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 900px;
        margin: 0 auto;
        padding: 0;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Timeline - Desktop style */
    .timeline {
        padding-left: 0;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        width: 50%;
        padding-left: 0;
        margin-bottom: 30px;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
        padding-right: 50px;
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 50px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-year {
        left: auto;
        right: -70px;
    }
    
    .timeline-item:nth-child(even) .timeline-year {
        left: -70px;
    }
    
    /* Causes */
    .causes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0;
    }
    
    /* Two Column */
    .two-column {
        flex-direction: row;
        align-items: center;
        gap: 60px;
        padding: 0;
    }
    
    .two-column > * {
        flex: 1;
    }
    
    .rueliza-logo img {
        width: 280px;
        height: 280px;
    }
    
    /* Form Row */
    .form-row {
        flex-direction: row;
        gap: 16px;
    }
    
    .form-row .form-group {
        flex: 1;
    }
    
    .form-card {
        padding: 35px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
    }
    
    .footer-brand {
        max-width: 300px;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==================== DESKTOP STYLES (992px+) ==================== */
@media (min-width: 992px) {
    /* Header */
    #nav-menu {
        display: block;
    }
    
    .header-cta {
        display: inline-flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .header-inner {
        height: 80px;
    }
    
    .hero-slider-clean {
        margin-top: 80px;
    }
    
    /* Welcome */
    .welcome-title {
        font-size: 4rem;
    }
    
    /* Section */
    .section-title {
        font-size: 3rem;
    }
    
    /* Causes */
    .causes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Form Card */
    .form-card {
        padding: 40px;
    }
}

/* ==================== LARGE DESKTOP (1200px+) ==================== */
@media (min-width: 1200px) {
    .welcome-title {
        font-size: 4.5rem;
    }
    
    .rueliza-logo img {
        width: 320px;
        height: 320px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
