.dsl-solo{
    height: 50px;
    width: 200px;
    border-radius: 10px;
    margin-top: 10px;
}

.tabs-menu{
    justify-content: center;
}

.tabs-menu label {
    height: 33%;
    padding: 60px;
    font-size: 1.1em;
    font-weight: 800;
}

#apartado-servicios {
    /*box-shadow: 1px 1px 1px 1px #02469b;*/
    border: #bfbaba 1px solid;
    border-radius: 5px;

}

.titulo-servicios {
    margin-bottom: 0px;
    padding-top: 50px;
}

.tabs-content {
    border: #ddd 1px solid;
}

/* =====================================================
   RESPONSIVE - AJUSTES GENERALES
===================================================== */

img {
    max-width: 100%;
}

/* Logo dentro de la barra superior móvil (44px de alto) */
#titleBar .title .dsl-solo {
    height: 34px;
    width: auto;
    margin-top: 5px;
}

/* Logo del footer */
.footer-col .dsl-solo {
    width: auto;
    max-width: 200px;
    height: 50px;
}

/* Textos largos (email) no deben desbordar */
.footer-col p {
    overflow-wrap: anywhere;
}

/* =====================================================
   SLIDER DE CLIENTES (bucle infinito correcto)
===================================================== */

.slide-track {
    width: max-content;
    animation: scroll 30s linear infinite;
}

.slide {
    flex: 0 0 250px;
}

.slide img {
    max-width: 100%;
    max-height: 160px;
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =====================================================
   TABLET (<= 1280px)
===================================================== */

@media screen and (max-width: 1280px) {
    .tabs-menu label {
        padding: 30px 20px;
    }
}

/* =====================================================
   TABLET (<= 980px)
===================================================== */

@media screen and (max-width: 980px) {

    /* Quitar saltos de línea usados como espaciado */
    .spotlight .content header br,
    #one header h2 br {
        display: none;
    }

    #banner .content header p br {
        display: none;
    }

    .titulo-servicios {
        padding-top: 30px;
    }

    .tabs-menu {
        width: 35%;
    }

    .tabs-content {
        width: 65%;
        padding: 20px;
    }

    .servicio-imagen {
        height: 220px;
    }
}

/* =====================================================
   MÓVIL (<= 768px)
===================================================== */

@media screen and (max-width: 768px) {

    #apartado-servicios {
        border: none;
        padding: 0;
    }

    /* Pestañas apiladas, sin scroll horizontal */
    .tabs-vertical {
        flex-direction: column;
        min-height: 0;
    }

    .tabs-menu {
        width: 100%;
        flex-direction: column;
        overflow-x: visible;
    }

    .tabs-menu label {
        height: auto;
        padding: 14px 16px;
        font-size: 1em;
        white-space: normal;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .tabs-content {
        width: 100%;
        padding: 20px 15px;
    }

    .tab-panel h3 {
        font-size: 1.1em;
    }

    .tab-panel p {
        text-align: left;
    }

    .servicio-imagen {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    /* Clientes */
    .clientes {
        padding: 40px 0;
    }

    .slide {
        flex: 0 0 170px;
        padding: 12px;
    }

    .slide img {
        max-height: 110px;
    }

    /* Valores */
    .box.alt .row > section {
        text-align: center;
    }

    /* Footer */
    .footer-mejorado {
        padding: 3em 1.25em 1.5em;
    }

    .footer-contenedor {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .footer-col {
        min-width: 0;
        width: 100%;
    }

    .footer-mejorado > div:last-child {
        text-align: center;
        font-size: 0.85em;
        margin-top: 2em;
    }
}

/* =====================================================
   MÓVIL PEQUEÑO (<= 480px)
===================================================== */

@media screen and (max-width: 480px) {

    #banner .content header h2 {
        font-size: 1.3em;
    }

    .slide {
        flex: 0 0 130px;
        padding: 8px;
    }

    .slide img {
        max-height: 80px;
    }

    .dsl-contacto {
        padding: 3em 1em;
    }

    .dsl-contacto-header {
        margin-bottom: 2em;
    }
}

/* =====================================================
   LOGO DEL BANNER (círculo blanco con el logo completo)
===================================================== */

#banner .content .image.logo-banner {
    background: #ffffff;
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.35);
}

#banner .content .image.logo-banner:before {
    display: none;
}

#banner .content .image.logo-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12%;
    border-radius: 0;
}

/* Enlaces de contacto del footer con el mismo color del texto */
.footer-col p a {
    color: inherit;
    border-bottom: none;
}

/* Botón del menú móvil con el color de la marca */
#titleBar .toggle:before {
    background: #02469b;
    color: #ffffff;
}

/* Botón "Contáctanos" del banner con espacio interior en pantallas pequeñas */
#banner .content header .button {
    padding: 0 2em;
}

/* =====================================================
   FLECHAS "SIGUIENTE SECCIÓN" (goto-next)
   - Todas las secciones las posicionan abajo y centradas
   - Azul DSL sobre fondos claros, blanca sobre fondos oscuros/imagen
   - Solo escritorio y tablet (ocultas en móvil)
===================================================== */

#servicios,
#clientes,
#two {
    position: relative;
    padding-bottom: 6em;
}

/* Flecha azul en secciones de fondo blanco */
#servicios .goto-next:before,
#clientes .goto-next:before,
#two .goto-next:before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18' preserveAspectRatio='none'%3E%3Cline x1='0' y1='0' x2='18' y2='18' stroke='%2302469b' stroke-width='1.5'/%3E%3Cline x1='36' y1='0' x2='18' y2='18' stroke='%2302469b' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* Pequeño efecto al pasar el mouse */
.goto-next:before {
    transition: transform 0.2s ease-in-out;
}

.goto-next:hover:before {
    transform: translateY(4px);
}

/* Tablet: la plantilla oculta las flechas de los spotlight; las mostramos */
@media screen and (max-width: 980px) {
    .spotlight .goto-next {
        display: block;
    }
}

/* Móvil: sin flechas */
@media screen and (max-width: 736px) {
    .goto-next {
        display: none !important;
    }

    #servicios,
    #clientes,
    #two {
        padding-bottom: 2.5em;
    }
}

/* =====================================================
   ESPACIADOS DE TÍTULOS (reemplazan los <br> del HTML)
   Solo en escritorio; en pantallas menores ya no se usaban.
===================================================== */

@media screen and (min-width: 981px) {
    #one header h2 {
        padding-top: 1.5em;
    }

    #three .content header {
        padding-top: 5.25em;
    }

    #four .content header {
        padding-top: 7em;
    }
}

/* =====================================================
   FORMULARIO DE CONTACTO
===================================================== */

/* Trampa anti-spam invisible */
.dsl-contacto-form .dsl-botcheck {
    display: none !important;
}

.dsl-contacto-form button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.dsl-form-estado {
    margin: 1em 0 0 0;
    font-weight: 400;
    text-align: center;
}

.dsl-form-estado:empty {
    display: none;
}

.dsl-form-estado.ok {
    color: #1e7e34;
}

.dsl-form-estado.error {
    color: #be1c1c;
}

/* =====================================================
   BOTÓN FLOTANTE DE WHATSAPP
===================================================== */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff !important;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* La plantilla pinta de azul todos los enlaces al pasar el mouse (a:hover); aquí se mantiene blanco/verde */
.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #ffffff !important;
    background: #25d366;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media screen and (max-width: 736px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        font-size: 28px;
    }
}

/* =====================================================
   MÓVIL: BARRA SUPERIOR Y MENÚ LATERAL CON EL MISMO
   AZUL OSCURO DEL FOOTER (#040f49)
===================================================== */

#titleBar {
    background: #040f49;
}

/* Botón del menú en azul DSL para que se distinga sobre la barra */
#titleBar .toggle:before {
    background: #040f49;
    color: #ffffff;
}

#navPanel {
    background: #040f49;
}

#navPanel .link {
    border-top-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

#navPanel .link.depth-0 {
    color: #ffffff;
}

/* =====================================================
   MÓVIL: ORDEN DEL BANNER
   Título -> logo (más grande) -> texto -> botón Contáctanos
===================================================== */

@media screen and (max-width: 736px) {
    /* Centrado vertical con flex (reemplaza el truco inline-block de la plantilla,
       que dejaba un espacio vacío de una pantalla encima del contenido) */
    #banner {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 44px);
    }

    #banner:before {
        display: none;
    }

    #banner .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    /* El header "desaparece" para que sus hijos se ordenen junto al logo */
    #banner .content header {
        display: contents;
    }

    #banner .content header h2 { order: 1; margin-bottom: 0.75em; }
    #banner .content .image.logo-banner { order: 2; margin: 0 0 1.5em 0; width: 12em; height: 12em; }
    #banner .content header p { order: 3; }
    #banner .content header .button { order: 4; margin-top: 1.5em; }

    /* El <br> entre el texto y el botón ya no hace falta */
    #banner .content header > br {
        display: none;
    }
}
