:root {
    --amarillo-logo: #e4ad00;
    --amarillo-estrella: #e6bf3b;
    --azul-texto: #22235f;
    --texto-principal: #303030;
    --texto-secundario: #696969;
    --fondo-calido: #f6f2ec;
    --borde-suave: #e3ded6;
    --ancho-contenido: 1120px;
    --alto-encabezado: 88px;
}



/* =========================
   VISIBILIDAD INICIAL DE LAS SECCIONES 
========================= */
#seccReservasYOpiniones {
    display: none;
}



#seccContacto {
    display: none;
}
*/


/* =========================
   ESTILOS GENERALES 
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding-top: var(--alto-encabezado);
    color: var(--texto-principal);
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background-image: url("/img/fondo.png");
    background-repeat: no-repeat;
    background-position: center top;
    /* background-position: center; */
    background-size: cover;
    background-attachment: fixed;
    line-height: 1.5;
}


a {
    color: inherit;
    text-decoration: none;
}

.contenedor {
    width: min(100% - 48px, var(--ancho-contenido));
    margin-inline: auto;
}


/* =========================
   ENCABEZADO
   ========================= */

.encabezado {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--alto-encabezado);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--borde-suave);
    box-shadow: 0 4px 20px rgba(40, 36, 31, 0.06);
    backdrop-filter: blur(10px);
}

.encabezado__contenido {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.marca {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    font-weight: 700;
}

.marca__logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.marca__nombre {
    font-size: 1.08rem;
    white-space: nowrap;
}
/*Navegacion de escritorio*/
.navegacion {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: 32px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.98rem;
}
/*Efectos de los enlaces*/
.navegacion a {
    position: relative;
    padding: 12px 0;
    color: #3b342d;
    transition: color 180ms ease;
}
/*Efecto de la linea debajo del enlace*/
.navegacion a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--amarillo-logo);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}
/*Al pasar el cursor por el enlace, la linea se extiende complatamente*/
.navegacion a:hover,
.navegacion a:focus-visible {
    color: #8c6900;
}

.navegacion a:hover::after,
.navegacion a:focus-visible::after {
    transform: scaleX(1);
}
/*Linea de separacion visual antes del login*/
.navegacion__login {
    margin-left: -10px;
    padding-left: 22px !important;
    border-left: 1px solid #cfc8be;
}

.menu-control,
.menu-boton {
    display: none;
}






img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================
    LANDING PAGE - BANNER 
========================= */
#seccLanding {
    width: 100%;
}

.banner {
    position: relative;
    width: min(100% - 40px, var(--ancho-contenido));
    min-height: 480px;
    margin: 0 auto;
    background-image: url("/img/banner.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.texto-banner {
    position: absolute;
    max-width: 520px;
    text-align: right;
}

.texto-banner-arriba {
    top: 24px;
    right: 24px;
}

.texto-banner-abajo {
    right: 24px;
    bottom: 28px;
}

.texto-banner-arriba h2 {
    color: #111;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.texto-banner-abajo p {
    color: var(--azul-texto);
    font-size: 28px;
    line-height: 1.35;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* =========================
   RESERVA
========================= */

#seccReserva {
    width: min(100% - 40px, 760px);
    margin: 45px auto 80px;
}

.reservation-form {
    padding: 28px 35px 35px;

    background-color: rgba(255, 255, 255, 0.92);

    border: 1px solid var(--borde-suave);
    border-radius: 22px;
}

.reservation-form > h2 {
    margin-bottom: 28px;

    color: #111;

    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

/* FILAS GENERALES */

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;

    margin-bottom: 22px;
}

/* CAMPOS DEL FORMULARIO */

.reservation-form input:not([type="checkbox"]),
.reservation-form select,
.reservation-form textarea {
    width: 100%;
    padding: 13px 14px;

    color: var(--texto-principal);

    background-color: rgba(255, 255, 255, 0.9);

    border: 1px solid var(--borde-suave);
    border-radius: 10px;

    outline: none;
}

.reservation-form input:not([type="checkbox"]):focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
    border-color: var(--amarillo-logo);
}

/* TELÉFONO */

.phone-group {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 12px;
}

.country-code {
    width: 100%;
}

/* TIPO DE HABITACIÓN */

.room-type {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
}

.room-type label {
    padding-left: 14px;

    font-weight: 400;
}

/* HUÉSPEDES */

.guests-section {
    width: 180px;
    margin: 20px auto 0;

    text-align: center;
}

.guests-section label {
    display: block;

    margin-bottom: 8px;

    font-weight: 500;
}

/* FECHAS */

.date-section {
    margin-top: 28px;
}

.date-section h2 {
    margin-bottom: 14px;

    color: var(--texto-principal);

    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.date-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;

    max-width: 470px;
    margin: 0 auto;
}

.date-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

/* COMENTARIOS */

.comments-section {
    margin-top: 24px;
}

.comments-section textarea {
    min-height: 145px;

    resize: vertical;

    background-color: rgba(248, 248, 248, 0.95);
}

/* SERVICIOS ADICIONALES */

.services-section {
    margin-top: 25px;
    padding: 18px;

    background-color: rgba(248, 248, 248, 0.75);

    border: 1px solid var(--borde-suave);
    border-radius: 12px;
}

.services-section h2 {
    margin-bottom: 6px;

    color: var(--texto-principal);

    font-size: 1.05rem;
    text-align: left;
}

.services-section > p {
    margin-bottom: 14px;

    color: var(--texto-secundario);

    font-size: 0.9rem;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 5px 0;
}

.service-option input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
}

/* MENSAJES */

#divMensajeFormulario {
    margin-top: 18px;

    text-align: center;
    font-weight: 600;
}

/* BOTÓN RESERVAR */

.btn-reserve {
    display: flex;
    align-items: stretch;

    width: 100%;
    min-height: 58px;
    margin-top: 24px;
    padding: 0;

    overflow: hidden;

    background-color: #efc47d;

    border: none;
    border-radius: 9px;

    color: #111;

    cursor: pointer;
}

.btn-reserve .arrow {
    display: grid;
    width: 76px;

    color: white;
    background-color: #050505;

    font-size: 1.35rem;

    place-items: center;
}

.btn-reserve .text {
    display: grid;
    flex: 1;

    font-size: 1.7rem;
    font-weight: 700;

    place-items: center;
}

.btn-reserve:hover {
    filter: brightness(0.97);
}

/* RESPONSIVE */

@media (max-width: 650px) {
    #seccReserva {
        width: min(100% - 24px, 760px);
        margin-top: 25px;
    }

    .reservation-form {
        padding: 24px 18px 28px;
    }

    .row,
    .room-type,
    .date-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .phone-group {
        grid-template-columns: 95px 1fr;
    }

    .room-type label {
        padding-left: 0;
    }

    .guests-section {
        width: 100%;
    }

    .btn-reserve .text {
        font-size: 1.35rem;
    }
}


/* =========================
   RESEÑAS
    =========================*/
.seccOpiniones {
    width: min(100% - 40px, var(--ancho-contenido));
    margin: 35px auto 60px;

    display: flex;
    align-items: flex-start;
    gap: 45px;
}

.texto-opiniones {
    width: 280px;
    flex-shrink: 0;
}

.titulo-opiniones {
    margin-bottom: 15px;

    color: var(--texto-principal);

    font-size: 3.2rem;
    font-weight: 600;
}

.descripcion-opiniones {
    color: var(--texto-secundario);

    font-size: 1.8rem;
    line-height: 1.5;
}

#contenedorOpiniones {
    flex: 1;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
}

.tarjeta-opinion {
    text-align: center;
}

.foto-opinion {
    width: 58px;
    height: 58px;

    margin: 0 auto 8px;

    object-fit: cover;
}

.nombre-opinion {
    margin-bottom: 6px;

    color: var(--texto-principal);

    font-size: 0.95rem;
    font-weight: 500;
}

.estrellas-opinion {
    margin-bottom: 7px;

    color: var(--amarillo-estrella);

    font-size: 1.1rem;
    line-height: 1;
}

.comentario-opinion {
    max-width: 290px;
    margin: 0 auto;

    color: var(--texto-secundario);

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

/*
==================================================
                    GALERÍA
==================================================
*/

.galeria,
.galeria * {
    box-sizing: border-box;
}

.galeria {
    scroll-margin-top: calc(var(--alto-encabezado, 80px) + 18px);
    padding: 72px 0 88px;
}

/*
Panel principal de la galería.
Mantiene el fondo claro, borde dorado y esquinas redondeadas.
*/
.galeria__panel {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
    padding: clamp(46px, 5vw, 64px);

    background: rgba(255, 255, 255, 0.76);
    border: 2px solid rgba(228, 173, 0, 0.88);
    border-radius: 30px;

    box-shadow:
        0 22px 50px rgba(71, 56, 23, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/*
==================================================
               ENCABEZADO DE GALERÍA
==================================================
*/

.galeria__encabezado {
    margin-bottom: 32px;
    text-align: center;
}

.galeria__subtitulo {
    margin: 0 0 12px;

    color: #8b6900;

    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.galeria__encabezado h2 {
    margin: 0;

    color: #171717;

    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

/*
==================================================
                    GRILLA
==================================================
*/

.galeria__grilla {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 30px;
}

/*
==================================================
                    TARJETAS
==================================================
*/

.galeria-card {
    min-width: 0;
}

.galeria-card h3 {
    margin: 0 0 9px;

    color: #77736c;

    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.3;
}

/*
==================================================
                VISOR DE LA TARJETA
==================================================
*/

.galeria-card__visor {
    position: relative;

    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;

    cursor: zoom-in;
    touch-action: pan-y;

    background: #e8e3db;
    border: 2px solid rgba(228, 173, 0, 0.58);
    border-radius: 20px;
    outline: none;

    box-shadow:
        0 12px 25px rgba(46, 39, 29, 0.11),
        0 2px 6px rgba(46, 39, 29, 0.06);

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.galeria-card__visor:focus-visible {
    border-color: var(--amarillo-logo, #e4ad00);

    box-shadow:
        0 0 0 4px rgba(228, 173, 0, 0.22),
        0 19px 34px rgba(78, 57, 10, 0.19);
}

/*
==================================================
                IMAGEN DE LA TARJETA
==================================================
*/

.galeria-card__imagen {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    user-select: none;
    -webkit-user-drag: none;

    transition:
        opacity 150ms ease,
        transform 420ms ease;
}

/*
La clase cambiando puede ser agregada por JavaScript
para crear un fundido durante el cambio de imagen.
*/
.galeria-card__imagen.cambiando {
    opacity: 0.25;
}

/*
==================================================
             CAPA OSCURA AL PASAR EL CURSOR
==================================================
*/

.galeria-card__capa {
    position: absolute;
    z-index: 2;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(22, 18, 9, 0.02) 28%,
            rgba(22, 18, 9, 0.72) 100%
        );

    font-size: 0.92rem;
    font-weight: 700;

    opacity: 0;
    pointer-events: none;

    transition: opacity 220ms ease;
}

.galeria-card__lupa {
    font-size: 2.1rem;
    line-height: 1;
    transform: rotate(-18deg);
}

/*
==================================================
              FLECHAS DE LAS TARJETAS
==================================================
*/

.galeria-card__flecha {
    position: absolute;
    z-index: 4;
    top: 50%;

    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;
    padding: 0;

    cursor: pointer;

    color: #201904;
    background: rgba(244, 198, 55, 0.96);

    border: 1px solid rgba(109, 79, 0, 0.3);
    border-radius: 50%;
    outline: none;

    font-family: inherit;
    font-size: 1.1rem;
    line-height: 1;

    opacity: 0;
    transform: translateY(-50%);

    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);

    transition:
        opacity 180ms ease,
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.galeria-card__flecha--anterior {
    left: 12px;
}

.galeria-card__flecha--siguiente {
    right: 12px;
}

.galeria-card__flecha:hover {
    background: #ffd65a;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.galeria-card__flecha:focus-visible {
    background: #ffdc6a;

    box-shadow:
        0 0 0 4px rgba(255, 214, 90, 0.35),
        0 8px 18px rgba(0, 0, 0, 0.25);
}

/*
==================================================
                PUNTOS INDICADORES
==================================================
*/

.galeria-card__indicadores {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 13px;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    pointer-events: none;
}

.galeria-card__punto {
    width: 8px;
    height: 8px;
    padding: 0;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(56, 42, 4, 0.5);
    border-radius: 50%;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);

    transition:
        width 180ms ease,
        background 180ms ease,
        border-radius 180ms ease;
}

.galeria-card__punto.activo {
    width: 20px;

    background: var(--amarillo-logo, #e4ad00);
    border-color: rgba(93, 67, 0, 0.65);
    border-radius: 999px;
}

/*
Efectos para dispositivos que tienen cursor.
Así no quedan efectos hover activos en pantallas táctiles.
*/
@media (hover: hover) and (pointer: fine) {

    .galeria-card:hover .galeria-card__visor {
        border-color: var(--amarillo-logo, #e4ad00);

        transform: translateY(-5px) scale(1.015);

        box-shadow:
            0 19px 34px rgba(78, 57, 10, 0.19),
            0 5px 10px rgba(78, 57, 10, 0.08);
    }

    .galeria-card:hover .galeria-card__imagen {
        transform: scale(1.055);
    }

    .galeria-card:hover .galeria-card__capa,
    .galeria-card__visor:focus-within .galeria-card__capa {
        opacity: 1;
    }

    .galeria-card:hover .galeria-card__flecha,
    .galeria-card__visor:focus-within .galeria-card__flecha {
        opacity: 1;
    }

    .galeria-card:hover .galeria-card__flecha--anterior {
        transform: translateY(-50%) translateX(0);
    }

    .galeria-card:hover .galeria-card__flecha--siguiente {
        transform: translateY(-50%) translateX(0);
    }
}

/*
==================================================
                    LIGHTBOX
==================================================
*/

body.lightbox-abierto {
    overflow: hidden;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

.lightbox {
    position: fixed;
    z-index: 3000;
    inset: 0;

    display: grid;
    place-items: center;

    padding: 72px 24px 32px;

    visibility: hidden;
    background: rgba(12, 10, 7, 0.93);
    opacity: 0;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    transition:
        visibility 220ms ease,
        opacity 220ms ease;
}

.lightbox.abierto {
    visibility: visible;
    opacity: 1;
}

/*
Este contenedor incluye:
flecha anterior, figura y flecha siguiente.
*/
.lightbox__contenido {
    position: relative;

    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    align-items: center;
    gap: 22px;

    width: min(100%, 1280px);

    touch-action: pan-y;
}

/*
==================================================
                FIGURA DEL LIGHTBOX
==================================================
*/

.lightbox__figura {
    grid-column: 2;

    width: 100%;
    min-width: 0;
    margin: 0;
}

.lightbox__imagen {
    display: block;

    width: 100%;
    max-height: 76vh;
    margin: 0 auto;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;

    background: #151515;
    border: 2px solid rgba(228, 173, 0, 0.82);
    border-radius: 16px;

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.48),
        0 4px 14px rgba(0, 0, 0, 0.25);
}

/*
==================================================
                 PIE DEL LIGHTBOX
==================================================
*/

.lightbox__pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 14px;
    padding: 0 4px;

    color: #ffffff;
}

.lightbox__titulo {
    margin: 0;

    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 650;
}

.lightbox__contador {
    flex-shrink: 0;

    color: #e8c752;

    font-size: 1rem;
    font-weight: 700;
}

/*
==================================================
               BOTONES DEL LIGHTBOX
==================================================
*/

.lightbox__cerrar,
.lightbox__flecha {
    display: grid;
    place-items: center;

    padding: 0;

    cursor: pointer;

    color: #1f1805;
    background: #f3c842;

    border: 1px solid #d9a400;
    border-radius: 50%;
    outline: none;

    font-family: inherit;
    line-height: 1;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);

    transition:
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.lightbox__cerrar:hover,
.lightbox__flecha:hover {
    background: #ffdc6a;
    transform: scale(1.07);
}

.lightbox__cerrar:focus-visible,
.lightbox__flecha:focus-visible {
    background: #ffdc6a;

    box-shadow:
        0 0 0 4px rgba(255, 220, 106, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.28);
}

/*
Botón cerrar.
*/
.lightbox__cerrar {
    position: fixed;
    z-index: 4;
    top: 18px;
    right: 22px;

    width: 46px;
    height: 46px;

    font-size: 2rem;
}

/*
Flechas laterales.
*/
.lightbox__flecha {
    width: 54px;
    height: 54px;

    font-size: 1.35rem;
}

.lightbox__flecha--anterior {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

.lightbox__flecha--siguiente {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
}

/*
==================================================
                  TABLETS
==================================================
*/

@media (max-width: 950px) {

    .galeria {
        padding: 58px 0 72px;
    }

    .galeria__panel {
        width: min(100% - 36px, 850px);
        padding: 44px 36px;
    }

    .galeria__grilla {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 26px;
    }

    .lightbox__contenido {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        gap: 14px;
    }

    .lightbox__flecha {
        width: 48px;
        height: 48px;
    }
}

/*
==================================================
                  CELULARES
==================================================
*/

@media (max-width: 620px) {

    .galeria {
        padding: 40px 0 56px;
    }

    .galeria__panel {
        width: calc(100% - 24px);
        padding: 34px 20px;

        border-radius: 24px;
    }

    .galeria__encabezado {
        margin-bottom: 28px;
    }

    .galeria__subtitulo {
        font-size: 0.74rem;
        letter-spacing: 0.11em;
    }

    .galeria__encabezado h2 {
        font-size: clamp(2.1rem, 12vw, 3rem);
    }

    .galeria__grilla {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .galeria-card h3 {
        font-size: 1rem;
    }

    /*
    En celulares las flechas permanecen visibles.
    */
    .galeria-card__flecha {
        width: 38px;
        height: 38px;

        opacity: 1;
    }

    .galeria-card__flecha--anterior {
        left: 10px;
    }

    .galeria-card__flecha--siguiente {
        right: 10px;
    }

    /*
    Lightbox móvil.
    Las flechas quedan superpuestas sobre la imagen.
    */
    .lightbox {
        padding: 68px 12px 22px;
    }

    .lightbox__contenido {
        display: block;
        width: 100%;
    }

    .lightbox__figura {
        width: 100%;
    }

    .lightbox__imagen {
        max-height: 72vh;
        border-radius: 12px;
    }

    .lightbox__flecha {
        position: absolute;
        z-index: 3;
        top: 50%;

        width: 44px;
        height: 44px;

        font-size: 1.15rem;

        transform: translateY(-50%);
    }

    .lightbox__flecha:hover {
        transform: translateY(-50%) scale(1.06);
    }

    .lightbox__flecha--anterior {
        left: 8px;
    }

    .lightbox__flecha--siguiente {
        right: 8px;
    }

    .lightbox__cerrar {
        top: 14px;
        right: 14px;

        width: 42px;
        height: 42px;

        font-size: 1.8rem;
    }

    .lightbox__pie {
        margin-top: 11px;
        padding: 0 2px;
    }

    .lightbox__titulo,
    .lightbox__contador {
        font-size: 0.92rem;
    }
}

/*
==================================================
         USUARIOS CON ANIMACIONES REDUCIDAS
==================================================
*/

@media (prefers-reduced-motion: reduce) {

    .galeria-card__visor,
    .galeria-card__imagen,
    .galeria-card__capa,
    .galeria-card__flecha,
    .galeria-card__punto,
    .lightbox,
    .lightbox__cerrar,
    .lightbox__flecha {
        transition: none;
    }
}

/* ==================================================
                    HABITACIONES
================================================== */

#seccHabitaciones {
    scroll-margin-top: calc(var(--alto-encabezado) + 18px);

    width: min(1120px, calc(100% - 48px));
    margin: 72px auto 88px;
    padding: clamp(46px, 5vw, 64px);

    background: rgba(255, 255, 255, 0.76);

    border: 2px solid rgba(228, 173, 0, 0.88);
    border-radius: 30px;

    box-shadow:
        0 22px 50px rgba(71, 56, 23, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* TÍTULO */

.titulo-seccion {
    text-align: center;
}

.titulo-habitaciones {
    margin-bottom: 42px;

    color: #171717;

    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

/* GRILLA */

.contenedor-habitaciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

/* TARJETAS */

.tarjeta-habitacion {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 24px;

    overflow: hidden;

    text-align: center;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(92, 82, 64, 0.35);
    border-top: 5px solid var(--amarillo-logo);
    border-radius: 20px;

    box-shadow:
        0 10px 24px rgba(54, 44, 22, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

/* NOMBRE */

.nombre-habitacion {
    margin-bottom: 16px;

    color: #8b6900;

    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

/* IMAGEN */

.imagen-habitacion {
    width: 100%;
    height: 230px;
    margin: 0 auto 20px;

    object-fit: cover;
    object-position: center;

    border-radius: 15px;

    box-shadow: 0 8px 18px rgba(46, 39, 29, 0.14);

    transition: transform 300ms ease;
}

/* DESCRIPCIÓN */

.descripcion-habitacion {
    min-height: 54px;
    margin-bottom: 20px;

    color: var(--texto-secundario);

    font-size: 1rem;
    line-height: 1.5;
}

/* INFORMACIÓN */

.capacidad-habitacion,
.precio-habitacion,
.comodidades-habitacion {
    margin-bottom: 14px;

    color: #45413b;

    font-size: 1rem;
    line-height: 1.45;
}

.capacidad-habitacion strong,
.precio-habitacion strong,
.comodidades-habitacion strong {
    color: #25231f;
    font-weight: 750;
}

/* PRECIO DESTACADO */

.precio-habitacion {
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    padding: 8px 15px;

    background: rgba(228, 173, 0, 0.13);

    border: 1px solid rgba(228, 173, 0, 0.36);
    border-radius: 999px;

    color: #795b00;
}

/* COMODIDADES AL FINAL DE LA TARJETA */

.comodidades-habitacion {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 16px;

    border-top: 1px solid var(--borde-suave);
}

/* EFECTO DE ESCRITORIO */

@media (hover: hover) and (pointer: fine) {

    .tarjeta-habitacion:hover {
        border-color: rgba(228, 173, 0, 0.8);

        transform: translateY(-6px);

        box-shadow:
            0 18px 34px rgba(71, 56, 23, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .tarjeta-habitacion:hover .imagen-habitacion {
        transform: scale(1.025);
    }
}

/* ==================================================
                       TABLETS
================================================== */

@media (max-width: 900px) {

    #seccHabitaciones {
        width: min(100% - 36px, 850px);
        margin: 58px auto 72px;
        padding: 44px 36px;
    }

    .contenedor-habitaciones {
        gap: 24px;
    }

    .tarjeta-habitacion {
        padding: 21px;
    }

    .imagen-habitacion {
        height: 200px;
    }
}

/* ==================================================
                      CELULARES
================================================== */

@media (max-width: 650px) {

    #seccHabitaciones {
        width: calc(100% - 24px);
        margin: 40px auto 56px;
        padding: 34px 20px;

        border-radius: 24px;
    }

    .titulo-habitaciones {
        margin-bottom: 30px;

        font-size: clamp(2.1rem, 11vw, 3rem);
    }

    .contenedor-habitaciones {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tarjeta-habitacion {
        padding: 20px;

        border-radius: 17px;
    }

    .nombre-habitacion {
        font-size: 1.6rem;
    }

    .imagen-habitacion {
        height: 210px;
    }

    .descripcion-habitacion {
        min-height: auto;
    }
}

/* CELULARES PEQUEÑOS */

@media (max-width: 390px) {

    #seccHabitaciones {
        padding: 28px 15px;
    }

    .tarjeta-habitacion {
        padding: 16px;
    }

    .imagen-habitacion {
        height: 180px;
    }

    .capacidad-habitacion,
    .precio-habitacion,
    .comodidades-habitacion,
    .descripcion-habitacion {
        font-size: 0.94rem;
    }
}


/*
==================================================
              SERVICIOS Y COMODIDADES
==================================================
*/

.servicios,
.servicios * {
    box-sizing: border-box;
}

.servicios {
    scroll-margin-top: calc(var(--alto-encabezado, 88px) + 18px);
    padding: 72px 0 88px;
}

/*
Panel exterior de la sección.
Mantiene el mismo diseño visual de la galería.
*/
.servicios__panel {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
    padding: clamp(46px, 5vw, 64px);

    background: rgba(255, 255, 255, 0.76);

    border: 2px solid rgba(228, 173, 0, 0.88);
    border-radius: 30px;

    box-shadow:
        0 22px 50px rgba(71, 56, 23, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/*
==================================================
           ENCABEZADO DE LA SECCIÓN
==================================================
*/

.servicios__encabezado {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.servicios__subtitulo {
    margin: 0 0 12px;

    color: #8b6900;

    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.servicios__encabezado h2 {
    margin: 0;

    color: #171717;

    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.servicios__introduccion {
    max-width: 650px;
    margin: 18px auto 0;

    color: var(--texto-secundario);

    font-size: 1.08rem;
    line-height: 1.65;
}

/*
==================================================
              LISTA DE SERVICIOS
==================================================
*/

.servicios__lista {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;

    margin: 0;
    padding: 0;

    list-style: none;
}

/*
Cada servicio se muestra en una tarjeta horizontal.
*/
.servicio-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 22px;

    min-height: 100px;
    padding: 18px 26px;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(92, 82, 64, 0.38);
    border-left: 5px solid var(--amarillo-logo);
    border-radius: 18px;

    box-shadow:
        0 8px 18px rgba(54, 44, 22, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/*
==================================================
                   ICONOS
==================================================
*/

.servicio-card__icono {
    display: grid;
    place-items: center;

    width: 64px;
    height: 64px;

    background: rgba(247, 240, 219, 0.72);

    border: 1px solid rgba(228, 173, 0, 0.35);
    border-radius: 15px;
}

.servicio-card__icono img {
    display: block;

    width: 44px;
    height: 44px;

    object-fit: contain;
}

/*
==================================================
               TEXTO DEL SERVICIO
==================================================
*/

.servicio-card__texto {
    margin: 0;

    color: #37332d;

    font-size: 1.05rem;
    line-height: 1.55;
}

.servicio-card__texto strong {
    color: #795b00;
    font-weight: 800;
}

/*
==================================================
                    TABLETS
==================================================
*/

@media (max-width: 950px) {

    .servicios {
        padding: 58px 0 72px;
    }

    .servicios__panel {
        width: min(100% - 36px, 850px);
        padding: 44px 36px;
    }

    .servicio-card {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 18px;
        padding: 18px 22px;
    }

    .servicio-card__icono {
        width: 58px;
        height: 58px;
    }

    .servicio-card__icono img {
        width: 40px;
        height: 40px;
    }
}

/*
==================================================
                   CELULARES
==================================================
*/

@media (max-width: 620px) {

    .servicios {
        padding: 40px 0 56px;
    }

    .servicios__panel {
        width: calc(100% - 24px);
        padding: 34px 20px;

        border-radius: 24px;
    }

    .servicios__encabezado {
        margin-bottom: 30px;
    }

    .servicios__subtitulo {
        font-size: 0.74rem;
        letter-spacing: 0.11em;
    }

    .servicios__encabezado h2 {
        font-size: clamp(2.1rem, 11vw, 3rem);
    }

    .servicios__introduccion {
        margin-top: 15px;
        font-size: 0.98rem;
    }

    .servicios__lista {
        gap: 13px;
    }

    .servicio-card {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 14px;

        min-height: 88px;
        padding: 15px 16px;

        border-left-width: 4px;
        border-radius: 15px;
    }

    .servicio-card__icono {
        width: 48px;
        height: 48px;

        border-radius: 12px;
    }

    .servicio-card__icono img {
        width: 34px;
        height: 34px;
    }

    .servicio-card__texto {
        font-size: 0.94rem;
        line-height: 1.45;
    }
}

/*
En pantallas muy pequeñas se coloca el icono
encima del texto para evitar que quede comprimido.
*/
@media (max-width: 390px) {

    .servicio-card {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 11px;

        padding: 18px;
        text-align: center;
    }
}
/* Animación al pasar el mouse sobre cada servicio */

.servicio-card {
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.servicio-card__icono,
.servicio-card__icono img {
    transition: transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {

    .servicio-card:hover {
        transform: translateY(-4px) scale(1.015);
        border-color: rgba(228, 173, 0, 0.8);

        box-shadow:
            0 16px 30px rgba(71, 56, 23, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .servicio-card:hover .servicio-card__icono {
        transform: scale(1.08);
    }

    .servicio-card:hover .servicio-card__icono img {
        transform: scale(1.1);
    }
}





/* =========================
   RESERVAS Y OPINIONES ADMIN
========================= */

#seccReservasYOpiniones {
    width: min(100% - 40px, var(--ancho-contenido));
    margin: 80px auto;
}

.tabla-reservas {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.tabla-reservas th,
.tabla-reservas td {
    padding: 10px;
    border: 1px solid #c7c7c7;
    text-align: center;
    vertical-align: middle;
}

.tabla-reservas th {
    background-color: #d9d9d9;
    font-weight: bold;
}

.tabla-reservas td {
    background-color: #ffffff;
}

.btn-cancelar {
    padding: 8px 20px;
    border: none;
    border-radius: 10px;

    background-color: #ff1400;
    color: white;

    font-weight: bold;
    cursor: pointer;

    transition: 0.2s;
}

.btn-cancelar:hover {
    background-color: #d90000;
}

.tabla-reservas {
    font-size: 0.9rem;
}

.tabla-reservas td {
    word-break: break-word;
}

.titulo-reservas, .titulo-opinionesAdmin {
    margin-bottom: 40px;
    margin-top: 40px;

    color: #946300;
    font-size: 4rem;
    font-weight: 400;
    text-align: center;
}

/*OPINIONES*/

.tabla-opiniones{
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.tabla-opiniones th,
.tabla-opiniones td{
    padding: 10px;
    border: 1px solid #c7c7c7;
    text-align: center;
}

.tabla-opiniones th{
    background-color: #d9d9d9;
}


/*
        Footer
*/
.pie {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(5px);
}
/*El pie se divide en:
Marca.
Información de contacto.
Redes sociales.
La columna central es ligeramente más ancha.*/
.pie__contenido {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: center;
    gap: 32px;
    min-height: 168px;
    padding-block: 26px;
}

.marca--pie {
    justify-self: start;
}
/*Información del hotel
Los datos aparecen uno debajo del otro.*/
.pie__informacion {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #3f3f3f;
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.3;
    text-align: center;
}

.pie__informacion a {
    width: fit-content;
    margin-inline: auto;
}
/*Al pasar por los enlaces:
Se muestra el subrayado.
Para este caso, solo contacto y telefono*/
.pie__informacion a:hover,
.pie__informacion a:focus-visible {
    text-decoration: underline;
}
/*Redes sociales
Los iconos se alinean hacia la derecha.
Cada icono mide 52 × 52 píxeles.
Al pasar el cursor, sube tres píxeles.*/
.redes {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.redes__enlace {
    display: grid;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.redes__enlace:hover,
.redes__enlace:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.17);
}



/*CONFIRMACION CANCELACION*/
.modal-cancelar, .modal-confirmar, .modal-login{
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.4);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.oculto{
    display:none;
}

.contenido-modal{
    width: 700px;
    max-width: 90%;

    padding: 40px;

    background-color: #e9ddc4;

    border: 1px solid #555;

    border-radius: 25px;
}

.botones-modal{
    margin-top: 30px;

    display:flex;
    gap:20px;
    justify-content:flex-end;
}

.btn-confirmar{
    width:120px;
    height:60px;

    border:none;
    border-radius:10px;

    color:white;
    background:red;

    cursor:pointer;
}

.btn-volver{
    width:120px;
    height:60px;

    border:none;
    border-radius:10px;

    color:white;
    background:#1565d8;

    cursor:pointer;
}

/* ==================================================
   RESPONSIVE GENERAL: TABLETS
================================================== */

@media (max-width: 900px) {

    /* ENCABEZADO */

    .navegacion {
        gap: 18px;
        margin-left: 20px;
        font-size: 0.9rem;
    }

    .marca__logo {
        width: 50px;
        height: 50px;
    }

    .marca__nombre {
        font-size: 1rem;
    }


    /* BANNER */

    .banner {
        width: calc(100% - 36px);
        min-height: 400px;
    }

    .texto-banner {
        max-width: 430px;
    }

    .texto-banner-arriba h2 {
        font-size: 27px;
    }

    .texto-banner-abajo p {
        font-size: 24px;
    }


    /* RESEÑAS */

    .seccOpiniones {
        width: calc(100% - 36px);
        gap: 30px;
    }

    .texto-opiniones {
        width: 230px;
    }

    .titulo-opiniones {
        font-size: 2.7rem;
    }

    .descripcion-opiniones {
        font-size: 1.45rem;
    }

    #contenedorOpiniones {
        gap: 25px;
    }


    /* HABITACIONES */

    #seccHabitaciones {
        width: calc(100% - 36px);
        margin: 60px auto;
    }

    .titulo-habitaciones {
        font-size: 3.3rem;
    }

    .contenedor-habitaciones {
        gap: 22px;
    }

    .tarjeta-habitacion {
        padding: 22px 18px;
    }


    /* ADMINISTRACIÓN */

    #seccReservasYOpiniones {
        width: calc(100% - 36px);
        margin: 60px auto;
    }

    .titulo-reservas,
    .titulo-opinionesAdmin {
        font-size: 3.2rem;
    }

    #contenedorReservas,
    #contenedorOpinionesAdmin {
        width: 100%;
        overflow-x: auto;
    }

    .tabla-reservas {
        min-width: 900px;
    }

    .tabla-opiniones {
        min-width: 650px;
    }


    /* FOOTER */

    .pie__contenido {
        gap: 20px;
        grid-template-columns: 1fr 1.3fr 1fr;
    }

    .redes {
        gap: 10px;
    }

    .redes__enlace {
        width: 38px;
        height: 38px;
    }
}

/* ==================================================
   RESPONSIVE GENERAL: CELULARES
================================================== */

@media (max-width: 650px) {

    :root {
        --alto-encabezado: 74px;
    }

    body {
        padding-top: var(--alto-encabezado);
    }

    .contenedor {
        width: calc(100% - 24px);
    }


    /* ENCABEZADO */

    .encabezado__contenido {
        width: calc(100% - 24px);
    }

    .marca__logo {
        width: 46px;
        height: 46px;
    }

    .marca__nombre {
        font-size: 0.95rem;
    }

    .menu-boton {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 42px;
        height: 42px;

        cursor: pointer;
    }

    .menu-boton span {
        display: block;

        width: 27px;
        height: 3px;
        margin: 0 auto;

        background-color: var(--texto-principal);

        border-radius: 999px;
    }

    .navegacion {
        position: absolute;
        top: var(--alto-encabezado);
        right: 0;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        width: 100%;
        margin: 0;
        padding: 10px 18px 18px;

        background-color: rgba(255, 255, 255, 0.98);

        border-bottom: 1px solid var(--borde-suave);

        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    }

    .navegacion a {
        padding: 12px 8px;

        text-align: center;

        border-bottom: 1px solid var(--borde-suave);
    }

    .navegacion a:last-child {
        border-bottom: none;
    }

    .navegacion__login {
        margin-left: 0;
        padding-left: 8px !important;

        border-left: none;
    }

    .menu-control:checked ~ .navegacion {
        display: flex;
    }


    /* BANNER */

    .banner {
        width: calc(100% - 24px);
        min-height: 300px;

        background-position: center;
    }

    .texto-banner {
        max-width: calc(100% - 30px);
    }

    .texto-banner-arriba {
        top: 16px;
        right: 15px;
    }

    .texto-banner-abajo {
        right: 15px;
        bottom: 18px;
    }

    .texto-banner-arriba h2 {
        font-size: 21px;
        line-height: 1.2;
    }

    .texto-banner-abajo p {
        font-size: 18px;
        line-height: 1.3;
    }


    /* RESEÑAS */

    .seccOpiniones {
        flex-direction: column;

        width: calc(100% - 24px);
        margin: 30px auto 50px;

        gap: 28px;
    }

    .texto-opiniones {
        width: 100%;

        text-align: center;
    }

    .titulo-opiniones {
        margin-bottom: 8px;

        font-size: 2.4rem;
    }

    .descripcion-opiniones {
        max-width: 430px;
        margin: 0 auto;

        font-size: 1.2rem;
        line-height: 1.45;
    }

    #contenedorOpiniones {
        width: 100%;

        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tarjeta-opinion {
        max-width: 400px;
        margin: 0 auto;
    }

    .foto-opinion {
        width: 70px;
        height: 70px;
    }


    /* HABITACIONES */

    #seccHabitaciones {
        width: calc(100% - 24px);
        margin: 45px auto;
    }

    .titulo-habitaciones {
        margin-bottom: 30px;

        font-size: 2.7rem;
    }

    .contenedor-habitaciones {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tarjeta-habitacion {
        padding: 22px 18px;
    }

    .nombre-habitacion {
        font-size: 1.7rem;
    }

    .imagen-habitacion {
        width: 100%;
        max-width: 320px;
        height: 190px;
    }

    .descripcion-habitacion,
    .capacidad-habitacion,
    .precio-habitacion,
    .comodidades-habitacion {
        font-size: 1rem;
    }


    /* ADMINISTRACIÓN */

    #seccReservasYOpiniones {
        width: calc(100% - 24px);
        margin: 45px auto;
    }

    .titulo-reservas,
    .titulo-opinionesAdmin {
        margin-top: 30px;
        margin-bottom: 25px;

        font-size: 2.6rem;
    }

    #contenedorReservas,
    #contenedorOpinionesAdmin {
        overflow-x: auto;

        border: 1px solid var(--borde-suave);
        border-radius: 8px;
    }

    .tabla-reservas {
        min-width: 850px;

        font-size: 0.82rem;
    }

    .tabla-opiniones {
        min-width: 580px;

        font-size: 0.85rem;
    }

    .tabla-reservas th,
    .tabla-reservas td,
    .tabla-opiniones th,
    .tabla-opiniones td {
        padding: 8px;
    }

    .btn-cancelar {
        padding: 7px 14px;
    }


    /* FOOTER */

    .pie__contenido {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 22px;

        padding: 30px 0;
    }

    .marca--pie {
        justify-self: center;
    }

    .pie__informacion {
        order: 2;

        font-size: 0.85rem;
    }

    .redes {
        order: 3;

        justify-content: center;
    }

    .redes__enlace {
        width: 42px;
        height: 42px;
    }


    /* MODALES */

    .contenido-modal {
        width: calc(100% - 24px);
        max-width: 500px;
        padding: 25px 18px;

        border-radius: 18px;
    }

    .contenido-modal h2 {
        font-size: 1.35rem;
        text-align: center;
    }

    .botones-modal {
        justify-content: center;
        gap: 12px;

        margin-top: 22px;
    }

    .btn-confirmar,
    .btn-volver {
        width: 110px;
        height: 48px;
    }
}
/* ==================================================
   CELULARES PEQUEÑOS
================================================== */

@media (max-width: 390px) {

    .marca__nombre {
        display: none;
    }

    .banner {
        min-height: 250px;
    }

    .texto-banner-arriba h2 {
        font-size: 18px;
    }

    .texto-banner-abajo p {
        font-size: 16px;
    }

    .phone-group {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 8px;
    }

    .titulo-opiniones,
    .titulo-habitaciones,
    .titulo-reservas,
    .titulo-opinionesAdmin {
        font-size: 2.2rem;
    }

    .botones-modal {
        flex-direction: column;
    }

    .btn-confirmar,
    .btn-volver {
        width: 100%;
    }
}

#contenedorReservas,
#contenedorOpinionesAdmin {
    overflow-x: auto;
}

/* ==================================================
                    MODAL DE LOGIN
================================================== */

#modalLogin {
    padding: 20px;

    background:
        linear-gradient(
            rgba(28, 24, 17, 0.56),
            rgba(28, 24, 17, 0.56)
        );

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

#modalLogin .contenido-modal {
    position: relative;

    width: min(100%, 460px);
    max-width: none;
    padding: 42px 38px 34px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.95);

    border: 2px solid rgba(228, 173, 0, 0.72);
    border-radius: 26px;

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* DETALLE DECORATIVO SUPERIOR */

#modalLogin .contenido-modal::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 7px;

    content: "";

    background: linear-gradient(
        90deg,
        #b78300,
        var(--amarillo-logo),
        #f2cb55
    );
}

/* TÍTULO */

#modalLogin .contenido-modal h2 {
    margin-bottom: 28px;

    color: #24211d;

    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

/* FORMULARIO */

#formLogin {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#formLogin input {
    width: 100%;
    padding: 14px 16px;

    color: var(--texto-principal);

    background-color: rgba(250, 249, 247, 0.95);

    border: 1px solid rgba(92, 82, 64, 0.32);
    border-radius: 12px;
    outline: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

#formLogin input::placeholder {
    color: #8a857d;
}

#formLogin input:focus {
    background-color: #ffffff;
    border-color: var(--amarillo-logo);

    box-shadow: 0 0 0 4px rgba(228, 173, 0, 0.16);
}

/* MENSAJE DE ERROR */

#mensajeLogin {
    min-height: 24px;
    margin-top: 14px;

    color: #c62828;

    font-size: 0.92rem;
    font-weight: 650;
    text-align: center;
}

/* CONTENEDOR DE BOTONES */

#modalLogin .botones-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;

    margin-top: 22px;
}

/* BOTONES */

#modalLogin .btn-confirmar,
#modalLogin .btn-volver {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 12px;

    font-weight: 750;

    cursor: pointer;

    transition:
        transform 180ms ease,
        filter 180ms ease,
        box-shadow 180ms ease;
}

#modalLogin .btn-confirmar {
    color: #241b03;

    background: linear-gradient(
        135deg,
        #e2ad20,
        #f2ca5e
    );

    box-shadow: 0 8px 18px rgba(176, 127, 0, 0.22);
}

#modalLogin .btn-volver {
    color: #4d4942;

    background-color: #f1efeb;

    border: 1px solid #d8d2c8;
}

#modalLogin .btn-confirmar:hover,
#modalLogin .btn-volver:hover {
    transform: translateY(-2px);
    filter: brightness(0.98);
}

#modalLogin .btn-confirmar:hover {
    box-shadow: 0 11px 22px rgba(176, 127, 0, 0.28);
}

#modalLogin .btn-confirmar:focus-visible,
#modalLogin .btn-volver:focus-visible {
    outline: 3px solid rgba(228, 173, 0, 0.3);
    outline-offset: 3px;
}

/* ==================================================
                  LOGIN RESPONSIVE
================================================== */

@media (max-width: 500px) {

    #modalLogin {
        padding: 12px;
    }

    #modalLogin .contenido-modal {
        padding: 36px 20px 24px;

        border-radius: 21px;
    }

    #modalLogin .contenido-modal h2 {
        margin-bottom: 22px;

        font-size: 1.7rem;
    }

    #modalLogin .botones-modal {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #modalLogin .btn-confirmar,
    #modalLogin .btn-volver {
        height: 48px;
    }
}