:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 120px 0 80px;
    margin-top: 31px;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Pasos del Viajero */
.pasos-viajero {
    margin-top: 4rem;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pasos-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pasos-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.paso {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 160px;
    position: relative;
    z-index: 2;
}

.paso-numero {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    z-index: 3;
}

.paso-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.paso-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

.paso-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.paso-content p {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.paso-connector {
    position: absolute;
    top: 30px;
    left: calc(16.66% + 30px);
    width: calc(16.66% - 60px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.paso-connector:nth-of-type(4) { left: calc(33.33% + 30px); }
.paso-connector:nth-of-type(6) { left: calc(50% + 30px); }
.paso-connector:nth-of-type(8) { left: calc(66.66% + 30px); }
.paso-connector:nth-of-type(10) { left: calc(83.33% + 30px); }

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Coordinadores Section */
.coordinadores {
    background-color: var(--gray-100);
}

.coordinador-finder {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-group input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.resultado-coordinador {
    animation: fadeInUp 0.5s ease;
}

.coordinador-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.coordinador-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.coordinador-info p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contacto-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.contacto-info i {
    color: var(--primary-color);
    width: 16px;
}

/* Zonas Grid */
.zonas-completas {
    margin-top: 4rem;
}

.zonas-completas h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.zonas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.zona-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.zona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.zona-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.zona-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Directivas Section */
.directivas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.directiva-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    border-top: 6px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.directiva-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.directiva-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2), 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

.card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.directiva-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.directiva-card ul {
    list-style: none;
}

.directiva-card li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.directiva-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Info Adicional */
.info-adicional {
    background-color: var(--gray-100);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    border-left: 6px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.2), 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

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

.info-card p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

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

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: none;
        padding-left: 2.5rem;
    }
    
    .header .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    .directivas-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustes para tarjetas en móvil */
    .directiva-card, .info-card {
        border-radius: 10px;
        padding: 1.5rem;
        border-width: 1.5px;
    }
    
    .directiva-card {
        border-top-width: 4px;
    }
    
    .info-card {
        border-left-width: 4px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .coordinador-card {
        padding: 1.5rem;
    }
    
    /* Estilos responsivos para indicadores de disponibilidad */
    .tarifa {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tarifa-info {
        width: 100%;
    }
    
    .tarifa-precio-disponibilidad {
        width: 100%;
        justify-content: space-between;
    }
    
    .disponibilidad-indicator {
        font-size: 0.75rem;
        padding: 0.15rem 0.4rem;
        margin-left: 0;
    }
    
    .disponibilidad-indicator i {
        font-size: 0.6rem;
    }
    
    /* Estilos responsivos para pasos del viajero */
    .pasos-viajero {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
    
    .pasos-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .pasos-timeline {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .paso {
        max-width: 280px;
        width: 100%;
    }
    
    .paso-connector {
        display: none;
    }
    
    .paso-numero {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 0.5rem;
    }
    
    .paso-content h4 {
        font-size: 1.1rem;
    }
    
    .paso-content p {
        font-size: 0.9rem;
        color: #1e293b;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    /* Pasos del viajero para móviles pequeños */
    .pasos-viajero {
        margin-top: 1.5rem;
        padding: 1.5rem 0.5rem;
    }
    
    .pasos-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .paso {
        max-width: 250px;
    }
    
    .paso-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .paso-numero {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .paso-content h4 {
        font-size: 1rem;
    }
    
    .paso-content p {
        font-size: 0.8rem;
        color: #1e293b;
        font-weight: 500;
    }
    
    .logo span {
        display: none;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .mobile-menu-btn {
        width: 25px;
        height: 25px;
    }
    
    .hamburger-line {
        height: 2px;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    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); }
}

/* Success and error states */
.success {
    color: var(--success-color);
}

.error {
    color: var(--danger-color);
}

.warning {
    color: var(--warning-color);
}

/* Utility classes */
.text-center {
    text-align: center;
}

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* === HOTELES SECTION === */
.hoteles {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hoteles-acceso {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.acceso-form {
    width: 100%;
    max-width: 500px;
}

.acceso-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.acceso-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.acceso-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.acceso-card p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.acceso-card .input-group {
    margin-bottom: 1rem;
}

.acceso-card input {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.mensaje-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid #fecaca;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.hoteles-contenido {
    animation: fadeInUp 0.6s ease-out;
}

.hoteles-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hoteles-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hoteles-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Filtros y Categorías */
.hoteles-filtros {
    margin-bottom: 3rem;
    text-align: center;
}

.filtros-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filtro-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filtro-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filtro-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.resumen-categorias {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: inline-block;
}

.categoria-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.categoria-economicos, .categoria-premium {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.categoria-economicos {
    background: #ecfdf5;
    color: #065f46;
}

.categoria-premium {
    background: #fffbeb;
    color: #92400e;
}

/* Categorías de Hoteles */
.categoria-hoteles {
    margin-bottom: 3rem;
}

.categoria-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.categoria-header h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.categoria-header p {
    color: #64748b;
    margin: 0;
}

.hoteles-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
}

.hotel-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hotel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hotel-premium::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.hotel-economico::before {
    background: linear-gradient(90deg, #059669, #047857);
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
}

.hotel-header h4 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 0;
}

.hotel-tipo {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hotel-premium .hotel-tipo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.hotel-economico .hotel-tipo {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Precios */
.precio-rango {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.precio-rango.premium {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.precio-desde {
    color: #059669;
    font-weight: 700;
    font-size: 1.1rem;
}

.precio-hasta {
    color: #64748b;
    font-weight: 500;
}

.precio-rango.premium .precio-desde {
    color: #d97706;
}

/* Edificios Mini */
.edificio-mini {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.edificio-mini h6 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.edificios-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edificio-tag {
    background: white;
    color: #64748b;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

/* Servicios Mini */
.servicios-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.servicio-tag {
    background: #ecfdf5;
    color: #065f46;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #d1fae5;
}

/* Info Mini */
.hotel-info-mini {
    background: #fffbeb;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.hotel-info-mini p {
    margin: 0.3rem 0;
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Botón de Detalles */
.btn-detalles {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
    margin-bottom: 1rem;
}

.btn-detalles:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Detalles Completos */
.detalles-completos {
    border-top: 2px solid #f1f5f9;
    padding-top: 1.5rem;
    animation: fadeInDown 0.3s ease;
}

.hotel-content {
    line-height: 1.6;
}

.hotel-capacidad {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.hotel-capacidad p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
}

.hotel-edificios, .hotel-edificios-detalle {
    margin-bottom: 1.5rem;
}

.edificio {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.edificio h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.edificio-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tarifas {
    display: grid;
    gap: 0.5rem;
}

.tarifa {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tarifa .tipo {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.tarifa .precio {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Indicadores de disponibilidad */
.disponibilidad-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.disponibilidad-indicator.disponible {
    background: #dcfce7;
    color: #166534;
}

.disponibilidad-indicator.no-disponible {
    background: #fee2e2;
    color: #dc2626;
}

.disponibilidad-indicator i {
    font-size: 0.7rem;
}

.tarifa {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.tarifa-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.tarifa-precio-disponibilidad {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hotel-servicios {
    background: #ecfdf5;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #d1fae5;
}

.hotel-servicios h5 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.hotel-servicios ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hotel-servicios li {
    color: #065f46;
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.hotel-servicios li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.hotel-info {
    background: #fffbeb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #fed7aa;
}

.hotel-info p {
    margin: 0.5rem 0;
    color: #92400e;
    font-size: 0.9rem;
}

.hoteles-notas {
    margin-top: 3rem;
}

.nota-importante {
    background: #fef3c7;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #fbbf24;
    border-left: 6px solid #f59e0b;
}

.nota-importante h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.nota-importante ul {
    color: #78350f;
    line-height: 1.8;
}

.nota-importante li {
    margin-bottom: 0.5rem;
}

/* Responsive Design para Hoteles */
/* Tablets - 2 columnas */
@media (max-width: 1200px) {
    .hoteles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Móviles - 1 columna */
@media (max-width: 768px) {
    .acceso-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .hoteles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hotel-card {
        padding: 1.5rem;
    }
    
    .hotel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tarifa {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .filtros-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filtro-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .categoria-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .precio-rango {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .edificios-lista {
        justify-content: center;
    }
    
    .servicios-mini {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hoteles-filtros {
        margin-bottom: 2rem;
    }
    
    .categoria-header {
        padding: 1rem;
    }
    
    .categoria-header h4 {
        font-size: 1.2rem;
    }
    
    .filtro-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animaciones adicionales */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Mejoras para el input de código */
#codigoAcceso {
    transition: all 0.3s ease;
}

#codigoAcceso:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* === PROMO: Fly Copa === */
.promo {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, rgba(37,99,235,0.08) 50%, #f1f5f9 100%);
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(37,99,235,0.02) 10px,
        rgba(37,99,235,0.02) 20px
    );
    pointer-events: none;
}

.promo-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 15px 50px rgba(37,99,235,0.15), 0 5px 20px rgba(37,99,235,0.1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(37,99,235,0.2), 0 10px 30px rgba(37,99,235,0.15);
    border-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.promo-left {
    flex: 1 1 65%;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.promo-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(37,99,235,0.25);
}

.promo-content {
    flex: 1;
}

.promo-content h3 {
    margin: 0 0 0.8rem 0;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.promo-desc {
    margin: 0 0 1rem 0;
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
}

.promo-features {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    color: #065f46;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #d1fae5;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 15px rgba(37,99,235,0.25);
}

.promo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.promo-note {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

.promo-right {
    flex: 1 1 35%;
    text-align: center;
}

.promo-badge-container {
    margin-bottom: 1.5rem;
}

.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.promo-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 12px;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.2rem;
}

.promo-partner {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.partner-text {
    margin: 0 0 0.3rem 0;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.promo-partner small {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* Enlace externo en nav */
.nav-link-external {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link-external:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive para promo */
@media (max-width: 768px) {
    .promo {
        padding: 2rem 0;
    }
    
    .promo-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .promo-left {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .promo-icon {
        align-self: flex-start;
    }
    
    .promo-right {
        width: 100%;
        text-align: left;
    }
    
    .promo-stats {
        justify-content: flex-start;
    }
    
    .promo-features {
        justify-content: flex-start;
    }
    
    .promo-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .promo-content h3 {
        font-size: 1.3rem;
    }
    
    .promo-card {
        padding: 1.5rem;
    }
    
    .promo-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Modal (Detalles de Hotel) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal.open {
    display: flex;
}

.modal-dialog {
    background: #fff;
    width: min(900px, 100%);
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.modal-close:hover {
    background: #fff;
}

.modal-body {
    padding: 1.5rem;
    overflow: auto;
}

/* === MAPA DE HOTELES === */
#mapa-hoteles {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
}

.mapa-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

#hotelesMapa {
    flex: 1;
    min-height: 520px;
    border-radius: 18px;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Acciones bajo el mapa */
.mapa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.distancias-panel {
    flex: 0 0 360px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    position: relative;
    /* Igualar altura del mapa en desktop por defecto */
    height: 520px;
}

.distancias-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #f1f5f9;
}

.distancias-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Separador visual entre título y lista */
.distancias-separator {
    height: 10px;
    margin: 6px 0 10px 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    opacity: 0.25;
}

.link-mapa {
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    color: #0f766e;
    background: #ecfdf5;
    padding: .4rem .65rem;
    border-radius: 8px;
    border: 1px solid #d1fae5;
    transition: var(--transition);
}

.link-mapa:hover {
    background: #d1fae5;
    color: #065f46;
}

/* Contenedor con scrollbar propio */
.distancias-scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* permite que el contenido calcule bien */
    overflow-y: auto; /* scroll en el contenedor */
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    background: #f8fafc;
    position: relative;
}

/* Sin degradados para no tapar elementos */
.distancias-scroll::before { content: none; }
.distancias-scroll::after { content: none; }

/* Se elimina el degradado inferior para no tapar elementos de la lista */

.distancias-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.4rem 0.6rem 0.4rem; /* un poco de aire arriba */
    flex: 0 0 auto;
    /* el scroll está en .distancias-scroll */
}

.distancias-list li {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .75rem .7rem .65rem;
    margin-bottom: .6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: .8rem;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.distancias-list li:hover {
    background: #eef2f7;
    border-color: #cbd5e1;
}

.distancias-list li.selected {
    background: #e0f2fe;
    border-color: #93c5fd;
    box-shadow: 0 6px 16px rgba(59,130,246,0.15);
}

.distancia-hotel-nombre {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    text-transform: uppercase;
}

.distancia-tiempo {
    font-weight: 600;
    color: #0f766e;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.distancia-distancia {
    font-weight: 500;
    color: #64748b;
    font-size: .72rem;
}

.distancias-nota {
    font-size: .65rem;
    margin-top: .75rem;
    color: #64748b;
}

/* Helper de coordenadas (aparece en esquina del mapa) */
#mapCoordsHelper {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15,23,42,0.85);
    color: #f8fafc;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 5;
    display: none;
}

#mapCoordsHelper strong { color: #38bdf8; }
#mapCoordsHelper .coords-value { font-weight: 600; letter-spacing: .5px; }

/* Badge de estado tráfico */
.badge-trafico {
    position: absolute;
    top: .55rem;
    right: .6rem;
    font-size: .6rem;
    font-weight: 700;
    padding: .25rem .45rem;
    border-radius: 6px;
    letter-spacing: .5px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.badge-trafico.lento { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.badge-trafico.rapido { background: #ecfdf5; color: #065f46; border-color: #d1fae5; }

/* Scrollbars personalizados */
/* Scrollbar personalizado y más ancho (WebKit) en el contenedor scroll */
.distancias-scroll::-webkit-scrollbar { width: 12px; }
.distancias-scroll::-webkit-scrollbar-track { background: #fff7ed; border-radius: 12px; }
.distancias-scroll::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 12px;
    border: 2px solid #fff7ed; /* efecto pill */
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.distancias-scroll::-webkit-scrollbar-thumb:hover { background: #d97706; }

/* Firefox scrollbar en el contenedor */
.distancias-scroll { scrollbar-width: auto; scrollbar-color: var(--secondary-color) #fff7ed; }

/* Responsive mapa */
@media (max-width: 992px) {
    .mapa-layout { flex-direction: column; }
    #hotelesMapa { min-height: 480px; }
    .distancias-panel { width: 100%; height: auto; }
    .distancias-scroll { max-height: 360px; }
}

@media (max-width: 600px) {
    #hotelesMapa { min-height: 420px; }
    .distancias-scroll { max-height: 300px; }
    .distancias-list li { font-size: .75rem; }
    .distancia-hotel-nombre { font-size: .7rem; }
    .distancia-tiempo { font-size: .72rem; }
}

/* Optimización móvil extra: compactar botones y reducir altura del mapa */
@media (max-width: 480px) {
    /* Menos espacio entre mapa y lista */
    .mapa-layout { gap: 10px !important; }

    /* Mapa un poco más bajo para que la lista quede más arriba */
    #hotelesMapa { min-height: 360px; }

    /* Botones bajo el mapa en 2 columnas x 2 filas (grid) */
    .mapa-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 6px;
        justify-items: stretch;
        align-items: stretch;
        margin-top: 8px;
        margin-bottom: 8px;
        padding: 0;
    }
    .mapa-actions .link-mapa,
    .mapa-actions .btn-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12.5px;
        line-height: 1.25;
        padding: 6px 10px;
        border-radius: 6px;
        margin: 0;
        min-height: 40px;
        width: 100%;
        /* permitir texto en 2 líneas para no crecer en vertical */
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* estándar */
    -webkit-box-orient: vertical;
        text-align: center;
    }
    /* Asegurar que ningún botón ocupe dos columnas por error */
    .mapa-actions #goToPccBtn,
    .mapa-actions a.link-mapa:last-child { grid-column: auto; }
}

/* Ajustes de contenido dentro del modal para reutilizar estilos */
.modal-body .tarifas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-body .tarifa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.modal-body .hotel-info, .modal-body .hotel-servicios {
    margin-top: 1rem;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .modal {
        padding: 1rem;
    }
    .modal-dialog {
        max-height: 90vh;
        border-radius: 12px;
    }
}

/* Desktop improvements for wider layout */
@media (min-width: 1200px) {
    #mapa-hoteles .container { max-width: 1400px; }
    #hotelesMapa { min-height: 640px; }
    .distancias-panel { height: 640px; }
}

@media (min-width: 992px) {
    .distancias-panel { position: sticky; top: 96px; align-self: flex-start; }
}

.distancias-actions { display: none; }
.btn-toggle { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.btn-toggle:hover { background: #c7d2fe; color: #1e3a8a; }

/* Expanded map mode */
.mapa-hoteles.mapa-expanded .distancias-panel { display: none; }
.mapa-hoteles.mapa-expanded #hotelesMapa { min-height: 75vh; }
.mapa-hoteles.mapa-expanded .container { max-width: 96vw; }