/*
Theme Name:   Salient Child
Theme URI:    https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Description:  Salient Child Theme for AECOC Transporte
Template:     salient
Author:       ThemeNectar (Customized for AECOC)
Version:      1.0.0
License:      Custom license
License URI:  https://themeforest.net/licenses/terms/regular
Text Domain:  salient-child
*/

/*-------------------------------------------------------------------------*/
/* Note: The theme CSS files are loaded through the /css/ folder.
/*-------------------------------------------------------------------------*/
/* Overlay blanco con animacion fade para el slider */
.tp-caption.white-overlay,
.rev_slider .slotholder:after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.65) !important;
    z-index: 2 !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease-in-out !important;
}

/* Efecto fade durante la transicion de la diapositiva */
.tp-simpleresponsive .slotholder:after {
    animation: fadeInOverlay 0.6s ease-in-out !important;
}

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

/* Ocultar flecha del desplegable en el menú principal */
#header-outer header nav ul.buttons li.menu-item-has-children > a .sf-sub-indicator,
#header-outer header nav ul.sf-menu li.menu-item-has-children > a .sf-sub-indicator,
header#top nav > ul > li.menu-item-has-children > a > i,
header#top nav > ul > li.menu-item-has-children > a .sf-sub-indicator {
    display: none !important;
}

/* Eliminar flecha del desplegable de Mas Informacion en Salient */
#header-outer header nav ul li.menu-item-has-children > a i,
#header-outer header nav ul li.menu-item-has-children > a:after,
#header-outer header nav ul li.menu-item-has-children > a:before,
#header-outer header nav ul.sf-menu > li.menu-item-has-children > a:after,
#header-outer nav .sf-menu > li > a .sf-sub-indicator,
header#top nav ul li.menu-item-has-children > a .sf-sub-indicator,
header#top nav > ul > li.menu-item-has-children > a:after {
    display: none !important;
    content: "" !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* ==========================================================================
   CABECERA AECOC TRANSPORTE
   ========================================================================== */

/* Botón de Acceso Usuario (común para evitar desbordes) */
.principal-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 18px !important;
    border: 1px solid #643980 !important;
    color: #643980 !important;
    background: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 3px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.principal-button:hover {
    background-color: #643980 !important;
    color: #ffffff !important;
}

.aecoc-header-phone {
    color: #555555 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.aecoc-header-phone i {
    margin-right: 8px !important;
    color: #643980 !important;
    font-size: 16px !important;
}

.aecoc-header-phone:hover {
    color: #643980 !important;
}

/* Reglas EXCLUSIVAS de escritorio para el header (min-width: 1000px) */
@media only screen and (min-width: 1000px) {

    #header-outer[data-format="centered-menu-under-logo"] header#top .row > .span_3 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        padding: 0 !important;
        float: none !important;
    }

    #header-outer[data-format="centered-menu-under-logo"] header#top #logo {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        order: 1 !important;
    }

    #header-outer[data-format="centered-menu-under-logo"] header#top #logo img {
        display: block !important;
        max-height: 65px !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* Teléfono y botón agrupados y alineados a la derecha */
    .aecoc-header-utils {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 24px !important;
        margin-left: auto !important;
        flex: 0 0 auto !important;
        order: 2 !important;
    }

    /* Franja de Navegación más amplia y centrada */
    #header-outer[data-format="centered-menu-under-logo"] header#top .row > .span_9 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding: 6px 0 !important;
        background-color: #17193e !important;
        box-shadow: 0 0 0 100vmax #17193e !important;
        clip-path: inset(0 -100vmax) !important;
        float: none !important;
    }

    #header-outer[data-format="centered-menu-under-logo"] header#top .span_9 nav {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    #header-outer[data-format="centered-menu-under-logo"] header#top .span_9 nav > ul.sf-menu {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        float: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: auto !important;
    }

    #header-outer[data-format="centered-menu-under-logo"] header#top .span_9 nav > ul.sf-menu > li {
        float: none !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    #header-outer[data-format="centered-menu-under-logo"] header#top .span_9 nav > ul.sf-menu > li > a,
    #header-outer[data-format="centered-menu-under-logo"] #top .span_9 nav > ul > li:not(#social-in-menu):not(#search-btn):not(.slide-out-widget-area-toggle) > a {
        padding-top: 0 !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        padding-bottom: 14px !important;
        color: #ffffff !important;
        font-size: 14px !important;
        letter-spacing: 0.5px !important;
    }

    #header-outer[data-format="centered-menu-under-logo"] header#top .span_9 nav > ul.buttons {
        display: none !important;
    }
}

/* Reglas MÓVIL y TABLET (max-width: 999px) */
@media only screen and (max-width: 999px) {

    /* Ocultar el teléfono y botón en móvil tal como solicitado */
    .aecoc-header-utils {
        display: none !important;
    }

    #header-outer[data-format="centered-menu-under-logo"] header#top .row > .span_3 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 10px 0 !important;
        margin: 0 !important;
    }

    #header-outer[data-format="centered-menu-under-logo"] header#top #logo img {
        max-height: 48px !important;
        width: auto !important;
        margin: 0 !important;
    }

    body #header-outer[data-format="centered-menu-under-logo"] header#top .row > .col.span_9 {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 100% !important;
        padding: 10px 0 !important;
        margin-top: 8px !important;
        background-color: #17193e !important;
        box-shadow: 0 0 0 100vmax #17193e !important;
        clip-path: inset(0 -100vmax) !important;
    }

    body #header-outer[data-format="centered-menu-under-logo"] header#top .span_9 nav {
        display: none !important;
    }

    body #header-outer[data-format="centered-menu-under-logo"] header#top .span_9 .slide-out-widget-area-toggle .lines,
    body #header-outer[data-format="centered-menu-under-logo"] header#top .span_9 .slide-out-widget-area-toggle .lines:before,
    body #header-outer[data-format="centered-menu-under-logo"] header#top .span_9 .slide-out-widget-area-toggle .lines:after {
        background-color: #ffffff !important;
    }
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER) - ESTRUCTURA ALINEADA EN COLUMNAS
   ========================================================================== */

#footer-outer {
    background-color: #18233f !important;
    color: #ffffff !important;
}

#footer-outer #footer-widgets {
    padding: 36px 0 28px 0 !important;
    background-color: #18233f !important;
}

#footer-outer #footer-widgets .container {
    max-width: 960px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

#footer-outer #footer-widgets .container .row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ocultar columnas dummy de espaciado heredadas de Salient 7 */
#footer-outer #footer-widgets .container .row > .col.span_4:first-child,
#footer-outer #footer-widgets .container .row > .col.span_4:last-child,
#footer-outer #footer-widgets .container .row > .col.span_3,
#footer-outer #footer-widgets .col .hidden {
    display: none !important;
}

/* Columna central con datos de contacto a ancho completo y centrada */
#footer-outer #footer-widgets .container .row > .col.span_4:nth-child(2),
#footer-outer #footer-widgets .container .row > .col:has(.footer-msg) {
    display: block !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    float: none !important;
}

.footer-msg {
    text-align: center !important;
    margin: 0 auto !important;
}

.footer-msg p {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

.footer-msg a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.footer-msg a:hover {
    opacity: 0.8 !important;
}

.footer-msg a i {
    margin-right: 8px !important;
    color: #2cb3d6 !important;
    font-size: 14px !important;
}

/* Bloques de contacto de personas alineados en columnas lado a lado */
.footer-msg .f-row.f-m-col {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 32px !important;
    margin-top: 16px !important;
}

.footer-msg .f-row.f-m-col > .f-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 320px !important;
    max-width: 100% !important;
    text-align: left !important;
}

/* Tamaño fijo y proporcionado para las fotos de los contactos */
.footer-msg img {
    width: 75px !important;
    height: 75px !important;
    min-width: 75px !important;
    max-width: 75px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 1rem 0 0 !important;
    flex-shrink: 0 !important;
    display: block !important;
}

@media only screen and (max-width: 690px) {
    .footer-msg .f-row.f-m-col {
        flex-direction: column !important;
        gap: 16px !important;
    }
}

/* Copyright y legal - Totalmente centrado */
#footer-outer #copyright {
    padding: 20px 0 !important;
    background-color: #18233f !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    text-align: center !important;
}

#footer-outer #copyright .container {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#footer-outer #copyright .container .row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    width: 100% !important;
}

#footer-outer #copyright .container .col.span_5 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
}

#footer-outer #copyright .container .col.span_7,
#footer-outer #copyright .container .col.col_last {
    display: none !important;
}

#footer-outer #copyright p {
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    text-align: center !important;
    line-height: 1.5 !important;
    width: 100% !important;
}

/* ==========================================================================
   PÁGINA DE TARIFAS - TABLAS Y FORMULARIOS (#gform_fields_4)
   ========================================================================== */

#gform_fields_4 {
    color: #000000;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

#gform_fields_4 > li {
    list-style: none !important;
    margin-bottom: 24px;
}

#gform_fields_4 label,
#gform_fields_4 h3 {
    text-transform: uppercase;
    display: block;
    margin: auto;
    margin-bottom: 0.5em;
    text-align: center;
    color: #17193e;
    font-weight: 700;
}

#gform_fields_4 select {
    margin-bottom: 1.5em;
    background-color: rgba(0, 0, 0, 0.035);
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 4px;
    width: 100%;
    max-width: 500px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#gform_fields_4 i {
    text-align: center;
    display: block;
}

#gform_fields_4 h4 {
    text-align: center;
    margin: 1.5em auto;
    font-size: 20px;
    color: #17193e;
    font-weight: 700;
}

/* Listas de condiciones: bloque centrado con viñetas y texto alineados a la izquierda */
#gform_fields_4 [id*="cond_"] {
    text-align: center !important;
}

#gform_fields_4 [id*="cond_"] ul {
    display: inline-block !important;
    text-align: left !important;
    margin: 15px auto !important;
    padding-left: 25px !important;
    list-style-type: disc !important;
    max-width: 800px;
}

#gform_fields_4 [id*="cond_"] ul li {
    text-align: left !important;
    list-style-type: disc !important;
    display: list-item !important;
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
    color: #444444;
}

/* Tablas de tarifas en morado corporativo */
#gform_fields_4 table,
.gform_body table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 15px 0 25px 0 !important;
    background-color: #ffffff !important;
}

#gform_fields_4 table th,
.gform_body table th {
    background-color: #7f3589 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    text-align: center !important;
    border: 1px solid #7f3589 !important;
}

#gform_fields_4 table th strong,
.gform_body table th strong,
#gform_fields_4 table th p,
.gform_body table th p {
    color: #ffffff !important;
    margin: 0 !important;
    font-weight: 700 !important;
}

#gform_fields_4 table td,
.gform_body table td {
    background-color: #ffffff !important;
    color: #222222 !important;
    border: 1px solid #ececec !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

#gform_fields_4 table td p,
.gform_body table td p {
    margin: 0 !important;
}

#gform_fields_4 table tr:nth-child(even) td {
    background-color: #f9f9f9 !important;
}

.lila_btn_big_cliente {
    background-color: #7f3589 !important;
    color: #ffffff !important;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    border-radius: 3px;
}
