/* ========== CONFIGURACIÓN GLOBAL Y VARIABLES ========== */
:root {
    --dark-bg: #212121; /* Gris profundo */
    --light-bg: #FFFFFF;
    --card-dark: #2C2C2C;
    --text-light: #F5F5F5;
    --text-dark: #212121;
    --primary-yellow: #FFD464;
    --accent-blue: #4A90E2; /* Azul eléctrico / menta */
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 3rem; }
p { margin-bottom: 1rem; font-size: 1.1rem; }
a { color: var(--primary-yellow); text-decoration: none; }
.text-center { text-align: center; }

/* ========== NAVEGACIÓN ========== */
.main-header {
    background-color: rgba(33, 33, 33, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 600; color: var(--text-light); }
.main-nav ul { list-style: none; display: flex; gap: 2rem; }
.main-nav ul li a { color: var(--text-light); font-weight: 600; transition: color 0.3s; }
.main-nav ul li a:hover { color: var(--primary-yellow); }

/* ========== BOTONES (CTA) ========== */
.cta-button {
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-title);
    font-weight: 600;
    display: inline-block;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s;
}
.cta-button:hover { transform: translateY(-3px); }
.cta-button.primary { background-color: var(--accent-blue); color: var(--text-light); }
.cta-button.secondary { border-color: var(--primary-yellow); color: var(--primary-yellow); }
.cta-button.secondary.special { background-color: var(--primary-yellow); color: var(--text-dark); border-color: var(--primary-yellow);}
.cta-button.dark { background-color: var(--text-dark); color: var(--text-light); }
.cta-button.disabled { background-color: #555; color: #999; cursor: not-allowed; border: none; }

/* ========== SECCIONES ========== */
section { padding: 8rem 0; }
.content-section { background-color: var(--light-bg); color: var(--text-dark); }
.content-section-dark { background-color: var(--dark-bg); color: var(--text-light); }
.icon { font-size: 2.5rem; margin-bottom: 1.5rem; display: block; }
.accent-yellow { color: var(--primary-yellow); }
.accent-blue { color: var(--accent-blue); }


/* ========== 1. INICIO (HERO) ========== */
.hero { min-height: 100vh; display: flex; align-items: center; text-align: center; padding: 5rem 2rem 0;}
.hero-content h1 { font-size: 4.2rem; line-height: 1.3; font-weight: 700; }
.hero-content .subtitle { font-size: 1.4rem; max-width: 720px; margin: 2rem auto 3rem; color: #ccc; line-height: 1.6; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }

/* ========== 2. SOBRE MÍ ========== */
.about-grid { display: grid; grid-template-columns: 250px 1fr; gap: 4rem; align-items: center; }
.about-image img { max-width: 100%; border-radius: 50%; }
.about-text h2 { text-align: left; font-size: 3rem; }
.about-text p { font-size: 1.2rem; }

/* ========== 3. SERVICIOS ========== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
    background-color: var(--card-dark);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
}
.service-card h3 { color: var(--primary-yellow); }
.service-card .service-tags { font-size: 0.9rem; color: #aaa; margin: auto 0 1.5rem 0; }
.service-card .cta-button { margin-top: auto; }

/* ========== 4. EL LIBRO ========== */
.book-section { background-color: var(--primary-yellow); color: var(--text-dark); text-align: center; }
.book-section h2 { color: var(--text-dark); }
.book-section .subtitle { max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== 5. CURSOS Y FORMULARIOS DE NEWSLETTER ========== */
.course-list { list-style: none; text-align: center; max-width: 600px; margin: 2rem auto; font-size: 1.1rem; }
.course-list li { background: var(--card-dark); padding: 1rem; margin-bottom: 0.5rem; border-radius: 8px; }
.newsletter-form { max-width: 500px; margin: 2rem auto 0; text-align: center; }
.newsletter-form form { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.newsletter-form input { flex-grow: 1; padding: 14px; border-radius: 8px; border: 1px solid #555; font-size: 1rem; width: 100%; max-width: 400px; }
#cursos .newsletter-form input { background: var(--card-dark); color: var(--text-light); }

/* ========== 6. VIDEOS ========== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 3rem 0; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ========== 7. CONTACTO (FOOTER) ========== */
.main-footer { background-color: #181818; padding: 6rem 0 4rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h3, .contact-form h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-yellow); }
.email-link {
    display: inline-block;
    margin: 1rem 0 2rem;
    padding: 12px 24px;
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s ease;
    text-decoration: none;
}
.email-link:hover { transform: translateY(-3px); color: var(--text-dark); }
.social-links { margin-top: 2.5rem; }
.social-links a {
    display: inline-block;
    font-size: 3rem;
    color: #E0E0E0;
    margin-right: 2rem;
    transition: color 0.3s, transform 0.2s;
}
.social-links a:hover {
    color: var(--primary-yellow);
    transform: translateY(-5px) scale(1.1);
}
.contact-form form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px; background-color: var(--card-dark); border: 1px solid #555; color: var(--text-light); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; }
.footer-bottom { text-align: center; margin-top: 6rem; padding-top: 2rem; border-top: 1px solid #333; font-size: 0.9rem; color: #888; }

/* ========== DISEÑO RESPONSIVE ========== */
@media (max-width: 992px) {
    .services-grid, .video-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { margin: 0 auto; max-width: 200px; }
    .about-text h2 { text-align: center; }
}

@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .main-nav ul { display: none; } /* Ocultar para menú de hamburguesa en el futuro */
    .hero, .content-section, .content-section-dark, footer { padding: 4rem 0; }
}