/* ========================================
   GLOBAL STYLES - Curso Frutales en Macetas
   ======================================== */

:root {
    --green-900: #1a3c2a;
    --green-800: #265c3c;
    --green-700: #2d7a4a;
    --green-600: #3a9d5a;
    --green-500: #4caf50;
    --green-400: #6fbf73;
    --green-300: #a5d6a7;
    --green-200: #c8e6c9;
    --green-100: #e8f5e9;
    --green-50: #f1f8e9;

    --earth-800: #4e342e;
    --earth-600: #6d4c41;
    --earth-400: #8d6e63;
    --earth-200: #bcaaa4;
    --earth-100: #d7ccc8;

    --gold-600: #f9a825;
    --gold-500: #fbc02d;
    --gold-400: #fdd835;

    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.18);
    --shadow-green: 0 4px 20px rgba(76, 175, 80, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;

    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

a:hover {
    color: var(--green-500);
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-800) !important;
}

.logo-icon {
    font-size: 1.5rem;
}

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

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--green-600);
}

.nav-cta {
    background: linear-gradient(135deg, var(--green-600), var(--green-700)) !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    transition: var(--transition);
    box-shadow: var(--shadow-green);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4) !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--green-800);
    padding: 5px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--green-900);
    color: var(--green-200);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--green-300);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col a {
    display: block;
    color: var(--green-300);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--green-400);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--gray-500);
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--green-200);
    border-top: 4px solid var(--green-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== UTILITIES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: white;
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--green-700);
    border: 2px solid var(--green-400);
}

.btn-secondary:hover {
    background: var(--green-50);
    border-color: var(--green-600);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--earth-800);
    box-shadow: 0 4px 20px rgba(249, 168, 37, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 168, 37, 0.4);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.text-center { text-align: center; }
.text-green { color: var(--green-600); }
.text-gold { color: var(--gold-500); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--green-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-400); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-lg);
        border-bottom: 3px solid var(--green-500);
    }

    .nav-links.open {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-content {
        padding: 25px;
        margin: 10px;
    }
}
