/* =========================================================
   1. CONFIGURACIÓN GLOBAL Y EFECTOS
   ========================================================= */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #282828 !important;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* Compensación de altura para el menú flotante al hacer scroll */
.header-compensate {
    scroll-margin-top: 120px;
}

/* =========================================================
   2. UTILIDADES GENERALES DE DISEÑO
   ========================================================= */
.text-dorado {
    color: #FFC300 !important;
}

/* Párrafos justificados (alineados a la izquierda y derecha) */
.txt-justificado, 
.card-horizontal-content p, 
.hero-card-text-content p {
    text-align: justify !important;
}

.font-weight-500 {
    font-weight: 500;
}

.section-padding {
    padding: 6rem 1.5rem !important;
}

/* =========================================================
   3. CABECERA Y NAVBAR RESPONSIVO (CENTRADO TRIPLE)
   ========================================================= */
.navbar-wrapper {
    display: flex !important;
    justify-content: center;
    background-color: transparent;
    padding: 1rem 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
}

.logos-section, 
.trabaja-section {
    width: 320px !important; 
    flex-shrink: 0;
}

.logos-link {
    display: flex !important;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 75px !important;
    width: auto !important;
    display: block;
}

.navbar {
    background-color: transparent !important;
    min-height: auto !important;
    flex-grow: 1;
    display: flex !important;
    justify-content: center !important;
}

.navbar-brand .navbar-burger {
    color: white !important;
    margin-left: auto;
}

.navbar-menu {
    box-shadow: none !important;
    background-color: transparent !important;
    display: flex !important;
    justify-content: center !important;
    flex-grow: 1;
}

/* Estilo de cápsulas del menú */
.pildora-base, .menu-capsula {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px !important;
    display: flex !important;
    align-items: center;
    transition: border-color 0.2s ease;
}

.pildora-base:hover {
    border-color: rgba(255, 195, 0, 0.4);
}

.menu-capsula {
    padding: 0.25rem 1rem !important;
    gap: 5px;
    margin: 0 auto !important;
}

.menu-capsula .navbar-item,
.btn-trabaja {
    color: #FFC300 !important;
    background-color: transparent !important;
    font-weight: 500;
    border-radius: 50px !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.menu-capsula .navbar-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.trabaja-section {
    display: flex !important;
    justify-content: flex-end;
}

.trabaja-section .item-pure {
    padding: 0 !important;
}

.pildora-base {
    width: max-content;
}

.btn-trabaja {
    padding: 0.75rem 1.5rem !important;
    text-decoration: none;
    white-space: nowrap;
    display: block;
}

.btn-trabaja:hover {
    background-color: rgba(255, 195, 0, 0.1) !important;
    color: #ffffff !important;
}

/* =========================================================
   4. SECCIÓN INICIO (HERO & CARRUSEL)
   ========================================================= */
.hero-card-master {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px !important;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-card-text-content {
    padding: 4.5rem !important;
}

.hero-carousel-wrapper {
    width: 100% !important;
    height: 100% !important;
    padding: 1.5rem 1.5rem 1.5rem 0 !important;
    box-sizing: border-box !important;
}

.carousel-relative-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-container {
    display: flex !important;
    overflow-x: auto !important; 
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    height: 100%;
    min-height: 400px;
    scrollbar-width: none; 
}

.hero-carousel-container::-webkit-scrollbar {
    display: none; 
}

.carousel-slide {
    min-width: 85% !important; 
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    border-radius: 20px !important;
}

.carousel-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    filter: brightness(0.95);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(18, 18, 18, 0.75); 
    border: 1px solid rgba(255, 195, 0, 0.3); 
    color: #FFC300; 
    font-size: 2.25rem;
    font-weight: 300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    opacity: 0; 
    pointer-events: none;
    padding-bottom: 6px; 
}

.btn-prev { left: 1rem; }
.btn-next { right: 2rem; }

.carousel-btn:hover {
    background-color: #121212;
    border-color: #FFC300;
    box-shadow: 0 0 15px rgba(255, 195, 0, 0.2);
}

.carousel-relative-container:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   5. ESTRUCTURA CAPSULAR GENERAL (¿QUIÉNES SOMOS? Y SERVICIOS)
   ========================================================= */
.tag-pildora {
    background-color: #121212;
    color: #FFC300;
    border: 1px solid rgba(255, 195, 0, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-horizontal-content .tag-pildora,
.hero-card-text-content .tag-pildora {
    display: block !important;
    width: max-content;
    margin-left: auto !important;
    margin-right: auto !important;
}

.linea-decorativa-centrada {
    height: 4px;
    width: 80px;
    background-color: #FFC300;
    border-radius: 2px;
    margin: 1rem auto 0 auto;
}

.card-horizontal {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-horizontal:hover {
    border-color: rgba(255, 195, 0, 0.2);
}

.card-horizontal-content {
    padding: 3.5rem !important;
}

.card-horizontal-content h1,
.card-horizontal-content h2,
.card-horizontal-content h3,
.hero-card-text-content h1,
.hero-card-text-content h2,
.hero-card-text-content h3 {
    text-align: center !important;
    width: 100% !important;
}

.card-image-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    box-sizing: border-box !important;
}

.wrapper-derecho {
    padding: 1.5rem 1.5rem 1.5rem 0 !important;
}

.card-img-fit {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
    display: block !important;
    border-radius: 20px !important;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.95);
}

.card-horizontal:hover .card-img-fit {
    transform: scale(1.015);
    filter: brightness(1.02);
}

.self-stretch-desktop {
    display: flex !important;
    align-items: stretch !important;
}

.lista-servicios-items {
    list-style: none !important;
    margin: 1.5rem 0 0 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start !important; 
}

.lista-servicios-items li {
    color: #e0e0e0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left !important; 
}

.lista-servicios-items li::before {
    content: "✓";
    color: #FFC300;
    font-weight: 900;
    background-color: rgba(255, 195, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 195, 0, 0.2);
}

/* =========================================================
   6. TARJETAS DE LA SECCIÓN DE CLIENTES (ACTUALIZADAS)
   ========================================================= */
.cliente-card {
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cliente-card:hover {
    border-color: rgba(255, 195, 0, 0.25);
    transform: translateY(-4px);
}

/* MODIFICADO: Eliminada la forma circular (removido border-radius: 50% y fondo blanco). Ahora es transparente y rectangular. */
.cliente-logo-wrapper {
    width: 100%;
    height: 100px; /* Altura máxima controlada para los logos */
    overflow: hidden;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Removido fondo blanco artificial */
    box-sizing: border-box;
    padding: 5px;
}

/* MODIFICADO: Cambiado a contain para que la imagen rectangular original se muestre completa, limpia y con sus colores originales siempre */
.cliente-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ajuste perfecto para logos sin cortar marcas */
    display: block;
}

.cliente-title {
    color: #dddddd;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* =========================================================
   7. REGLAS DE FORMULARIOS (ESTILO CORSO)
   ========================================================= */
.form-container-master {
    border-color: rgba(255, 195, 0, 0.1) !important;
}

.form-corso-style {
    padding: 4rem 4.5rem !important;
}

.form-corso-style .label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.custom-form-input,
.custom-form-textarea {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: calc(0.75rem - 1px) 1rem !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.custom-form-textarea {
    resize: none !important;
}

.custom-form-input::placeholder,
.custom-form-textarea::placeholder {
    color: #666666 !important;
}

.custom-form-input:focus,
.custom-form-textarea:focus {
    border-color: #FFC300 !important;
    box-shadow: 0 0 10px rgba(255, 195, 0, 0.15) !important;
}

.custom-form-select select {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    transition: border-color 0.25s ease !important;
}

.custom-form-select::after {
    border-color: #FFC300 !important;
}

.custom-form-select select:focus {
    border-color: #FFC300 !important;
    box-shadow: 0 0 10px rgba(255, 195, 0, 0.15) !important;
}

.custom-form-file .file-cta {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 195, 0, 0.3) !important;
    color: #FFC300 !important;
    border-radius: 12px 0 0 12px !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.25s ease;
}

.custom-form-file .file-name {
    background-color: #222222 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    color: #aaaaaa !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 0.75rem 1rem !important;
    height: auto !important;
    max-width: none !important;
}

.custom-form-file:hover .file-cta {
    background-color: rgba(255, 195, 0, 0.1) !important;
    border-color: #FFC300 !important;
}

.captcha-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 0.5rem;
}

.captcha-box {
    background-color: #222222;
    border: 1px dashed rgba(255, 195, 0, 0.4);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.captcha-input-control {
    flex-grow: 1;
}

.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-submit-container {
    display: flex;
    justify-content: center;
}

.btn-form-submit {
    background-color: #FFC300 !important;
    color: #121212 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border: 1px solid #FFC300 !important;
    border-radius: 50px !important;
    padding: 1.5rem 3rem !important;
    height: auto !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
    box-shadow: 0 5px 20px rgba(255, 195, 0, 0.1);
}

.btn-form-submit:hover {
    background-color: #121212 !important;
    color: #FFC300 !important;
    box-shadow: 0 5px 25px rgba(255, 195, 0, 0.3) !important;
    transform: translateY(-2px);
}

/* =========================================================
   8. RESPONSIVO PRECISADO (MÓVILES Y TABLETS < 1023px)
   ========================================================= */
@media screen and (max-width: 1023px) {
    
    .logos-section, 
    .trabaja-section {
        width: auto !important;
    }

    .navbar-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .navbar {
        display: block !important;
        flex-grow: 0 !important;
    }

    .navbar-brand {
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
    }

    .logo-img {
        height: 50px !important;
    }

    .navbar-menu {
        background-color: #121212 !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
        position: fixed !important;
        top: 85px !important;
        left: 5vw !important;
        width: 90vw !important;
        box-sizing: border-box !important;
        padding: 1.5rem !important;
        display: none !important;
        height: auto !important;
    }
    
    .navbar-menu.is-active {
        display: flex !important;
        flex-direction: column !important;
        z-index: 99999 !important;
    }

    .menu-capsula {
        border: none !important;
        background-color: transparent !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 10px !important;
        display: flex !important;
    }

    .menu-capsula .navbar-item {
        border-radius: 50px !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.8rem 0 !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .trabaja-section {
        margin-top: 1rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-top: 1.25rem !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .trabaja-section .item-pure {
        width: 100% !important;
        padding: 0 !important;
    }

    .trabaja-section .pildora-base {
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
    }

    .btn-trabaja {
        width: 100% !important;
        text-align: center !important;
        padding: 0.8rem 0 !important;
    }

    .section-padding {
        padding: 3rem 1rem !important;
    }

    .card-horizontal {
        border-radius: 24px !important;
    }

    .card-horizontal-content {
        padding: 2rem 1.75rem !important;
    }

    .lista-servicios-items {
        align-items: flex-start !important; 
    }

    .card-image-wrapper {
        height: 300px !important;
        padding: 0 1.25rem 1.25rem 1.25rem !important; 
    }

    .card-img-fit {
        border-radius: 16px !important;
    }

    .hero-card-master {
        border-radius: 24px !important;
    }

    .hero-card-text-content {
        padding: 2.25rem 1.75rem !important;
    }

    .hero-carousel-wrapper {
        padding: 0 1.25rem 1.25rem 1.25rem !important;
    }

    .carousel-btn {
        display: none !important;
    }

    .hero-carousel-container {
        min-height: 260px !important;
        gap: 0.75rem;
    }

    .carousel-slide {
        min-width: 90% !important;
    }

    .form-corso-style {
        padding: 2.5rem 1.5rem !important;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .captcha-box {
        text-align: center;
    }

    .btn-form-submit {
        width: 100% !important;
        padding: 1.25rem 2rem !important;
    }
}