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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #333;
    --text-secondary: #666;
    --header-bg: #b8242f;
    --accent-color: #ff9800;
    --border-color: #ddd;
}

body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --header-bg: #8b1a1f;
    --border-color: #444;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.6;
    color: var(--text-primary);
    background: url('fondonew1.jpeg') center top/cover no-repeat fixed;
    transition: color 0.3s;
}

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

/* Header & Navigation */
header {
    background-color: transparent;
    color: #b8242f;
    position: sticky;
    top: 65px;
    z-index: 100;
    border-radius: 0 0 14px 14px;
    box-shadow: none;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    padding: 0.25rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 8px;
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo img {
    height: 60px;
    max-width: 360px;
    display: block;
    object-fit: contain;
    filter: blur(0.5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    box-shadow:
        -4px 4px 8px rgba(0, 0, 0, 0.3),
        -8px 8px 16px rgba(0, 0, 0, 0.2),
        0 0 22px rgba(184, 36, 47, 0.45),
        0 0 36px rgba(184, 36, 47, 0.25);
}

.logo img:hover {
    transform: scale(1.08);
    box-shadow:
        -4px 4px 8px rgba(0, 0, 0, 0.3),
        -8px 8px 16px rgba(0, 0, 0, 0.2),
        0 0 34px rgba(184, 36, 47, 0.75),
        0 0 56px rgba(184, 36, 47, 0.5);
}

header.header-compact .navbar {
    padding: 0.4rem 0;
}

header.header-compact .logo img {
    height: 50px;
    max-width: 300px;
}

header.header-compact .logo img:hover {
    transform: scale(1.08);
}

.nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    min-width: 250px;
    background: transparent;
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(184, 36, 47, 0.1);
}

.nav-links li:last-child {
    border-bottom: none;
}

.nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
    color: #b8242f;
    text-decoration: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    color: #ff9800;
    background: rgba(184, 36, 47, 0.15);
}

body.dark-mode .nav-links {
    background: transparent;
}

body.dark-mode .nav-links a {
    background: rgba(0, 0, 0, 0.3);
    color: #b8242f;
}

body.dark-mode .nav-links a:hover {
    background: rgba(184, 36, 47, 0.3);
    color: #ff9800;
}

.nav-links .theme-toggle {
    margin: 8px auto;
    display: block;
    width: 100%;
    padding: 12px 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links .theme-toggle:hover {
    background: rgba(184, 36, 47, 0.15);
}

body.dark-mode .nav-links .theme-toggle {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-links .theme-toggle:hover {
    background: rgba(184, 36, 47, 0.3);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #b8242f;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header Accesos Button */
.header-accesos-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 36, 47, 0.15);
    padding: 8px 12px;
    border-radius: 28px;
    color: #b8242f;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: 15px;
    animation: boletosGlow 2s ease-in-out infinite;
}

@keyframes boletosGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(184, 36, 47, 0.3),
                    0 0 10px rgba(184, 36, 47, 0.2),
                    0 0 15px rgba(184, 36, 47, 0.1);
    }
    50% {
        box-shadow: 0 0 10px rgba(184, 36, 47, 0.6),
                    0 0 20px rgba(184, 36, 47, 0.4),
                    0 0 30px rgba(184, 36, 47, 0.2);
    }
}

.header-accesos-btn i {
    color: #b8242f;
    font-size: 16px;
}

.header-accesos-btn span {
    font-size: 12px;
}

.header-accesos-btn:hover {
    background: #b8242f;
    color: white;
}

.header-accesos-btn:hover i {
    color: white;
}

.header-accesos-btn:hover span {
    color: white;
}

.theme-toggle {
    background: none;
    border: none;
    color: #b8242f;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 0.5rem;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

/* Contact Bar - Barra fija en la parte superior */
.contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(184, 36, 47, 0.5), 0 4px 20px rgba(184, 36, 47, 0.3);
    padding: 12px 20px;
    border: none;
    border-bottom: 2px solid #b8242f;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: 100%;
    justify-content: space-between;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(184, 36, 47, 0.15);
    color: #b8242f;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #b8242f;
    color: white;
    transform: scale(1.1);
}

.contact-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 28px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.contact-action i {
    color: #b8242f;
    font-size: 16px;
}

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 28px;
    background: rgba(184, 36, 47, 0.15);
    color: #b8242f;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.contact-cta i {
    font-size: 16px;
}

.contact-cta span {
    font-size: 12px;
    color: #b8242f;
}

.contact-cta.email:hover {
    background: #b8242f;
    color: white;
}

.contact-cta.email:hover span {
    color: white;
}

.contact-cta.email:hover i {
    color: white;
}

.contact-action-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 28px;
    background: rgba(184, 36, 47, 0.15);
    color: #b8242f;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.contact-action-phone i {
    color: #b8242f;
    font-size: 16px;
}

.contact-action-phone span {
    color: #b8242f;
}

.contact-action-phone:hover {
    background: #b8242f;
    color: white;
}

.contact-action-phone:hover i {
    color: white;
}

.contact-action-phone:hover span {
    color: white;
}

.inscripcion-btn {
    background: url('logo mx pro series 2026 promotora.png') center/contain no-repeat;
    color: white;
    min-width: 160px;
    min-height: 36px;
    padding: 8px 16px;
}

.inscripcion-btn:hover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('logo mx pro series 2026 promotora.png') center/contain no-repeat;
    color: white;
}

.inscripcion-btn:hover i {
    color: white;
}

.inscripcion-btn:hover span {
    color: white;
}

.contact-close {
    background: transparent;
    border: none;
    color: #bbb;
    padding: 6px 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-close:hover {
    color: #b8242f;
}

.contact-close i {
    font-size: 16px;
}

/* Evitar que el contenido quede debajo de la barra */
body.has-top-contact {
    padding-top: 200px;
    background-position: center 200px;
}

/* Contact tab - aparece cuando la barra está cerrada */
.contact-tab {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1299;
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(184, 36, 47, 0.3);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 10px 20px;
    color: #b8242f;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-tab i {
    font-size: 16px;
    color: #b8242f;
}

.contact-tab:hover {
    background: rgba(184, 36, 47, 0.1);
    box-shadow: none;
}

.contact-tab.show {
    display: flex;
}

@media (max-width: 640px) {
    .contact-bar-inner {
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    
    .contact-action-phone span,
    .contact-cta span {
        display: none;
    }
    
    .contact-actions-right {
        gap: 6px;
    }
}

/* Hero Section */
.hero {
    background: transparent;
    background-attachment: fixed;
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 28px;
    background: rgba(184, 36, 47, 0.15);
    color: #b8242f;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #b8242f;
    color: white;
    transform: scale(1.05);
}

.cta-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 36, 47, 0.25);
}

.vip-card .cta-button {
    padding: 15px 30px;
    font-size: 16px;
    margin-top: 3rem;
}

.vip-form {
    display: none;
    flex-direction: column;
    max-width: 500px;
    margin: 3rem auto 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vip-form.show {
    display: flex;
    opacity: 1;
}

.form-header-text {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* About Section */
.about {
    padding: 60px 20px;
    background-color: var(--bg-secondary);
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--header-bg);
}

/* Flyer Section */
.flyer-section {
    padding: 120px 20px 60px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 20%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.55) 70%);
    position: relative;
    transition: background 0.8s ease;
}

.flyer-section.dark-background {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 1) 100%);
}

.flyer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    pointer-events: none;
}

.flyer-section .container {
    position: relative;
    z-index: 1;
}

.flyer-box {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background-color: transparent;
    box-shadow:
        0 0 20px rgba(184, 36, 47, 0.8),
        0 0 40px rgba(184, 36, 47, 0.6),
        0 0 60px rgba(184, 36, 47, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flyer-box:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 30px rgba(184, 36, 47, 1),
        0 0 50px rgba(184, 36, 47, 0.8),
        0 0 70px rgba(184, 36, 47, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.flyer-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border: 4px solid #b8242f;
    box-shadow:
        0 0 30px rgba(184, 36, 47, 1),
        0 0 60px rgba(184, 36, 47, 1),
        0 0 90px rgba(184, 36, 47, 0.8),
        0 0 120px rgba(184, 36, 47, 0.6),
        0 10px 50px rgba(184, 36, 47, 0.5);
    filter: drop-shadow(0 0 25px rgba(184, 36, 47, 1)) drop-shadow(0 0 45px rgba(184, 36, 47, 0.9)) drop-shadow(0 0 65px rgba(184, 36, 47, 0.7));
}

.flyer-action {
    text-align: center;
    margin-top: 2rem;
}

.flyer-action .cta-button {
    background: rgba(184, 36, 47, 0.4);
}

.flyer-action .cta-button:hover {
    background: rgba(184, 36, 47, 1);
}

.about p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

/* Services Section */
.services {
    padding: 60px 20px;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--header-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--header-bg);
}

.service-card h3 {
    font-weight: 700;
    color: var(--header-bg);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.motocross-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%), url('carrera1.jpg') center/cover no-repeat !important;
    color: white;
}

.motocross-card h3 {
    color: white;
    transition: color 0.3s ease;
}

.motocross-card:hover h3 {
    color: #ff4444;
}

.motocross-card p {
    color: rgba(255, 255, 255, 0.9);
}

.trackday-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%), url('trackday1.jpg') center/cover no-repeat !important;
    color: white;
}

.trackday-card h3 {
    color: white;
    transition: color 0.3s ease;
}

.trackday-card:hover h3 {
    color: #ff4444;
}

.trackday-card p {
    color: rgba(255, 255, 255, 0.9);
}

.terraza-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%), url('terrazanew1.jpeg') center/cover no-repeat !important;
    color: white;
}

.terraza-card h3 {
    color: white;
    transition: color 0.3s ease;
}

.terraza-card:hover h3 {
    color: #ff4444;
}

.terraza-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    background-color: var(--bg-secondary);
}

.contact h2 {
    font-weight: 700;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--header-bg);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}

.contact-form .question-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form .question-block label {
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form .question-help {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form select:hover {
    border-color: var(--header-bg);
}

.contact-form select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--header-bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(184, 36, 47, 0.15);
}

.contact-form select:focus {
    box-shadow: 0 0 0 3px rgba(184, 36, 47, 0.15);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 28px;
    background: rgba(184, 36, 47, 0.15);
    color: #b8242f;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #b8242f;
    color: white;
    transform: scale(1.05);
}

.submit-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 36, 47, 0.25);
}

.inscription-section .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 28px;
    background: rgba(184, 36, 47, 0.15);
    color: #b8242f;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.inscription-section .submit-btn:hover {
    background: #b8242f;
    color: white;
    transform: scale(1.05);
}

/* Inscription Section */
.inscription-section {
    padding: 60px 20px;
    background-image: url('fondonew1.jpeg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .inscription-section {
        background-image: url('fondomoviles.png');
        background-attachment: scroll;
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .inscription-section {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.inscription-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.inscription-section .container {
    position: relative;
    z-index: 2;
}

.inscription-section h1 {
    font-weight: 700;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.inscription-section .section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

@media (prefers-color-scheme: dark) {
    .inscription-section .section-description {
        color: #f0f0f0;
    }
}

body.dark-mode .inscription-section .section-description {
    color: #f0f0f0;
}

/* Personas Forms */
#personasContainer {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#personasContainer:empty {
    margin: 0;
    padding: 0;
    background-color: transparent;
}

#vehiculosContainer {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#vehiculosContainer:empty {
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.persona-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.vehiculo-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.persona-form h3 {
    color: var(--header-bg);
    margin-bottom: 1rem;
    font-weight: 600;
}

.vehiculo-form h3 {
    color: var(--header-bg);
    margin-bottom: 1rem;
    font-weight: 600;
}

.persona-form input,
.persona-form select {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.persona-form select:hover {
    border-color: var(--header-bg);
}

.persona-form select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.vehiculo-form input,
.vehiculo-form select {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.vehiculo-form select:hover {
    border-color: var(--header-bg);
}

.vehiculo-form select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.persona-form input:focus,
.persona-form select:focus {
    outline: none;
    border-color: var(--header-bg);
}

.persona-form input:focus {
    box-shadow: 0 0 0 3px rgba(184, 36, 47, 0.15);
}

.persona-form select:focus {
    box-shadow: 0 0 0 3px rgba(184, 36, 47, 0.15);
}

.vehiculo-form input:focus,
.vehiculo-form select:focus {
    outline: none;
    border-color: var(--header-bg);
}

.vehiculo-form input:focus {
    box-shadow: 0 0 0 3px rgba(184, 36, 47, 0.15);
}

.vehiculo-form select:focus {
    box-shadow: 0 0 0 3px rgba(184, 36, 47, 0.15);
}

.alert-message {
    padding: 1.5rem;
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
    font-weight: 600;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .alert-message {
    background-color: #664d03;
    border-color: #997404;
    color: #ffecb5;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.85);
    border-top: 2px solid #b8242f;
    box-shadow: 0 -6px 14px rgba(184, 36, 47, 0.45), 0 -2px 6px rgba(184, 36, 47, 0.35);
    color: white;
    text-align: center;
    padding: 0.85rem 0.6rem;
    margin-top: 0.6rem;
}

.social-media {
    margin-bottom: 0.6rem;
}

.social-media h3 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 14px rgba(184, 36, 47, 0.75), 0 0 26px rgba(184, 36, 47, 0.45);
    transition: text-shadow 0.3s ease;
}

.social-media h3:hover {
    text-shadow: 0 0 22px rgba(184, 36, 47, 0.95), 0 0 38px rgba(184, 36, 47, 0.75), 0 0 56px rgba(184, 36, 47, 0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size: 1rem;
    box-shadow: 0 0 12px rgba(184, 36, 47, 0.65), 0 0 22px rgba(184, 36, 47, 0.4);
}

.social-links a:hover {
    background-color: #ff9800;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(184, 36, 47, 0.95), 0 0 34px rgba(184, 36, 47, 0.75), 0 0 52px rgba(184, 36, 47, 0.55);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about h2,
    .services h2,
    .contact h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* VIP Section */
.vip-section {
    padding: 60px 20px;
    background-image: url('fondonew1.jpeg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .vip-section {
        background-image: url('fondomoviles.png');
        background-attachment: scroll;
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .vip-section {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.vip-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.vip-section .container {
    position: relative;
    z-index: 2;
}

.vip-section h1 {
    font-weight: 700;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.vip-section .section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.vip-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto 3rem;
}

.vip-cards-container {
    position: relative;
    width: 600px;
    height: 600px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(184, 36, 47, 0.3), 0 0 25px rgba(184, 36, 47, 0.2);
    transition: box-shadow 0.3s ease;
}

.vip-carousel:hover .vip-cards-container {
    box-shadow: 0 0 30px rgba(184, 36, 47, 0.8), 0 0 50px rgba(184, 36, 47, 0.6), 0 0 70px rgba(184, 36, 47, 0.4), inset 0 0 20px rgba(184, 36, 47, 0.2);
}

.vip-card {
    max-width: 600px;
    width: 100%;
    height: 100%;
    padding: 10rem 2rem;
    border-radius: 16px;
    border: 2px solid #b8242f;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%), url('terrazanew1.jpeg') center/cover no-repeat;
    color: white;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vip-card.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.vip-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%), url('terrazanew2.jpeg') center/cover no-repeat;
}

.vip-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%), url('terrazanew3.jpeg') center/cover no-repeat;
}

.vip-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%), url('terrazanew4.jpeg') center/cover no-repeat;
}

.vip-card:nth-child(5) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%), url('terrazanew5.jpeg') center/cover no-repeat;
}

.vip-card:nth-child(6) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%), url('terrazanew6.jpeg') center/cover no-repeat;
}

.vip-card:nth-child(7) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%), url('terrazanew7.jpeg') center/cover no-repeat;
}

.vip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 50px rgba(184, 36, 47, 0.8);
}

.vip-card h3 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.vip-card .price-tag {
    color: #b8242f;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0.5rem 0 1rem 0;
}

.vip-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.carousel-btn {
    background: rgba(184, 36, 47, 0.7);
    border: 2px solid #b8242f;
    color: white;
    font-size: 1.5rem;
    padding: 1rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}

.carousel-btn:hover {
    background: rgba(184, 36, 47, 1);
    box-shadow: 0 0 20px rgba(184, 36, 47, 0.8);
    transform: scale(1.1);
}

@media (prefers-color-scheme: dark) {
    .vip-section .section-description {
        color: #f0f0f0;
    }
}

body.dark-mode .vip-section .section-description {
    color: #f0f0f0;
}

/* Boletos Cards Grid */
.boletos-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.boletos-cards-grid .vip-card {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    max-width: 100%;
    height: auto;
    min-height: 500px;
    padding: 3rem 2rem;
}

.boletos-cards-grid .vip-card.vip-card-compact {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
    min-height: 320px;
    padding: 2rem 1.5rem;
}

.boletos-cards-grid .vip-card.vip-card-reduced-height {
    min-height: 200px;
}

.hotel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.boletos-cards-grid .vip-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%), url('terrazanew1.jpeg') center/cover no-repeat;
}

.boletos-cards-grid .vip-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%), url('terraza.jpg') center/cover no-repeat;
}

.boletos-cards-grid .vip-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 550px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%), url('terrazanew1.jpeg') center/cover no-repeat;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-list i {
    color: #b8242f;
    font-size: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First
   ========================================*/

/* Mobile devices (phones, 320px - 480px) */
@media (max-width: 480px) {
    body {
        background: url('fondomoviles.png') center top/100% auto no-repeat scroll;
    }

    body.has-top-contact {
        background-position: center 200px;
        background-image: url('fondomoviles.png');
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Contact Bar - Más pequeño en móviles */
    .contact-bar-inner {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .contact-action-phone,
    .contact-cta {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .contact-action-phone i,
    .contact-cta i {
        font-size: 14px;
    }

    .inscripcion-btn {
        min-width: 90px;
        min-height: 24px;
        padding: 3px 6px;
    }
    
    /* Mobile Menu adjustments */
    header {
        top: 48px;
    }
    
    .nav-links {
        min-width: 200px;
        padding: 8px 0;
    }
    
    .nav-links li a {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .theme-toggle {
        margin: 5px auto;
        font-size: 1.2rem;
    }
    
    /* Header */
    .logo img {
        max-width: 70px;
        height: auto;
    }
    
    nav ul li a {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    /* Hero Section */
    .hero {
        background-attachment: scroll;
        padding: 60px 15px;
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    /* Flyer Section */
    .flyer-section {
        background-color: #000;
    }

    .flyer {
        padding: 40px 15px;
    }
    
    .flyer-content h2 {
        font-size: 1.6rem;
    }
    
    .flyer-content p {
        font-size: 0.9rem;
    }
    
    /* Services */
    .services {
        padding: 40px 15px;
        background-color: #000;
    }
    
    .services h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Contact Form */
    .contact {
        padding: 40px 15px;
    }
    
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 0.95rem;
        padding: 10px 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Footer */
    footer {
        padding: 30px 15px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* VIP Carousel */
    .vip-cards-container {
        width: 100%;
        height: 400px;
        max-width: 350px;
    }
    
    .vip-card h2 {
        font-size: 1.5rem;
    }
    
    .vip-card p {
        font-size: 0.9rem;
    }
    
    /* Boletos Cards - Stack on mobile */
    .boletos-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 1rem;
    }
    
    .boletos-cards-grid .vip-card {
        min-height: 400px;
        padding: 2rem 1.5rem;
    }
    
    /* Inscription Section */
    .inscription-section {
        padding: 40px 15px;
    }
    
    .inscription-section h1 {
        font-size: 1.8rem;
    }
    
    .inscription-form {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
    
    /* Form max-width overrides for mobile */
    .contact-form {
        max-width: 100%;
    }
    
    .vip-form {
        max-width: 100%;
    }
    
    .flyer-box {
        max-width: 100%;
    }
    
    #personasContainer {
        max-width: 100%;
        padding: 1.5rem 0.5rem;
    }
    
    #vehiculosContainer {
        max-width: 100%;
        padding: 1.5rem 0.5rem;
    }
    
    .inscription-form {
        max-width: 100%;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }

    body.has-top-contact {
        background-position: center 200px;
    }
    
    /* Mobile Menu adjustments for tablets */
    header {
        top: 55px;
    }
    
    .nav-links {
        min-width: 220px;
        padding: 10px 0;
    }
    
    .nav-links li a {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Contact Bar */
    .contact-bar-inner {
        padding: 10px 15px;
    }
    
    .social-icon {
        width: 34px;
        height: 34px;
    }
    
    /* Hero Section */
    .hero {
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .vip-cards-container {
        width: 500px;
        height: 500px;
    }
    
    /* Boletos Cards - Tablets */
    .boletos-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 2.5rem auto;
    }
    
    .boletos-cards-grid .vip-card {
        min-height: 450px;
    }
    
    nav ul li a {
        font-size: 0.95rem;
    }
}

/* Landscape phones (max-height: 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        background-attachment: scroll;
        min-height: auto;
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* iOS safe areas */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .cta-button,
    .submit-btn,
    nav ul li a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Purchase Form Styles */
.purchase-form-container {
    max-width: 600px;
    margin: 3rem auto;
    animation: slideIn 0.4s ease-out;
}

.purchase-form {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #b8242f;
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.purchase-form h2 {
    color: #b8242f;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 0.9rem;
    border: 1px solid #b8242f;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group select:hover {
    border-color: #ff4444;
    background: rgba(255, 255, 255, 0.12);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2);
    cursor: pointer;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff4444;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(184, 36, 47, 0.3);
}

.form-group textarea:focus {
    outline: none;
    border-color: #ff4444;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(184, 36, 47, 0.3);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.total-display {
    padding: 0.9rem;
    background: rgba(184, 36, 47, 0.2);
    border: 1px solid #b8242f;
    border-radius: 6px;
    color: #b8242f;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}

.submit-btn,
.cancel-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn {
    background: linear-gradient(135deg, #b8242f 0%, #8a1a22 100%);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(184, 36, 47, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive form */
@media (max-width: 768px) {
    .purchase-form-container {
        margin: 2rem 1rem;
    }

    .purchase-form {
        padding: 1.5rem;
    }
    
    .form-actions {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}
