/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: hsl(145, 63%, 42%);       /* Grass green */
    --primary-light: hsl(145, 65%, 52%); /* Lighter grass green */
    --primary-dark: hsl(145, 75%, 25%);  /* Deep forest green */
    --accent: hsl(76, 95%, 48%);         /* Tennis ball volt/lime */
    --accent-hover: hsl(76, 95%, 40%);
    
    --bg-dark: #0b1511;                  /* Dark slate green base */
    --bg-darker: #050b08;                /* Even darker slate green */
    --bg-card: rgba(18, 38, 30, 0.7);    /* Glassmorphism green card base */
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-light: #f4f7f5;               /* Crisp light text */
    --text-muted: #a3b8ae;               /* Muted tealish-gray */
    
    --gold: #ffd700;
    --clay-red: #d35400;                 /* Clay court accent */
    --hard-blue: #2980b9;                /* Hard court accent */
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    
    /* Fonts */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --border-radius: 16px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Helper Utilities */
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    gap: 10px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-inline {
    display: inline-flex;
    width: auto;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(5, 11, 8, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(5, 11, 8, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.logo-text span {
    color: var(--primary);
}

@keyframes rotateLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Navigation Links */
.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.02);
    animation: zoomBackground 20s ease-out infinite alternate;
}

@keyframes zoomBackground {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    flex-grow: 1;
}

.hero-content {
    max-width: 680px;
    margin-top: 60px;
    margin-bottom: 60px;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero-quote {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    border-left: 3px solid var(--primary);
    padding-left: 16px;
}

.hero-quote i {
    font-size: 1.1rem;
    color: var(--primary-light);
    opacity: 0.85;
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Quick Info Cards */
.hero-quick-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: auto;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(18, 38, 30, 0.85);
    border-color: rgba(76, 175, 80, 0.3);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.info-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.info-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* ==========================================================================
   SECTIONS HEADER
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-subtitle-left {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* ==========================================================================
   COURTS SECTION
   ========================================================================== */
.courts-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.courts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.court-card {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.court-card:hover {
    transform: translateY(-8px);
    border-color: rgba(76, 175, 80, 0.25);
    box-shadow: var(--shadow-lg);
}

.court-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.court-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.court-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--clay-red);
    color: #ffffff;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.court-badge.accent {
    background-color: var(--hard-blue);
}

.court-details {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.court-name {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.court-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.court-features {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.court-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.court-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-amount {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.4rem;
    color: #ffffff;
}

.price-unit {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ==========================================================================
   ARRIENDOS / BOOKING BANNER SECTION
   ========================================================================== */
.booking-banner-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.booking-banner-section::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.booking-banner-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.booking-banner-text {
    animation: fadeInUp 1s ease-out;
}

.booking-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.booking-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.booking-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.booking-feature-item .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.booking-feature-item .feature-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
}

.booking-feature-item .feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.booking-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.booking-banner-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flyer-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    background-color: var(--bg-darker);
}

.flyer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(124, 252, 0, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0.5;
}

.flyer-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   TOURNAMENTS SECTION
   ========================================================================== */
.tournaments-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tournaments-timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

.tournaments-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--border-color) 0%, var(--primary) 20%, var(--primary) 80%, var(--border-color) 100%);
}

.tournament-card {
    position: relative;
    padding-left: 90px;
    margin-bottom: 48px;
}

.tournament-card:last-child {
    margin-bottom: 0;
}

.tournament-status {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.tournament-status.active {
    background: rgba(76, 175, 80, 0.15);
    color: var(--accent);
    border-color: rgba(76, 175, 80, 0.3);
    animation: glowText 2s infinite alternate;
}

.tournament-status.upcoming {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    border-color: rgba(255, 215, 0, 0.2);
}

@keyframes glowText {
    from { box-shadow: 0 0 4px rgba(124, 252, 0, 0.1); }
    to { box-shadow: 0 0 10px rgba(124, 252, 0, 0.3); }
}

.tournament-icon {
    position: absolute;
    top: 0;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-darker);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    transition: var(--transition);
}

.tournament-card.active .tournament-icon {
    border-color: var(--primary);
    color: var(--accent);
    background-color: var(--bg-dark);
}

.tournament-card:hover .tournament-icon {
    transform: scale(1.1);
}

.tournament-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
}

.tournament-card:hover .tournament-info {
    border-color: rgba(76, 175, 80, 0.2);
    background: rgba(18, 38, 30, 0.85);
}

.tournament-date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 6px;
}

.tournament-info h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.tournament-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.tournament-winner {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-inline-tournament {
    display: inline-flex;
    margin-top: 8px;
}

.upcoming-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   LOCATION & CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
}

.card-icon {
    font-size: 1.35rem;
    color: var(--accent);
    margin-top: 2px;
}

.card-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-content a {
    transition: var(--transition);
}

.card-content a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

.social-btn.whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

.social-btn.whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.social-btn.instagram:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Map sidebar */
.map-card-wrapper {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-header {
    margin-bottom: 16px;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.map-header h3 {
    font-size: 1.25rem;
}

.interactive-map {
    width: 100%;
    flex-grow: 1;
    min-height: 380px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    /* Custom style overlay to match the theme */
    filter: grayscale(0.2) invert(0.9) hue-rotate(90deg) brightness(0.9) contrast(1.1);
    z-index: 5;
}

/* General contact form at bottom of page */
.general-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.general-form-box .form-header {
    text-align: center;
    margin-bottom: 32px;
}

.general-form-box .form-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.general-form-box .form-header p {
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    flex-grow: 1;
    border-radius: 50px 0 0 50px;
    border-right: 0;
}

.newsletter-form button {
    background-color: var(--primary);
    border: none;
    color: #ffffff;
    width: 60px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(18, 38, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 6px solid var(--primary);
}

.toast.success {
    border-color: var(--primary);
    border-left-color: var(--primary);
}

.toast.error {
    border-color: #e74c3c;
    border-left-color: #e74c3c;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.toast.fade-out {
    animation: fadeOutLeft 0.3s forwards;
}

@keyframes fadeOutLeft {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-section {
    background-color: var(--bg-darker);
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.hidden {
    display: none;
}

.gallery-actions {
    text-align: center;
}

/* ==========================================================================
   CLUB DE BENEFICIOS SECTION
   ========================================================================== */
.benefits-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.07) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 1;
}

.benefits-card-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.benefits-flyer-card {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    cursor: none;
    transition: var(--transition);
}

.benefits-flyer-card img,
.benefits-flyer-card .benefits-lens {
    cursor: none;
}

.benefits-flyer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    border: 1px solid rgba(76, 175, 80, 0.2);
    pointer-events: none;
    transition: var(--transition);
}

.benefits-flyer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 175, 80, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(76, 175, 80, 0.2);
}

.benefits-flyer-card:hover::after {
    border-color: var(--accent);
}

.benefits-flyer-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.benefits-flyer-card:hover .benefits-flyer-img {
    transform: none;
}

/* Magnifier lens for Benefits Flyer */
.benefits-lens {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(124, 252, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    background-repeat: no-repeat;
    background-color: var(--bg-darker);
    z-index: 20;
}

.benefits-lens.active {
    opacity: 1;
    visibility: visible;
}

/* Google Map Container replacement */
.map-container-google {
    width: 100%;
    flex-grow: 1;
    min-height: 380px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.google-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 38, 30, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}

.map-link:hover .map-overlay {
    opacity: 1;
    background: rgba(18, 38, 30, 0.7);
}

.map-link:hover .google-map-img {
    transform: scale(1.03);
}

.map-overlay i {
    font-size: 2.2rem;
    color: var(--accent);
}

.map-overlay span {
    font-family: var(--font-headings);
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    background: var(--primary);
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.map-overlay span:hover {
    background-color: var(--primary-light);
    transform: scale(1.05);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .booking-banner-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-quote {
        font-size: 1.1rem;
        margin-bottom: 20px;
        padding-left: 12px;
        gap: 10px;
    }
    
    .hero-quote i {
        font-size: 0.95rem;
        margin-top: 3px;
    }
    
    .hero-quick-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .courts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation Menu Mobile */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-darker);
        border-top: 1px solid var(--border-color);
        padding: 40px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .tournaments-timeline::before {
        left: 20px;
    }
    
    .tournament-card {
        padding-left: 50px;
    }
    
    .tournament-icon {
        left: 0;
    }
    
    .tournament-status {
        position: relative;
        display: inline-block;
        margin-bottom: 12px;
        top: auto;
        right: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .general-form-box {
        padding: 24px;
    }
    
    .booking-banner-wrapper {
        text-align: center;
    }
    
    .booking-features-list {
        align-items: center;
    }
    
    .booking-feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .booking-cta-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GALLERY LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 11, 8, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 60px 20px 40px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 20px 0;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: max-width 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
    cursor: zoom-in;
    display: block;
    margin: auto;
}

.lightbox-content img.zoomed {
    max-height: none;
    max-width: 1100px;
    width: 100%;
    cursor: zoom-out;
}

.lightbox-close {
    position: fixed;
    top: 25px;
    right: 35px;
    color: var(--text-light);
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2010;
    background: rgba(0, 0, 0, 0.5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent);
}

.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 24px;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary-light);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsiveness for Lightbox */
@media (max-width: 768px) {
    .lightbox {
        padding: 60px 10px 30px;
    }
    .lightbox-content img {
        max-width: 95vw;
        max-height: 80vh;
    }
    .lightbox-content img.zoomed {
        max-width: 100%;
        max-height: none;
    }
    .lightbox-prev {
        left: 15px;
        padding: 12px 16px;
        font-size: 18px;
    }
    .lightbox-next {
        right: 15px;
        padding: 12px 16px;
        font-size: 18px;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

@media (hover: none) {
    .benefits-flyer-card,
    .benefits-flyer-card img {
        cursor: pointer;
    }
}
