:root {
    --primary: #1a237e;
    --secondary: #ff6f00;
    --accent: #00c853;
    --light: #f5f5f5;
    --dark: #212121;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    padding-top: 56px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* === NAVBAR PREMIUM === */
.navbar {
    background: linear-gradient(to bottom,
            rgba(18, 18, 18, 0.95),
            rgba(40, 30, 10, 0.9),
            rgba(40, 30, 10, 0.3));
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    transition: background 0.4s ease;
}

.navbar.scrolled {
    background: rgba(18, 18, 18, 0.95);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #d4af37 !important;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 600;
    color: #f0e6c8 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #d4af37 !important;
}

.hero-section {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.2) 30%,
            rgba(40, 30, 0, 0.8) 100%),
        url('/images/hero-fondo.avif');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-section * {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0d1b6b;
    border-color: #0d1b6b;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.event-space-card {
    margin-bottom: 30px;
}

.court-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.price-tag {
    font-weight: 600;
    color: var(--secondary);
}

.membership-card {
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.membership-card:hover {
    border-color: var(--secondary);
}

.premium-card {
    background: linear-gradient(135deg, #f5f7ff 0%, #e3e6ff 100%);
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.social-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: white;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary);
}

.package-card {
    background: #f8f9ff;
    border-left: 4px solid var(--secondary);
}

.zone-card img {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .display-4 {
        font-size: 2.2rem;
    }
}

#newyear .ratio {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

#newyear video {
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Calendario */
.calendar-month {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
}

.calendar-header {
    background: var(--primary);
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    color: #666;
    padding: 4px 0;
    background: #f8f9fa;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    padding: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.calendar-day.available {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.calendar-day.available:hover {
    background: #c8e6c9;
    transform: scale(1.05);
}

.calendar-day.partially {
    background: #ffe0b2;
    color: #e65100;
    font-weight: 600;
}

.calendar-day.partially:hover {
    background: #ffcc80;
    transform: scale(1.05);
}

.calendar-day.reserved {
    background: #ffcdd2;
    color: #c62828;
    text-decoration: line-through;
    cursor: not-allowed;
}

.calendar-day.maintenance {
    background: #f5f5f5;
    color: #9e9e9e;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid var(--secondary);
}

.calendar-day.selected {
    background: var(--secondary);
    color: white;
    font-weight: bold;
}

.calendar-day.past {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .calendar-day {
        font-size: 0.65rem;
    }
}

/* Leyenda del calendario */
.legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.available {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.legend-color.partially {
    background: #ffe0b2;
    border: 1px solid #ffb74d;
}

.legend-color.reserved {
    background: #ffcdd2;
    border: 1px solid #ef9a9a;
}

.legend-color.maintenance {
    background: #f5f5f5;
    border: 1px solid #bdbdbd;
}

/* ✅ Botón flotante de WhatsApp (inferior izquierda) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-decoration: none !important;
    /* ✅ Elimina la barra inferior */
    outline: none !important;
    /* ✅ Opcional: elimina el foco visual al clickear */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe5b;
    text-decoration: none !important;
    /* ✅ Asegura que no aparezca al hover */
}