/* --- VARIABLES DE MARCA AJUSTADAS A CONSULTOR AUTÓNOMO --- */
:root {
    --primary-color: #0A2540;      /* Global Deep Blue */
    --secondary-color: #4A5568;    /* Enterprise Slate */
    --accent-color: #00BFA6;       /* Innovation Teal */
    --accent-hover: #009E89;       /* Teal Oscuro */
    --power-violet: #6B5B95;       /* Power Violet */
    --bg-light: #F8F9FA;           /* Gris muy claro */
    --bg-white: #FFFFFF;
    --text-dark: #1A202C;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- RESET & ESTRUCTURA --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

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

/* --- BANNER AVISO ACADÉMICO MODO PRUEBAS --- */
.academic-notice {
    background-color: var(--power-violet);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- UTILIDADES --- */
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary { background-color: var(--accent-color); color: #fff; }
.btn-primary:hover { background-color: var(--accent-hover); }

.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background-color: var(--primary-color); color: #fff; }

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

/* --- HEADER --- */
#main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

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

nav ul { display: flex; gap: 20px; }
nav a { color: var(--secondary-color); font-weight: 600; }
nav a:hover, nav a.active { color: var(--accent-color); }

/* --- HERO SECTION --- */
.hero {
    min-height: 60vh;
    background: url('unnamed.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-mini { height: 35vh; min-height: 250px; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(10,37,64,0.7) 100%);
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: auto; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; color: #eee; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* --- GRID DE CURSOS --- */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.course-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s;
    border: 1px solid #eee; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.course-img { height: 180px; background-size: cover; background-position: center; background-color: #ddd; }

.course-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.course-content h4 { font-size: 1.3rem; margin-bottom: 10px; }
.course-features { margin: 15px 0; font-size: 0.9rem; color: #666; }
.course-features li { margin-bottom: 5px; }
.price-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 15px; }
.price { font-weight: 700; color: var(--primary-color); font-size: 1.4rem; }

/* --- SECCIONES Y DETALLES DE SERVICIOS --- */
.section-padding { padding: 80px 0; }
.section-bg-light { background-color: var(--bg-light); padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.service-detail:nth-child(even) .text-col { order: 2; }
.service-detail img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.service-list li { margin-bottom: 10px; position: relative; padding-left: 25px; }
.service-list li::before { content: "✓"; color: var(--accent-color); position: absolute; left: 0; font-weight: bold; }

/* --- FORMULARIO DE CONTACTO --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-body);
}

/* --- FOOTER --- */
footer { background-color: #051525; color: #aaa; padding: 50px 0 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: var(--accent-color); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; }

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    nav ul { flex-direction: column; align-items: center; gap: 10px; }
    .hero h1 { font-size: 2rem; }
    .service-detail, .contact-wrapper, .footer-grid { grid-template-columns: 1fr; }
    .service-detail:nth-child(even) .text-col { order: 0; }
}