/* ========================================
   RESET Y CONFIGURACIÓN BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c7be5;
    --primary-dark: #1a5cc2;
    --secondary-color: #f1f5f9;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --accent-gold: #d4af37;
    --success-color: #10b981;
    --bg-light: #f8fafc;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

html {
    scroll-behavior: smooth;
}

/* Ajuste del contenido principal para el navbar fijo */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
    padding-top: 120px;
}

/* ========================================
   HERO SECTION MEJORADA
   ======================================== */
.img-principal {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  margin-bottom: 3rem;
}

.img-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.img-principal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  line-height: 1.2;
}

.hero-overlay p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 300;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

/* ========================================
   SECCIÓN DE INTRODUCCIÓN MEJORADA
   ======================================== */
.intro-section {
    text-align: center;
    margin: 5rem auto;
    max-width: 1000px;
    padding: 0 2rem;
}

.intro-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.intro-section h2 {
    font-size: 2.7rem;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.intro-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 2rem;
    border-radius: 10px;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

/* === Tarjetas de características === */
.intro-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-card {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 20px;
    padding: 2rem 1.8rem;
    width: 250px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(44, 123, 229, 0.15);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(44, 123, 229, 0.25);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-text h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ========================================
   SISTEMA DE FILTROS PROFESIONAL
   ======================================== */

.filtros-section {
    margin: 4rem 0;
}

.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.filtros-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.filtros-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contador-resultados {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    background: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.filtros-controls-buttons {
    display: flex;
    gap: 1rem;
}

.btn-filtros-mobile,
.btn-limpiar-filtros {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-filtros-mobile:hover,
.btn-limpiar-filtros:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 123, 229, 0.3);
}

/* Chips de filtros activos */
.filtros-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    min-height: 50px;
    align-items: center;
}

.filtro-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.filtro-chip button {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.filtro-chip button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Contenedor principal de filtros */
.filtros-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar de filtros */
.filtros-sidebar {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(44, 123, 229, 0.1);
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    transition: var(--transition);
}

/* Estado cuando los filtros están ocultos */
.filtros-sidebar.oculto {
    display: none;
}

/* Estado expandido de las cards cuando los filtros están ocultos */
.habitaciones-grid.expandido {
    grid-column: 1 / -1;
}

.filtros-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filtros-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.filtros-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.filtros-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Botón para cerrar filtros en móvil */
.btn-cerrar-filtros {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
}

/* Grupos de filtros */
.filtro-grupo-mejorado {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.filtro-grupo-mejorado:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filtro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filtro-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filtro-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Inputs de precio */
.rango-precio-mejorado {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-precio-grupo {
    flex: 1;
    position: relative;
}

.input-precio-grupo label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-precio {
    width: 100%;
    padding: 0.75rem 2rem 0.75rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
    font-weight: 600;
}

.input-precio:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

.simbolo-dolar {
    position: absolute;
    right: 12px;
    top: 55%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-weight: 600;
    pointer-events: none;
}

/* Slider */
.slider-container-mejorado {
    position: relative;
    height: 20px;
    margin: 2rem 0;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.slider-range {
    position: absolute;
    height: 6px;
    background: var(--primary-color);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.slider-input {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
    height: 20px;
}

.slider-input::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(44, 123, 229, 0.4);
}

.valores-precio-mejorado {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Botones de capacidad */
.botones-capacidad-mejorados {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.btn-capacidad-mejorado {
    padding: 1.25rem 0.5rem;
    border: 2px solid #e2e8f0;
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.btn-capacidad-mejorado:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn-capacidad-mejorado.activo {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(44, 123, 229, 0.3);
    transform: translateY(-3px);
}

.icono-capacidad {
    font-size: 1.8rem;
}

.texto-capacidad {
    font-size: 1.3rem;
    font-weight: 800;
}

.personas-texto {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Checkboxes */
.checkboxes-tipos-mejorados {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-moderno {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.checkbox-moderno:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(5px);
}

.checkbox-moderno input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-moderno input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-moderno input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-texto {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Acordeón de comodidades */
.comodidades-acordeon {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.acordeon-header {
    padding: 1.25rem;
    background: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.acordeon-header:hover {
    background: #f1f5f9;
}

.acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

.acordeon-content.activo {
    max-height: 300px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    overflow-y: auto;
}

.acordeon-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Controles de ordenamiento */
.grid-controls-top {
    margin-bottom: 2rem;
}

.ordenamiento-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ordenamiento-container label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.select-ordenamiento {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.select-ordenamiento:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

/* ========================================
   TARJETAS DE HABITACIONES (TU DISEÑO ORIGINAL)
   ======================================== */
.rooms-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.room-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid rgba(44, 123, 229, 0.1);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 123, 229, 0.2);
}

.room-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

.room-card:nth-child(even) .room-card-content {
    direction: rtl;
}

.room-card:nth-child(even) .room-info {
    direction: ltr;
}

.room-image {
    position: relative;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    cursor: pointer; /* Para la galería */
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.price-badge p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.price-badge h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.capacity-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    z-index: 10;
}

.availability-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--success-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.available-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.room-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.room-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(44, 123, 229, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.amenity-item:hover {
    background: rgba(44, 123, 229, 0.1);
    transform: translateY(-3px);
}

.amenity-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.amenity-item span {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

.reserve-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 123, 229, 0.3);
}

/* ========================================
   GALERÍA MODAL
   ======================================== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#galleryMainImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #111;
    overflow-x: auto;
    justify-content: center;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ========================================
   ESTADOS DE CARGA Y ERROR
   ======================================== */
.cargando-habitaciones,
.filtro-cargando {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.cargando-habitaciones i,
.filtro-cargando i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.sin-resultados,
.error-carga {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}

.sin-resultados-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.sin-resultados h3,
.error-carga h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.sin-resultados p,
.error-carga p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.error-filtros {
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
}

/* Estados de error mejorados */
.availability-badge.no-available {
    background: rgba(220, 53, 69, 0.95) !important;
    color: white !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

.no-available-dot {
    width: 10px;
    height: 10px;
    background-color: #dc3545;
    border-radius: 50%;
    display: inline-block;
}

.reserve-btn.disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6;
}

.reserve-btn.disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 5% 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.7rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    margin-bottom: 0;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-social i {
    font-size: 1.3rem;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========================================
   BOTÓN SCROLL TO TOP
   ======================================== */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-size: 22px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

#scrollTopBtn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
}

/* ========================================
   ESTILOS PARA EL MODAL DE LOGOUT
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    overflow: hidden;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 1;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: white;
}

.modal-body p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-footer {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background-color: var(--bg-light);
    border-top: 1px solid #e2e8f0;
}

.btn-cancel, .btn-confirm {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    min-width: 120px;
}

.btn-cancel {
    background-color: #6b7280;
    color: white;
}

.btn-cancel:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-confirm {
    background-color: #dc3545;
    color: white;
}

.btn-confirm:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Deshabilitar scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ESTILOS ADICIONALES
   ======================================== */
.barra-principal a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.barra-principal a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Mejora de accesibilidad */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .filtros-content {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-info {
        padding: 2.5rem;
    }

    .room-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .barra-contenedor {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .logo {
        order: 1;
    }

    .botones {
        order: 2;
        margin-left: auto;
    }

    .barra-principal {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
    }

    .barra-principal a {
        font-size: 0.85rem;
    }

    .botones {
        flex-wrap: wrap;
        justify-content: center;
    }

    .login h3, .registrar h3 {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .filtros-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .filtros-controls {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .filtros-controls-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-filtros-mobile {
        display: block;
    }

    .filtros-content {
        grid-template-columns: 1fr;
    }

    .filtros-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        z-index: 1000;
        transition: var(--transition);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        border-radius: 0;
    }

    .filtros-sidebar.abierto {
        left: 0;
    }

    /* Mostrar botón de cerrar en móvil */
    .btn-cerrar-filtros {
        display: flex;
    }

    .botones-capacidad-mejorados {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-card-content {
        grid-template-columns: 1fr;
    }

    .room-card:nth-child(even) .room-card-content {
        direction: ltr;
    }

    .room-image {
        min-height: 300px;
    }

    .room-info {
        padding: 2rem;
    }

    .room-header h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .amenity-icon {
        font-size: 1.5rem;
    }

    .amenity-item span {
        font-size: 0.8rem;
    }

    .reserve-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .availability-badge {
        top: 15px;
        left: 15px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Footer responsive */
    footer {
        text-align: center;
    }

    .footer-col h4 {
        border-left: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
        display: inline-block;
        padding: 0 0 6px 0;
    }

    .footer-col h4::after {
        display: none;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col a:hover {
        transform: none;
    }

    /* Modal responsive */
    .modal-content {
        margin: 0;
        width: 95%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-cancel, .btn-confirm {
        width: 100%;
        min-width: auto;
    }

    .modal-body {
        padding: 2rem 1rem;
    }

    /* Galería responsive */
    .gallery-modal-content {
        width: 95%;
        height: 95vh;
        margin: 2.5% auto;
    }

    .gallery-nav {
        padding: 10px 15px;
        font-size: 20px;
    }

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }

    .gallery-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .filtros-sidebar {
        width: 90%;
    }

    .filtros-header h2 {
        font-size: 1.8rem;
    }

    .filtros-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-filtros-mobile,
    .btn-limpiar-filtros {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-overlay p {
        font-size: 0.9rem;
    }

    .intro-section {
        padding: 2.5rem 1.5rem;
    }

    .intro-section h2 {
        font-size: 2rem;
    }

    .intro-section p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .intro-subtitle {
        font-size: 0.7rem;
        letter-spacing: 3px;
        padding: 0.35rem 1.2rem;
    }

    .intro-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2.5rem 2rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .room-header h2 {
        font-size: 1.3rem;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .price-badge {
        top: 10px;
        right: 10px;
        padding: 0.6rem 1rem;
    }

    .price-badge h3 {
        font-size: 1.3rem;
    }

    .capacity-badge {
        bottom: 10px;
        left: 10px;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .availability-badge {
        top: 10px;
        left: 10px;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .container {
        padding: 1rem 3%;
    }

    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        padding: 10px 14px;
        font-size: 18px;
    }

    .botones-capacidad-mejorados {
        grid-template-columns: 1fr;
    }

    .acordeon-content.activo {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .filtro-grupo-mejorado {
        padding: 1rem;
    }

    .rango-precio-mejorado {
        flex-direction: column;
    }
}