@viewport {
    width: device-width;
}

/* ============================================
   FUENTES PERSONALIZADAS
   ============================================ */
@font-face {
    font-family: 'VitorUSAL';
    src: url('Vitor.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   VARIABLES GLOBALES - TEMA HOTEL DE LUJO
   ============================================ */
:root {
    --primary: #6B1A1A;
    --primary-dark: #4A0F0F;
    --primary-light: #8B3A3A;
    --gold: #C9A84C;
    --gold-light: #E8D5A8;
    --gold-dark: #A8893A;
    --crema: #FDFBF7;
    --crema-dark: #F0EBE3;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-50: #FAF8F5;
    --gray-100: #F5F0E8;
    --gray-200: #E8E4DE;
    --gray-300: #D0CAC2;
    --gray-400: #B8B0A8;
    --gray-500: #A09888;
    --gray-600: #6B6560;
    --gray-700: #4D4843;
    --gray-800: #3D3833;
    --text: #2C2C2C;
    --text-light: #5A5550;
    --text-white: #FDFBF7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.18);
    --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.30);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESET Y BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', 'Georgia', serif;
    background-color: var(--gray-100);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   FONDO CON DIFUMINADO (BLUR) PROFESIONAL
   ============================================ */
body.background-especial {
    background-image: url('fotos_campanario/piedra_villamayor.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

/* Capa de difuminado sobre el fondo */
body.background-especial::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 0;
}

/* Capa adicional para suavizar aún más */
body.background-especial::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 251, 247, 0.08);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   PÁGINA DE INICIO - HERO PREMIUM
   ============================================ */
.paginainicial {
    background-image: url('fotos_campanario/foto_portada.jpg');
    background-position: center 25%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.paginainicial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.10) 0%, 
        rgba(0,0,0,0.30) 40%,
        rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

/* ============================================
   BARRA DE NAVEGACIÓN - ESTILO HOTEL PREMIUM
   ============================================ */
.paginainicialbarranavegacion {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    height: auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 1000;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.paginainicialbarranavegacion.scrolled {
    top: 0;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.97);
}

/* ============================================
   BOTONES DE NAVEGACIÓN - COLORES LEGIBLES
   ============================================ */
.paginainicialtitulosecciones,
.whatsapp-menu,
.telefono-menu {
    font-family: 'VitorUSAL', serif;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    background: transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    position: relative;
    font-weight: 500;
}

.paginainicialtitulosecciones::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.paginainicialtitulosecciones:hover::after {
    width: 60%;
}

.paginainicialtitulosecciones:hover {
    color: var(--primary);
}

/* WhatsApp en menú */
.whatsapp-menu {
    color: #1A8D4A !important;
    background: rgba(37, 211, 102, 0.10);
    padding: 8px 18px;
}

.whatsapp-menu:hover {
    background: #25D366;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.30);
}

/* Teléfono en menú */
.telefono-menu {
    color: #0055AA !important;
    background: rgba(0, 122, 255, 0.10);
    padding: 8px 18px;
}

.telefono-menu:hover {
    background: #007AFF;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.30);
}

/* ============================================
   TÍTULO PRINCIPAL - HERO PREMIUM
   ============================================ */
.paginainicialcontenedor {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    margin-top: -2%;
}

.badge-hotel {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 24px;
    border-radius: 50px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 300;
}

.paginainicialcontenedor h1 {
    font-family: 'VitorUSAL', serif;
    color: var(--white);
    text-shadow: 0 4px 50px rgba(0, 0, 0, 0.50);
    font-size: clamp(3.5rem, 11vw, 8.5rem);
    letter-spacing: 6px;
    margin-bottom: 4px;
    line-height: 1.05;
}

.paginainicialcontenedor .subtitle-hero {
    font-family: 'Lora', serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.30);
    margin-top: 6px;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 16px auto 20px;
    border-radius: 2px;
    opacity: 0.6;
}

.btn-reserva-hero {
    font-family: 'VitorUSAL', serif;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    padding: 16px 44px;
    border-radius: 50px;
    font-size: 1.15rem;
    letter-spacing: 2px;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
    margin-top: 12px;
}

.btn-reserva-hero:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 56px rgba(201, 168, 76, 0.40);
    background: var(--gold-light);
    color: var(--primary-dark);
}

.btn-reserva-hero i {
    font-size: 1.2rem;
}

/* ============================================
   ESLOGAN INFERIOR
   ============================================ */
.paginainicial-slogan {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2.5vw, 2rem);
    color: var(--white);
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 700px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.50);
    font-weight: 300;
    letter-spacing: 3px;
    z-index: 2;
    line-height: 1.6;
}

.paginainicial-slogan::before {
    content: '✦ ✦ ✦';
    display: block;
    font-size: 1.2rem;
    margin-bottom: 12px;
    opacity: 0.40;
    letter-spacing: 12px;
}

/* ============================================
   CAJAS DE CONTENIDO - CON DIFUMINADO
   ============================================ */
.caja {
    width: 80%;
    max-width: 1000px;
    margin: 4% auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.contenido {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 5% 8%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(200, 180, 160, 0.12);
    transition: var(--transition);
}

.contenido:hover {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   PÁGINA "EL CAMPANARIO" - TEXTOS LEGIBLES
   ============================================ */
.paginaelcampanario {
    font-family: 'Lora', 'Georgia', serif;
    line-height: 2;
    color: var(--text);
    max-width: 820px;
    margin: 0 auto;
    padding: 2% 4%;
}

.paginaelcampanario p {
    font-size: 1.1rem;
    color: var(--text);
    text-align: justify;
    margin-bottom: 1.6rem;
}

.paginaelcampanario p:first-of-type {
    font-size: 1.5rem;
    color: var(--primary);
    text-align: center;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.paginaelcampanario p:nth-of-type(3) {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--crema) 100%);
    border-left: 5px solid var(--gold);
    padding: 28px 32px;
    border-radius: 8px;
    font-style: italic;
    color: #4A3A30;
    box-shadow: inset 0 2px 12px rgba(0,0,0,0.03);
}

/* ============================================
   BOTÓN REGRESAR
   ============================================ */
.btn-regresar {
    font-family: 'Lora', serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    padding: 12px 32px;
    border: 1.5px solid var(--gray-300);
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin: 20px auto;
    box-shadow: var(--shadow-sm);
    width: max-content;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-regresar:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(107, 26, 26, 0.25);
}

/* ============================================
   COMODIDADES - GALERÍA CON DIFUMINADO
   ============================================ */
.galeria-paz {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 3% auto 0;
    position: relative;
    z-index: 1;
}

.foto-item {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(200, 180, 160, 0.10);
    box-shadow: var(--shadow-sm);
}

.foto-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.foto-item .image-wrapper {
    overflow: hidden;
    position: relative;
}

.foto-item .image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.06), transparent);
    pointer-events: none;
}

.foto-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.foto-item:hover img {
    transform: scale(1.05);
}

.foto-item .badge-comodidad {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(200, 180, 160, 0.12);
}

.foto-item p {
    font-family: 'Lora', serif;
    padding: 22px 26px 28px;
    color: var(--text);
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ============================================
   BOTÓN "VER MÁS"
   ============================================ */
.boton-contenedor {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
}

#btn-ver-mas {
    font-family: 'Lora', serif;
    padding: 14px 44px;
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--gray-300);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    letter-spacing: 0.5px;
}

#btn-ver-mas:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(107, 26, 26, 0.25);
}

/* ============================================
   PÁGINA UBICACIÓN
   ============================================ */
.paginaubicacion {
    font-family: 'Lora', 'Georgia', serif;
    line-height: 1.9;
    color: var(--text);
    font-size: 1.1rem;
    text-align: justify;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3% 3%;
    position: relative;
    z-index: 1;
}

.paginaubicacion p:first-of-type {
    font-size: 1.5rem;
    color: var(--primary);
    text-align: center;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 22px;
    width: 100%;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contenedor_refugio {
    flex: 2;
    padding: 40px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(200, 180, 160, 0.10);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contenedor_refugio:hover {
    box-shadow: var(--shadow-lg);
}

.contenedor_entorno {
    flex: 1;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 180, 160, 0.10);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contenedor_entorno:hover {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MAPA
   ============================================ */
.map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    margin-top: 24px;
}

.map-container iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
    border-radius: var(--radius);
}

/* ============================================
   GALERÍA DE EMOCIONES
   ============================================ */
.gallery_wrapper {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gallery_container_emociones {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #1A1A1A;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    position: relative;
}

.gallery_container_emociones::after {
    content: '🖱️ Explorar';
    position: absolute;
    bottom: 16px;
    right: 20px;
    background: rgba(0,0,0,0.50);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.7rem;
    padding: 4px 16px;
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    letter-spacing: 0.5px;
}

.gallery_container_emociones:hover::after {
    opacity: 1;
}

.gallery_container_emociones img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.gallery_container_emociones img:hover {
    transform: scale(1.03);
}

.emociones_buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.category_btn {
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.category_btn:hover {
    transform: scale(1.12) translateY(-4px);
    background: var(--crema);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.category_btn:active {
    transform: scale(0.95);
}

.category_btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(107, 26, 26, 0.25);
}

.columna_derecha {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================================
   LIBRO / FLIPBOOK
   ============================================ */
.container-flipbook {
    width: 28vw;
    min-width: 300px;
    margin: 3% auto;
    display: block;
    position: relative;
    z-index: 1;
}

#book {
    width: 100%;
    min-height: 320px;
    background-color: transparent;
    border: none;
    overflow: visible;
}

.page {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: transparent;
    overflow: hidden;
    border-radius: var(--radius);
}

.page::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 12px solid rgba(200, 180, 160, 0.08);
    border-radius: var(--radius);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
}

.page-cover {
    background: var(--white) !important;
}

.page img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    transition: var(--transition);
}

.page-cover img {
    width: calc(100% - 60px) !important;
    height: calc(100% - 60px) !important;
    margin: 30px !important;
    object-fit: contain !important;
}

.last-page-controls {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
    z-index: 5;
}

.btn-libro {
    font-family: 'Lora', serif;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 8px 24px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.btn-libro:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 26, 26, 0.20);
}

/* ============================================
   CAJA DE CONTACTO
   ============================================ */
.cajacontacto {
    color: var(--text);
    font-family: 'Lora', serif;
    border: 1px solid rgba(200, 180, 160, 0.10);
    padding: 40px 45px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
    transition: var(--transition);
}

.cajacontacto:hover {
    box-shadow: var(--shadow-lg);
}

.cajacontacto .titulo-contacto {
    font-family: 'VitorUSAL', serif;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.cajacontacto p {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--gray-600);
}

.cajacontacto a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.cajacontacto a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* ============================================
   BOTONES FLOTANTES
   ============================================ */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #25D366, #1DA851);
    color: #fff;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-flotante:hover {
    transform: scale(1.10) translateY(-4px);
    box-shadow: 0 12px 48px rgba(37, 211, 102, 0.45);
}

.telefono-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 40px;
    background: linear-gradient(135deg, #007AFF, #0055CC);
    color: #fff;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.telefono-flotante:hover {
    transform: scale(1.10) translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 122, 255, 0.45);
}

/* ============================================
   UTILIDADES
   ============================================ */
.oculto {
    display: none !important;
}

.lora-custom {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.separator {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 20px;
    border-radius: 4px;
}

/* ============================================
   RESPONSIVE - ESTILO HOTEL PREMIUM
   ============================================ */
@media (max-width: 992px) {
    .paginainicialbarranavegacion {
        padding: 10px 20px;
        gap: 6px;
        top: 12px;
        width: 96%;
        border-radius: 40px;
    }

    .paginainicialtitulosecciones,
    .whatsapp-menu,
    .telefono-menu {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .caja {
        width: 92%;
    }
}

@media (max-width: 768px) {
    .paginainicialbarranavegacion {
        flex-direction: column !important;
        gap: 6px;
        padding: 12px 16px;
        top: 10px;
        width: 96%;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }

    .paginainicialbarranavegacion.scrolled {
        border-radius: 0;
        top: 0;
        width: 100%;
        padding: 10px 12px;
    }

    .paginainicialcontenedor h1 {
        font-size: 2.6rem;
        margin-top: 80px;
        padding: 0 12px;
        letter-spacing: 3px;
    }

    .paginainicialcontenedor .subtitle-hero {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .badge-hotel {
        font-size: 0.6rem;
        padding: 4px 16px;
        letter-spacing: 2px;
    }

    .hero-divider {
        width: 50px;
        margin: 12px auto 16px;
    }

    .btn-reserva-hero {
        padding: 12px 28px;
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .paginainicial-slogan {
        font-size: 0.95rem;
        bottom: 6%;
        width: 92%;
        letter-spacing: 2px;
    }

    .paginainicial-slogan::before {
        font-size: 1rem;
        margin-bottom: 8px;
        letter-spacing: 8px;
    }

    .caja {
        width: 96%;
        margin-top: 4%;
    }

    .contenido {
        padding: 5% 6%;
    }

    .paginaelcampanario {
        padding: 4%;
    }

    .paginaelcampanario p:first-of-type {
        font-size: 1.2rem;
    }

    .btn-regresar {
        font-size: 0.85rem;
        padding: 10px 20px;
        white-space: nowrap;
    }

    .galeria-paz {
        padding: 16px;
        gap: 20px;
        grid-template-columns: 1fr;
        margin-top: 12px;
    }

    .foto-item img {
        height: 220px;
    }

    .paginaubicacion {
        flex-direction: column;
        padding-top: 6%;
        padding: 4% 3%;
        gap: 24px;
    }

    .contenedor_refugio,
    .contenedor_entorno {
        width: 100%;
        margin: 0;
        padding: 24px;
    }

    .gallery_wrapper {
        width: 100%;
        order: 0;
    }

    .gallery_container_emociones {
        height: 200px;
    }

    .columna_derecha {
        margin-right: 0;
        width: 100%;
    }

    .container-flipbook {
        width: 92% !important;
        min-width: unset !important;
    }

    .page img {
        height: 220px;
    }

    .whatsapp-menu,
    .telefono-menu {
        font-size: 0.8rem;
        padding: 5px 12px;
        width: 92%;
        justify-content: center;
    }

    .whatsapp-flotante {
        width: 50px;
        height: 50px;
        bottom: 18px;
        right: 16px;
        font-size: 22px;
    }

    .telefono-flotante {
        width: 50px;
        height: 50px;
        bottom: 76px;
        right: 16px;
        font-size: 22px;
    }

    .last-page-controls {
        gap: 10px;
        bottom: 12px;
    }

    .btn-libro {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .map-container iframe {
        height: 220px;
    }

    .cajacontacto {
        width: 96%;
        padding: 24px;
        margin: 12px auto;
    }

    .cajacontacto .titulo-contacto {
        font-size: 1.3rem;
    }

    .paginainicialtitulosecciones {
        font-size: 0.85rem;
        padding: 5px 12px;
    }

    .paginainicialtitulosecciones::after {
        display: none;
    }
}

@media (max-width: 400px) {
    .paginainicialcontenedor h1 {
        font-size: 2rem;
        margin-top: 70px;
        letter-spacing: 2px;
    }

    .paginainicial-slogan {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .foto-item img {
        height: 180px;
    }

    .page img {
        height: 180px;
    }

    .whatsapp-flotante,
    .telefono-flotante {
        width: 42px;
        height: 42px;
        font-size: 18px;
        right: 12px;
    }

    .telefono-flotante {
        bottom: 64px;
    }

    .btn-reserva-hero {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}