/* Rush Ride Studio - Main Stylesheet
   Mobile-first design approach
   ================================ */

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #FF6B35;
    --color-primary-dark: #E55A28;
    --color-secondary: #1a1a1a;
    --color-background: #000000;
    --color-surface: #111111;
    --color-surface-light: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;

    /* Safe areas */
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   HEADER - FUTURISTIC CYBERPUNK DESIGN
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--spacing-sm) var(--spacing-md);
    padding-top: calc(var(--spacing-sm) + var(--safe-area-top));
    transition: all 0.4s ease;
    height: 70px;
}

/* Glass Background with Cyber Effect */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: -1;
}

/* Futuristic Animated Background Elements */
.header__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

/* Studio Image Background */
.header__bg-image {
    position: absolute;
    inset: 0;
    background-image: url('/media/c471ae_011be4158ccb4b42bd14f614c29b152df000.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.18;
    animation: headerImagePan 48s ease-in-out infinite alternate;
}

@keyframes headerImagePan {
    0% { transform: scale(1.08) translateX(0); }
    100% { transform: scale(1.12) translateX(-12px); }
}

/* Overlay with gradient */
.header__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* Neon Glow Effects */
.header__bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Wash cálido central detrás del logo */
.header__bg-glow--1 {
    width: 340px;
    height: 130px;
    background: radial-gradient(ellipse, rgba(255, 107, 53, 0.5) 0%, transparent 72%);
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.55;
    animation: neonPulse1 7s ease-in-out infinite;
}

/* Acento cálido tenue que deriva (da movimiento sin distraer) */
.header__bg-glow--2 {
    width: 220px;
    height: 90px;
    background: radial-gradient(ellipse, rgba(255, 140, 58, 0.28) 0%, transparent 72%);
    top: -20px;
    left: 15%;
    opacity: 0.5;
    animation: neonDrift 14s ease-in-out infinite alternate;
}

@keyframes neonPulse1 {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.65; transform: translateX(-50%) scale(1.12); }
}

@keyframes neonDrift {
    0% { transform: translateX(0) scale(1); opacity: 0.35; }
    100% { transform: translateX(60vw) scale(1.15); opacity: 0.55; }
}

/* Línea de flujo — estela de velocidad que recorre el borde inferior */
.header__flowline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    overflow: visible;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 107, 53, 0.09) 38%,
        rgba(255, 107, 53, 0.09) 62%,
        transparent 100%
    );
}

.header__flowline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 157, 74, 0) 43%,
        rgba(255, 184, 116, 0.85) 50%,
        rgba(255, 157, 74, 0) 57%,
        transparent 100%
    );
    background-size: 300% 100%;
    /* Resplandor sutil: un hilo fino de luz que apenas ilumina el borde */
    filter: drop-shadow(0 0 5px rgba(255, 140, 58, 0.5));
    /* Loop calmo y continuo: cruza en una sola dirección, ~14s, lineal */
    animation: flowSweep 14s linear infinite;
}

@keyframes flowSweep {
    from { background-position: 160% 0; }
    to   { background-position: -160% 0; }
}

/* Header Container */
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

/* Logo - Centrado con efecto holografico */
.header__logo {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header__logo-mark {
    height: 38px;
    width: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.4));
    transition: filter 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header__logo:hover .header__logo-mark {
    filter: drop-shadow(0 0 18px rgba(255, 107, 53, 0.6)) brightness(1.05);
    transform: rotate(-6deg);
}

.header__logo:hover {
    transform: scale(1.08);
}

.header__logo-glow {
    position: absolute;
    width: 160px;
    height: 62px;
    background: radial-gradient(ellipse at center,
        rgba(255, 107, 53, 0.42) 0%,
        rgba(255, 107, 53, 0.12) 45%,
        transparent 70%);
    filter: blur(24px);
    animation: logoBreath 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoBreath {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.header__logo-img {
    height: 42px;
    width: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.35));
    transition: filter 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header__logo:hover .header__logo-img {
    filter: drop-shadow(0 0 22px rgba(255, 107, 53, 0.65)) brightness(1.08);
    transform: translateY(-1px);
}

/* Navigation Links - Futuristic */
.header__nav {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.header__nav--left {
    margin-right: auto;
    padding-left: 1rem;
}

.header__nav--right {
    margin-left: auto;
    padding-right: 1rem;
}

.header__nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.header__nav-link-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header__nav-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.header__nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header__nav-link:hover {
    color: #fff;
    border-color: rgba(255, 107, 53, 0.3);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.header__nav-link:hover .header__nav-link-bg {
    opacity: 1;
}

.header__nav-link:hover::before {
    width: 80%;
}

.header__nav-link:hover svg {
    opacity: 1;
    color: var(--color-primary);
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.5));
}

/* CTA Button Style - Neon Effect */
.header__nav-link--cta {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 107, 53, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.4);
    color: var(--color-primary);
    box-shadow:
        0 0 15px rgba(255, 107, 53, 0.1),
        inset 0 0 20px rgba(255, 107, 53, 0.05);
}

.header__nav-link--cta::before {
    background: var(--color-primary);
    height: 100%;
    width: 0;
    left: 0;
    transform: none;
    opacity: 0;
    transition: all 0.4s ease;
}

.header__nav-link--cta:hover {
    border-color: var(--color-primary);
    color: #fff;
    box-shadow:
        0 0 25px rgba(255, 107, 53, 0.4),
        0 0 50px rgba(255, 107, 53, 0.2),
        inset 0 0 20px rgba(255, 107, 53, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header__nav-link--cta:hover::before {
    width: 100%;
    opacity: 1;
}

.header__nav-link--cta:hover svg {
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.header__nav-link--cta span,
.header__nav-link--cta svg {
    position: relative;
    z-index: 1;
}

/* Mobile Actions - Futuristic */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header__cart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header__cart:hover {
    color: var(--color-primary);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.header__cart:hover::before {
    opacity: 1;
}

.header__cart-icon {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.header__cart:hover .header__cart-icon {
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.5));
}

.header__menu-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header__menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header__menu-btn:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.header__menu-btn:hover::before {
    opacity: 1;
}

.header__menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.header__menu-btn:hover span {
    background-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

.header__menu-btn:hover span:nth-child(1) {
    transform: translateX(3px);
}

.header__menu-btn:hover span:nth-child(3) {
    transform: translateX(-3px);
}

/* Header Scroll State */
.header.is-scrolled {
    height: 60px;
}

.header.is-scrolled::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.header.is-scrolled .header__bg-image {
    opacity: 0.15;
}

.header.is-scrolled .header__bg-glow {
    opacity: 0.3;
}

.header.is-scrolled .header__neon-border {
    opacity: 0.3;
}

.header.is-scrolled .header__logo-img {
    height: 36px;
}

.header.is-scrolled .header__logo-ring {
    width: 60px;
    height: 60px;
}

/* Mobile Navigation - Futuristic */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-base);
}

.mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
}

.mobile-nav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-nav__content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 350px;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 20, 0.98) 0%,
        rgba(10, 10, 15, 0.98) 100%
    );
    border-left: 1px solid rgba(255, 107, 53, 0.2);
    padding: var(--spacing-xl);
    padding-top: calc(var(--spacing-xl) + var(--safe-area-top));
    padding-bottom: calc(var(--spacing-2xl) + var(--safe-area-bottom, 20px));
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--color-primary) 30%,
        var(--color-primary) 70%,
        transparent 100%
    );
    opacity: 0.5;
}

.mobile-nav__content::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    transform: translateY(-50%);
}

.mobile-nav.is-open .mobile-nav__content {
    transform: translateX(0);
}

.mobile-nav__close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: var(--color-text);
    padding: var(--spacing-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav__close:hover {
    border-color: rgba(255, 107, 53, 0.5);
    color: var(--color-primary);
}

.mobile-nav__close svg {
    width: 20px;
    height: 20px;
}

.mobile-nav__list {
    list-style: none;
    margin-top: var(--spacing-2xl);
}

.mobile-nav__list li {
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateX(20px);
    animation: mobileNavItemIn 0.4s ease forwards;
}

.mobile-nav.is-open .mobile-nav__list li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(6) { animation-delay: 0.35s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(7) { animation-delay: 0.4s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(8) { animation-delay: 0.45s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(9) { animation-delay: 0.5s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(10) { animation-delay: 0.55s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(11) { animation-delay: 0.6s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(12) { animation-delay: 0.65s; }

@keyframes mobileNavItemIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav__list a {
    position: relative;
    font-size: var(--font-size-lg);
    font-weight: 500;
    display: block;
    padding: var(--spacing-md) var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mobile-nav__list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--color-primary);
    transform: translateY(-50%);
    transition: height 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.mobile-nav__list a:hover {
    color: #fff;
    padding-left: var(--spacing-md);
}

.mobile-nav__list a:hover::before {
    height: 60%;
}

.mobile-nav__cta {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Admin styles for mobile nav */
.mobile-nav__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
    margin: var(--spacing-md) 0 !important;
}

.mobile-nav__admin {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--font-size-sm) !important;
}

/* Admin button style in header */
.header__nav-link--admin {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
}

.header__nav-link--admin:hover {
    border-color: #00d4ff;
    color: #fff;
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header__nav-link--admin:hover svg {
    color: #00d4ff;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

/* Main Content */
.main {
    padding-top: 80px; /* Header height */
    min-height: calc(100vh - 80px);
}

/* Footer */
.footer {
    background-color: var(--color-surface);
    padding: var(--spacing-2xl) var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer__logo {
    width: 110px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto var(--spacing-md);
}

.footer__company {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer__address,
.footer__contact {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.footer__contact a {
    color: var(--color-primary);
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-surface-light);
    border-radius: var(--radius-full);
    color: var(--color-text);
    transition: var(--transition-fast);
}

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

.footer__social svg {
    width: 20px;
    height: 20px;
}

.footer__legal {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.footer__legal a {
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    text-align: center;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-text);
}

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

.btn--secondary {
    background-color: var(--color-surface-light);
    color: var(--color-text);
}

.btn--outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text);
}

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

.btn--sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn--lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* Cards */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card__content {
    padding: var(--spacing-md);
}

.card__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.card__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-light);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.hidden { display: none !important; }

/* Grid */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .header {
        padding: var(--spacing-md) var(--spacing-xl);
        height: 80px;
    }

    .header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header__logo:hover {
        transform: translateX(-50%) scale(1.08);
    }

    .header__logo-img {
        height: 50px;
    }

    .header__logo-ring {
        width: 90px;
        height: 90px;
    }

    .header__nav {
        display: flex;
        gap: 0.75rem;
    }

    .header__nav--left {
        flex: 1;
        justify-content: flex-start;
    }

    .header__nav--right {
        flex: 1;
        justify-content: flex-end;
    }

    .header__actions {
        display: none;
    }

    .header__menu-btn {
        display: none;
    }

    .header.is-scrolled {
        height: 65px;
    }

    .header.is-scrolled .header__logo-img {
        height: 40px;
    }

    .header.is-scrolled .header__logo-ring {
        width: 70px;
        height: 70px;
    }

    .footer__container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        text-align: left;
    }

    .footer__logo {
        width: 110px;
        height: 70px;
        object-fit: contain;
        margin: 0 0 var(--spacing-md);
    }

    .footer__social {
        justify-content: flex-start;
    }

    .grid--md-2 { grid-template-columns: repeat(2, 1fr); }
    .grid--md-3 { grid-template-columns: repeat(3, 1fr); }
    .grid--md-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .header {
        height: 85px;
    }

    .header__logo-img {
        height: 55px;
    }

    .header__logo-ring {
        width: 100px;
        height: 100px;
    }

    .header__nav-link {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }

    .header.is-scrolled {
        height: 70px;
    }

    .header.is-scrolled .header__logo-img {
        height: 45px;
    }

    .grid--lg-3 { grid-template-columns: repeat(3, 1fr); }
    .grid--lg-4 { grid-template-columns: repeat(4, 1fr); }
}

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

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

.animate-fadeIn {
    animation: fadeIn var(--transition-base) forwards;
}

.animate-slideUp {
    animation: slideUp var(--transition-base) forwards;
}

/* =========================================
   No-Show Blocking Popup
   ========================================= */

.noshow-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.noshow-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.noshow-popup__content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: linear-gradient(
        145deg,
        rgba(30, 30, 30, 0.98) 0%,
        rgba(20, 20, 20, 0.98) 100%
    );
    border: 2px solid var(--color-error);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    animation: popupAppear 0.4s ease-out;
    box-shadow:
        0 0 60px rgba(239, 68, 68, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

@keyframes popupAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(239, 68, 68, 0.5);
    }
}

.noshow-popup__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-error) 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseWarning 2s ease-in-out infinite;
}

.noshow-popup__icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.noshow-popup__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-error);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.noshow-popup__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.noshow-popup__subtitle strong {
    color: var(--color-text);
}

.noshow-popup__penalty {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.noshow-popup__penalty--monetary {
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.noshow-popup__penalty--credits {
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.noshow-popup__penalty-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.noshow-popup__penalty p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin: var(--spacing-xs) 0;
}

.noshow-popup__amount {
    font-size: var(--font-size-2xl) !important;
    font-weight: 700 !important;
    color: var(--color-error) !important;
    margin: var(--spacing-sm) 0 !important;
}

.noshow-popup__remaining strong {
    color: var(--color-warning);
    font-size: var(--font-size-xl);
}

.noshow-popup__note {
    font-size: var(--font-size-xs) !important;
    color: var(--color-text-muted) !important;
    margin-top: var(--spacing-sm) !important;
}

.noshow-popup__btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    letter-spacing: 1px;
}

.noshow-popup__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.noshow-popup__btn:active {
    transform: translateY(0);
}

/* Prevent scrolling when popup is shown */
body.noshow-popup-active {
    overflow: hidden;
}

/* ============================================================
   BOTTOM TAB BAR — navegación mobile-first (pill flotante premium)
   ============================================================ */
.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    padding: 0 14px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

/* Solo móvil/tablet: en desktop manda el header superior */
@media (min-width: 900px) {
    .tabbar { display: none; }
}

.tabbar__inner {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 64px;
    max-width: 460px;
    margin: 0 auto;
    padding: 0 8px;
    /* Línea gráfica glass del sistema (glass-card) sobre base oscura legible */
    border-radius: var(--rr-radius-lg, 16px);
    background: rgba(14, 12, 11, 0.82);
    background-image: linear-gradient(180deg, var(--rr-glass-bg, rgba(255,255,255,0.03)), transparent);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--rr-glass-border, rgba(255, 255, 255, 0.08));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    animation: tabbarRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    overflow: visible;
}

@keyframes tabbarRise {
    from { transform: translateY(130%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.tabbar__item {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    -webkit-tap-highlight-color: transparent;
    transition: color 0.28s ease;
    animation: tabFade 0.5s ease both;
}
.tabbar__inner > .tabbar__item:nth-child(1) { animation-delay: 0.18s; }
.tabbar__inner > .tabbar__item:nth-child(2) { animation-delay: 0.24s; }
.tabbar__inner > .tabbar__item:nth-child(4) { animation-delay: 0.30s; }
.tabbar__inner > .tabbar__item:nth-child(5) { animation-delay: 0.36s; }
@keyframes tabFade { from { opacity: 0; } to { opacity: 1; } }

.tabbar__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    border-radius: 13px;
    transition: background 0.3s ease, box-shadow 0.3s ease,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tabbar__ico svg { width: 23px; height: 23px; }

.tabbar__lbl {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: font-weight 0.2s ease;
}

.tabbar__item:active .tabbar__ico { transform: scale(0.88); }

/* Estado activo: cápsula de luz que "enciende" + indicador superior */
.tabbar__item.is-active { color: #ff8c3a; }
.tabbar__item.is-active .tabbar__lbl { font-weight: 700; }
.tabbar__item.is-active .tabbar__ico {
    background: linear-gradient(160deg, rgba(255, 140, 58, 0.3), rgba(255, 90, 0, 0.12));
    box-shadow: 0 0 18px rgba(255, 110, 20, 0.4),
                inset 0 0 0 1px rgba(255, 165, 90, 0.28);
    transform: translateY(-2px);
}
.tabbar__item.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
    background: #ff9d4a;
    box-shadow: 0 0 10px rgba(255, 140, 58, 0.95);
}

/* FAB central — Reservar (acción estrella, elevada con halo girando) */
.tabbar__fab {
    flex: 0 0 auto;
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 6px;
    transform: translateY(-20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(145deg, #ffa356 0%, #ff5e00 55%, #f24d00 100%);
    border: 3.5px solid rgba(16, 12, 10, 0.95);
    box-shadow: 0 12px 26px rgba(255, 85, 0, 0.5),
                0 3px 10px rgba(0, 0, 0, 0.5),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    animation: fabDrop 0.75s cubic-bezier(0.34, 1.4, 0.5, 1) 0.28s both;
}
.tabbar__fab svg { width: 28px; height: 28px; position: relative; z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.tabbar__fab:active { transform: translateY(-20px) scale(0.92); }

@keyframes fabDrop {
    from { opacity: 0; transform: translateY(6px) scale(0.6); }
    to   { opacity: 1; transform: translateY(-20px) scale(1); }
}

/* Reset para el slot tipo botón (Más) */
button.tabbar__item {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.tabbar__fab-lbl {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ff8c3a;
    white-space: nowrap;
}

.tabbar__fab-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 150, 70, 0.6);
    animation: fabPulse 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes fabPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    55% { transform: scale(1.22); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .tabbar__fab-ring, .tabbar__inner, .tabbar__item, .tabbar__fab { animation: none; }
}

/* ---- Hoja "Más" del admin (bottom sheet, línea gráfica glass) ---- */
.adminsheet {
    position: fixed;
    inset: 0;
    z-index: 400;
    pointer-events: none;
}
.adminsheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.adminsheet__panel {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    max-width: 460px;
    margin: 0 auto;
    max-height: 62vh;
    overflow-y: auto;
    padding: 10px 14px 14px;
    background: rgba(14, 12, 11, 0.94);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}
.adminsheet.is-open { pointer-events: auto; }
.adminsheet.is-open .adminsheet__backdrop { opacity: 1; }
.adminsheet.is-open .adminsheet__panel { transform: translateY(0); opacity: 1; }

.adminsheet__grip {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    margin: 2px auto 10px;
}
.adminsheet__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}
.adminsheet__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.adminsheet__grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 11px 4px 9px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    background: var(--rr-glass-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--rr-glass-border, rgba(255, 255, 255, 0.08));
}
.adminsheet__grid a:active { background: rgba(255, 140, 58, 0.14); color: #ff8c3a; }
.adminsheet__grid svg { width: 21px; height: 21px; }
.adminsheet__grid span {
    font-size: 9.5px;
    font-weight: 600;
    text-align: center;
    line-height: 1.15;
}
.adminsheet__foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--rr-glass-border, rgba(255, 255, 255, 0.08));
}
.adminsheet__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ff8c3a;
    text-decoration: none;
}
.adminsheet__link--out { color: rgba(255, 255, 255, 0.45); }

/* ---- UN SOLO MENÚ en móvil: manda la barra inferior ---- */
@media (max-width: 899px) {
    body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
    .header__nav { display: none !important; }
    .header__menu-btn { display: none !important; }
    .admin-nav { display: none !important; }
}
