/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* --- Palette: Dark Luxury --- */
    --bg-body: #0a0a0a;       /* Deep Black */
    --bg-surface: #141414;    /* Slightly lighter for sections */
    --bg-card: #1f1f1f;       /* Dark Gray for cards */
    
    /* --- Brand Colors (Mexico Vibes) --- */
    --primary: #ff9800;       /* Mexican Marigold */
    --primary-gradient: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    --accent: #00bcd4;        /* Turquoise details */
    
    /* --- Text Colors --- */
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    
    /* --- Functional --- */
    --success: #00e676;
    --error: #ff3d00;
    
    /* --- Layout & Typography --- */
    --max-width: 1200px;
    --header-height: 80px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; }
.text-center { text-align: center; }

.text-accent { 
    color: var(--primary); 
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: 2rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.6);
}

.btn:hover::before { opacity: 1; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

/* =========================================
   3. HEADER & NAVIGATION (Glassmorphism)
   ========================================= */
header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 40px; }

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    opacity: 0.9;
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover { opacity: 1; color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: #fff; }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    /* Use a placeholder image that looks like Mexico City or Culture */
    background: 
        linear-gradient(to bottom, rgba(10,10,10,0.5), rgba(10,10,10,1)),
        url('../img/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero h1 {
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
 
.benefits-grid, .courses-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

/* Base Card Style */
.benefit-card, .course-card, .testimonial {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover, .course-card:hover, .testimonial:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(255, 152, 0, 0.3);
}

.benefit-card i {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

/* Course Card Specifics */
.course-card { padding: 0; overflow: hidden; }

.course-img { height: 220px; overflow: hidden; position: relative; }

.course-img img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s ease;
}

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

.course-content { padding: 30px; }
.course-content h3 { color: var(--primary); margin-bottom: 15px; }

/* Testimonials */
.testimonial {
    background: #181818;
    position: relative;
}
.testimonial i { color: var(--primary); opacity: 0.5; margin-bottom: 20px; }
.testimonial h4 { color: var(--primary); font-size: 1rem; margin-top: 20px; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   6. METHODOLOGY & CONTENT
   ========================================= */
#metodologia { background-color: var(--bg-surface); }

.methodology-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.methodology-content img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.methodology-content ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.methodology-content ul li i {
    margin-right: 15px;
    background: rgba(255, 152, 0, 0.1);
    color: var(--primary);
    padding: 8px;
    border-radius: 50%;
    font-size: 0.9rem;
}

/* =========================================
   7. FAQ & FORMS
   ========================================= */
.faq-item {
    background: var(--bg-card);
    margin-bottom: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: color 0.3s;
}

.faq-question:hover { color: var(--primary); }
.faq-question i { transition: transform 0.3s; }

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}
.faq-answer.active { padding-bottom: 25px; }

/* Contact Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}
.contact-info-item i {
    color: var(--primary);
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem;}

input, select, textarea {
    width: 100%;
    padding: 15px;
    background: #151515;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.1);
    background: #1a1a1a;
}

.error-msg { color: var(--error); font-size: 0.85rem; margin-top: 5px; display: none; }
.success-msg { 
    display: none; 
    background: rgba(0, 230, 118, 0.1); 
    border: 1px solid var(--success); 
    color: var(--success); 
    padding: 15px; 
    border-radius: var(--radius); 
    text-align: center;
    margin-top: 20px;
}

/* =========================================
   8. LEGAL PAGES CONTENT
   ========================================= */
.legal-content h1 { color: var(--primary); margin-bottom: 2rem; }
.legal-content h2 { color: #fff; margin-top: 3rem; margin-bottom: 1rem; font-size: 1.8rem; }
.legal-content ul { list-style: disc; margin-left: 20px; color: var(--text-muted); margin-bottom: 1.5rem; }
.legal-content p { color: var(--text-muted); margin-bottom: 1.5rem; text-align: justify; }

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background: #050505;
    padding: 80px 0 30px;
    margin-top: 0;
    border-top: 1px solid #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 { color: #fff; margin-bottom: 25px; font-size: 1.2rem; }
.footer-col p { color: var(--text-muted); font-size: 0.95rem; }

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #888; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }

.footer-col i.fab {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #fff;
    transition: 0.3s;
}
.footer-col i.fab:hover { color: var(--primary); transform: translateY(-3px); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1a1a1a;
    padding-top: 30px;
    color: #444;
    font-size: 0.9rem;
}

/* =========================================
   10. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .methodology-content { gap: 40px; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; padding: 0 20px; }
    
    /* Mobile Menu - Slide from Right */
    .nav-links {
        display: block;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        height: 100vh;
        width: 75%;
        background: #121212;
        padding: 90px 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
        z-index: 999;
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links li { 
        margin-bottom: 25px; 
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 10px;
    }
    .nav-links a { font-size: 1.2rem; display: block;}
    
    .hamburger { display: block; z-index: 1001; }
    
    /* Grid Adjustments */
    .methodology-content, .contact-grid { grid-template-columns: 1fr; }
    .methodology-content { text-align: center; }
    .methodology-content ul { display: inline-block; text-align: left; }
    
    .course-img { height: 200px; }
    
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn { width: 100%; text-align: center; }
}