/* ==========================================================
   HOTELMANIA
   Ficha Pública del Hotel
   Archivo: /assets/css/hotel.css
   Versión: 2.1
   ========================================================== */

.hm-pagina-hotel {
    padding: 28px 0 46px;
    background: #f4f7f9;
}

.hm-pagina-hotel > .hm-contenedor {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    grid-template-areas:
        "breadcrumb breadcrumb"
        "encabezado encabezado"
        "galeria resumen";
    gap: 24px 30px;
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
}

.hm-pagina-hotel > .hm-contenedor > .hm-breadcrumb,
.hm-pagina-hotel > .hm-contenedor > nav {
    grid-area: breadcrumb;
}

.hm-encabezado-hotel {
    display: contents;
}

.hm-encabezado-hotel-texto {
    grid-area: encabezado;
    min-width: 0;
}

.hm-encabezado-hotel-texto > .hm-etiqueta {
    display: none;
}

.hm-encabezado-hotel h1 {
    margin: 0 0 12px;
    color: #0f2f63;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}

.hm-ubicacion-hotel {
    margin: 0 0 14px;
    color: #29445e;
    font-size: 1.05rem;
    font-weight: 700;
}

.hm-categoria-principal {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
    padding: 8px 13px;
    border: 1px solid #d7e0e7;
    border-radius: 999px;
    background: #ffffff;
    color: #17324d;
    font-size: 0.95rem;
}

.hm-boton-informacion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #657789;
    border-radius: 50%;
    background: transparent;
    color: #33475b;
    font-size: 13px;
    font-weight: 700;
    cursor: help;
}

.hm-estado-informacion {
    margin: 0;
    color: #657789;
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.45;
}

.hm-galeria-hotel {
    grid-area: galeria;
    min-width: 0;
    margin: 0;
}

.hm-galeria-principal {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9.7;
    border: 1px solid #d8e1e8;
    border-radius: 16px;
    background: #e8eef3;
    box-shadow: 0 12px 28px rgba(18, 56, 79, 0.10);
}

.hm-galeria-principal > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hm-aviso-galeria {
    position: absolute;
    right: 14px;
    bottom: 14px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(18, 56, 79, 0.88);
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1.3;
}

.hm-miniaturas-galeria {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.hm-miniatura-galeria {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #e8eef3;
    cursor: pointer;
    opacity: 0.84;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hm-miniatura-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-miniatura-galeria:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.hm-miniatura-galeria.activa {
    border-color: #0b5c8f;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(11, 92, 143, 0.12);
}

.hm-galeria-sin-imagenes {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 40px;
    border: 1px solid #d8e1e8;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f3ff, #dbe8ef);
    color: #607382;
    text-align: center;
}

.hm-resumen-hotel {
    grid-area: resumen;
    align-self: start;
    min-width: 0;
    padding: 18px 26px;
    border: 1px solid #d8e1e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(18, 56, 79, 0.09);
}

.hm-resumen-hotel::before {
    display: none;
}

.hm-resumen-hotel p {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #e7edf1;
    color: #526273;
    font-size: 0.96rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.hm-resumen-hotel p:first-child {
    padding-top: 0;
}

.hm-resumen-hotel p:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hm-resumen-hotel strong {
    color: #17324d;
}

/* ==========================================================
   Información inferior
   ========================================================== */

.hm-detalle-hotel {
    margin-top: -18px;
    padding: 0 20px 64px;
}

.hm-detalle-hotel .hm-contenedor {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.hm-grid-detalle-hotel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
    align-items: start;
}
.hm-grid-detalle-hotel > * {
    margin-top: 0;
    align-self: start;
}

.hm-grid-detalle-hotel .hm-bloque-hotel:first-child {
    margin-top: -10px;
}

.hm-bloque-hotel {
    padding: 28px 30px;
    border: 1px solid #d8e1e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(18, 56, 79, 0.07);
}

.hm-bloque-hotel h2 {
    margin: 0 0 18px;
    color: #17324d;
    text-align: left;
    font-size: 1.45rem;
    line-height: 1.25;
}

.hm-bloque-hotel p {
    margin: 0 0 16px;
    color: #526273;
    line-height: 1.75;
}

.hm-bloque-hotel p:last-child {
    margin-bottom: 0;
}

.hm-bloque-hotel strong {
    color: #17324d;
}

.hm-contacto-hotel a {
    color: #0b63d8;
    font-weight: 700;
    text-decoration: none;
}

.hm-contacto-hotel a:hover {
    text-decoration: underline;
}

/* ==========================================================
   Redes sociales
   ========================================================== */

.hm-redes-hotel {
    margin-top: 12px;
}

.hm-redes-hotel h2 {
    margin: 0 0 24px;
    color: #17324d;
    text-align: center;
}

.hm-enlaces-redes-hotel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hm-enlaces-redes-hotel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #cfdbe4;
    border-radius: 999px;
    background: #ffffff;
    color: #0b5c8f;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 980px) {

    .hm-pagina-hotel > .hm-contenedor {
        grid-template-columns: 1fr;
        grid-template-areas:
            "breadcrumb"
            "encabezado"
            "galeria"
            "resumen";
    }

    .hm-grid-detalle-hotel {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Móvil
   ========================================================== */

@media (max-width: 650px) {

    .hm-pagina-hotel {
        padding: 22px 0 36px;
    }

    .hm-pagina-hotel > .hm-contenedor {
        width: min(100% - 28px, 1180px);
        gap: 18px;
    }

    .hm-encabezado-hotel h1 {
        font-size: clamp(2.3rem, 12vw, 3.1rem);
    }

    .hm-ubicacion-hotel {
        font-size: 0.96rem;
    }

    .hm-categoria-principal {
        border-radius: 12px;
        font-size: 0.88rem;
    }

    .hm-estado-informacion {
        font-size: 0.72rem;
    }

    .hm-galeria-principal {
        aspect-ratio: 4 / 3;
        border-radius: 13px;
    }

    .hm-aviso-galeria {
        right: 9px;
        bottom: 9px;
        max-width: calc(100% - 18px);
        padding: 6px 9px;
        border-radius: 8px;
        font-size: 0.66rem;
    }

    .hm-miniaturas-galeria {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    .hm-miniatura-galeria {
        flex: 0 0 92px;
    }

    .hm-resumen-hotel {
        padding: 14px 20px;
        border-radius: 14px;
    }

    .hm-resumen-hotel p {
        padding: 12px 0;
    }

    .hm-detalle-hotel {
        padding: 0 14px 48px;
    }

    .hm-bloque-hotel {
        padding: 22px;
        border-radius: 14px;
    }

    .hm-bloque-hotel h2 {
        font-size: 1.28rem;
    }

    .hm-redes-hotel {
        padding: 42px 14px 52px;
    }

    .hm-enlaces-redes-hotel {
        flex-direction: column;
    }

    .hm-enlaces-redes-hotel a {
        width: 100%;
    }
}
.hm-columna-lateral-detalle {
    display: flex;
    flex-direction: column;
    gap: 0px;
    min-width: 0;
}

.hm-columna-lateral-detalle .hm-redes-hotel {
    padding: 28px 30px;
    background: #ffffff;
}

.hm-columna-lateral-detalle .hm-redes-hotel h2 {
    margin: 0 0 22px;
    text-align: left;
}

.hm-columna-lateral-detalle .hm-enlaces-redes-hotel {
    justify-content: flex-start;
    margin-top: 0;
}

@media (max-width: 650px) {

    .hm-columna-lateral-detalle {
        gap: 18px;
    }

    .hm-columna-lateral-detalle .hm-redes-hotel {
        padding: 22px;
    }
}
.hm-red-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid #d8e1eb;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hm-red-social svg {
    width: 28px;
    height: 28px;
}

.hm-red-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.hm-red-facebook {
    background: #1877f2;
}

.hm-red-facebook svg {
    fill: #ffffff;
}

.hm-red-instagram {
    background:
        linear-gradient(
            135deg,
            #feda75,
            #fa7e1e,
            #d62976,
            #962fbf,
            #4f5bd5
        );
}

.hm-red-instagram svg {
    fill: #ffffff;
}

.hm-red-tiktok {
    background: #000000;
}

.hm-red-tiktok svg {
    fill: #ffffff;
}

.hm-red-youtube {
    background: #ff0000;
}

.hm-red-youtube svg {
    fill: #ffffff;
}
.hm-enlaces-redes-hotel .hm-red-facebook {
    background: #1877f2;
}

.hm-enlaces-redes-hotel .hm-red-facebook svg {
    fill: #ffffff;
}

.hm-enlaces-redes-hotel .hm-red-instagram {
    background: linear-gradient(
        135deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );
}

.hm-enlaces-redes-hotel .hm-red-instagram svg {
    fill: #ffffff;
}

.hm-enlaces-redes-hotel .hm-red-tiktok {
    background: #000000;
}

.hm-enlaces-redes-hotel .hm-red-tiktok svg {
    fill: #ffffff;
}

.hm-enlaces-redes-hotel .hm-red-youtube {
    background: #ff0000;
}

.hm-enlaces-redes-hotel .hm-red-youtube svg {
    fill: #ffffff;
}