/* ==========================================================================
   VARIABLES CORPORATIVAS 
   ========================================================================== */
:root {
    --color-primary-orange: #FF6600; 
    --color-dark-blue: #00155A;    
    --color-dark-grey: #050505;    
    --color-light-grey: #F8F9FA;   
    --color-white: #ffffff;
    --text-color-dark: #333333;
    --text-color-muted: #666666;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    color: var(--text-color-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: var(--color-light-grey);
    /* Ajuste global para que el menú fijo no tape los títulos al navegar */
    section {
    scroll-margin-top: 100px; /* Ajusta este número según la altura real de tu menú */
            }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }

h1, h2, h3, h4 { color: var(--color-dark-blue); margin-top: 0; font-weight: 700; }
p { color: var(--text-color-muted); }


/* ==========================================================================
   TÍTULOS DE SECCIÓN (CORREGIDO Y CENTRADO)
   ========================================================================== */
.section-title {
    text-align: center;      /* Esto centra el texto en todas las secciones */
    font-size: 36px;         /* Tamaño profesional para títulos */
    margin-bottom: 50px;     /* Espacio respecto al contenido de abajo */
    color: var(--color-dark-blue); /* El azul corporativo de MAS Consulta */
    font-weight: 700;        /* Negrita resaltada */
    position: relative;      /* Para permitir decoraciones si deseas */
}

/* Opcional: Una pequeña línea naranja debajo del título para un toque Premium */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary-orange);
    margin: 15px auto 0;    /* Centra la línea debajo del texto */
    border-radius: 2px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-primary {
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    padding: 12px 30px;
    border: none; border-radius: 5px;
    font-weight: 700; font-size: 16px;
    cursor: pointer; text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover { background-color: #e65c00; transform: translateY(-2px); }

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
header {
    background-color: var(--color-white); padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000;
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 55px; width: auto; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-color-dark); font-weight: 600; font-size: 15px; transition: color 0.3s; }
.nav-links a:hover { color: var(--color-primary-orange); }

.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; background-color: var(--color-white);
    min-width: 200px; box-shadow: 0px 8px 16px rgba(0,0,0,0.1); border-top: 3px solid var(--color-primary-orange); border-radius: 5px; top: 100%; left: 0;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { padding: 12px 16px; display: block; color: var(--text-color-dark); }
.dropdown-content a:hover { background-color: var(--color-light-grey); color: var(--color-primary-orange); }

.header-right { display: flex; align-items: center; gap: 20px; }
.lang-selector {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px;
    border: 1px solid #ddd; border-radius: 20px; cursor: pointer;
    background-color: var(--color-white); font-weight: 600; font-size: 14px;
}
.lang-selector img { width: 22px; height: 22px; object-fit: cover; border-radius: 50%; }

/* ==========================================================================
   HERO Y SECCIONES
   ========================================================================== */

/*   
.hero {
    background: linear-gradient(rgba(0, 21, 90, 0.8), rgba(0, 0, 0, 0.7)), url('img/hero-background1.png') no-repeat center center/cover;
    color: var(--color-white); text-align: center; padding: 120px 20px;
}
.hero h1 { font-size: 48px; color: var(--color-white); margin-bottom: 20px; }
.hero p { font-size: 18px; color: #e0e0e0; max-width: 800px; margin: 0 auto 30px auto; }

section { padding: 80px 0; background-color: var(--color-white); }
section:nth-child(even) { background-color: var(--color-light-grey); }

.section-title { text-align: center; font-size: 36px; margin-bottom: 50px; color: var(--color-dark-blue); }


*/

/* ==========================================================================
   HERO ACTUALIZADO (ENCABEZADO PROFESIONAL)
   ========================================================================== */
.hero {
    /* Usamos un degradado lineal sobre la imagen para asegurar el contraste del texto */
    background: linear-gradient(rgba(0, 21, 90, 0.7), rgba(0, 0, 0, 0.5)), 
                /*url('img/hero-background1.png') no-repeat center center/cover;*/
                url('img/iStock-1488476010.jpg') no-repeat center center/cover;
    color: var(--color-white);
    text-align: center;
    padding: 100px 20px; /* Aumentamos el padding para darle más aire */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Asegura que se vea imponente en pantallas grandes */
}

.hero h1 {
    font-size: 44px; /* Un poco más grande para mayor impacto */
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Sombra suave para legibilidad */
    font-weight: 700;
    line-height: 1.1;
}

.hero p {
    font-size: 19px; /* Aumentamos el tamaño del subtítulo */
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 35px auto;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero .btn-primary {
    padding: 15px 40px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}
/* ==========================================================================
   TARJETAS Y EQUIPO
   ========================================================================== */
.team-photo {
    width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 20px auto; display: block; border: 3px solid transparent;
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-item {
    background-color: var(--color-white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.3s ease;
    display: flex; flex-direction: column; text-align: center;
}
.service-item:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.service-image img { width: 100%; height: 180px; object-fit: cover; }
.service-content { padding: 30px 20px; flex-grow: 1; }
.service-content h3 { font-size: 22px; margin-bottom: 15px; color: var(--color-dark-blue); }
.service-content p { font-size: 15px; color: var(--text-color-muted); line-height: 1.6; }

/* ==========================================================================
   CARRUSEL DE LOGOS (Animación)
   ========================================================================== */
.carousel-container { overflow: hidden; white-space: nowrap; padding: 20px 0; position: relative; }
.logos-slide { display: inline-block; animation: 35s moveLogos infinite linear; }
.logos-slide img { height: 60px; margin: 0 40px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.logos-slide img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes moveLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   FOOTER (Oscuro Elegante)
   ========================================================================== */
footer { background-color: var(--color-dark-grey); color: var(--color-white); padding: 70px 0 30px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--color-primary-orange); margin-bottom: 25px; font-size: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col a { color: #cccccc; text-decoration: none; transition: color 0.3s; font-size: 15px; }
.footer-col a:hover { color: var(--color-white); }
.footer-col p { color: #cccccc; margin-bottom: 15px; font-size: 15px; }
.footer-col i { color: var(--color-white); margin-right: 10px; width: 20px; text-align: center; }
.social-links a i { font-size: 22px; margin-right: 15px; margin-top: 10px; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 30px; color: #888; font-size: 14px; }
.footer-bottom a { color: #888; text-decoration: underline; margin-top: 10px; display: inline-block; }

/* ==========================================================================
   MODALES Y WHATSAPP
   ========================================================================== */
.modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); align-items: center; justify-content: center;
}
.modal-content {
    background-color: var(--color-white); padding: 40px 30px; border-radius: 10px; width: 90%; max-width: 500px;
    position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.close-button { position: absolute; top: 15px; right: 20px; font-size: 28px; color: #999; cursor: pointer; }
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366;
    border-radius: 50px; display: flex; align-items: center; justify-content: center; font-size: 30px;
    color: white; z-index: 9999; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }




/*******************************
capacitacion*/
/* Training Section */
.training-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.highlight-image {
    width: calc(100% + 60px);
    height: 180px;
    margin: -30px -30px 25px -30px;
    overflow: hidden;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.05);
}

.highlight-card h3 {
    font-size: 22px;
    color: var(--color-dark-blue);
    margin-bottom: 15px;
    min-height: 50px;
}
.highlight-card p {
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
}
.highlight-card .btn-primary {
    display: inline-block;
    margin-top: auto;
}

/*////////////////*/
/* Margen para que el encabezado fijo no tape el contenido al hacer scroll */
section {
    scroll-margin-top: 90px; /* Ajusta este valor según la altura de tu menú */
}

/*/////*/
/* Reduce el espacio blanco del contenedor principal del calendario */
#calendar-section .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Reduce el relleno interno de la tarjeta blanca */
#calendar-section div[style*="padding: 40px"] {
    padding: 20px !important; /* Baja de 40px a 20px */
}

/* Ajusta la altura de las celdas de los días */
#calendar-body td {
    height: 70px !important; /* Antes tenías 95px, esto lo hace más compacto */
    padding: 2px !important;
}

/* Compacta los filtros de búsqueda */
#calendar-section div[style*="padding: 25px"] {
    padding: 15px !important;
    margin-bottom: 5px !important;
}

/* Elimina márgenes excesivos en el título del calendario */
#calendar-section .section-title {
    margin-bottom: 20px !important; /* Reduce la separación con el buscador */
}

/* Ajusta el tamaño de la línea naranja decorativa */
#calendar-section .section-title::after {
    margin: 8px auto 0 !important; /* Acerca la línea al texto */
}

#formHerramientas {
    max-width: 100%; /* Ajusta este porcentaje o usa píxeles (ej. 450px) según prefieras */
    margin: 0 auto; /* El 'auto' en los lados es lo que centra el contenedor horizontalmente */
}

#formLeadCalculadora {
    max-width: 85%; /* Ajusta este porcentaje o usa píxeles (ej. 450px) según prefieras */
    margin: 0 auto; /* El 'auto' en los lados es lo que centra el contenedor horizontalmente */
}