/* Variables de Color (para fácil modificación) */
:root {
    --primary-color: #0F1E3D; /* Azul oscuro - casi el de tu logo */
    --secondary-color: #6A0DAD; /* Morado - de tu logo */
    --accent-color: #FF7F50; /* Naranja/Coral - para contrastar y dar energía */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-light: #f9f9f9;
    --background-dark: #1A1A2E; /* Fondo oscuro similar al hero actual */
    --whatsapp-green: #25D366;
    --card-background: white;
    --border-color: #e0e0e0;
}

/* Estilos Generales */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.6em; }

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color);
}

/* Botones */
.cta-button, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1em;
}
.cta-button:hover {
    background-color: #E66A3D; 
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.9em;
    padding: 10px 20px;
}
.btn-secondary:hover {
    background-color: #5A0A8F; 
    color: white;
}

/* Header Principal (Barra de Navegación Superior) */
.main-header {
    background-color: var(--background-dark);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky; 
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .logo {
    display: flex;
    align-items: center;
    color: var(--light-text-color);
    font-size: 1.8em;
    font-weight: 700;
}
.main-header .logo img {
    height: 55px; 
    margin-right: 10px;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-nav ul li {
    margin-left: 30px;
}
.main-nav ul li a {
    color: var(--light-text-color);
    font-weight: 600;
    font-size: 1em;
    padding: 5px 0;
    position: relative;
}
.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.main-nav ul li a:hover::after {
    width: 100%;
}
.main-nav ul li a.cta-button:hover::after {
    width: 0; 
}

/* Hamburger Menu (para móviles) */
.hamburger-menu {
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1100; 
    position: relative;
}
.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}


/* Hero Section (Sección Principal Impactante) */
.hero-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 100px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    background-image: url('img/hero-bg.jpg'); 
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.hero-content h1 {
    color: white;
    font-size: 3.8em;
    margin-bottom: 20px;
    text-transform: uppercase; 
    letter-spacing: 2px;
}
.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: #e0e0e0;
}
.highlight-text { 
    color: var(--accent-color);
    font-weight: 800;
}

/* Metrics Bar (Nueva sección de autoridad) */
.metrics-bar {
    background-color: var(--secondary-color);
    padding: 25px 0;
    color: white;
    text-align: center;
}
.metrics-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}
.metric-item {
    font-size: 1.1em;
    font-weight: 600;
}
.metric-item strong {
    display: block;
    font-size: 2.5em;
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 5px;
}


/* Services Section (Áreas de Expertise - Usado en index.html y servicios.html) */
.services-section {
    padding: 80px 0;
    background-color: var(--background-light);
}
.services-section h2 {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}
.services-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--secondary-color);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.service-icon {
    font-size: 3.5em;
    color: var(--accent-color); 
    margin-bottom: 15px;
}
.service-card h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}
.service-card p {
    font-size: 1em;
    color: var(--text-color);
    min-height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Acreditations Section */
.accreditations-section {
    padding: 80px 0;
    background-color: #eef2f7; 
    text-align: center;
}
.accreditations-section h2 {
    color: var(--primary-color);
}
.accreditations-section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-color);
}
.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.logos-grid img {
    max-height: 70px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Page Content (para páginas internas y secciones específicas) */
.page-content {
    padding-top: 50px;
    padding-bottom: 50px;
}
.info-section { 
    padding: 60px 20px;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 40px auto;
    line-height: 1.8;
}
.info-section h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
}
.info-section h2 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.info-section p {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.05em;
}
.info-section ul {
    list-style-type: disc;
    margin-left: 30px;
    margin-bottom: 20px;
}
.info-section ul li {
    margin-bottom: 8px;
    color: var(--text-color);
}
.info-section .last-updated {
    text-align: right;
    font-style: italic;
    color: #888;
    margin-top: 10px;
    font-size: 0.9em;
}

/* --- ESTILOS PARA LAS SECCIONES DE CERTIFICACIONES Y CURSOS (Estructura atractiva) --- */

.section-intro {
    text-align: center;
    margin-bottom: 50px;
}
.section-intro h1 {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: none; 
    padding-bottom: 0;
}
.section-intro p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
}
.section-intro .highlight-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 20px;
    color: var(--secondary-color);
    font-weight: 600;
}
.section-intro .highlight-underline::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}


.card-grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.styled-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.styled-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.styled-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.styled-card-header .icon {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-right: 15px;
    background-color: #ffeee5; /* Fondo ligero para el ícono */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.styled-card-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.8em;
}

.styled-card ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
}
.styled-card ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-color);
    line-height: 1.4;
}
.styled-card ul li .fa-check-circle {
    color: var(--secondary-color);
    margin-right: 12px;
    font-size: 1.3em;
    flex-shrink: 0; 
    margin-top: 3px; 
}
.styled-card ul li strong {
    font-weight: 700;
    color: var(--primary-color);
}

.styled-card p.card-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}
/* Fin estilos de Certificaciones y Cursos */


/* Estilos para la sección de Contacto */
.contact-hero {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 80px 20px;
    text-align: center;
}
.contact-hero h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 15px;
}
.contact-hero p {
    font-size: 1.2em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
}

.contact-cards-section {
    padding: 60px 0;
    background-color: var(--background-light);
}
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.contact-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.contact-card h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}
.contact-card p, .contact-card ul {
    font-size: 1.05em;
    color: var(--text-color);
    margin-bottom: 10px;
    text-align: left;
    margin-left: 0; 
}
.contact-card ul {
    list-style: none;
    padding: 0;
}
.contact-card ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.contact-card ul li .fas, .contact-card ul li .fab {
    margin-right: 12px;
    color: var(--accent-color);
    font-size: 1.2em;
}
.contact-card .social-links-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    margin-top: 20px;
    justify-items: center; 
}
.contact-card .social-links-grid a {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.3em; 
    width: 45px; 
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}
.contact-card .social-links-grid a:hover {
    background-color: var(--accent-color);
}
.contact-card .whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    background-color: var(--whatsapp-green);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.contact-card .whatsapp-link:hover {
    background-color: #1DA851;
}
.contact-card .whatsapp-link .fab {
    margin-right: 10px;
    font-size: 1.2em;
    color: white; 
}


/* Footer Principal */
.main-footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 40px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--light-text-color);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8em;
    color: #bbb;
}

/* Contact Info en Footer - Específicamente para el bloque de contacto */
.footer-col.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-col.contact-info p .fas,
.footer-col.contact-info p .fab {
    margin-right: 10px;
    color: var(--accent-color); /* Color de acento para los íconos */
    font-size: 1.1em;
}

.footer-col.contact-info .whatsapp-numbers {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Espacio entre los enlaces de WhatsApp */
    margin-top: 15px;
}

.footer-col.contact-info .whatsapp-link {
    display: flex;
    align-items: center;
    color: var(--light-text-color);
    background-color: var(--whatsapp-green);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    width: fit-content; /* Ajustar al contenido */
}

.footer-col.contact-info .whatsapp-link:hover {
    background-color: #1DA851;
    color: white;
}

.footer-col.contact-info .whatsapp-link .fab {
    margin-right: 8px;
    color: white; /* Ícono de WhatsApp siempre blanco */
    font-size: 1.1em;
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3em; }
    .hero-content p { font-size: 1.3em; }
    .contact-hero h1 { font-size: 2.5em; }
    .contact-hero p { font-size: 1.1em; }
    .card-grid-2-cols { grid-template-columns: 1fr; } 

    /* Responsive Navigation for Tablets and Mobile */
    .main-nav ul {
        flex-direction: column;
        position: absolute;
        top: 85px; /* Altura del header + padding */
        left: 0;
        width: 100%;
        background-color: var(--background-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none; /* Oculto por defecto */
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 999;
    }
    .main-nav ul.active {
        display: flex; /* Mostrar cuando está activo */
    }
    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .main-nav ul li a {
        padding: 10px 0;
        display: block;
        font-size: 1.1em;
    }
    .hamburger-menu {
        display: flex; /* Mostrar en tablets y móviles */
    }

    /* Metrics Bar adjustments */
    .metrics-grid {
        flex-direction: column;
        gap: 15px;
    }
    .metric-item {
        font-size: 1em;
    }
    .metric-item strong {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    .hero-section { padding: 80px 15px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 25px; }
    .logos-grid { gap: 20px; }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        margin-bottom: 30px;
    }
    .footer-col:last-child {
        margin-bottom: 0;
    }
    .social-links,
    .footer-col.contact-info p,
    .footer-col.contact-info .whatsapp-numbers {
        justify-content: center;
        flex-direction: column; 
        align-items: center;
    }
    .contact-cards-grid { grid-template-columns: 1fr; }
    .contact-card { text-align: center; }
    .contact-card p, .contact-card ul { text-align: center; }
}