/*Damos formato a la fuente*/

@font-face {
    font-family: 'longa_iberica';
    src: url(../fonts/longa_iberica/LongaIberica-DEMO.ttf) format('truetype');
}

/*Video a pantalla completa*/

#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#intro-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/*Damos formato al Header*/

header {
    background: black;
}

.header {
    display: flex;
    align-items: center;
    height: 100px;
    padding: 0 20px;
}

.header img:first-child {
    height: 70px;  /*Logo Izquierda*/
}

.header img:last-child {
    height: 120px; /*Texto Samain más grande*/
    object-fit: contain; /*Evita deformaciones*/
}

/*Damos formato al nav-bar*/

.navbar-brand {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/*Carousel de imágenes*/

#carouselExampleIndicators {
    max-height: 580px; /*Controla la altura de las imágenes*/
    overflow: hidden; /*Oculta lo que sobresalga*/
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#carouselExampleIndicators img {
    height: 580px;
    object-fit: cover; /*recorta sin deformar la imagen*/
    border-radius: 20px;
}

/* Estilos para la sección de presentación */
.presentacion {
    display: block;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    margin: 30px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.presentacion p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.presentacion b {
    font-weight: 700;
}

/* Contenedor del enlace con la imagen */
.enlace_reserva {
    position: relative;
    /* Define que el contenedor es relativo */
    display: flex;
    justify-content: center;
    /* Centra el contenido horizontalmente */
    align-items: center;
    /* Centra el contenido verticalmente */
    margin-top: 20px;
    /* Espacio superior */
    width: 100%;
    /* Asegura que el contenedor ocupe el ancho completo */
    max-width: 800px;
    /* Limita el ancho máximo del contenedor */
    margin-left: auto;
    margin-right: auto;
    /* Centra el contenedor */
}

/* Enlace dentro del contenedor */
.enlace_reserva a {
    position: relative;
    /* Define un contexto de posicionamiento relativo */
    display: inline-block;
    text-decoration: none;
    /* Quita el subrayado del enlace */
    width: 100%;
    /* El ancho del enlace es igual al contenedor */
}

/* Imagen dentro del enlace */
.enlace_reserva img {
    width: 100%;
    /* Asegura que la imagen ocupe el ancho del enlace */
    height: auto;
    /* Mantiene la proporción de la imagen */
    border-radius: 10px;
    /* Bordes redondeados */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Sombra alrededor de la imagen */
}

/* Texto superpuesto sobre la imagen */
.enlace_reserva .overlay-text {
    position: absolute;
    /* Posiciona el texto respecto a .enlace_reserva */
    top: 50%;
    /* Centra verticalmente */
    left: 50%;
    /* Centra horizontalmente */
    transform: translate(-50%, -50%);
    /* Ajuste para centrarlo exactamente */
    font-family: Arial, Helvetica, sans-serif;
    /* Fuente del texto */
    font-size: 24px;
    /* Tamaño del texto */
    font-weight: bold;
    /* Peso de la fuente */
    color: white;
    /* Color del texto */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    /* Sombra para resaltar */
    text-align: center;
    z-index: 1;
    /* Asegura que esté por encima de la imagen */
    pointer-events: none;
    /* Permite que el clic se registre en el enlace a pesar del texto */
    padding: 10px;
    /* Espacio interno del texto */
    background: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente para que se vea mejor */
    border-radius: 10px;
    /* Bordes redondeados */
}

/*Diseño para la sección de Noticias*/
.updates-section {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.card {
    min-width: 350px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.control-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.1);
    background: #667eea;
    color: white;
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #333;
    width: 30px;
    border-radius: 6px;
}

@media (max-width:768px) {
    .card {
        min-width: 280px;
    }
    .section-title {
        font-size: 2rem;
    }
}

/*Diseño de la Introducción de Samain*/

.Samain {
    text-align: center;
    margin-top: 20px;
}

#titulo2 {
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    font-size: 24px;
}

.Samain p {
    color: black;
    font-size: 20px;
}

.boton_samain {
    width: 30vw;
    border-radius: 10px;
    background-color: rgb(255, 166, 0);
    font-weight: bolder;
    cursor: pointer;
    /*Cambia el cursor al pasar*/
    transition: transform 0.3s ease;
    /*Transición suave*/
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.5);
}

.boton_samain:hover {
    transform: scale(1.1);
    /*Aumenta el tamaño un 10%*/
}


/*Damos formato al footer*/

.quienes_somos,
.contacto,
.ultimas_noticias {
    display: inline-block;
    margin-left: 10px;
}

.phone,
.fax,
.email,
.location {
    display: inline-flex;
    margin-left: 10px;
}

footer {
    background-color: black;
    margin-top: 20px;
}

h2 {
    font-family: 'longa_iberica', sans-serif;
    font-size: 40px;
    color: red;
    font-weight: bold;
    letter-spacing: 5px;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

li {
    color: white;
}

.tweet_text a {
    text-decoration: none;
    color: white;
}

.tweet_time {
    color: orange;
}

/*Damos formato a la estructura de la política de privacidad, el aviso legal y las Cookies*/
.conditions {
    list-style-type: none;
}

.conditions a {
    text-decoration: none;
    color: grey;
    padding: 10px 15px;
    /*Relleno interno para aumentar el área clicable*/
    display: block;
}

.logo {
    padding-bottom: 20px;
    margin-left: 60px;
    margin-right: 60px;
}

.logo img {
    margin-left: 40px;
}

/*Damos formato al estilo del cuadro de aceptar Cookies*/

#cookieConsent {
    display: none;
    position: fixed;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    z-index: 1000;
}

#acceptCookies {
    background: green;
    color: white;
    border: none;
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
}

/*Damos formato para monitores grandes*/

@media screen and (min-width: 700px) and (max-width: 3270px) {

    /*Header*/

    .header img {
        margin-left: 70px;
    }

    /*Menu*/

    .nav-item {
        margin-left: 60px;
    }

    .navbar-brand {
        margin-left: 10px;
    }

    /*Explicación Samain*/

    .Samain {
        width: 90vw;
        justify-content: center;
        text-align: center;
    }

    /*footer*/

    footer>div {
        margin: 10px;
    }

    /*Usamos flexbox solo en main-sections*/

    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .main-sections {
        display: flex;
        justify-content: space-between;
        /*Distribuye uniformemente las secciones*/
        align-items: flex-start;
        /*alinea la secciones por la parte superior*/
        flex-wrap: wrap;
        /*permite que se reorganicen en pantallas pequeñas*/
    }

    .main-sections .quienes_somos,
    .main-sections .contacto,
    .main-sections .noticias {
        flex: 1;
        /*Cada sección tendrá el mismo ancho*/
    }

    .Samain {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        margin-left: 40px;
        margin-right: 40px;
        text-align: center;
    }

    /*Estilos para las listas*/

    .legal_conditions {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
    }

    .conditions {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /*Estilos para los elementos de las listas*/

    .conditions li {
        margin-right: 15px;
        /*Espaciado entre los elementos de la lista*/
    }

    #cookieConsent {
        width: 40vw;
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        /*Ajuste para centrar*/
        text-align: center;
        margin-top: 120px;
    }
}