:root {
    --primary-lime: #C0FF00;
    --primary-orange: #E85D04;
    /* Polvo de ladrillo */
    --primary-purple: #9040C0;
    --dark-bg: #1A1C20;
    --darker-bg: #121417;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #FFFFFF;
    --text-muted: #B0B3B8;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

::selection {
    background: var(--primary-lime);
    color: var(--dark-bg);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 28, 32, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    /* Invert to make black text white, hue-rotate to keep the ball green, and adjust brightness */
    filter: invert(1) hue-rotate(180deg) brightness(1.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-orange);
}

/* Hero Section */
#hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(26, 28, 32, 1));
}

.hero-content {
    position: relative;
    z-index: 10;
}

#hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(45deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

/* Sections */
.section-padding {
    padding: 120px 0;
}

#reservas {
    position: relative;
    background: url('../img/reservas-bg.jpg') center/cover no-repeat fixed;
}

#reservas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 28, 32, 0.85);
    z-index: 1;
}

#reservas .container {
    position: relative;
    z-index: 2;
}

.bg-darker {
    background-color: var(--darker-bg);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5rem;
    position: relative;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.9;
    width: 100%;
    color: var(--primary-lime);
}

.section-title span.outlined {
    -webkit-text-stroke: 1px var(--primary-lime);
    color: transparent;
    font-size: 3rem;
    letter-spacing: 4px;
    opacity: 0.8;
}

.section-title span.solid {
    color: var(--primary-lime);
    font-size: 5rem;
    letter-spacing: -2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    color: #FFF;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(232, 93, 4, 0.4);
}

.btn-lime {
    background-color: var(--primary-lime);
    color: var(--dark-bg);
}

.btn-lime:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(192, 255, 0, 0.3);
}

/* Reservation Cards */
.reservation-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.res-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.res-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.res-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.res-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.res-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Schedule Layout */
#horarios {
    position: relative;
    background: url('../img/clases-bg.jpg') center/cover no-repeat fixed;
}

#horarios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 20, 23, 0.9), rgba(26, 28, 32, 0.95));
    z-index: 1;
}

#horarios .container {
    position: relative;
    z-index: 2;
}

.schedules-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.schedule-block {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-orange);
}

.schedule-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.schedule-header h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 100px repeat(6, 1fr);
    padding: 2rem;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.day-col {
    min-width: 150px;
}

.day-head {
    text-align: center;
    font-weight: 800;
    padding: 0;
    height: 60px;
    /* Fixed height for header */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #1A1C20;
}

.tenis-block .day-head {
    background: var(--primary-lime);
}

.time-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}

.time-slot {
    height: 80px;
    /* Fixed height for data rows */
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    background: var(--primary-lime);
    /* Matching the image's sidebar color */
    color: #1A1C20;
    border-radius: 4px;
    text-align: center;
}

.slot {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 80px;
    /* Fixed height matching time-slot */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot.empty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.slot strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

.slot:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Tenis Colors */
.tenis-block .slot.white {
    background: #FFFFFF;
    color: #1A1C20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Saturday Styles */
.saturday-schedule {
    margin-top: 4rem;
    padding: 0 2rem 4rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.saturday-schedule .day-head {
    margin-bottom: 1.5rem;
}

.sat-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.sat-row .time-slot {
    margin-bottom: 0;
}

.sat-row .slot {
    margin-bottom: 0;
    min-height: auto;
    padding: 1rem;
}

.tenis-block .slot.lime {
    background: var(--primary-lime);
    color: #1A1C20;
    box-shadow: 0 4px 15px rgba(192, 255, 0, 0.2);
}

.tenis-block .slot.orange {
    background: var(--primary-orange);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.2);
}

/* Deportes Colors */
.deportes-block .slot.purple {
    background: var(--primary-purple);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(144, 64, 192, 0.2);
}

.deportes-block .slot.purple-light {
    background: rgba(144, 64, 192, 0.15);
    border: 1px solid rgba(144, 64, 192, 0.4);
    color: #FFF;
}

/* Contact / Map */
#contacto {
    position: relative;
    background: url('../img/contacto-bg.jpg') center/cover no-repeat fixed;
    padding: 120px 0;
}

#contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 28, 32, 0.85);
    z-index: 1;
}

#contacto .container {
    position: relative;
    z-index: 2;
}

.map-container {
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.grid-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.footer-insta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem !important;
}

.insta-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.insta-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
    filter: brightness(1.1);
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    /* Consistent styling with header logo */
    filter: invert(1) hue-rotate(180deg) brightness(1.5);
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-lime);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icons a.insta-link:hover {
    color: #cc2366;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
    .section-title span.outlined {
        font-size: 2.5rem;
    }

    .section-title span.solid {
        font-size: 4rem;
    }

    .grid-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    nav {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 3rem;
    }

    #hero {
        padding-top: 150px;
        align-items: flex-start;
        /* Move content towards top but pushed by padding */
    }

    .section-title span.outlined {
        font-size: 1.8rem;
    }

    .section-title span.solid {
        font-size: 3rem;
    }

    .schedule-grid {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        padding: 1rem;
    }

    .time-col {
        display: none;
    }

    .day-col {
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        padding: 1.5rem 1rem;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
    }

    .day-head {
        background: var(--primary-lime) !important;
        margin-bottom: 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    .slot.empty {
        display: none;
    }

    .slot {
        min-height: auto;
        padding: 1.25rem !important;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        background: #FFFFFF !important;
        border-left: 5px solid var(--primary-lime);
    }

    .slot::before {
        content: attr(data-time);
        display: block;
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--primary-orange);
        margin-bottom: 0.4rem;
        text-transform: uppercase;
    }

    .slot strong {
        font-size: 1rem;
        margin-top: 0;
    }

    .reservation-grid {
        justify-content: center;
    }

    .res-card {
        padding: 2.5rem 1.5rem;
        text-align: center;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
        /* Prevent being too wide on tablets/large phones */
    }
}