/* ============================================
   STYLE.CSS - Diseño unificado
   ============================================ */

/* ============================================
   VARIABLES CSS GLOBALES
   ============================================ */
:root {
    /* Colores principales */
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* Colores de texto */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #6c757d;
    
    /* Colores de fondo */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #ecf0f1;
    
    /* Sombras */
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-strong: 0 10px 40px rgba(0,0,0,0.2);
    
    /* Border radius */
    --border-radius: 24px;
    --border-radius-sm: 8px;
    --border-radius-lg: 32px;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Fuentes */
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 1.5rem;
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-indexes */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* Variables específicas para búsqueda */
    --search-header-height: 80px;
    --filters-width: 300px;
    --hotel-card-height: 200px;
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fafbfc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px; /* Compensar header fijo */
}



/* ============================================
   BOTONES
   ============================================ */
.btn {
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all var(--transition-fast);
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-login {
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-login:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--warning-color);
    color: #000;
}

.btn-warning:hover {
    background-color: #ffb300;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Tamaños de botones */
.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-xxl);
    font-size: var(--font-size-lg);
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(44, 62, 80, 0.2); /* Línea visible siempre */
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

/* ============================================
   CARDS Y TARJETAS
   ============================================ */
.card {
    border: none;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    font-weight: 600;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg);
}

/* Cards modernas */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1rem;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating-stars {
    color: #ffc107;
}

.card-price {
    text-align: right;
}

.price-from {
    font-size: 0.875rem;
    color: var(--text-light);
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-cta {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.card-cta:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>') no-repeat center;
    background-size: cover;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    max-width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* ============================================
   CAMPOS DE BÚSQUEDA
   ============================================ */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-hover);
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
}

.search-input-group {
    position: relative;
}

.search-input-group label {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    z-index: 1;
}

.search-input {
    border: 1px solid rgba(44, 62, 80, 0.2); /* Línea visible */
    border-radius: 16px;
    padding: 2rem 1rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    height: 60px;
    width: 100%;
    margin-top: 1rem;
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ============================================
   PÁGINA DE BÚSQUEDA Y FILTROS
   ============================================ */
body.search-page {
    margin-top: var(--search-header-height);
}

/* Header de búsqueda compacta */
.search-header {
    background: white;
    box-shadow: var(--shadow-light);
    padding: 1rem 0;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 100;
}

.search-form-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
}

.search-input-compact {
    border: 1px solid rgba(44, 62, 80, 0.2); /* Línea visible */
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
    color: var(--text-dark);
}

.search-input-compact:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    outline: none;
}

.search-btn-compact {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-btn-compact:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Filtros sidebar y móvil */
.filters-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    height: fit-content;
}

.filter-section {
   /* margin-bottom: 1.5rem; */
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.filter-input {
    border: 1px solid rgba(44, 62, 80, 0.2); /* Línea visible */
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
    color: var(--text-dark);
}

.filter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    outline: none;
}

.filter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.filter-btn-clear {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn-clear:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   CAPTCHA MATEMÁTICO
   ============================================ */
.math-input {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    width: 80px !important;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto;
    display: block;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem;
}

.math-input:focus {
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Botón flotante de filtros para móvil */
.filters-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1020;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Offcanvas personalizado */
.offcanvas-header {
    background: var(--primary-color);
    color: white;
}

.offcanvas-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

/* ============================================
   TARJETAS DE HOTELES
   ============================================ */
.hotel-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    opacity: 1 !important; /* Forzar visibilidad */
    transform: translateY(0) !important; /* Forzar posición */
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hotel-card-content {
    display: flex !important; /* Forzar display */
    flex-direction: column;
}

.hotel-image {
    position: relative;
    overflow: hidden;
    height: var(--hotel-card-height);
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important; /* Forzar display */
    max-width: 100%;
    height: auto;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.05);
}

.hotel-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.hotel-info {
    padding: 1.5rem;
    display: flex !important; /* Forzar display */
    flex-direction: column;
    height: 100%;
}

.hotel-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.3;
    display: block !important; /* Forzar display */
}

.hotel-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex !important; /* Forzar display */
    align-items: center;
    gap: 0.5rem;
}

.hotel-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: block !important; /* Forzar display */
}

.hotel-footer {
    display: flex !important; /* Forzar display */
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.hotel-rating {
    display: flex !important; /* Forzar display */
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-score {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-reviews {
    color: var(--text-light);
    font-size: 0.9rem;
}

.hotel-price {
    text-align: left;
}

.price-from {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.price-night {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hotel-cta {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex !important; /* Forzar display */
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
}

.hotel-cta:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   RESULTADOS DE BÚSQUEDA
   ============================================ */
.results-header {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.results-title {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.results-subtitle {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.results-count {
    color: var(--text-light);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.empty-state i {
    font-size: clamp(3rem, 8vw, 4rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PAGINACIÓN
   ============================================ */
.pagination .page-link {
    border-radius: var(--border-radius-sm);
    margin: 0 var(--spacing-xs);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all var(--transition-base);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-modern {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-modern .page-link {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 44px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-modern .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination-modern .page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ============================================
   ALERTAS Y NOTIFICACIONES
   ============================================ */
.alert {
    border-radius: var(--border-radius-sm);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* ============================================
   LOADING Y SPINNERS
   ============================================ */
.loading-spinner {
    display: none;
    text-align: center;
    padding: var(--spacing-xxl);
}

.loading-spinner.show {
    display: block;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    border-color: var(--primary-color);
    border-right-color: transparent;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   ESTADÍSTICAS
   ============================================ */
.stats-section {
    padding: 3rem 0;
    background: white;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   SECCIONES PRINCIPALES
   ============================================ */
.main-section {
    padding: 3rem 0;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Grid de ciudades */
.city-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    height: 200px;
    cursor: pointer;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.city-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6));
    z-index: 1;
}

.city-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.city-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.city-hotels {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
.modern-footer {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.footer-section h5 {
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-base);
    display: block;
    padding: var(--spacing-xs) 0;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-xxl);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-links a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   PÁGINAS LEGALES
   ============================================ */
.legal-hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

.legal-content {
    padding: 60px 0;
    background: white;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.legal-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.content-section h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.content-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.content-section ul, .content-section ol {
    color: var(--text-light);
    line-height: 1.7;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.important-notice {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.contact-info h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-info p {
    color: white;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

.breadcrumb-container {
    background: var(--bg-light);
    padding: 1rem 0;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.data-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   PÁGINA DE CONTACTO
   ============================================ */
.main-content {
    min-height: 100vh;
}

.contact-hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    padding: 4rem 0;
    color: white;
    text-align: center;
    position: relative;
}

.contact-section {
    padding: 5rem 0;
}

.contact-form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 2rem;
}

.required {
    color: var(--accent-color);
}

.form-control.is-invalid {
    border-color: var(--accent-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 1.25rem;
    margin-top: 0.25rem;
    min-width: 1.5rem;
}

.contact-item-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-item-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

.recaptcha-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.char-counter.warning {
    color: var(--accent-color);
}

/* Elementos específicos para cookies */
.cookie-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cookie-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cookie-type {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cookie-type.essential {
    background: #28a745;
}

.cookie-type.analytics {
    background: #17a2b8;
}

.cookie-type.marketing {
    background: #ffc107;
    color: #000;
}

.cookie-type.preferences {
    background: #6f42c1;
}

.cookie-settings {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-description {
    flex: 1;
    margin-right: 1rem;
}

.setting-description h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.setting-description p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* Elementos para términos y condiciones */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.term-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.term-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.term-card i {
    color: var(--accent-color);
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-light) !important;
}

.shadow {
    box-shadow: var(--shadow-medium) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-hover) !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.text-center {
    text-align: center !important;
}

.text-end {
    text-align: end !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mb-auto {
    margin-bottom: auto !important;
}

/* ============================================
   SCROLLBAR PERSONALIZADA
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 62, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(44, 62, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(44, 62, 80, 0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Animaciones de entrada para cards */
.hotel-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hotel-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso escalonado para animaciones */
.hotel-card:nth-child(1) { transition-delay: 0.1s; }
.hotel-card:nth-child(2) { transition-delay: 0.2s; }
.hotel-card:nth-child(3) { transition-delay: 0.3s; }
.hotel-card:nth-child(4) { transition-delay: 0.4s; }
.hotel-card:nth-child(5) { transition-delay: 0.5s; }


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet pequeña (576px+) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .btn {
        padding: var(--spacing-md) var(--spacing-xl);
    }
    
    .card-body {
        padding: var(--spacing-xl);
    }
    
    .search-btn {
        margin-top: 0;
        width: auto;
    }
    
    .search-form-compact {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .search-btn-compact {
        width: auto;
    }
    
    .hotel-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hotel-price {
        text-align: right;
    }
    
    .hotel-rating {
        flex-wrap: nowrap;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hotel-card .card-body {
        padding: var(--spacing-xl);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .search-form {
        grid-template-columns: 2fr 1fr 1fr auto;
    }
    
    .search-container {
        padding: 2rem;
    }
    
    .main-section {
        padding: 5rem 0;
    }
    
    .stats-section {
        padding: 4rem 0;
    }
    
    .stat-item {
        padding: 2rem;
    }
    
    .card-image {
        height: 280px;
    }
    
    .card-content {
        height: calc(100% - 280px);
    }
    
    .search-form-compact {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
    }
    
    .hotel-card-content {
        flex-direction: row;
    }
    
    .hotel-image {
        width: var(--filters-width);
        height: auto;
        min-height: var(--hotel-card-height);
    }
    
    .hotel-info {
        flex: 1;
    }
    
    .filters-sidebar {
        position: sticky;
        top: 100px;
        margin-bottom: 0;
    }
    
    .filters-toggle {
        display: none;
    }
    
    body.search-page {
        margin-top: 80px;
    }
    
    /* Páginas legales */
    .legal-hero {
        padding: 100px 0 60px;
    }
    
    .legal-content {
        padding: 40px 0;
    }
    
    .content-section {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .setting-description {
        margin-right: 0;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .term-card {
        padding: 1rem;
    }
    
    /* Contacto */
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .contact-hero {
        padding: 3rem 0;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .form-control,
    .form-select {
        padding: 0.875rem 1rem;
    }
    
    .btn-submit {
        padding: 1rem 1.5rem;
    }
    
    .contact-info {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
}

/* Desktop pequeño (992px+) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    .search-header {
        padding: 1.5rem 0;
        margin-top: 0.5rem;
    }
    
    .filters-sidebar {
        padding: 2rem;
    }
    
    .filter-section {
        /* margin-bottom: 2rem;*/
        padding-bottom: 2rem;
    }
    
    .hotel-image {
        width: 350px;
    }
}

/* Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop grande (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Móvil (767px y menos) */
@media (max-width: 767px) {   
    .btn-login {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .hero-title {
        font-size: 3rem;
        margin-top: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }
    
    .hotel-card .card-body {
        padding: var(--spacing-lg);
    }
    
    .hotel-card .card-title {
        font-size: var(--font-size-lg);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    .d-flex {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    body.search-page {
        margin-top: 60px;
    }
    
    .search-header {
        padding: 0.75rem 0;
        margin-top: 1.5rem;
    }
    
    .results-header {
        padding: 1rem;
    }
    
    .hotel-info {
        padding: 1rem;
    }
    
    .filters-sidebar {
        display: none;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .results-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .hotel-footer {
        gap: 0.75rem;
    }
    
    .hotel-card-content {
        flex-direction: column !important;
    }
    
    .hotel-image {
        width: 100% !important;
        height: 200px !important;
    }
}

/* Móvil pequeño (480px y menos) */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.25rem;
        --spacing-xxl: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-top: 2rem;
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .search-input {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .search-input-group label {
        top: 0.5rem;
        font-size: 0.8rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-price {
        text-align: left;
        width: 100%;
    }
    
    .hotel-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pagination-modern .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
    
    .filter-section {
      /*  margin-bottom: 1rem; */
        padding-bottom: 1rem;
    }
    
    .search-input-compact {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-btn-compact {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Contacto */
    .contact-form-container {
        padding: 1.5rem 1rem;
    }
    
    .contact-info {
        padding: 1.5rem 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    /* Espaciado responsive */
    .px-sm-2 {
        padding-left: var(--spacing-sm) !important;
        padding-right: var(--spacing-sm) !important;
    }
    
    .py-sm-2 {
        padding-top: var(--spacing-sm) !important;
        padding-bottom: var(--spacing-sm) !important;
    }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

/* Focus visible mejorado */
.nav-link:focus-visible,
.btn-primary:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.search-input-compact:focus-visible,
.filter-input:focus-visible,
.search-btn-compact:focus-visible,
.filter-btn:focus-visible,
.hotel-cta:focus-visible,
.page-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .nav-link,
    .btn-primary,
    .hotel-card,
    .search-btn-compact,
    .filter-btn,
    .hotel-cta,
    .loading-spinner {
        transition: none;
        animation: none;
    }
    
    .hero-section::before {
        animation: none;
    }
    
    .hotel-card:hover {
        transform: none;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-light: #333333;
        --shadow-light: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ============================================
   MEJORAS PARA DISPOSITIVOS TÁCTILES
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover,
    .hotel-card:hover,
    .modern-card:hover,
    .city-card:hover,
    .btn-primary:hover,
    .search-btn-compact:hover,
    .filter-btn:hover,
    .hotel-cta:hover,
    .filters-toggle:hover {
        transform: none;
    }
    
    .btn:active,
    .hotel-cta:active,
    .search-btn-compact:active,
    .filter-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .card:active,
    .hotel-card:active,
    .modern-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .btn-primary:active {
        transform: scale(0.95);
    }
    
    /* Aumentar área táctil */
    .btn,
    .nav-link,
    .pagination .page-link,
    .hotel-cta,
    .search-btn-compact,
    .filter-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Touch improvements para móviles */
    .hotel-card:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .hotel-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mejor feedback táctil */
    .filters-toggle:hover {
        transform: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .search-header,
    .filters-sidebar,
    .filters-toggle,
    .loading-overlay,
    .pagination-container,
    .btn,
    .pagination,
    .loading-spinner {
        display: none !important;
    }
    
    .card,
    .hotel-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    .text-primary,
    .text-secondary {
        color: #000 !important;
    }
    
    .hotel-cta {
        display: none;
    }
    
    body.search-page,
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}


/* ============================================
   PARCHES DE VISIBILIDAD (CRÍTICO)
   ============================================ */

/* Mostrar hoteles inmediatamente sin esperar JavaScript */
.hotel-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Asegurar visibilidad de todos los elementos importantes */
.hotel-card-content,
.hotel-image,
.hotel-info,
.hotel-title,
.hotel-location,
.hotel-description,
.hotel-footer,
.hotel-rating,
.hotel-price,
.hotel-cta {
    display: block !important;
    visibility: visible !important;
}

.hotel-card-content {
    display: flex !important;
}

.hotel-footer {
    display: flex !important;
}

.hotel-rating {
    display: flex !important;
}

/* Asegurar que las imágenes se carguen */
.hotel-image img {
    display: block !important;
    max-width: 100%;
    height: auto;
}

/* Forzar layout correcto */
@media (min-width: 768px) {
    .hotel-card-content {
        flex-direction: row !important;
    }
    
    .hotel-image {
        width: 300px !important;
        flex-shrink: 0 !important;
    }
    
    .hotel-info {
        flex: 1 !important;
    }
}

@media (max-width: 767px) {
    .hotel-card-content {
        flex-direction: column !important;
    }
    
    .hotel-image {
        width: 100% !important;
        height: 200px !important;
    }
}


/* ============================================
   BOTÓN VOLVER ARRIBA
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-hover);
    transition: all var(--transition-base);
    z-index: var(--z-toast);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.4);
}

.scroll-to-top i {
    transition: transform var(--transition-base);
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Animación de pulso sutil */
.scroll-to-top::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--accent-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.scroll-to-top:hover::before {
    opacity: 1;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Variante con progreso de scroll */
.scroll-to-top.with-progress {
    background: transparent;
    border: 3px solid rgba(44, 62, 80, 0.2);
}

.scroll-to-top.with-progress::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    transition: transform var(--transition-base);
    transform: rotate(0deg);
}

.scroll-to-top.with-progress.show::after {
    transform: rotate(var(--scroll-progress, 0deg));
}

.scroll-to-top.with-progress .scroll-icon {
    background: var(--primary-color);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.scroll-to-top.with-progress:hover .scroll-icon {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.1rem;
    }
    
    /* Ajustar posición si hay filtros toggle en móvil */
    .filters-toggle ~ .scroll-to-top {
        bottom: 80px; /* Espacio para no solapar con filtros */
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 42px;
        height: 42px;
        bottom: 12px;
        right: 12px;
        font-size: 1rem;
    }
    
    .filters-toggle ~ .scroll-to-top {
        bottom: 75px;
    }
}

/* Modo landscape en móvil */
@media (max-height: 500px) and (orientation: landscape) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
        font-size: 0.9rem;
    }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 18px;
        right: 18px;
        font-size: 1.15rem;
    }
}

/* Desktops grandes */
@media (min-width: 1200px) {
    .scroll-to-top {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 1.3rem;
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .scroll-to-top {
        min-width: 44px;
        min-height: 44px;
    }
    
    .scroll-to-top:hover {
        transform: none;
        background: var(--primary-color);
    }
    
    .scroll-to-top:active {
        transform: scale(0.95);
        background: var(--secondary-color);
    }
    
    .scroll-to-top::before {
        display: none; /* Sin animación de pulso en táctil */
    }
}

/* Accesibilidad */
.scroll-to-top:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: opacity var(--transition-fast);
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
    
    .scroll-to-top::before,
    .scroll-to-top i {
        animation: none;
        transition: none;
    }
    
    @keyframes pulse-border {
        0%, 100% {
            transform: scale(1);
            opacity: 1;
        }
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .scroll-to-top {
        background: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
    
    .scroll-to-top:hover {
        background: #333333;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .scroll-to-top {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .scroll-to-top:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .scroll-to-top.with-progress {
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .scroll-to-top.with-progress::after {
        border-top-color: #ffffff;
    }
}

/* Ocultar en impresión */
@media print {
    .scroll-to-top {
        display: none !important;
    }
}

/* Estados adicionales del botón */
.scroll-to-top.loading {
    pointer-events: none;
    opacity: 0.6;
}

.scroll-to-top.loading i {
    animation: spin 1s linear infinite;
}

/* Variante minimalista */
.scroll-to-top.minimal {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-to-top.minimal:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* ============================================
   BANNER DE COOKIES Y PRIVACIDAD
   ============================================ */
.cookie-banner {
    position: fixed;
    left: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 16px 16px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    border-left: none;
    font-family: var(--font-family);
}

.cookie-banner.show {
    left: 0;
}

.cookie-banner-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.cookie-banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.cookie-banner-content {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.cookie-banner-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cookie-banner-text strong {
    color: var(--text-dark);
}

.cookie-settings {
    margin-bottom: 1.5rem;
}

.cookie-category {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: #f0f4f8;
    border-color: var(--primary-color);
}

.cookie-category h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle.active {
    background: var(--success-color);
}

.cookie-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle.active::before {
    transform: translateX(20px);
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cookie-btn-accept {
    background: var(--success-color);
    color: white;
}

.cookie-btn-accept:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.cookie-btn-decline {
    background: var(--danger-color);
    color: white;
}

.cookie-btn-decline:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cookie-btn-settings:hover {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-save {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-save:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

/* Vista de configuración detallada */
.cookie-banner.settings-view .cookie-banner-title {
    font-size: 1rem;
}

.cookie-banner.settings-view .cookie-banner-content {
    padding-top: 1rem;
}

/* Links en el banner */
.cookie-banner a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

/* Indicador de estado guardado */
.cookie-status {
    display: none;
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.3s ease;
}

.cookie-status.show {
    display: block;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay opcional */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.cookie-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        left: -100vw;
        top: auto;
        bottom: 0;
        transform: none;
        width: 100vw;
        max-width: none;
        border-radius: 16px 16px 0 0;
        border: 1px solid var(--border-color);
        border-bottom: none;
    }
    
    .cookie-banner.show {
        left: 0;
    }
    
    .cookie-banner-header {
        border-radius: 16px 16px 0 0;
    }
    
    .cookie-banner-content {
        max-height: 60vh;
        padding: 1rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-category {
        padding: 0.75rem;
    }
    
    .cookie-category h4 {
        font-size: 0.9rem;
    }
    
    .cookie-category p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 0.75rem;
        max-height: 55vh;
    }
    
    .cookie-banner-header {
        padding: 0.75rem 1rem;
    }
    
    .cookie-banner-title {
        font-size: 1rem;
    }
    
    .cookie-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .cookie-toggle {
        width: 38px;
        height: 20px;
    }
    
    .cookie-toggle::before {
        width: 16px;
        height: 16px;
    }
    
    .cookie-toggle.active::before {
        transform: translateX(18px);
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .cookie-btn:hover {
        transform: none;
    }
    
    .cookie-btn:active {
        transform: scale(0.98);
    }
    
    .cookie-category:hover {
        background: var(--bg-light);
        border-color: var(--border-color);
    }
    
    .cookie-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Accesibilidad */
.cookie-banner-close:focus-visible,
.cookie-btn:focus-visible,
.cookie-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: left 0.2s ease;
    }
    
    .cookie-btn:hover {
        transform: none;
    }
    
    @keyframes slideInDown {
        from, to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .cookie-banner {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .cookie-banner-header {
        background: #000000;
        color: #ffffff;
    }
    
    .cookie-category {
        border: 1px solid #000000;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .cookie-banner {
        background: rgba(26, 26, 26, 0.98);
        border-color: #333333;
    }
    
    .cookie-banner-text {
        color: #cccccc;
    }
    
    .cookie-banner-text strong {
        color: #ffffff;
    }
    
    .cookie-category {
        background: #2a2a2a;
        border-color: #333333;
    }
    
    .cookie-category:hover {
        background: #333333;
        border-color: var(--primary-color);
    }
    
    .cookie-category h4 {
        color: #ffffff;
    }
    
    .cookie-category p {
        color: #cccccc;
    }
}

/* Ocultar en impresión */
@media print {
    .cookie-banner,
    .cookie-overlay {
        display: none !important;
    }
}

/* Estados de animación */
.cookie-banner.hiding {
    left: -400px;
}

@media (max-width: 768px) {
    .cookie-banner.hiding {
        left: 0;
        bottom: -100vh;
    }
}

/* Personalización para diferentes tipos de cookies */
.cookie-category.essential .cookie-toggle {
    background: #6c757d;
}

.cookie-category.analytics .cookie-toggle.active {
    background: #17a2b8;
}

.cookie-category.functional .cookie-toggle.active {
    background: #6f42c1;
}

.cookie-category.marketing .cookie-toggle.active {
    background: #ffc107;
}

.cookie-category.marketing .cookie-toggle.active::before {
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* ============================================
   FIN DEL ARCHIVO CSS UNIFICADO
   ============================================ */