/* Diseño de la ficha de hotel, copiado de la página de ejemplo (hotelesmonterrey.org/elementor-page-3533). */

.hm-hotel {
    --azul: #092f52;
    --dorado: #c99a2e;
    --texto: #334155;
    --gris: #64748b;
    --fondo: #f5f7fa;
    --borde: #e2e8f0;

    max-width: 1180px;
    margin: 25px auto;
    background: #fff;
    color: var(--texto);
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(9,47,82,.09);
}

.hm-hotel *,
.hm-hotel *::before,
.hm-hotel *::after {
    box-sizing: border-box;
}

/* ENCABEZADO */

.hm-hotel-header {
    display: grid;
    /* Sin la columna del sello "Espacio Sano" (por ahora no se muestra). */
    grid-template-columns: minmax(0,1fr) 180px;
    align-items: center;
    gap: 25px;
    padding: 35px 40px;
    border-bottom: 1px solid var(--borde);
}

.hm-hotel-heading {
    min-width: 0;
}

.hm-hotel-nombre {
    margin: 0 0 12px !important;
    color: var(--azul) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 30px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

.hm-hotel-estrellas {
    margin-bottom: 10px;
    color: var(--dorado);
    font-size: 21px;
    letter-spacing: 3px;
}

.hm-hotel-ubicacion {
    color: var(--gris);
    font-size: 16px;
    line-height: 1.5;
}

/* LOGO DEL HOTEL */

.hm-hotel-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    min-height: 100px;
}

.hm-hotel-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 110px;
    object-fit: contain;
}

/* SELLO ESPACIO SANO */

.hm-hotel-sello {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 125px;
    height: 125px;
}

.hm-hotel-sello img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CONTENIDO */

.hm-hotel-contenido {
    padding: 35px 40px;
}

.hm-hotel-seccion {
    margin: 0 0 35px;
}

.hm-hotel-seccion:last-child {
    margin-bottom: 0;
}

.hm-hotel-titulo-seccion {
    margin: 0 0 18px !important;
    padding: 0 0 0 14px !important;
    border: 0 !important;
    border-left: 4px solid var(--dorado) !important;
    border-radius: 0 !important;
    color: var(--azul) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 23px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.hm-hotel-descripcion {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.85;
    white-space: pre-line;
}

/* HABITACIONES */

.hm-hotel-habitaciones {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 17px 22px;
    background: var(--fondo);
    border: 1px solid var(--borde);
    border-radius: 12px;
}

.hm-hotel-habitaciones-icono {
    font-size: 29px;
}

.hm-hotel-habitaciones-label {
    margin-bottom: 4px;
    color: var(--gris);
    font-size: 13px;
}

.hm-hotel-habitaciones-valor {
    color: var(--azul);
    font-size: 20px;
    font-weight: 700;
}

/* CONTACTO */

.hm-hotel-contactos {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.hm-hotel-contacto {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 12px;
    transition: border-color .2s, background .2s;
}

.hm-hotel-contacto:hover {
    border-color: #bdcbd8;
    background: #fafcff;
}

.hm-hotel-contacto-icono {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #edf3f8;
    color: var(--azul);
    font-size: 20px;
}

.hm-hotel-contacto-info {
    flex: 1;
    min-width: 0;
}

.hm-hotel-contacto-label {
    margin-bottom: 5px;
    color: var(--gris);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hm-hotel-contacto a,
.hm-hotel-contacto-valor {
    display: block;
    color: var(--azul);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.hm-hotel-contacto a:hover {
    color: var(--dorado);
}

/* REDES SOCIALES */

.hm-hotel-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hm-hotel-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 18px;
    border: 1px solid var(--borde);
    border-radius: 24px;
    background: #fff;
    color: var(--azul) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .2s;
}

.hm-hotel-red:hover {
    background: var(--azul);
    border-color: var(--azul);
    color: #fff !important;
}

/* GALERÍA */

.hm-hotel-galeria {
    padding: 35px 40px 40px;
    background: var(--fondo);
    border-top: 1px solid var(--borde);
}

.hm-hotel-galeria-encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.hm-hotel-galeria-encabezado .hm-hotel-titulo-seccion {
    margin-bottom: 0 !important;
}

.hm-hotel-galeria-ayuda {
    color: var(--gris);
    font-size: 13px;
}

.hm-hotel-carrusel {
    position: relative;
    overflow: hidden;
}

.hm-hotel-pista {
    display: flex;
    gap: 16px;
    transition: transform .4s ease;
    will-change: transform;
}

.hm-hotel-foto {
    position: relative;
    flex: 0 0 calc((100% - 32px)/3);
    height: 205px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #e2e8f0;
    cursor: pointer;
}

.hm-hotel-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.hm-hotel-foto:hover img {
    transform: scale(1.05);
}

.hm-hotel-flecha {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: var(--azul);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: background .2s;
}

.hm-hotel-flecha:hover {
    background: var(--dorado);
}

.hm-hotel-flecha:disabled {
    opacity: .35;
    cursor: default;
}

.hm-hotel-flecha-anterior {
    left: 10px;
}

.hm-hotel-flecha-siguiente {
    right: 10px;
}

/* VISOR DE FOTOGRAFÍAS */

.hm-hotel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(0,0,0,.9);
}

.hm-hotel-lightbox.hm-activo {
    display: flex;
}

.hm-hotel-lightbox-imagen {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hm-hotel-lightbox-cerrar,
.hm-hotel-lightbox-flecha {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--azul);
    cursor: pointer;
    transition: .2s;
}

.hm-hotel-lightbox-cerrar {
    top: 18px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 27px;
}

.hm-hotel-lightbox-flecha {
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    font-size: 28px;
}

.hm-hotel-lightbox-anterior {
    left: 20px;
}

.hm-hotel-lightbox-siguiente {
    right: 20px;
}

.hm-hotel-lightbox-cerrar:hover,
.hm-hotel-lightbox-flecha:hover {
    background: var(--dorado);
    color: #fff;
}

.hm-hotel-lightbox-contador {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 13px;
}

/* TABLET */

@media (max-width: 900px) {
    .hm-hotel-header {
        grid-template-columns: minmax(0,1fr) 140px;
        gap: 15px;
        padding: 28px;
    }

    .hm-hotel-nombre {
        font-size: 26px !important;
    }

    .hm-hotel-logo {
        width: 140px;
    }

    .hm-hotel-logo img {
        max-width: 140px;
    }

    .hm-hotel-sello {
        width: 90px;
        height: 90px;
    }

    .hm-hotel-contenido,
    .hm-hotel-galeria {
        padding: 30px;
    }

    .hm-hotel-foto {
        flex-basis: calc((100% - 16px)/2);
    }
}

/* MÓVIL */

@media (max-width: 600px) {
    .hm-hotel {
        margin: 10px 0;
        border-radius: 12px;
    }

    .hm-hotel-header {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 25px 20px;
        text-align: center;
    }

    .hm-hotel-heading {
        order: 1;
    }

    .hm-hotel-logo {
        order: 2;
        min-height: 80px;
    }

    .hm-hotel-sello {
        order: 3;
        width: 100px;
        height: 100px;
    }

    .hm-hotel-nombre {
        font-size: 25px !important;
    }

    .hm-hotel-contenido {
        padding: 27px 20px;
    }

    .hm-hotel-seccion {
        margin-bottom: 30px;
    }

    .hm-hotel-titulo-seccion {
        font-size: 21px !important;
    }

    .hm-hotel-descripcion {
        font-size: 15px;
        line-height: 1.75;
    }

    .hm-hotel-contactos {
        grid-template-columns: 1fr;
    }

    .hm-hotel-redes {
        gap: 9px;
    }

    .hm-hotel-red {
        flex: 1 1 40%;
        padding: 0 12px;
    }

    .hm-hotel-galeria {
        padding: 27px 20px 30px;
    }

    .hm-hotel-galeria-encabezado {
        display: block;
    }

    .hm-hotel-galeria-ayuda {
        display: block;
        margin-top: 8px;
    }

    .hm-hotel-foto {
        flex-basis: 100%;
        height: 195px;
    }

    .hm-hotel-lightbox {
        padding: 12px;
    }

    .hm-hotel-lightbox-flecha {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .hm-hotel-lightbox-anterior {
        left: 8px;
    }

    .hm-hotel-lightbox-siguiente {
        right: 8px;
    }
}

/* CONTENEDOR (agregado por el plugin): en la página de ejemplo la ficha va dentro de un contenedor
   de Elementor de 1140px con 10px de padding; aquí se reproduce para que mida y respire igual. */

.amhnl-ficha-contenedor {
    box-sizing: border-box;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 10px;
}
