:root {
    /* Colores de Branding */
    --brand-dark: #1B1B3A; /* Azul Medianoche (Fondo Logo) */
    --brand-light: #F5F5F5; /* Blanco Humo (Fondo Body) */
    --text-main: #333333;
    --text-light: #E0E0E0;
    --accent-silver: #C0C0C0;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--brand-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
}

/* --- HEADER & NAV --- */
header {
    background-color: var(--brand-dark);
    color: white;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px; /* Ajusta según tu imagen real */
    width: auto;
    /*background: white; /* Pequeño borde si el logo es transparente */
    border-radius: 50%;
    padding: 2px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-silver);
}

.cta-header {
    background-color: transparent;
    border: 1px solid var(--whatsapp-green);
    color: var(--whatsapp-green);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-header:hover {
    background-color: var(--whatsapp-green);
    color: white;
}

/* --- HERO SECTION --- */
.hero {
            /* Fondo con gradiente oscuro y tu imagen local */
            /* Reemplaza 'mi_imagen_local.jpg' con la ruta real de tu archivo */
            background: linear-gradient(rgba(27, 27, 58, 0.85), rgba(27, 27, 58, 0.7)), url('../img/hero_bg.jpg');

            /* Esta es la clave: asegura que la imagen cubra todo el contenedor */
            background-size: cover;

            /* Centra la imagen para que el recorte sea equilibrado */
            background-position: center;

            /* Evita que se repita si la imagen es pequeña */
            background-repeat: no-repeat;

            height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            padding: 0 20px;
            margin-top: 60px;
        }

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--accent-silver);
}

.btn-main {
    background-color: var(--whatsapp-green);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    display: inline-block;
}

.btn-main:hover {
    transform: translateY(-3px);
    background-color: var(--whatsapp-dark);
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background-color: var(--brand-dark);
    margin: 0 auto;
}

/* --- NOSOTROS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-dark);
}

/* --- SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, border-bottom 0.3s;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--brand-dark);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--brand-dark);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--brand-dark);
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.service-card li::before {
    content: "\2022";
    color: var(--brand-dark);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* --- CAPACITACION --- */
.training {
    background-color: #e9ecef; /* Un gris un poco más oscuro para diferenciar */
    text-align: center;
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.course-badge {
    background: var(--brand-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
}

/* --- CONTACTO --- */
.contact-container {
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin: 30px 0;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--brand-dark);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--whatsapp-green);
}

/* --- FLOATING WHATSAPP --- */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.float-wa:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-dark);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Simplificado para este demo. En producción usar JS toggle */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}
