/* ===================================================================================== */
/*                          HOTEL OSLO - ROOMS PAGE CSS COMPLETO                         */
/*                          Versión Organizada y Optimizada con Modal Mejorado           */
/* ===================================================================================== */

/* ===================================================================================== */
/*                          1. NAVBAR                                                    */
/* ===================================================================================== */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(9, 22, 11, 0.8);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    position: fixed;
    background: rgba(27, 71, 33, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(22, 139, 43, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo-text {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    font-weight: 600;
}

.nav-menu-btn {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-book {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    color: var(--primary-color);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-book:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================================================================== */
/*                          2. PAGE HERO                                                 */
/* ===================================================================================== */

.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9)),
                url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 0 2rem;
}

.page-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.page-hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #f4d03f;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================================================================== */
/*                          3. ROOMS SECTION                                             */
/* ===================================================================================== */

.rooms-page-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

/* ===================================================================================== */
/*                          4. ROOMS CONTROLS                                            */
/* ===================================================================================== */

.rooms-controls {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.filter-label i {
    color: var(--accent-color);
}

.filter-select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-clear-filters {
    padding: 0.85rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.btn-clear-filters:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

.view-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.view-buttons {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.view-btn i {
    font-size: 1.1rem;
}

/* ===================================================================================== */
/*                          5. ROOMS GRID                                                */
/* ===================================================================================== */

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    transition: all 0.3s ease;
}

.rooms-grid.list-view {
    grid-template-columns: 1fr;
}

.rooms-grid.list-view .room-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    height: auto;
}

.rooms-grid.list-view .room-image-wrapper {
    height: 100%;
    min-height: 300px;
}

.rooms-grid.list-view .room-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===================================================================================== */
/*                          6. ROOM CARD                                                 */
/* ===================================================================================== */

.room-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.room-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover .room-image {
    transform: scale(1.1);
}

.room-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

.room-badge.popular {
    background: #e74c3c;
    color: #fff;
}

.room-badge.family {
    background: #3498db;
    color: #fff;
}

.room-badge.romantic {
    background: #e91e63;
    color: #fff;
}

.room-badge.premium {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
}

.btn-favorite {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: white;
    color: #e74c3c;
    transform: scale(1.1);
}

.btn-favorite.active {
    background: #e74c3c;
    color: white;
}

.room-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.room-card:hover .room-image-overlay {
    opacity: 1;
}

.btn-view-details {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.room-card:hover .btn-view-details {
    transform: translateY(0);
}

.btn-view-details:hover {
    background: #f4d03f;
    transform: scale(1.05);
}

.room-card-content {
    padding: 1.75rem;
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.room-card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.room-rating {
    display: flex;
    gap: 0.25rem;
}

.room-rating i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.room-card-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.room-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.room-card-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.room-card-features i {
    color: var(--accent-color);
    font-size: 1rem;
}

.room-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.room-card-amenities span {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: help;
}

.room-card-amenities span:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ── FIX BOTÓN RESERVAR ─────────────────────────────────────────────────────────────
   flex-wrap: wrap evita que precio y botón se solapen en pantallas intermedias.       */
.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.room-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.price-label {
    font-size: 0.85rem;
    color: #999;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.price-period {
    font-size: 0.9rem;
    color: #666;
}

/* ── FIX: quitar subrayado del botón Reservar (es un <a>, el browser lo subraya) ── */
.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    text-decoration: none;
}

/* ===================================================================================== */
/*                          7. NO RESULTS                                                */
/* ===================================================================================== */

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-results i {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===================================================================================== */
/*                          8. ROOM MODAL (VERSIÓN ANTIGUA - MANTENER COMPATIBILIDAD)   */
/* ===================================================================================== */

.room-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.room-modal.active {
    opacity: 1;
    visibility: visible;
}

.room-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.room-modal-content {
    position: relative;
    z-index: 10;
    background: white;
    border-radius: 25px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.room-modal.active .room-modal-content {
    transform: scale(1);
}

.room-modal-content::-webkit-scrollbar {
    width: 8px;
}

.room-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.room-modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.room-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.room-modal-close:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.room-modal-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.room-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-modal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.room-modal-badge {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-modal-body {
    padding: 2.5rem;
}

.room-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.room-modal-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin: 0 0 0.75rem 0;
}

.room-modal-rating {
    display: flex;
    gap: 0.25rem;
}

.room-modal-rating i {
    color: var(--accent-color);
    font-size: 1rem;
}

.room-modal-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    white-space: nowrap;
}

.room-modal-price span {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.room-modal-description {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.room-modal-section {
    margin-bottom: 2rem;
}

.room-modal-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.room-modal-section h3 i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.room-modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.room-modal-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

.room-modal-features i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.room-modal-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.room-modal-amenities span {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    cursor: help;
}

.room-modal-amenities span:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.amenities-list ul,
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.amenities-list li,
.services-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.amenities-list li:hover,
.services-list li:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.amenities-list i,
.services-list i {
    color: var(--accent-color);
    font-size: 1rem;
}

.room-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.room-modal-actions .btn {
    flex: 1;
    padding: 1.1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* ===================================================================================== */
/*                          9. NOTIFICATIONS                                             */
/* ===================================================================================== */

.rooms-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10001;
    min-width: 300px;
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.rooms-notification.show {
    top: 100px;
}

.rooms-notification i {
    font-size: 1.3rem;
}

.rooms-notification.success {
    border-left: 4px solid #27ae60;
}

.rooms-notification.success i {
    color: #27ae60;
}

.rooms-notification.error {
    border-left: 4px solid #e74c3c;
}

.rooms-notification.error i {
    color: #e74c3c;
}

.rooms-notification.info {
    border-left: 4px solid var(--accent-color);
}

.rooms-notification.info i {
    color: var(--accent-color);
}

.rooms-notification span {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===================================================================================== */
/*                          10. SCROLL TO TOP                                            */
/* ===================================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    border: none;
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* ===================================================================================== */
/*                          11. ANIMATIONS                                               */
/* ===================================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================================================================== */
/*                   12. MODAL MEJORADO CON CARRUSEL - VERSIÓN NUEVA                     */
/* ===================================================================================== */

.modal-detalles {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: mdFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-detalles.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes mdFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-detalles-content {
    background-color: #fff;
    margin: 2rem auto;
    padding: 0;
    border-radius: 20px;
    max-width: 950px;
    width: 92%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: mdSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
}

@keyframes mdSlideIn {
    from { transform: translateY(-80px) scale(0.9); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-detalles-content::-webkit-scrollbar { width: 10px; }
.modal-detalles-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.modal-detalles-content::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; transition: background 0.3s; }
.modal-detalles-content::-webkit-scrollbar-thumb:hover { background: #b39640; }

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    float: none;
    padding: 0;
}

.modal-close:hover,
.modal-close:focus {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(201, 168, 76, 0.5);
}

.detalles-header {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.detalles-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 5px 20px rgba(201, 168, 76, 0.5);
    z-index: 60;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 5px 20px rgba(201, 168, 76, 0.5); }
    50%       { transform: scale(1.05); box-shadow: 0 8px 25px rgba(201, 168, 76, 0.6); }
}

.detalles-body { padding: 2.5rem; }

.detalles-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 800;
}

.detalles-tipo {
    display: inline-block;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    color: #495057;
    text-transform: capitalize;
    font-weight: 600;
    border: 2px solid #dee2e6;
}

.detalles-precio {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 800;
    margin: 1.25rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.detalles-precio span { font-size: 1rem; color: #666; font-weight: 500; }

.detalles-descripcion { color: #555; line-height: 1.8; margin: 1.5rem 0; font-size: 1rem; }

.detalles-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px solid #dee2e6;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 500;
    padding: 0.5rem;
    transition: all 0.3s;
}

.feature-item:hover { transform: translateX(5px); color: var(--accent-color); }
.feature-item i { color: var(--accent-color); font-size: 20px; width: 28px; text-align: center; }

.detalles-section { margin: 2rem 0; }

.detalles-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-color);
}

.detalles-section h3 i { color: var(--accent-color); font-size: 1.4rem; }

.amenidades-grid,
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.amenidad-item,
.servicio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.amenidad-item {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid rgba(201, 168, 76, 0.3);
    color: #92400e;
}

.amenidad-item i { color: var(--accent-color); font-size: 18px; min-width: 20px; }

.amenidad-item:hover {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
}

.servicio-item {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.servicio-item i { color: #10b981; font-size: 18px; min-width: 20px; }

.servicio-item:hover {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.detalles-footer {
    display: flex;
    gap: 1rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0 0 20px 20px;
    margin-top: 2rem;
    border-top: 3px solid var(--accent-color);
}

.btn-modal {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reservar {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(201, 168, 76, 0.4);
}

.btn-reservar:hover {
    background: linear-gradient(135deg, #b39640, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.5);
}

.btn-reservar:active { transform: translateY(-1px); }

.btn-cerrar {
    background: white;
    color: #495057;
    border: 2px solid #dee2e6;
}

.btn-cerrar:hover {
    background: #f8f9fa;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===================================================================================== */
/*                          13. CAROUSEL STYLES FOR ROOM CARDS & MODAL                   */
/* ===================================================================================== */

.hab-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a1a2e;
}

.car-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.car-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.car-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.car-noimg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.8);
    gap: 15px;
    height: 100%;
    width: 100%;
}

.car-noimg i { font-size: 4rem; opacity: 0.6; animation: floatIcon 3s ease-in-out infinite; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
}

.car-noimg span { font-size: 1.2rem; font-weight: 600; letter-spacing: 1px; }

.car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
}

.hab-carousel:hover .car-btn { opacity: 1; visibility: visible; }
.car-btn-prev { left: 20px; }
.car-btn-next { right: 20px; }

.car-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.5);
}

.car-btn:active  { transform: translateY(-50%) scale(1.05); }
.car-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.car-btn:disabled:hover { background: rgba(255,255,255,0.95); color: #333; transform: translateY(-50%) scale(1); }

.car-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 50;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 30px;
}

.car-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
}

.car-dot::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.car-dot.active { background: var(--accent-color); width: 30px; border-radius: 5px; box-shadow: 0 0 10px rgba(201, 168, 76, 0.6); }
.car-dot:hover:not(.active) { background: rgba(255,255,255,0.8); transform: scale(1.2); }
.car-dot:hover::before { border-color: rgba(255,255,255,0.5); }

.car-counter {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.car-photo-badge {
    position: absolute;
    bottom: 20px; right: 20px;
    background: rgba(201,168,76,0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}

.car-photo-badge i { font-size: 14px; animation: pulse 2s infinite; }

.car-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 4px; width: 0;
    background: linear-gradient(90deg, var(--accent-color), #f4d03f);
    z-index: 51;
    transition: width 5s linear;
    box-shadow: 0 0 10px rgba(201,168,76,0.6);
}

.car-progress.active { width: 100%; }

.car-swipe-hint {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    z-index: 40;
    animation: fadeOutHint 4s forwards;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.car-swipe-hint i { font-size: 18px; animation: swipeAnimation 1.5s infinite; }

@keyframes swipeAnimation {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(10px); }
}

@keyframes fadeOutHint {
    0%, 60% { opacity: 1; }
    100%    { opacity: 0; visibility: hidden; }
}

.car-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 30; }
.car-loading::after {
    content: '';
    width: 50px; height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Carrusel dentro de la card */
.room-image-wrapper .hab-carousel { height: 250px; display: block; }
.room-image-wrapper .room-badge   { z-index: 25; }

.room-image-wrapper .room-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.room-image-wrapper:hover .room-image-overlay { opacity: 1; pointer-events: auto; }

/* Carrusel en modal */
.detalles-header .hab-carousel { height: 450px; }

/* ===================================================================================== */
/*                              FOOTER STYLES                                            */
/* ===================================================================================== */

.footer {
    background: linear-gradient(135deg, rgba(26,26,46,0.98), rgba(22,33,62,0.98));
    color: var(--text-light);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(212,175,55,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(212,175,55,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 10px;
}

.footer-col p { color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 1.5rem; font-size: 0.95rem; }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.85rem; }

.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.footer-col ul li a:hover { color: var(--accent-color); transform: translateX(5px); }
.footer-col ul li a:hover::before { transform: translateX(5px); }
.footer-col p i { color: var(--accent-color); margin-right: 0.75rem; font-size: 1rem; min-width: 20px; }

.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }

.footer-social a {
    width: 45px; height: 45px;
    background: rgba(212,175,55,0.1);
    border: 2px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: all 0.4s ease;
    z-index: 0;
}

.footer-social a i { position: relative; z-index: 1; transition: all 0.3s ease; }

.footer-social a:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(212,175,55,0.3);
}

.footer-social a:hover::before { width: 100%; height: 100%; border-radius: 12px; }
.footer-social a:hover i { color: var(--primary-color); }

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    background: rgba(0,0,0,0.2);
}

.footer-bottom p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0; }

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-bottom a:hover { color: #f4d03f; text-decoration: underline; }

@keyframes fadeInFooter {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.footer-col { animation: fadeInFooter 0.6s ease forwards; }
.footer-col:nth-child(1) { animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation-delay: 0.3s; }

.footer-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10001;
    min-width: 300px;
    transition: bottom 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
}

.footer-notification.show { bottom: 30px; }
.footer-notification i { font-size: 1.3rem; }
.footer-notification.success { border-left: 4px solid #27ae60; }
.footer-notification.success i { color: #27ae60; }
.footer-notification.error { border-left: 4px solid #e74c3c; }
.footer-notification.error i { color: #e74c3c; }
.footer-notification span { color: var(--text-dark); font-size: 0.95rem; font-weight: 500; }

/* ===================================================================================== */
/*                          14. RESPONSIVE - TABLETS (1024px)                            */
/* ===================================================================================== */

@media (max-width: 1024px) {
    .nav-menu { gap: 1.75rem; }
    .page-hero { height: 45vh; min-height: 350px; }
    .page-hero-title { font-size: 3rem; }
    .rooms-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .rooms-grid.list-view .room-card { grid-template-columns: 350px 1fr; }
    .detalles-header { height: 400px; }
    .car-btn { width: 40px; height: 40px; font-size: 18px; }
    .car-btn-prev { left: 15px; }
    .car-btn-next { right: 15px; }
    .footer-content { gap: 2.5rem; }
}

/* ===================================================================================== */
/*                          15. RESPONSIVE - TABLETS (768px)                             */
/* ===================================================================================== */

@media (max-width: 768px) {
    .navbar { padding: 1.25rem 0; }
    .navbar.scrolled { padding: 0.85rem 0; }
    .nav-container { padding: 0 1.5rem; }
    .logo { font-size: 1.3rem; }
    .logo i { font-size: 1.75rem; }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 320px; height: 100vh;
        background: rgba(26,26,46,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
        overflow-y: auto;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }

    .nav-menu.active { right: 0; }
    .nav-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-link { display: block; width: 100%; padding: 1.25rem 0; font-size: 1.05rem; }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active { padding-left: 1rem; background: rgba(212,175,55,0.1); }
    .nav-menu-btn { display: block; width: 100%; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
    .nav-menu-btn .btn-book { width: 100%; justify-content: center; padding: 1rem 2rem; }
    .nav-actions .btn-book { display: none; }
    .hamburger { display: flex; }

    .page-hero { height: 40vh; min-height: 300px; margin-top: 70px; }
    .page-hero-title { font-size: 2.5rem; }
    .page-hero-subtitle { font-size: 1.1rem; }
    .rooms-page-section { padding: 3rem 0; }
    .rooms-controls { padding: 1.5rem; }
    .filter-group { min-width: 150px; }
    .view-controls { flex-direction: column; align-items: flex-start; }
    .results-count { width: 100%; text-align: center; margin-bottom: 1rem; }
    .rooms-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .rooms-grid.list-view .room-card { grid-template-columns: 1fr; }
    .rooms-grid.list-view .room-image-wrapper { height: 250px; min-height: auto; }
    .room-card-header { flex-direction: column; gap: 0.5rem; }
    .room-image-wrapper .hab-carousel { height: 200px; }

    .modal-detalles-content { margin: 1rem; width: calc(100% - 2rem); max-height: 95vh; border-radius: 15px; }
    .modal-close { width: 45px; height: 45px; font-size: 22px; top: 1rem; right: 1rem; }
    .detalles-header { height: 300px; border-radius: 15px 15px 0 0; }
    .detalles-header .hab-carousel { height: 300px; }
    .car-btn { width: 38px; height: 38px; font-size: 16px; }
    .car-btn-prev { left: 10px; }
    .car-btn-next { right: 10px; }
    .car-dots { bottom: 20px; padding: 8px 12px; gap: 8px; }
    .car-dot { width: 8px; height: 8px; }
    .car-dot.active { width: 24px; }
    .car-counter, .car-photo-badge { padding: 6px 12px; font-size: 12px; }
    .detalles-badge { padding: 8px 18px; font-size: 13px; top: 15px; right: 15px; }
    .detalles-body { padding: 2rem; }
    .detalles-title { font-size: 1.75rem; }
    .detalles-precio { font-size: 2rem; }
    .detalles-features, .amenidades-grid, .servicios-grid { grid-template-columns: 1fr; }
    .detalles-footer { flex-direction: column; padding: 1.5rem 2rem; }
    .btn-modal { width: 100%; }

    .room-modal-content { width: 95%; max-height: 95vh; border-radius: 20px; }
    .room-modal-close { width: 40px; height: 40px; top: 1rem; right: 1rem; font-size: 1.1rem; }
    .room-modal-image { height: 300px; }
    .room-modal-body { padding: 2rem 1.75rem; }
    .room-modal-header { flex-direction: column; gap: 1rem; }
    .room-modal-header h2 { font-size: 1.7rem; }
    .room-modal-price { font-size: 2rem; }
    .room-modal-section h3 { font-size: 1.2rem; }
    .amenities-list ul, .services-list { grid-template-columns: 1fr; }
    .room-modal-actions { flex-direction: column; }
    .rooms-notification { min-width: calc(100% - 40px); max-width: calc(100% - 40px); }
    .rooms-notification.show { top: 90px; }
    .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.1rem; }

    .footer { padding: 3rem 0 0; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
    .footer-col:first-child { grid-column: 1 / -1; }
    .footer-col h3 { font-size: 1.6rem; }
    .footer-col h4 { font-size: 1.1rem; }
    .footer-bottom { padding: 1.75rem 0; margin-top: 2.5rem; }
}

/* ===================================================================================== */
/*                          16. RESPONSIVE - MÓVILES (600px)                             */
/* ===================================================================================== */

@media (max-width: 600px) {
    .nav-container { padding: 0 1.25rem; }
    .logo { font-size: 1.2rem; }
    .logo i { font-size: 1.6rem; }
    .nav-menu { width: 280px; padding: 5.5rem 1.75rem 2rem; }
    .nav-link { padding: 1.1rem 0; font-size: 1rem; }
    .page-hero { height: 35vh; min-height: 250px; }
    .page-hero-title { font-size: 2rem; }
    .page-hero-subtitle { font-size: 1rem; }
    .breadcrumb { font-size: 0.9rem; }
    .rooms-controls { padding: 1.25rem; border-radius: 15px; }
    .filter-group { min-width: 100%; }
    .filter-select { padding: 0.75rem 1rem; font-size: 0.9rem; }
    .btn-clear-filters { width: 100%; justify-content: center; padding: 0.75rem 1.25rem; }
    .rooms-grid { gap: 1.25rem; }
    .room-image-wrapper { height: 220px; }
    .room-card-content { padding: 1.5rem; }
    .room-card-title { font-size: 1.3rem; }
    .room-card-description { font-size: 0.9rem; }
    .room-card-amenities span { width: 38px; height: 38px; font-size: 1rem; }
    .price-amount { font-size: 1.8rem; }
    .btn-view-details { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .no-results { padding: 3rem 1.5rem; }
    .no-results i { font-size: 4rem; }
    .no-results h3 { font-size: 1.7rem; }
    .no-results p { font-size: 1rem; }

    .detalles-header { height: 250px; }
    .detalles-header .hab-carousel { height: 250px; }
    .car-btn { width: 35px; height: 35px; font-size: 14px; }
    .car-swipe-hint { padding: 10px 20px; font-size: 13px; }
    .detalles-body { padding: 1.5rem; }
    .detalles-title { font-size: 1.5rem; }
    .detalles-tipo { font-size: 12px; padding: 6px 14px; }
    .detalles-precio { font-size: 1.75rem; }
    .detalles-section h3 { font-size: 1.25rem; }
    .amenidad-item, .servicio-item { padding: 12px; font-size: 13px; }
    .detalles-footer { padding: 1.25rem 1.5rem; }

    .footer { padding: 2.5rem 0 0; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
    .footer-col:first-child { grid-column: 1; text-align: center; }
    .footer-col h3 { font-size: 1.5rem; margin-bottom: 1rem; }
    .footer-col h4 { font-size: 1.05rem; margin-bottom: 1rem; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-col p { font-size: 0.9rem; margin-bottom: 1.25rem; }
    .footer-social { justify-content: center; margin-top: 1.25rem; }
    .footer-social a { width: 42px; height: 42px; font-size: 1rem; }
    .footer-col ul { text-align: center; }
    .footer-col ul li { margin-bottom: 0.75rem; }
    .footer-col ul li a { font-size: 0.9rem; display: inline-flex; justify-content: center; }
    .footer-col:nth-child(3) { text-align: center; }
    .footer-bottom { padding: 1.5rem 0; margin-top: 2rem; }
    .footer-bottom p { font-size: 0.85rem; line-height: 1.6; }
    .footer-notification { min-width: calc(100% - 40px); max-width: calc(100% - 40px); }
    .footer-notification.show { bottom: 20px; }
}

/* ===================================================================================== */
/*                          17. RESPONSIVE - MÓVILES PEQUEÑOS (480px)                    */
/* ===================================================================================== */

@media (max-width: 480px) {
    .navbar { padding: 1rem 0; }
    .navbar.scrolled { padding: 0.75rem 0; }
    .nav-container { padding: 0 1rem; }
    .logo { font-size: 1.1rem; }
    .logo i { font-size: 1.5rem; }
    .nav-menu { width: 260px; padding: 5rem 1.5rem 2rem; }
    .nav-link { padding: 1rem 0; font-size: 0.95rem; }
    .hamburger { gap: 0.35rem; }
    .hamburger span { width: 26px; height: 2.5px; }
    .page-hero { margin-top: 60px; }
    .page-hero-title { font-size: 1.8rem; }
    .page-hero-subtitle { font-size: 0.95rem; }
    .rooms-controls { padding: 1rem; }
    .filter-label { font-size: 0.9rem; }
    .filter-select { padding: 0.7rem 0.9rem; font-size: 0.88rem; }
    .results-count { font-size: 0.9rem; }
    .view-btn { width: 38px; height: 38px; }
    .room-image-wrapper { height: 200px; }
    .room-badge { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
    .room-card-content { padding: 1.25rem; }
    .room-card-title { font-size: 1.2rem; }
    .room-rating i { font-size: 0.85rem; }
    .room-card-description { font-size: 0.88rem; margin-bottom: 1rem; }
    .room-card-features { gap: 0.6rem; margin-bottom: 1rem; padding-bottom: 1rem; }
    .room-card-features span { font-size: 0.82rem; }
    .room-card-amenities { gap: 0.6rem; margin-bottom: 1.25rem; }
    .room-card-amenities span { width: 36px; height: 36px; font-size: 0.95rem; }

    /* ── FIX BOTÓN RESERVAR ≤ 480px ──────────────────────────────────────────────────
       Mantenemos fila (precio izquierda / botón derecha). El botón toma ancho
       automático con un mínimo razonable para no parecer demasiado pequeño.           */
    .room-card-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .room-price { flex-shrink: 0; }

    .price-amount { font-size: 1.6rem; }

    /* El botón: ancho auto, compacto, sin subrayado, bien visible */
    .room-card-footer .btn-sm {
        width: auto;
        padding: 0.7rem 1.2rem;
        font-size: 0.88rem;
        border-radius: 10px;
        flex-shrink: 0;
        text-decoration: none;
        white-space: nowrap;
    }

    .no-results { padding: 2.5rem 1rem; }
    .no-results i { font-size: 3.5rem; }
    .no-results h3 { font-size: 1.5rem; }
    .no-results p { font-size: 0.95rem; }

    .modal-detalles-content { border-radius: 12px; }
    .modal-close { width: 40px; height: 40px; font-size: 20px; }
    .detalles-header { height: 220px; border-radius: 12px 12px 0 0; }
    .detalles-header .hab-carousel { height: 220px; }
    .car-btn { width: 32px; height: 32px; font-size: 13px; }
    .car-dots { bottom: 15px; gap: 6px; }
    .car-dot { width: 7px; height: 7px; }
    .car-dot.active { width: 20px; }
    .detalles-badge { padding: 6px 14px; font-size: 11px; }
    .car-counter, .car-photo-badge { padding: 5px 10px; font-size: 11px; }
    .detalles-title { font-size: 1.3rem; }
    .detalles-precio { font-size: 1.5rem; }
    .btn-modal { padding: 0.875rem 1.5rem; font-size: 0.9rem; }

    .room-modal-image { height: 250px; border-radius: 20px 20px 0 0; }
    .room-modal-body { padding: 1.75rem 1.5rem; }
    .room-modal-header h2 { font-size: 1.5rem; }
    .room-modal-price { font-size: 1.8rem; }
    .room-modal-description { font-size: 0.95rem; }
    .room-modal-section { margin-bottom: 1.5rem; }
    .room-modal-section h3 { font-size: 1.1rem; }
    .room-modal-features { gap: 1rem; }
    .room-modal-amenities span { width: 45px; height: 45px; font-size: 1.2rem; }
    .amenities-list li, .services-list li { padding: 0.65rem; font-size: 0.9rem; }
    .room-modal-actions { gap: 0.75rem; margin-top: 2rem; padding-top: 1.75rem; }
    .room-modal-actions .btn { padding: 1rem 1.5rem; font-size: 0.95rem; }

    .footer { padding: 2rem 0 0; }
    .footer-content { gap: 1.75rem; padding-bottom: 1.75rem; }
    .footer-col h3 { font-size: 1.4rem; }
    .footer-col h4 { font-size: 1rem; }
    .footer-col p { font-size: 0.88rem; }
    .footer-social { gap: 0.85rem; }
    .footer-social a { width: 40px; height: 40px; font-size: 0.95rem; }
    .footer-col ul li a { font-size: 0.88rem; }
    .footer-bottom { padding: 1.25rem 0; margin-top: 1.75rem; }
    .footer-bottom p { font-size: 0.82rem; padding: 0 1rem; }
}

/* ===================================================================================== */
/*                          18. RESPONSIVE - MÓVILES MUY PEQUEÑOS (375px)                */
/* ===================================================================================== */

@media (max-width: 375px) {
    .logo { font-size: 1rem; }
    .logo i { font-size: 1.4rem; }
    .nav-menu { width: 240px; }
    .page-hero-title { font-size: 1.6rem; }
    .room-card-title { font-size: 1.15rem; }

    /* ── FIX BOTÓN RESERVAR ≤ 375px ─────────────────────────────────────────────────
       En pantallas muy pequeñas sí apilamos, pero el botón queda centrado y
       ocupa todo el ancho disponible para que sea fácil de tocar.                     */
    .room-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .room-price { justify-content: center; }

    .price-amount { font-size: 1.5rem; }

    .room-card-footer .btn-sm {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        text-align: center;
        text-decoration: none;
    }

    .footer-col h3 { font-size: 1.3rem; }
    .footer-col h4 { font-size: 0.95rem; }
    .footer-col p { font-size: 0.85rem; }
    .footer-social a { width: 38px; height: 38px; font-size: 0.9rem; }
    .footer-bottom p { font-size: 0.8rem; }
}

/* ===================================================================================== */
/*                          19. ACCESSIBILITY                                            */
/* ===================================================================================== */

.nav-link:focus,
.btn-book:focus,
.hamburger:focus,
.filter-select:focus,
.btn-clear-filters:focus,
.view-btn:focus,
.modal-close:focus,
.car-btn:focus,
.car-dot:focus,
.btn-modal:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .modal-detalles,
    .modal-detalles-content,
    .car-track,
    .car-btn,
    .car-dot,
    .amenidad-item,
    .servicio-item {
        animation: none !important;
        transition: none !important;
    }
}

/* ===================================================================================== */
/*                          20. DARK MODE SUPPORT (Opcional)                             */
/* ===================================================================================== */

@media (prefers-color-scheme: dark) {
    .modal-detalles-content { background-color: #1e1e2e; color: #e0e0e0; }
    .detalles-body { background-color: #1e1e2e; }
    .detalles-title, .detalles-section h3 { color: #f0f0f0; }
    .detalles-descripcion { color: #c0c0c0; }
    .detalles-features { background: linear-gradient(135deg, #2a2a3e, #3a3a4e); border-color: #4a4a5e; }
    .feature-item { color: #e0e0e0; }
    .detalles-footer { background: linear-gradient(135deg, #2a2a3e, #3a3a4e); }
}