/* ========================================================
   1. CONFIGURACIÓN GENERAL Y VARIABLES (ESTILO PREMIUM)
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background-color: #ffffff;
}

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

/* ========================================================
   2. MENÚ DE NAVEGACIÓN FIJO RESPONSIVO
   ======================================================== */
.menu-fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-marca {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.menu-fijo .enlaces a {
    color: #cbd5e1;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-left: 25px;
    position: relative;
    display: inline-block;
    transition: color 0.25s ease-in-out;
}

/* Línea animada */
.menu-fijo .enlaces a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #38bdf8;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease-in-out;
}

.menu-fijo .enlaces a:hover {
    color: #38bdf8 !important;
}

.menu-fijo .enlaces a:hover::after {
    transform: scaleX(1);
}

.redes-nav {
    display: flex;
    gap: 15px;
}

.redes-nav a {
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.redes-nav a:hover {
    color: #38bdf8;
}

/* Botón Hamburguesa oculto por defecto */
.menu-hamburguesa {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* RESPONSIVO PARA EL MENÚ (TABLETS Y MÓVILES) */
@media (max-width: 992px) {
    .menu-hamburguesa {
        display: block;
    }

    .redes-nav {
        display: none; /* Oculta iconos de redes en barra móvil para ganar espacio */
    }

    .menu-fijo .enlaces {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(15, 23, 42, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .menu-fijo .enlaces.activo {
        transform: translateY(0);
    }

    .menu-fijo .enlaces a {
        margin-left: 0;
        font-size: 1rem;
    }
}

/* ========================================================
   3. SECCIÓN 1: INICIO (REDUCIDA UN 30% - 70VH)
   ======================================================== */
.contenedor-inicio {
    position: relative;
    height: 70vh !important;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 70px;
}

.imagen-movimiento-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.capa-oscura-fija {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    z-index: 2;
}

.contenedor-inicio .contenido-bloque {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.contenedor-inicio h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.contenedor-inicio p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.btn-llamado {
    display: inline-block;
    background-color: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 35px;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
    transition: all 0.25s ease;
}

.btn-llamado:hover {
    background-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Escalado de fuentes de Inicio en Móviles */
@media (max-width: 576px) {
    .contenedor-inicio h1 {
        font-size: 1.8rem;
    }
    .contenedor-inicio p {
        font-size: 1rem;
    }
}

/* Animaciones */
.texto-animado {
    display: block;
    opacity: 0;
    animation: aparecerYSubir 1.2s ease-out forwards;
}

.contenedor-inicio p {
    opacity: 0;
    animation: aparecerYSubir 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

.contenedor-inicio .btn-llamado {
    opacity: 0;
    animation: aparecerYSubir 1.2s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes aparecerYSubir {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   4. SECCIÓN 2: SERVICIOS CON TARJETAS VISUALES
   ======================================================== */
.seccion-plana {
    padding: 80px 5%;
    background-color: #ffffff;
    text-align: center;
}

.seccion-plana h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
}

.tarjetas-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contenido-tarjeta-pad {
    padding: 25px;
}

.contenedor-foto-servicio {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.contenedor-foto-servicio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.icono-servicio {
    font-size: 2.2rem;
    color: #38bdf8;
    margin-bottom: 15px;
}

.tarjeta h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.tarjeta p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tarjeta:hover .contenedor-foto-servicio img {
    transform: scale(1.08);
}

/* Enlaces de Cursos */
.link-curso-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
}

.link-curso-item i {
    color: #38bdf8;
}

.link-curso-item:hover {
    background-color: #0f172a;
    color: #38bdf8 !important;
    border-color: #38bdf8;
    transform: translateX(6px);
}

/* ========================================================
   5. SECCIÓN: NUESTRAS VACANTES ACTIVAS CON FILTROS
   ======================================================== */
.seccion-vacantes {
    padding: 80px 5%;
    background-color: #f1f5f9;
    text-align: center;
}

.vacantes-encabezado h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.filtros-localidad {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-filtro {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filtro.activo {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #38bdf8;
}

.grid-vacantes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto 0 auto;
}

.tarjeta-vacante {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-vacante:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
}

.tag-ciudad {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(56, 189, 248, 0.1);
    color: #0ea5e9;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.tarjeta-vacante h3 {
    margin-bottom: 5px;
    font-size: 1.15rem;
    color: #0f172a;
    max-width: 70%;
}

.empresa-v {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
}

.desc-v {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-aplicar {
    display: inline-block;
    background-color: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 4px;
}

.btn-aplicar:hover {
    background-color: #38bdf8;
    color: #0f172a !important;
}

/* ========================================================
   6. SECCIÓN 3: METODOLOGÍA (SECCIÓN PARALLAX)
   ======================================================= */
.parallax-section {
    position: relative;
    padding: 80px 5%;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

/* Desactiva el efecto fijo parallax en móviles para evitar saltos de pantalla (Mejor rendimiento móvil) */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

.bg-talent-2 {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                      url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1600');
}

.parallax-section h2 {
    font-size: 2.1rem;
    margin-bottom: 15px;
    color: #38bdf8;
}

/* ========================================================
   7. SECCIÓN 4: CONTACTO FORMULARIO Y MAPA DOS COLUMNAS
   ======================================================== */
.seccion-contacto {
    padding: 80px 5% 40px 5%;
    background-color: #0f172a;
    color: #ffffff;
}

.contacto-titulo {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.contacto-titulo h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.contacto-contenedor-dos-columnas {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Permite romper en 1 columna en móviles */
}

.formulario-hunting, .mapa-hunting {
    flex: 1;
    min-width: 280px;
}

.formulario-hunting input, .formulario-hunting textarea {
    width: 100%;
    padding: 15px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    margin-bottom: 15px;
}

.formulario-hunting input:focus, .formulario-hunting textarea:focus {
    outline: none;
    border-color: #38bdf8;
}

.formulario-hunting button {
    width: 100%;
    padding: 16px;
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.mapa-hunting {
    height: 350px;
}

/* ========================================================
   8. VENTANAS FLOTANTES (MODALES MÓVILES PERFECTOS)
   ======================================================== */
.contenedor-aviso {
    text-align: center;
    margin-top: 40px;
}

.link-aviso {
    color: #94a3b8;
}

.modal-aviso {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-aviso:target {
    opacity: 1;
    pointer-events: auto;
}

.contenido-modal {
    background-color: #ffffff;
    color: #0f172a;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%; /* Se encoge proporcionalmente en pantallas chicas */
    position: relative;
}

.contenido-modal h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.texto-legal {
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #64748b;
    text-decoration: none;
}

/* ========================================================
   9. PIE DE PÁGINA (FOOTER RESPONSIVO)
   ======================================================== */
.pie-pagina {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* En teléfonos, centra los textos del pie de página */
@media (max-width: 576px) {
    .pie-pagina {
        flex-direction: column;
        text-align: center;
    }
}

.redes-footer {
    display: flex;
    gap: 20px;
}

.redes-footer a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================================
   10. SECCIÓN INDEPENDIENTE DE CAPACITACIÓN (SPLIT RESPONSIVO)
   ======================================================== */
.seccion-capacitacion {
    padding: 80px 5%;
    background-color: #ffffff;
    text-align: center;
}

.capacitacion-encabezado h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.contenedor-capacitacion-split {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: wrap; /* Colapsa verticalmente en tablets/móviles */
}

.foto-capacitacion-bloque {
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.foto-capacitacion-bloque img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lista-cursos-links-bloque {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.lista-cursos-links-bloque .link-curso-item {
    justify-content: space-between;
    padding: 16px 20px;
}

.arrow-go {
    opacity: 0.4;
    font-weight: 700;
    transition: transform 0.25s, opacity 0.25s;
}

.lista-cursos-links-bloque .link-curso-item:hover .arrow-go {
    opacity: 1;
    transform: translateX(4px);
}

/* ========================================================
   11. DESGLOSE DE GARANTÍA DE CALIDAD (GRID RESPONSIVO)
   ======================================================== */
.contenido-bloque-garantia {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
}

.subtitulo-garantia {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-top: 15px;
    margin-bottom: 40px;
}

.grid-garantias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    text-align: left;
}

.item-garantia {
    background-color: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.icono-garantia {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 15px;
}

.item-garantia h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.item-garantia p {
    font-size: 0.9rem;
    color: #cbd5e1 !important;
    line-height: 1.6;
}

.destacado-co {
    border-color: rgba(56, 189, 248, 0.4);
    background-color: rgba(30, 41, 59, 0.75);
}

.item-garantia:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

/* ========================================================
   12. ANIMACIÓN DE FONDO KEN BURNS
   ======================================================== */
.imagen-animada-kenburns {
    animation: movimientoSutilFondo 20s ease-in-out infinite alternate;
}

@keyframes movimientoSutilFondo {
    0% { transform: scale(1); }
    100% { transform: scale(1.08) translate(-0.5%, -0.5%); }
}

/* ========================================================
   13. BOTÓN FLOTANTE DE WHATSAPP ACCESIBLE
   ======================================================== */
.btn-whatsapp-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    transition: transform 0.3s ease;
}

.btn-whatsapp-flotante::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.3;
    z-index: -1;
    animation: pulsoWhatsapp 2s infinite;
}

@keyframes pulsoWhatsapp {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.4); opacity: 0; }
}

.tooltip-whatsapp {
    position: absolute;
    right: 70px;
    background-color: #0f172a;
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

/* Ocultar Tooltip en Celulares para no saturar el espacio táctil */
@media (min-width: 768px) {
    .btn-whatsapp-flotante:hover .tooltip-whatsapp {
        opacity: 1;
        transform: translateX(0);
    }
}