/* ==================== PREMIUM UX / UI ENHANCEMENTS ==================== */

/* 1. Global Smooth Scrolling and Selection */
html {
  scroll-behavior: smooth;
}
::selection {
  background: var(--primary-color, #d49a89);
  color: white;
}

/* 2. Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Premium Button Hovers (Buttons and CTAs) */
.cta-button, .btn-seleccionar, .whatsapp-btn, button[type="submit"] {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative;
  overflow: hidden;
}
.cta-button:hover, .btn-seleccionar:hover, .whatsapp-btn:hover, button[type="submit"]:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
}
/* Shine effect on buttons */
.cta-button::after, .btn-seleccionar::after, button[type="submit"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.75s;
}
.cta-button:hover::after, .btn-seleccionar:hover::after, button[type="submit"]:hover::after {
  left: 125%;
}

/* 4. Cards Elevation & Glassmorphism */
.service-card, .promotion-card, .team-card, .finding-card, .testimonial-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,255,255,0.1);
}
.service-card:hover, .promotion-card:hover, .team-card:hover, .finding-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
}

/* 5. Header / Navbar Glassmorphism */
.header.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* 6. Form Inputs Focus States */
input, textarea, select {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background-color: #f8f9fa;
}
input:focus, textarea:focus, select:focus {
  background-color: #fff;
  border-color: var(--primary-color, #d49a89);
  box-shadow: 0 0 0 4px rgba(212, 154, 137, 0.15);
  outline: none;
}

/* 7. Image hover zoom */
.gallery-grid img, .carousel-slide img, .team-photo img {
  transition: transform 0.5s ease;
}
.gallery-grid img:hover, .carousel-slide img:hover, .team-photo img:hover {
  transform: scale(1.05);
}

/* 8. Micro-animations for icons */
.service-icon, .finding-icon i {
  transition: transform 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-icon, .finding-card:hover .finding-icon i {
  transform: scale(1.2) rotate(5deg);
}

/* ==================== CAROUSEL GALLERY ALIGNMENT FIX ==================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 400px; /* Base height */
    overflow: hidden;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-container .prev-btn {
    left: 10px !important;
    z-index: 50 !important;
}

.carousel-container .next-btn {
    right: 10px !important;
    z-index: 50 !important;
}

@media (max-width: 768px) {
    .carousel-slide {
        height: 300px;
    }
}

/* ==================== FINDING CARDS SPACING FIX ==================== */
.finding-card {
    min-height: auto !important;
}

.finding-content {
    height: auto !important;
    padding: 24px 20px 20px 20px !important;
}

.finding-video-container {
    margin-bottom: 0 !important;
}

/* ==================== TESTIMONIALS VIDEO GRID ==================== */
.testimonials-grid {
    display: grid;
    /* Ajustado a 160px para que se vean muchos más (mural) */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.testimonial-video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    aspect-ratio: 9/16;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-video-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 154, 137, 0.3);
}

.testimonial-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.testimonial-video-card:hover video {
    opacity: 1;
}

.testimonial-video-card .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(212, 154, 137, 0.85); /* Primary color semi-transparent */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.testimonial-video-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
    .testimonials-grid {
        /* En móviles los hacemos un poco más pequeños aún para que quepan 2 por fila mínimo */
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    .testimonial-video-card .play-overlay {
        opacity: 0.8; /* Always show partially on mobile */
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* ==================== 1. AURORA HEALTH: GLOBAL BACKGROUND ==================== */
body {
    background-color: var(--light-color);
    position: relative;
}

body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
    pointer-events: none;
}

body::before {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
}

body::after {
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, var(--primary-color-light), transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2); }
}

/* ==================== 2. AURORA HEALTH: GLASSMORPHISM CARDS ==================== */
.service-card, .team-card, .finding-card, .promotion-card, .room-modal-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 30px rgba(27, 20, 100, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.service-card:hover, .team-card:hover, .finding-card:hover, .promotion-card:hover, .room-modal-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(18, 159, 179, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
    border-color: var(--secondary-color) !important;
    background: rgba(255, 255, 255, 0.75) !important;
}

.service-info, .team-info, .finding-content, .promo-info, .room-modal-info {
    background: transparent !important;
}

/* ==================== 3. MOBILE TABS SCROLLING FIX ==================== */
.tab-buttons-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    margin-bottom: 5px;
    
    /* Fade edges to indicate scrolling */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.tab-buttons-wrapper::-webkit-scrollbar {
    height: 6px;
}

.tab-buttons-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.tab-buttons-wrapper::-webkit-scrollbar-thumb {
    background: rgba(18, 159, 179, 0.3);
    border-radius: 10px;
}

.tab-buttons {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: max-content;
    padding: 0 10px; /* Buffer for the mask */
}

.tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hide scroll hint text on desktop, show on mobile */
.tabs-scroll-hint {
    display: none;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 15px;
    animation: pulseHint 2s infinite;
}

@media (max-width: 768px) {
    .tabs-scroll-hint {
        display: block;
    }
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

/* ==================== 4. MODAL FIXES (Semantic divs instead of labels & visibility) ==================== */
/* ==================== 4. MODAL FIXES (Semantic divs instead of labels & visibility) ==================== */
.room-modal-option {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.room-modal-option.active {
    display: flex !important;
    opacity: 1;
    transform: none;
}

.rooms-modal-grid {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 65vh;
    padding: 10px 20px 20px;
}

/* Modal Tabs Styling */
.modal-tabs-wrapper {
    padding: 20px 20px 0;
    background: transparent;
    border-bottom: 1px solid rgba(27, 20, 100, 0.08);
}

.modal-tabs-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.modal-tabs-container::-webkit-scrollbar {
    height: 4px;
}
.modal-tabs-container::-webkit-scrollbar-thumb {
    background: rgba(18, 159, 179, 0.3);
    border-radius: 10px;
}

.modal-tab-btn {
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(27, 20, 100, 0.1);
    color: var(--primary-color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-tab-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--secondary-color);
}

.modal-tab-btn.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(18, 159, 179, 0.3);
}

/* Modal Content Compactness (Fit everything in one screen) */
.room-features {
    display: flex !important;
    flex-direction: column !important; /* Force 1 column as requested */
    gap: 0 !important;
    margin-bottom: 15px !important;
}

.room-features li {
    padding: 6px 0 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(27, 20, 100, 0.05) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
}

.room-features li i {
    font-size: 0.8rem !important;
    margin-right: 8px !important;
}

@media (max-width: 768px) {
    .room-modal-image {
        height: 120px !important;
        margin-bottom: 10px !important;
    }
    
    .room-modal-info h4 {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }
    
    .room-modal-info p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .room-modal-card {
        padding: 15px !important;
    }
    
    .modal-tabs-wrapper {
        padding: 15px 15px 0 !important;
    }
    
    .rooms-modal-grid {
        padding: 10px 15px 15px !important;
        max-height: 70vh !important;
    }
}

/* Custom scrollbar for grid */
.rooms-modal-grid::-webkit-scrollbar {
    width: 6px;
}
.rooms-modal-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
.rooms-modal-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

/* ==================== 5. GLOBAL TYPOGRAPHY NORMALIZATION & SPACING FIX ==================== */
/* Force sensible clamp sizes for all headings globally */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2 !important;
    margin-top: 0 !important;
}

h1 { font-size: clamp(2rem, 4vw, 3rem) !important; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem) !important; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem) !important; }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem) !important; }
h5 { font-size: clamp(1rem, 1.5vw, 1.1rem) !important; }

/* Specifically target the modal header to reduce the massive size and padding */
.modal-header {
    padding: 15px 20px !important;
    min-height: auto !important;
}

.modal-header h3 {
    margin: 0 !important;
    padding: 0 !important;
}

.modal-tabs-wrapper {
    padding: 10px 20px 0 !important;
    margin: 0 !important;
}

.rooms-modal-grid {
    padding: 5px 20px 10px !important;
    max-height: 85vh !important; /* Allow it to be slightly taller relative to viewport to avoid internal scrolling */
}

/* Unified Modal Card & Option Styles (Fixing HTML inconsistency) */
.room-modal-card, .room-modal-option.active {
    display: flex !important;
    flex-direction: column !important; /* Mobile First: Stack vertically */
    padding: 15px !important;
    gap: 15px !important;
    width: 100%;
    cursor: default;
}

/* Prevent double padding if nested */
.room-modal-option.active .room-modal-card {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .modal-content {
        max-width: 950px !important;
    }

    .room-modal-card, .room-modal-option.active {
        padding: 20px 30px !important;
        flex-direction: row !important; /* Side by side on Desktop */
        justify-content: flex-start !important;
        align-items: center !important; 
    }
    
    .room-modal-image {
        flex: 0 0 260px !important; 
        max-width: 260px !important;
        min-width: 260px !important;
        margin-right: 40px !important;
        overflow: hidden !important;
        height: 200px !important; 
        border-radius: 12px !important;
    }

    /* Modal Content Compactness */
    .room-features {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important; 
        margin-bottom: 12px !important;
    }
    .room-features li {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border: none !important;
    }
    
    .show-more-btn { display: none !important; }
}

/* ==================== 6. SERVICES SEARCH ==================== */
.services-search-container {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 0 15px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 5px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color-light, #4bd1e3);
    box-shadow: 0 8px 32px rgba(18, 159, 179, 0.15), 0 0 0 3px rgba(18, 159, 179, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-right: 15px;
}

#servicesSearch {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    font-family: 'Inter', sans-serif;
}

#servicesSearch::placeholder {
    color: #888;
}

.clear-search-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
    outline: none;
}

.clear-search-btn:hover {
    color: #e74c3c;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    list-style: none;
    padding: 0;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease;
}

.search-dropdown-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    color: var(--text-dark);
}

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

.search-dropdown-item:hover {
    background: #f8f9fa;
}

.search-dropdown-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.1rem;
}

.search-dropdown-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

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

/* ==================== 7. MURAL GALLERY (MASONRY GRID) ==================== */
.mural-container {
    column-count: 4;
    column-gap: 20px;
    padding: 20px 0;
    width: 100%;
}

.mural-hidden {
    display: none !important;
}

@keyframes muralFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mural-container img {
    width: 100%;
    display: block;
    margin-bottom: 20px;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, filter 0.4s ease;
    break-inside: avoid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    filter: brightness(0.95);
    background-color: rgba(255, 255, 255, 0.1);
    animation: muralFadeIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.mural-container img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
    z-index: 10;
    position: relative;
}

@media (max-width: 991px) {
    .mural-container {
        column-count: 3;
        column-gap: 15px;
    }
    .mural-container img {
        margin-bottom: 15px;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .mural-container {
        column-count: 2;
        column-gap: 10px;
    }
    .mural-container img {
        margin-bottom: 10px;
        border-radius: 8px;
    }
}

/* ==================== 8. FLOATING PROMO WIDGET ==================== */
.floating-promo-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    padding: 15px; /* Aspecto circular por defecto */
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow: 0 10px 30px rgba(18, 159, 179, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseGlow 2s infinite;
    overflow: hidden;
}

.floating-promo-widget:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(18, 159, 179, 0.6);
    padding: 10px 20px; /* Se expande */
    gap: 15px;
}

.floating-promo-icon {
    font-size: 1.5rem;
    animation: bounceIcon 2s infinite;
}

.floating-promo-text {
    display: flex;
    flex-direction: column;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-promo-widget:hover .floating-promo-text {
    max-width: 250px;
    opacity: 1;
}

.floating-promo-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.floating-promo-timer {
    font-size: 0.8rem;
    opacity: 0.9;
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(18, 159, 179, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(18, 159, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 159, 179, 0); }
}

@keyframes bounceIcon {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .floating-promo-widget {
        bottom: 20px;
        left: 20px;
        padding: 8px 15px;
        gap: 10px;
    }
    .floating-promo-icon {
        font-size: 1.2rem;
    }
    .floating-promo-title {
        font-size: 0.85rem;
    }
    .floating-promo-timer {
        font-size: 0.75rem;
    }
}

/* ==================== 9. COMPACT LAYOUT & PROMO HEIGHT FIX ==================== */
/* Forzar que las tarjetas de promociones no se estiren */
.promotions-grid {
    align-items: flex-start !important;
}

.promotion-card {
    height: max-content !important;
    align-self: flex-start !important;
}

/* Reducir espacios entre secciones para hacer la web más compacta */
section:not(#hero):not(.hero-section) {
    padding: 50px 0 !important;
}

.section-header {
    margin-bottom: 30px !important;
}

.promotions-section {
    padding-bottom: 80px !important;
}

.team-section {
    padding-bottom: 20px !important;
}

.facilities-section {
    padding-top: 20px !important;
}

/* ==================== 10. EQUIPO Y SALAS (AJUSTES) ==================== */
/* Reducir espacio exagerado entre encabezados/filtros y tarjetas */
.specialty-filters-container {
    margin-bottom: 20px !important;
}

.team-grid-container,
.facilities-grid-container {
    padding-top: 0 !important;
}

/* Centrar las cuadrículas y reducir espacio con los bordes */
.team-grid,
.facilities-grid {
    justify-content: center !important;
    gap: 30px !important;
    max-width: 1100px;
    margin: 0 auto;
}

/* Reducir el tamaño de las letras gigantes en Equipo */
.team-card h3 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin: 15px 0 5px 0 !important;
}

.team-card p {
    font-size: 0.9rem !important;
}

/* Reducir texto en Salas */
.facility-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 10px !important;
}

/* ==================== 11. REDISEÑO CONTACTO Y UBICACIÓN ==================== */
.contact-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card.contact-direct-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.info-card.contact-direct-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

@media (max-width: 800px) {
    .contact-top-grid,
    .contact-location-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==================== 12. MEJORAS DEL FOOTER ==================== */
.footer {
    padding: 70px 0 20px 0 !important;
    border-top: 4px solid var(--primary-color) !important;
    background: linear-gradient(to right, #0B0636, #1B1464) !important;
}

.footer-title {
    color: var(--white) !important;
    font-size: 1.15rem !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-top: 15px;
}

.contact-social {
    display: flex;
    gap: 15px;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(18, 159, 179, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    margin-top: 40px !important;
    padding-top: 20px !important;
}

/* ==================== 13. IMÁGENES DE PROMOCIONES COMPLETAS ==================== */
.promotion-card .service-media-container {
    aspect-ratio: auto !important;
    height: auto !important;
    background: transparent !important;
}

.promotion-card .service-media-container img {
    object-fit: contain !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    display: block;
}
