:root {
    --header-offset: 100px;
    --spacing: 100px;
    --spacing-top: 175px;
}

@font-face {
    font-family: Roboto;
    src: url("../fonts/Roboto/Roboto-Regular.ttf") format("truetype");
}

* {
    font-family: Roboto, sans-serif;
}

/*
*
* COOKIES
*
*/

#cookies {
    position: -webkit-sticky;
    position: fixed;
    width: 100%;
    bottom: 0;
    text-align: center;
    min-height: 2.5rem;
    padding: 1rem 0;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    z-index: 900000;
}

#cookies_inner {
    padding: 1rem 0;
}

.cookies_button,
.cookies_deny {
    margin: 0 1rem 0 0;
    cursor: pointer;
    font-weight: bold;
}

.cookies_button,
.cookies_button a {
    color: #008acf;
}

.cookies_button:hover {
    background-color: #008acf;
    color: white;
}

.cookies_div {
    border-radius: 0;
    margin-top: 1rem;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
}

.cookies_button {
    background-color: white;
    padding: 0.5rem;
    border-radius: 0.2rem;
}

#cookies_inner p {
    max-width: 100%;
}

#cookies_inner p a {
    color: #008acf;
}

/*
*
* COOKIES
*
*/

body {
    background-color: #f8f9fa !important;
}

img {
    object-fit: cover;
}

h1,
h2,
h3,
h4,
h5 {
    color: black;
}

iframe {
    border: 0;
}

.spacing {
    margin-bottom: var(--spacing);
}

.spacing-top {
    margin-top: var(--spacing-top);
}

.underline {
    text-decoration: underline;
}

.bg-red {
    background-color: #e63029 !important;
}

.logo {
    width: 8rem;
}

.arrow {
    width: 50px;
    transition: 0.3s;
}

#map {
    height: 400px;
}

.aboutUsImage {
    width: 75%;
}

.object-position-right-top {
    object-position: right top;
}

.slimSeparationBar {
    border-bottom: 1px solid #e63029;
}

.wideSeparationBar {
    border-bottom: 4px solid #e63029;
}

.contactBar {
    background-color: #e5e5e5;
}

.contactBar button,
.contentBlock button {
    background-color: #707070;
    transition: 0s;
}

.contactBar button:hover,
.contentBlock button:hover {
    background-color: #e63029;
}

.navigation {
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation .selected,
.navigation .nav-item:hover {
    border-bottom: 3px solid #e63029 !important;
}

.navigation .nav-item {
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.dropdown-menu {
    min-width: 100%;
}

.dropdown {
    cursor: pointer;
}

.modal-content {
    background-color: #ffffffbf;
    border-radius: 2rem;
    padding: 1rem;
}

.inscriptionButton {
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}

.inscriptionDiv:hover .slideImage {
    filter: brightness(70%);
}

.HPInput {
    display: block;
    line-height: 0;
    width: 0;
    height: 0;
    padding: 0;
    border: 0 !important;
    overflow: hidden;
}

#headerSwiper .slideImage {
    height: 600px;
    margin-bottom: var(--header-offset);
}

#headerSwiper .swiperButtons {
    bottom: var(--header-offset);
    left: 0;
    z-index: 1;
}

#headerSwiper .slideContent {
    left: 0;
    bottom: var(--header-offset);
    transform: translate(0, var(--header-offset));
}

#headerSwiper .floatingBox {
    background-color: #e63029;
}

#headerSwiper .floatingBox:hover .arrow,
.navbar ul:hover .arrow,
.contentBlock button:hover .arrow {
    transform: translate(30%, 0);
}

.bannerImage {
    height: 400px;
}

.bannerContent {
    position: relative;
    margin-top: -150px;
}

.bannerContent .floatingBox {
    background-color: #f8f9fa;
}

.contentBlock .icon {
    width: 200px;
}

#footerSwiper .slide {
    height: 450px;
}

#footerSwiper .slideImage {
    transition: 0.3s;
}

#footerSwiper .slide:hover .slideImage {
    transform: scale(1.1);
}

#footerSwiper .slide:hover .slideIcon {
    top: 35%;
}

#footerSwiper .slide:hover .slideText {
    top: 65%;
    opacity: 1;
}

#footerSwiper .slide .layer {
    left: 0;
    top: 0;
    background-color: #000;
    opacity: 0.4;
    z-index: 1;
}

#footerSwiper .slide .slideIcon {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
    width: 8rem;
    z-index: 3;
}

#footerSwiper .slide .slideText {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: 0.3s;
    opacity: 0;
}

.socialMediaIcon {
    background-color: #707070;
    border-radius: 50%;
}

.sliderLeft {
    background-color: rgba(112, 112, 112, 0.48);
    cursor: pointer;
}

.sliderRight {
    background-color: rgba(112, 112, 112, 0.48);
    cursor: pointer;
}

.sliderRight:hover {
    background-color: rgba(112, 112, 112, 1);
}

.sliderLeft:hover {
    background-color: rgba(112, 112, 112, 1);
}

.footerLegal {
    background-color: #e5e5e5;
}

@media (min-width: 576px) {
    .position-sm-static {
        position: static !important;
    }

    .position-sm-relative {
        position: relative !important;
    }

    .position-sm-absolute {
        position: absolute !important;
    }

    .position-sm-fixed {
        position: fixed !important;
    }

    .position-sm-sticky {
        position: sticky !important;
    }
}

@media (min-width: 768px) {
    .position-md-static {
        position: static !important;
    }

    .position-md-relative {
        position: relative !important;
    }

    .position-md-absolute {
        position: absolute !important;
    }

    .position-md-fixed {
        position: fixed !important;
    }

    .position-md-sticky {
        position: sticky !important;
    }
}

@media (min-width: 992px) {
    .position-lg-static {
        position: static !important;
    }

    .position-lg-relative {
        position: relative !important;
    }

    .position-lg-absolute {
        position: absolute !important;
    }

    .position-lg-fixed {
        position: fixed !important;
    }

    .position-lg-sticky {
        position: sticky !important;
    }

    .d-lg-none {
        display: none !important;
    }

    .d-lg-inline-block {
        display: inline-block !important;
    }
}

@media (min-width: 1200px) {
    .position-xl-static {
        position: static !important;
    }

    .position-xl-relative {
        position: relative !important;
    }

    .position-xl-absolute {
        position: absolute !important;
    }

    .position-xl-fixed {
        position: fixed !important;
    }

    .position-xl-sticky {
        position: sticky !important;
    }
}

@media screen and (max-width: 1500px) {
    .iconBox {
        padding: 0;
    }
}

@media screen and (max-width: 1400px) {
    #footerSwiper .slide {
        height: 350px;
    }
}

@media screen and (max-width: 1200px) {
    #footerSwiper .slide {
        height: 300px;
    }
}

@media screen and (max-width: 992px) {
    :root {
        --header-offset: 0;
        --spacing: 50px;
        --spacing-top: 0px;
    }

    .navigation .navbar-nav {
        border-top: 2px solid #e63029;
    }

    .navigation .nav-item {
        width: fit-content;
        margin-left: 50vw;
        transform: translate(-50%, 0);
    }

    #headerSwiper .slideImage {
        height: calc(100vh - 150px);
    }

    #footerSwiper .slide {
        height: 400px;
    }

    .bannerImage {
        height: 200px;
    }

    .bannerContent {
        position: static !important;
        margin-top: 0 !important;
    }

    .iconBox {
        text-align: center;
    }

    .aboutUsImage {
        width: 100%;
    }

    .iconBox img {
        height: 75px;
        width: auto !important;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --spacing: 0px;
        --spacing-top: 0px;
    }

    #footerSwiper .slide {
        height: 250px;
    }

    .contentBlock .icon {
        width: 150px;
    }

    .contentBlock button {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    #footerSwiper .slide {
        height: 300px;
    }
}

@media (max-width: 992px) {
    .navbar-collapse {
        max-height: 70vh;
        /* Ajusta el alto máximo */
        overflow-y: auto;
        /* Habilita scroll */
        text-align: center;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        /* Asegura que el menú no se salga del flujo */
        width: 100%;
        /* Hace que ocupe todo el ancho */
    }

    .dropdown-toggle {
        display: block;
        /* Opcional: hace que sea más fácil de presionar */
    }
}

@media (max-width: 768px) {
    .contactBar .btn {
        display: block;
        /* Botones apilados */
        width: 100%;
        /* Asegura que se ajusten al ancho */
        margin-bottom: 10px;
        /* Espaciado entre botones */
    }
}

@media (max-width: 1200px) {
    .navbar-nav {
        flex-wrap: wrap;
        /* Permite que los elementos del menú se envuelvan */
        justify-content: center;
        /* Centra los elementos */
    }

    .nav-item {
        margin: 0 5px;
        /* Reduce los márgenes horizontales */
        flex: 0 1 auto;
        /* Ajusta el ancho de los elementos */
    }

    .nav-link {
        font-size: 14px;
        /* Reduce el tamaño del texto */
    }
}

@media (max-width: 1200px) {
    .navigation .navbar-nav {
        border-top: 2px solid #e63029;
    }

    .navigation .nav-item {
        width: fit-content;
        margin-left: 50vw;
        transform: translate(-50%, 0);
    }
}

@media (min-width: 1200px) {
    .horizontal.dropdown-menu.show {
        display: flex;
        justify-content: flex-start; /* Alinea los elementos a la izquierda */
        position: absolute; /* Asegúrate de que sea posicionable */
        transform: translateX(-35rem);
        left: 0 !important; /* Empuja el menú completamente a la izquierda */
        margin-left: -20px; /* Ajusta este valor según lo que necesites */
        top: 160%; /* Coloca el menú debajo del elemento padre */
    }

}

@media (min-width: 992px) {
    .sticky-column {
        position: sticky;
        top: 15%; /* Define el margen superior desde donde debe "pegarse" */
        align-self: start; /* Asegura que se mantenga en la parte superior si el contenido es dinámico */
    }
}


/*
* Ámbitos de actuación: dropdown compacto + sección activa en degradado rojo
*/
.navigation .ambitos-menu {
    padding: 0.25rem 0;
}
.navigation .ambitos-menu > li {
    padding: 0.25rem 0.75rem !important;
    border-bottom: 0 !important;
    border-radius: 6px;
    transition: background 0.2s;
}
.navigation .ambitos-menu > li .nav-link {
    padding: 0.2rem 0.25rem;
}
.navigation .ambitos-menu > li:hover {
    background: rgba(230, 48, 41, 0.07);
}
.navigation .ambitos-menu > li.selected {
    border-bottom: 0 !important;
    background: linear-gradient(90deg, rgba(230, 48, 41, 0.28), rgba(230, 48, 41, 0.04)) !important;
}
.navigation .ambitos-menu > li.selected .nav-link {
    color: #e63029;
}
