/* =========================================
   1. VARIABLES & CONFIGURACIÓN GLOBAL
   ========================================= */

:root {
    /* --- NUEVA PALETA DE COLORES --- */
    /* Color Principal: Azul Marino Oscuro (Trust/Security) */
    --primary-color: #121633;
    --primary-light: #2a3055;
    /* Un tono más claro para hovers */
    --dark-bg: #0a0c1d;
    /* Casi negro para footers */
    /* Color de Acento: Rojo/Coral Vibrante (Action/Energy) */
    --accent-color: #FF2D46;
    --accent-hover: #d61a32;
    /* Rojo más oscuro para interacción */
    /* Fondos y Textos */
    --body-bg: #f8fafc;
    --text-main: #121633;
    /* Usamos el azul oscuro como texto principal */
    --text-muted: #64748b;
    /* Gradientes (Adaptados al estilo del logo) */
    /* Gradiente Azul profundo */
    --gradient-primary: linear-gradient(135deg, #121633 0%, #1e2445 100%);
    /* Gradiente Rojo (Estilo el logo SA) */
    --gradient-accent: linear-gradient(135deg, #FF2D46 0%, #ff5c70 100%);
    /* Sombras y Bordes */
    --shadow-sm: 0 4px 6px -1px rgba(18, 22, 51, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(18, 22, 51, 0.1);
    /* Sombra rojiza suave para botones de acción */
    --shadow-accent: 0 10px 20px rgba(255, 45, 70, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    line-height: 1.7;
    overflow-x: hidden;
}


/* Tipografía y Utilidades */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
}


/* Clases de utilidad para colores */

.text-accent {
    color: var(--accent-color) !important;
}

.bg-light-subtle {
    background-color: #f1f5f9 !important;
}


/* Texto con gradiente (Estilo moderno) */

.text-gradient {
    background: linear-gradient(to right, #121633, #FF2D46);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* =========================================
   2. NAVBAR (Menú Superior)
   ========================================= */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    margin: 0 5px;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}


/* Botón del Navbar (Llamada a la acción) */

.navbar .btn-primary {
    background: var(--accent-color);
    /* Rojo */
    border: none;
    color: white;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-accent);
}

.navbar .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    color: white;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* =========================================
   3. BOTONES GENERALES
   ========================================= */

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}


/* Botón Principal (Rojo/Accent) */

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    /* Color sólido al hover */
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 45, 70, 0.4);
}


/* Botón Secundario (Outline Dark Blue) */

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

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(18, 22, 51, 0.2);
}


/* Botón "Neon" renombrado a "Accent" para la página de empleo */

.btn-neon {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.btn-neon:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}


/* =========================================
   4. HERO SECTIONS
   ========================================= */


/* Hero Index (Claro) */

.hero-section {
    padding: 160px 0 100px 0;
    /* Gradiente sutil rojo en la esquina superior derecha */
    background: radial-gradient(circle at top right, rgba(255, 45, 70, 0.08), transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-text .badge {
    background-color: #ffe5e8 !important;
    /* Rojo muy suave */
    color: var(--accent-color) !important;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 45, 70, 0.2);
}

.hero-image-container img {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    border: 1px solid white;
}

.hero-image-container:hover img {
    transform: perspective(1000px) rotateY(0deg);
}


/* Tarjeta flotante en Hero Index */

.floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: float 4s ease-in-out infinite;
    z-index: 3;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-accent) !important;
    /* Rojo */
}


/* Hero "Trabaja con nosotros" (Oscuro) */

.hero-work {
    background: var(--gradient-primary);
    /* Azul oscuro */
    padding: 180px 0 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Efecto de luz roja sutil */
    background: radial-gradient(circle at top, rgba(255, 45, 70, 0.2), transparent 70%);
    z-index: 0;
}

.hero-work h1,
.hero-work p {
    position: relative;
    z-index: 2;
    color: white;
}


/* Texto especial para el Hero Work */

.text-neon {
    color: var(--accent-color) !important;
}


/* =========================================
   5. SECCIÓN PARTNERS / LOGOS
   ========================================= */

.grayscale-logos .col-6 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.grayscale-logos h3 {
    font-size: 1.8rem;
    opacity: 0.3;
    /* Gris suave */
    transition: all 0.3s ease;
    cursor: default;
    margin: 0;
    font-family: sans-serif;
    /* Logos suelen ser sans */
}

.grayscale-logos .col-6:hover h3 {
    opacity: 1;
    color: var(--primary-color) !important;
    transform: scale(1.1);
}


/* =========================================
   6. SECCIÓN "NOSOTROS"
   ========================================= */

.feature-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--accent-color);
    /* Iconos rojos */
    font-size: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.d-flex:hover .feature-icon {
    background-color: var(--accent-color);
    color: white;
    transform: rotate(10deg) scale(1.1);
}


/* =========================================
   7. FORMULARIOS (Container Unificado)
   ========================================= */


/* Fondo de la sección de contacto (Index) */

#contacto {
    background-color: var(--primary-color);
    /* Fondo Azul Oscuro */
    position: relative;
}

.bg-shape-contact {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}


/* Tarjeta contenedora del formulario */

.form-container {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    /* Borde superior ROJO */
    border-top: 6px solid var(--accent-color);
    position: relative;
    z-index: 2;
}


/* Estilos de Inputs */

.form-control,
.select-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 45, 70, 0.1);
}

.form-label {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}


/* Botón de Enviar Formulario */

.form-container button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    transition: all 0.3s;
}

.form-container button[type="submit"]:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}


/* Estilos específicos para la tarjeta de empleo */

.card-work {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: none;
    background: white;
}


/* =========================================
   8. MULTISELECT & CHECKBOXES
   ========================================= */

.multiselect-container {
    position: relative;
}

.select-box {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-box.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.selected-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
}

.selected-text.texto-vacio {
    color: #94a3b8;
}

.dropdown-arrow-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.select-box.open .dropdown-arrow-icon {
    transform: rotate(180deg);
}

.checkboxes-options {
    display: none;
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
}

.checkboxes-options.show {
    display: block;
}

.checkboxes-options label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 0.9rem;
    color: var(--text-main);
}

.checkboxes-options label:hover {
    background-color: #f1f5f9;
}

.checkboxes-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: var(--primary-color);
}


/* Checkboxes normales */

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
    border-color: #cbd5e1;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}


/* =========================================
   9. FAQ (Acordeón)
   ========================================= */

#faq {
    background-color: #f8fafc;
    padding: 80px 0;
}

.custom-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.custom-accordion .accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    padding: 1.2rem 1.5rem;
    box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(255, 45, 70, 0.05);
    /* Rojo muy suave */
    color: var(--accent-color);
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.custom-accordion .accordion-body {
    padding: 1.5rem;
    color: var(--text-muted);
}


/* =========================================
   10. FOOTER
   ========================================= */

.footer {
    background-color: var(--dark-bg);
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #94a3b8;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer .btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.footer i {
    font-size: 1.1rem;
}


/* =========================================
   11. MODALES & EXTRAS
   ========================================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 22, 51, 0.85);
    /* Fondo azul muy oscuro */
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-box-success {
    background: white;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    border-top: 5px solid #10b981;
    /* Verde éxito */
}

.modal-box-legal {
    background: white;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 800px;
    height: 80vh;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* Tabs */

.tabs-header {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    display: none;
    padding: 30px;
    overflow-y: auto;
    text-align: justify;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tab-content.active {
    display: block;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
}


/* Botón WhatsApp */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: white;
}

.hidden-field {
    display: none;
    visibility: hidden;
}


/* Animaciones */

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* =========================================
   12. RESPONSIVE
   ========================================= */

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: var(--shadow-lg);
    }
    .hero-section {
        padding: 120px 0 60px 0;
        text-align: center;
    }
    .hero-text {
        margin-bottom: 40px;
    }
    .hero-image-container {
        display: none;
    }
    .d-flex.gap-3 {
        justify-content: center;
    }
    .trust-indicators {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1.display-4 {
        font-size: 2.2rem;
    }
    .form-container {
        padding: 1.5rem;
    }
}