/* ==========================================================================
   LA PISTA INDOOR KARTING - MAIN STYLESHEET (LIGHT THEME)
   Design Theme: Modern Clean Light Racing Theme
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Prompt:ital,wght@0,500;0,700;0,800;0,900;1,700;1,800;1,900&display=swap');

:root {
    /* Color Tokens - Modern Light Theme */
    --color-bg-main: #F8FAFC;
    --color-bg-card: #FFFFFF;
    --color-bg-card-hover: #FFFFFF;
    --color-bg-glass: #FFFFFF;
    --color-border-glass: rgba(15, 23, 42, 0.1);
    
    /* Neon Racing Accents */
    --color-primary: #FF3B00;
    --color-primary-glow: rgba(255, 59, 0, 0.25);
    --color-primary-hover: #E03400;
    --color-secondary: #059669;
    --color-secondary-glow: rgba(5, 150, 105, 0.2);
    --color-accent-amber: #D97706;
    
    /* Neutral Shades - High Contrast Light Theme */
    --color-text-main: #0F172A;
    --color-text-muted: #475569;
    --color-text-dim: #64748B;
    --color-dark-surface: #F1F5F9;
    
    /* Typography */
    --font-heading: 'Prompt', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Shadows & Effects */
    --shadow-neon: 0 4px 20px rgba(255, 59, 0, 0.25);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
    --backdrop-blur: blur(16px);
    
    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Global Elements */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

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

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 59, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(5, 150, 105, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-dark-surface {
    background-color: #F1F5F9 !important;
}

.page-header-spacing {
    padding-top: 8.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-weight: 900;
    font-style: italic;
    line-height: 1.15;
    color: #0F172A;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

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

a:hover {
    color: var(--color-primary-hover);
}

.text-highlight {
    color: var(--color-primary);
    font-style: italic;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.subtext-muted {
    color: #475569 !important;
}

.subtext-dim {
    color: #64748B !important;
}

/* Header & Navigation Bar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 0.85rem 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.site-header.scrolled {
    padding: 0.65rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1E293B;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

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

.nav-mobile-social {
    display: none;
}

@media (max-width: 992px) {
    .navbar-nav {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        width: 100%;
        background: #FFFFFF;
        border-bottom: 3px solid var(--color-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        display: none;
        z-index: 99999;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }

    .navbar-nav.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-mobile-social {
        display: block;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    }
    
    .nav-mobile-social .social-links {
        display: flex !important;
        gap: 1rem !important;
        justify-content: center !important;
    }
}

/* FOOTER STYLES */
.site-footer {
    background: #0F172A;
    color: #FFFFFF;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4.5rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.2fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.footer-about p {
    color: #94A3B8;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-column-title {
    font-size: 1.05rem;
    font-style: italic;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    color: #94A3B8;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li a {
    color: #CBD5E1;
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition-bounce);
}

.social-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--color-primary-glow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 0.88rem;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* COMPONENTS & UTILITIES (LIGHT THEME HIGH CONTRAST) */
.glass-panel {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    color: #0F172A !important;
    box-sizing: border-box !important;
}

.card-padding {
    padding: 2.25rem 1.75rem !important;
}

.glass-panel h1,
.glass-panel h2,
.glass-panel h3,
.glass-panel h4,
.glass-panel h5,
.glass-panel h6,
.event-step-card h1,
.event-step-card h2,
.event-step-card h3,
.event-step-card h4,
.event-step-title {
    color: #0F172A !important;
}

.glass-panel p,
.glass-panel span,
.glass-panel li,
.glass-panel label,
.event-step-card p,
.event-step-desc {
    color: #334155 !important;
}

.section-title-wrapper {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: rgba(255, 59, 0, 0.1) !important;
    border: 1.5px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 59, 0, 0.15);
}

.section-badge i {
    color: var(--color-primary) !important;
}

.section-title {
    margin-bottom: 0.75rem;
    font-weight: 900;
    font-style: italic;
    color: #0F172A;
}

/* TRANSPARENT RACING CHECKERED PATTERN UTILITIES (LIGHT THEME) */
.bg-checkered-pattern,
.section-padding {
    position: relative;
    overflow: hidden;
}

.bg-checkered-pattern::before,
.section-padding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-conic-gradient(
        rgba(15, 23, 42, 0.035) 0% 25%,
        transparent 0% 50%
    );
    background-size: 38px 38px;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.bg-checkered-pattern > *,
.section-padding > * {
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #475569;
    max-width: 680px;
    margin: 0 auto;
}

/* Parallax Sections & Gradient Overlay */
.parallax-bg-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 6rem 0;
    border: none !important;
    overflow: hidden;
}

.parallax-bg-track-1 { background-image: url('/assets/images/pista_01.jpg'); }
.parallax-bg-podio { background-image: url('/assets/images/podio_01.jpg'); }
.parallax-bg-rampa { background-image: url('/assets/images/subiendo_rampa_02.jpg'); }
.parallax-bg-piso2 { background-image: url('/assets/images/piso2_01.jpg'); }
.parallax-bg-formacion { background-image: url('/assets/images/formacion.jpg'); }
.parallax-bg-amigos { background-image: url('/assets/images/amigos_04.webp'); }
.parallax-bg-eventos { background-image: url('/assets/images/evento_empresarial2.jpg'); }

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
}

.parallax-content > .section-title-wrapper .section-title,
.parallax-content > .section-title-wrapper h1,
.parallax-content > .section-title-wrapper h2,
.parallax-content > .section-title-wrapper h3,
.parallax-content > .section-title-wrapper h4 {
    color: #FFFFFF !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.9) !important;
}

.parallax-content > .section-title-wrapper .section-subtitle,
.parallax-content > .section-title-wrapper p {
    color: #F8FAFC !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
    font-size: 1.12rem;
    font-weight: 600;
}

/* REGLAS INTRANFRANGIBLES PARA TARJETAS BLANCAS (PADDINGS & CONTRASTE) */
.glass-panel {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    border-radius: var(--radius-md) !important;
    padding: 2.25rem 2rem !important;
    box-sizing: border-box !important;
}

.event-step-card,
.pricing-card {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    border-radius: var(--radius-md) !important;
    padding: 2.25rem 1.75rem !important;
    box-sizing: border-box !important;
}

.card-padding-sm {
    padding: 1.5rem 1.25rem !important;
}

.card-padding {
    padding: 2.25rem 1.75rem !important;
}

.card-padding-lg {
    padding: 3rem 2.25rem !important;
}

.card-padding-xl {
    padding: 3.5rem 2.5rem !important;
}

@media (max-width: 768px) {
    .glass-panel,
    .card-padding-lg,
    .card-padding-xl {
        padding: 1.75rem 1.25rem !important;
    }
}

.glass-panel h1, .glass-panel h2, .glass-panel h3, .glass-panel h4, .glass-panel h5, .glass-panel h6,
.event-step-card h1, .event-step-card h2, .event-step-card h3, .event-step-card h4, .event-step-card .event-step-title,
.pricing-card h1, .pricing-card h2, .pricing-card h3, .pricing-card h4 {
    color: #0F172A !important;
    -webkit-text-stroke: initial !important;
    text-shadow: none !important;
}

.glass-panel p, .glass-panel span, .glass-panel li, .glass-panel label,
.event-step-card p, .event-step-card span, .event-step-card .event-step-desc,
.pricing-card p, .pricing-card span {
    color: #334155 !important;
    text-shadow: none !important;
}

/* RACING FEATURES BANNER (BARRA NARANJA CON ICONOS / TIPOGRAFÍAS DE CARACTERÍSTICAS DE PISTA) */
.racing-features-banner {
    width: 100%;
    background: linear-gradient(135deg, #FF3B00 0%, #E03400 100%);
    padding: 1.5rem 0;
    box-shadow: 0 8px 25px rgba(255, 59, 0, 0.3);
    position: relative;
    z-index: 10;
}

.racing-features-grid {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.racing-feature-item-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.racing-feature-item-img:hover {
    transform: scale(1.08);
}

/* LIST BULLETS & IMAGE UTILITIES */
.list-bullets-check {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
}

@media (max-width: 640px) {
    .list-bullets-check {
        grid-template-columns: 1fr;
    }
}

.list-bullets-check li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155 !important;
}

.list-bullets-check li i {
    color: #059669 !important;
    font-size: 1rem;
    flex-shrink: 0;
}

.rounded-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    object-fit: cover;
}

.payment-pill {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    background: #F8FAFC;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    color: #0F172A !important;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Grid & Flex Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 991px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
}

.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
