/* Facility home pages. One stylesheet for all six facilities; header and footer stay on the main theme. */

.tesis-home { --tesis-dark: #06141c; }

/* Hero */
.tesis-hero { position: relative; overflow: hidden; background: var(--tesis-dark); }
.tesis-hero-swiper { width: 100%; }
.tesis-hero .swiper-slide { position: relative; height: min(720px, calc(100vh - 110px)); min-height: 560px; overflow: hidden; }
.tesis-hero-image { position: absolute; inset: 0; background: var(--tesis-dark); overflow: hidden; }
.tesis-hero-image::before { content: ""; position: absolute; inset: -24px; background: var(--tesis-hero-image) center / cover no-repeat; filter: blur(18px) brightness(.55); }
.tesis-hero-image img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.tesis-decor-court .tesis-regular-slide:first-child .tesis-hero-image img { object-fit: contain; }
.tesis-hero-overlay { position: absolute; inset: 0; pointer-events: none; background: rgba(0, 0, 0, .42); }
.tesis-hero-copy { position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(880px, calc(100% - 48px)); color: #fff; text-align: center; }
.tesis-hero-title { color: #fff !important; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; margin: 0 0 18px; text-transform: uppercase; }
.tesis-hero-title span { color: var(--Neon); }
.tesis-hero-text { color: rgba(255, 255, 255, .88) !important; font-size: 17px; line-height: 1.6; margin: 0 0 26px; }
.tesis-hero-badge { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: var(--Neon); color: #06141c; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.tesis-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tesis-hero-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--Neon); color: #06141c !important; font-weight: 700; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease; }
.tesis-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.tesis-hero-btn-call { background: transparent; color: #fff !important; border: 1px solid rgba(255, 255, 255, .7); }
.tesis-hero-pagination { position: absolute; z-index: 5; left: 0; right: 0; bottom: 24px !important; }
.tesis-hero-pagination .swiper-pagination-bullet { background: #fff; opacity: .55; }
.tesis-hero-pagination .swiper-pagination-bullet-active { background: var(--Neon); opacity: 1; }
.tesis-hero-single .tesis-hero-pagination { display: none; }

/* Section labels hold longer text here than on the main page: one line, sized to the text, same layout as the main page. */
@media (min-width: 1200px) {
    .tesis-home .box-gradient-2 { width: auto !important; max-width: 100%; white-space: nowrap; }
    .tesis-home .about-wrap .heading > :first-child,
    .tesis-home .section-choose-us .heading-section .row > :first-child { width: auto !important; min-width: 28%; flex: 0 0 auto !important; }
    .tesis-home .about-wrap .heading > :last-child,
    .tesis-home .section-choose-us .heading-section .row > :last-child { width: auto !important; flex: 1 1 0 !important; max-width: none !important; min-width: 0; }
}
@media (max-width: 1199px) {
    .tesis-home .section-choose-us .heading-section .box-gradient-2 {
        max-width: 100%;
        max-height: none !important;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }
    .tesis-home .about-wrap .heading { flex-wrap: wrap; }
    .tesis-home .about-wrap .heading > :first-child,
    .tesis-home .about-wrap .heading > :last-child,
    .tesis-home .section-choose-us .heading-section .row > :first-child,
    .tesis-home .section-choose-us .heading-section .row > :last-child,
    .tesis-home .section-our-team .heading-section .row > [class*="col-"],
    .tesis-home .section-pricing-package .heading-section .row > [class*="col-"],
    .tesis-home .section-client-testimonials .heading-section .row > [class*="col-"] { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
}

.tesis-section-funfact + .tesis-section-booking { margin-top: 60px; }

/* About: the quote image follows the card instead of stretching it. */
@media (min-width: 992px) {
    .tesis-home .theme1-about-fill .content-right { justify-content: center; }
    .tesis-home .about-inner .about-image { align-self: stretch; }
    .tesis-home .about-image .image:not(.tesis-about-collage) { position: relative; height: 100%; min-height: 520px !important; }
    .tesis-home .about-image .image:not(.tesis-about-collage) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .tesis-home .theme1-about-fill .about-quote-card { flex: 0 0 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tesis-home .theme1-about-fill .about-quote-media { position: relative; min-height: 300px; }
    .tesis-home .theme1-about-fill .about-quote-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* Why us: as many rows as there are cards, photo and cards end on the same line. */
.tesis-choose-us .choose-us-grid { grid-template-rows: none; grid-auto-rows: 1fr; height: auto; }
.tesis-choose-us .features-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 992px) {
    .tesis-choose-us .image-choose { min-height: 0 !important; position: relative !important; }
    .tesis-choose-us .image-choose img { position: absolute; inset: 0; }
}

/* Mobile video slide */
.tesis-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tesis-video-sound { position: absolute; z-index: 6; top: 18px; right: 18px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
.tesis-video-sound .sound-on { display: none; }
.tesis-video-sound[aria-pressed="true"] .sound-on { display: inline; }
.tesis-video-sound[aria-pressed="true"] .sound-off { display: none; }
.tesis-video-hint { position: absolute; z-index: 6; left: 18px; bottom: 108px; color: #fff; font-weight: 600; }
.tesis-video-call { position: absolute; z-index: 6; left: 18px; right: 18px; bottom: 48px; }

/* Facility decoration */
.tesis-court-lines, .tesis-tennis-balls, .tesis-pool-bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tesis-court-lines span { position: absolute; background: var(--Neon); opacity: .22; box-shadow: 0 0 10px var(--Neon); }
.tesis-court-lines span:nth-child(1) { left: 5%; right: 5%; bottom: 15%; height: 1px; }
.tesis-court-lines span:nth-child(2) { left: 15%; right: 15%; top: 45%; height: 1px; }
.tesis-court-lines span:nth-child(3) { left: 50%; top: 45%; bottom: 15%; width: 1px; }
.tesis-tennis-balls span { position: absolute; width: 25px; height: 25px; border-radius: 50%; opacity: .72; background: radial-gradient(circle at 30% 30%, #f0ff9b 0%, #d8ff4f 62%, #a9cc2e 100%); animation: tesisFloat 11s ease-in-out infinite; }
.tesis-tennis-balls span:nth-child(1) { top: 20%; left: 10%; }
.tesis-tennis-balls span:nth-child(2) { top: 65%; left: 25%; animation-duration: 8s; }
.tesis-tennis-balls span:nth-child(3) { top: 15%; right: 20%; animation-duration: 15s; }
.tesis-tennis-balls span:nth-child(4) { top: 80%; right: 15%; animation-duration: 9s; }
.tesis-pool-bubbles span { position: absolute; bottom: -40px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); animation: tesisRise 12s linear infinite; }
.tesis-pool-bubbles span:nth-child(1) { left: 6%; }
.tesis-pool-bubbles span:nth-child(2) { left: 16%; width: 14px; height: 14px; animation-delay: 2s; }
.tesis-pool-bubbles span:nth-child(3) { left: 27%; width: 34px; height: 34px; animation-delay: 5s; }
.tesis-pool-bubbles span:nth-child(4) { left: 38%; width: 12px; height: 12px; animation-delay: 1s; }
.tesis-pool-bubbles span:nth-child(5) { left: 49%; animation-delay: 7s; }
.tesis-pool-bubbles span:nth-child(6) { left: 58%; width: 16px; height: 16px; animation-delay: 3s; }
.tesis-pool-bubbles span:nth-child(7) { left: 67%; width: 30px; height: 30px; animation-delay: 9s; }
.tesis-pool-bubbles span:nth-child(8) { left: 76%; width: 12px; height: 12px; animation-delay: 4s; }
.tesis-pool-bubbles span:nth-child(9) { left: 85%; animation-delay: 6s; }
.tesis-pool-bubbles span:nth-child(10) { left: 94%; width: 16px; height: 16px; animation-delay: 8s; }
.tesis-pool-wave { position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px; height: 90px; pointer-events: none; }
.tesis-pool-wave svg { width: 100%; height: 100%; display: block; }
.tesis-pool-wave path { fill: #fff; }
.pool-wave { line-height: 0; }
.pool-wave svg { width: 100%; height: 56px; display: block; }
.pool-wave path { fill: #ecfeff; }
.pool-wave.wave-flip { transform: rotate(180deg); }
.tesis-decor-pool .tesis-section:nth-of-type(even) { background: #ecfeff; }
@keyframes tesisFloat { 50% { transform: translate(20px, -40px) rotate(180deg); } }
@keyframes tesisRise { to { transform: translateY(-780px); opacity: 0; } }

/* Sections */
.tesis-about-collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; height: auto !important; }
.tesis-about-collage img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; display: block; }
.tesis-choose-us .image-choose { position: relative !important; inset: auto !important; width: 100% !important; height: 100% !important; min-height: 480px; overflow: hidden !important; border-radius: 24px !important; box-shadow: 0 15px 35px rgba(0, 0, 0, .08) !important; }
.tesis-choose-us .image-choose img { display: block; width: 100% !important; height: 100% !important; object-fit: cover !important; }
.tesis-choose-us .features-item { position: relative; overflow: hidden; }
.tesis-choose-us .features-item .icon { color: var(--Neon); }
.tesis-choose-us .features-item .image img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 991px) {
    .tesis-choose-us .image-choose { min-height: 350px !important; margin-bottom: 30px !important; }
}
@media (max-width: 767px) {
    .tesis-hero .swiper-slide { height: 78vh; min-height: 520px; }
    .tesis-hero-image img { object-fit: cover; }
    .tesis-hero-text { font-size: 15px; }
    .tesis-hero-btn { min-height: 44px; padding: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .tesis-tennis-balls span, .tesis-pool-bubbles span { animation: none; }
    .tesis-pool-bubbles { display: none; }
}

/* Padel's first slide fills the hero on phones and tablets; the blurred frame is only for wide screens. */
@media (max-width: 1199.98px) {
    .tesis-decor-court .tesis-regular-slide:first-child .tesis-hero-image img { object-fit: cover; }
}

