
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* ===== CONFIGURACIÓN GENERAL ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #222;
}


/* ===== CABECERA ===== */

.cabecera {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 5%;
    min-height: 50px;
    width: 100%;
    border-bottom: 1px solid #cccccc;
}

/* ===== LOGOTIPO ===== */

.logo {
    display: block;
    width: 220px;
    max-width: 80%;
    height: auto;
    object-fit: contain;
}


/* ---PRESENTACIÓN ---- */

.presentacion {
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: left;
}

.presentacion h1 {
    font-family: "Inter", Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.4px;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 0;
    -webkit-text-stroke: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.presentacion h1 strong {
    font-weight: 700;
}


/* ===== CONTENIDO PRINCIPAL ===== */

main {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
}


/* ===== BUSCADOR ===== */

.buscador {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
    margin-top: 10px;
    width: 100%;
}

.buscador h2 {
    margin-bottom: 25px;
}

#formularioReserva {
    display: grid;
    gap: 10px;
}

#formularioReserva input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

#formularioReserva button {
    margin-top: 15px;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background-color: #1f3c88;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#formularioReserva button:hover {
    background-color: #162d66;
}


/* ===== HOTELES ===== */

.hoteles h2 {
    margin-bottom: 20px;
}

#listaHoteles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}


/* -- TARJETA DEL HOTEL -- */

.hotel {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.imagen-hotel {
    height: 160px;
    background-color: #dfe6f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.hotel > div:last-child {
    padding: 20px;
}

.hotel h3 {
    margin-bottom: 10px;
}

.hotel p {
    margin-bottom: 8px;
}

.hotel button {
    margin-top: 10px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background-color: #1f3c88;
    color: white;
    cursor: pointer;
}

.hotel button:hover {
    background-color: #162d66;
}


/* ---PIE DE PÁGINA ---- */

footer {
    margin-top: 60px;
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
    text-align: center; 
    background-color: #199B8A;
   color: white;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---CABECERA Y BOTONES--- */
.cabecera {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 5%;
    min-height: 50px;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #cccccc;
    z-index: 100;
}

.enlace-logo {
    display: flex;
    align-items: center;
}

.logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.acciones-cabecera {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}


.boton-sesion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background-color: transparent;
    color: #1F3C88;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.boton-sesion:hover {
    color: #199B8A;
}

.boton-sesion:focus-visible {
    outline: 2px solid #199B8A;
    outline-offset: 3px;
}



.boton-registro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 19px;
    border: 1px solid #199B8A;
    border-radius: 9px;
    background-color: #ffffff;
    color: #11796D;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}


.boton-registro:hover {
    background-color: #199B8A;
    border-color: #199B8A;
    color: #ffffff;
}


.boton-registro:focus-visible {
    outline: 2px solid #11796D;
    outline-offset: 3px;
}

.contenedor-menu {
    position: relative;
}

.boton-menu {
    width: 42px;
    height: 40px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #072b53;
    font-size: 25px;
    cursor: pointer;
}

.menu-desplegable {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    padding: 8px 0;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 200;
}

.menu-desplegable[hidden] {
    display: none;
}

.menu-desplegable a {
    display: block;
    padding: 12px 16px;
    color: #222222;
    text-decoration: none;
    font-size: 14px;
}

.menu-desplegable a:hover {
    background-color: #f2f5f7;
}


/* ===== SELECTOR DE IDIOMAS ===== */

.selector-idioma {
    width: 100%;
    border-top: 1px solid #eeeeee;
}

.boton-idioma {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background-color: #ffffff;
    color: #1F3C88;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.boton-idioma:hover {
    background-color: #f2f5f7;
}

.lista-idiomas {
    width: 100%;
    padding: 4px 0;
    background-color: #f8fafb;
    border-top: 1px solid #eeeeee;
}

.lista-idiomas[hidden] {
    display: none;
}

.lista-idiomas button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background-color: transparent;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lista-idiomas button:hover {
    background-color: #e8f4f2;
    color: #147c70;
}

.lista-idiomas button:focus-visible,
.boton-idioma:focus-visible {
    outline: 2px solid #199B8A;
    outline-offset: -2px;
}

/* ADAPTACIÓN A MÓVILES */
@media (max-width: 600px) {
    .cabecera {
        padding: 8px 3%;
        gap: 8px;
    }

    .logo {
        width: 130px;
    }

    .acciones-cabecera {
        gap: 6px;
    }

    .boton-sesion,
    .boton-registro {
        padding: 8px;
        font-size: 12px;
    }
}



/* IMAGEN DEL BUSCADOR */

.uriel {
    width: 100%;
    min-height: 620px;
    margin: 0;
    padding: 30px 5% 40px;
    box-sizing: border-box;

    background-image: url("images/los%20roques.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}


/* BUSCADOR DE LA PLATAFORMA */

.buscador {
    width: 94%;
    max-width: 1120px;
    margin: 24px auto;
    padding: 14px;
    background: rgba(245, 246, 244, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

#formulario-busqueda {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.campo-busqueda {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(210, 214, 211, 0.8);
    border-radius: 10px;
    transition: border-color 0.2s ease,
                background 0.2s ease;
}

.campo-busqueda:focus-within {
    border-color: #199B8A;
    background: #ffffff;
}

.campo-busqueda label {
    color: #555e5b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.campo-busqueda input,
.campo-busqueda select {
    width: 100%;
    min-width: 0;
    padding: 2px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #303936;
    font-family: inherit;
    font-size: 13px;
}

.campo-busqueda input::placeholder {
    color: #777f7b;
}

.campo-con-icono {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.icono-campo {
    display: flex;
    flex-shrink: 0;
}

.icono-campo svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #199B8A;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.destino {
    flex: 1.5 1 0;
}

.fecha {
    flex: 1 1 0;
}

.personas {
    flex: 0.9 1 0;
}

.boton-buscar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 17px;
    border: none;
    border-radius: 10px;
    background: #199B8A;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.boton-buscar:hover {
    background: #147c70;
    transform: translateY(-1px);
}

.boton-buscar svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* TABLET */

@media (max-width: 900px) {
    #formulario-busqueda {
        flex-wrap: wrap;
    }

    .destino,
    .fecha,
    .personas {
        flex: 1 1 38%;
    }

    .boton-buscar {
        flex: 1 1 100%;
        min-height: 46px;
    }
}

/* MÓVILES */

@media (max-width: 520px) {
    .buscador {
        width: 96%;
        padding: 10px;
        margin: 16px auto;
    }

    #formulario-busqueda {
        flex-direction: column;
    }

    .destino,
    .fecha,
    .personas {
        flex: 1 1 auto;
        width: 100%;
        min-height: 65px;
    }

    .boton-buscar {
        width: 100%;
        min-height: 48px;
    }
}


/*  TARJETAS DE ALOJAMIENTOS  */

.hoteles {
    width: 100%;
    margin-top: 35px;
}

.hoteles h2 {
    margin-bottom: 24px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #1F3C88
}

/* Contenedor de tarjetas */

#listaHoteles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Tarjeta individual */

.hotel {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e7ebe9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.hotel:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.12);
}

/* Fotografía del alojamiento */

.imagen-hotel {
    width: 100%;
    height: 150px;
    background-color: #e8efed;
    overflow: hidden;
}

.imagen-hotel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Información del alojamiento */

.datos-hotel {
    padding: 10px 16px;
}

.hotel h3 {
    margin-bottom: 5px;
    color: #1F3C88;
    font-family: "Inter", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.hotel p {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.3;
}

.ubicacion-hotel {
    color: #68736f;
}

.valoracion-hotel {
    color: #e5a12b;
    letter-spacing: 2px;
}

.precio-hotel {
    color: #525c58;
}

.precio-hotel strong {
    color: #1F3C88;
    font-size: 19px;
    font-weight: 700;
}


/* Botón de la tarjeta */

.hotel button {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background-color: #199B8A;
    color: #ffffff;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hotel button:hover {
    background-color: #147c70;
}

/* Adaptación a móviles */

@media (max-width: 650px) {
    #listaHoteles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .imagen-hotel {
        height: 210px;
    }

    .hoteles h2 {
        font-size: 23px;
    }

    .datos-hotel {
        padding: 18px;
    }
}


/* ===== PESTAÑAS DEL BUSCADOR ===== */

.tipos-busqueda {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin: 0 0 18px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(31, 60, 136, 0.12);
}

.tipo-busqueda {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 8px 12px;
    margin-bottom: -1px;

    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;

    color: #64748B;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;

    transition: color 0.2s ease,
                border-color 0.2s ease;
}

.tipo-busqueda.activo {
    color: #1F3C88;
    border-bottom-color: #199B8A;
    font-weight: 600;
}

.tipo-busqueda:hover {
    color: #199B8A;
}

.tipo-busqueda svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tipo-busqueda:focus-visible {
    outline: 2px solid #199B8A;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Adaptación a móviles */

@media (max-width: 520px) {
    .tipos-busqueda {
        gap: 14px;
        margin-bottom: 14px;
    }

    .tipo-busqueda {
        min-height: 42px;
        padding: 0 6px 11px;
        font-size: 13px;
    }

    .tipo-busqueda svg {
        width: 18px;
        height: 18px;
    }
}



/* Respetar el atributo hidden en los botones de sesión */
#boton-login[hidden],
#boton-registro[hidden],
#boton-mi-panel[hidden] {
    display: none !important;
}
