/* 1. CONTENEDOR PRINCIPAL  */
footer.footer, .footer {
    background-color: #043834 !important;
    background-image: none !important;
    color: #ffffff !important;
    padding: 30px 0 10px 0 !important;
}

/* 2. ESTRUCTURA DE COLUMNAS */
.footer .grid-child {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
}

/* 3. BLOQUES DE CONTENIDO (Logo, Contacto, Navegación) */
.footer .grid-child > div:not(.barra-legal) {
    flex: 1 1 30% !important;
    min-width: 250px !important;
    margin-bottom: 20px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* 4. LOGO - */
.footer .grid-child img, 
.footer .mod-custom img {
    max-width: 180px !important; 
    height: auto !important;
    display: block !important;
    margin-bottom: 10px !important;
}

/* 5. TIPOGRAFÍA - */

.footer h3, 
.footer .mod-custom h3 {
    font-size: 16px !important;
    font-weight: bold !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
}

/* Texto general y enlaces */
.footer p, 
.footer a, 
.footer span, 
.footer li {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px !important; 
    line-height: 1.5 !important;
}

/* 6. LA BARRA LEGAL */
.barra-legal {
    flex: 0 0 100% !important;
    width: 100% !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important; 
    padding: 15px 15px !important; 
    order: 10;
}

/* Contenedor flexible principal */
.barra-legal .custom p {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important; 
    justify-content: space-between !important; 
    gap: 15px !important;
    margin: 0 !important;
}
.barra-legal .barra-legal {
    border-top: none !important;
}

/* Estilo para los ENLACES */
.barra-legal a {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.8;
    margin-top: 5px; 
}

/* Contenedor de iconos */
.iconos-legales {
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
    margin-left: auto; 
    max-width: 100%; 
}

.iconos-legales img {
    height: 30px; 
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
    display: block; 
    max-width: 100%; 
}

.iconos-legales img:hover {
    opacity: 1;
    filter: none;
}

@media (max-width: 480px) {
    .iconos-legales {
        justify-content: center; 
        margin-left: 0; 
    }
}

/* 7. LISTA DE NAVEGACIÓN */
.fila-arriba ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.fila-arriba ul li {
    margin-bottom: 5px !important;
}

.fila-arriba ul li a {
    transition: 0.3s ease;
}

.fila-arriba ul li a:hover {
    opacity: 0.7;
    padding-left: 5px; 
}

#column-wrap-id-tEByIDj159oHqE3q5GFp4 {
    margin-left: 25% !important;
}

#column-wrap-id-1766403150244{
    margin-left: 5% !important;
}

/* 1. AJUSTE DEL CONTENEDOR DEL VIDEO */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh; 
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center; 
}

.video-hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
}

/* 2. AJUSTE DEL TEXTO SOBRE EL VIDEO */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%; 
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 55px); 
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    width: 100%; 
    font-family: 'Spline Sans', sans-serif;
}

.hero-content p {
    font-size: 16px;
    line-height: 2;
    max-width: 800px;
    font-family: 'Spline Sans', sans-serif;
    margin-top: 20px;
}

.texto-con-linea {
    border-left: 2px solid #ffffff; 
    padding-left: 25px;            
    margin-left: 0;                
    font-size: 16px;               
    line-height: 2;              
}

/* 3. MEDIA QUERIES PARA PANTALLAS GRANDES */
@media (min-width: 1024px) {
    .hero-content {
        padding-left: 1%;
    }

    .hero-content h1 {
        width: 50%;
        text-align: right; 
    }

    .hero-content p {
        margin-left: auto;
    }
}

/* 4. AJUSTES PARA MÓVILES */
@media (max-width: 991px) {
    header.header, 
    header.header.container-header,
    .header.header-sticky {
        background-color: #043834 !important;
        background-image: none !important;
        display:flex !important;
        flex-direction: row !important;
    }
  
    header.header nav, 
    header.header .navbar-collapse {
        background-color: #043834 !important;
    }
  .video-hero {
        display: none !important;
    }
} 

header.header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    padding: 10px 5% !important;
    box-sizing: border-box !important;
    background-color: transparent !important; 
    border: none !important;
}
 /* --- CLASE SCROLLED --- */

body header.header.scrolled {
    background-color: #043834 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

header.header, 
header.header.container-header {
    background-image: none !important; 
}

/* --- CLASE SCROLLED --- */

header.header.scrolled {
    background-color: #043834 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

/* --- LOGO A LA IZQUIERDA --- */

header.header .navbar-brand, 
header.header .brand-logo {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    order: 1 !important;
}

header.header .brand-logo img, 
header.header .navbar-brand img {
    height: 60px !important; 
    width: auto !important;
    max-width: none !important;
}


/* --- MENÚ A LA DERECHA --- */

/* Esto solo se aplica a pantallas GRANDES */
@media (min-width: 992px) {
    header.header ul.mod-menu, 
    header.header ul.metismenu {
        display: flex !important;
        flex-direction: row !important; 
        gap: 20px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: flex-end !important; 
        align-items: center !important; 
    }
}

/* Esto se aplica a móviles y tablets  */
@media (max-width: 991px) {
    header.header ul.mod-menu, 
    header.header ul.metismenu {
        display: flex !important;
        flex-direction: column !important; 
        gap: 10px !important;
        width: 100% !important;
        background-color: #043834 !important; 
        padding: 20px !important;
    }

    header.header {
        flex-wrap: wrap !important; 
    }

    header.header nav {
        flex: 1 0 100% !important; 
        order: 3 !important;
    }
}

/* --- ESTILO DEL BOTÓN ÁREA PRIVADA --- */

.boton-login {
    background-color: #00717f !important; 
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 50px !important; 
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    font-weight: 500;
}
.boton-login::before {
    content: "\f007"; 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    margin-right: 8px;
    font-size: 16px;
}

.boton-login:hover {
    background-color: #005a66 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/* --- QUITAR PUNTOS DE LISTA EN JOOMLA --- */

header.header ul li {
    list-style: none !important;
} 

.card {
  border: none !important;
}

#slider-container152 {
    width: 100% !important;
    max-width: 1500px;
    margin: 0 auto !important;
}


#slider-container152 .dj-item {
    width: 20.875% !important; 
    margin-right: 5.5% !important; 
    height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


#slider-container152 .dj-item:last-child {
    margin-right: 0 !important;
}


#slider-container152 img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 80px !important; 
    object-fit: contain !important;
    filter: grayscale(100%) !important;
    opacity: 0.7;
    transition: all 0.4s ease-in-out;
}

#slider-container152 img:hover {
    filter: grayscale(0%) !important;
    opacity: 1;
}

