/* Alta Gama Cycling Shop - Light Dynamic Theme */
:root {
    --bg-ag-base: #f9f9fa;
    --bg-ag-panel: #ffffff;
    --accent-chrome: #111111; 
    --accent-titanium: #6b7280;
    --accent-crimson: #e11d48; /* subtle racing accent */
    --text-ag-primary: #111111;
    --text-ag-secondary: #4b5563;
}

body.ag-theme {
    background-color: var(--bg-ag-base);
    font-family: 'Inter', sans-serif;
    color: var(--text-ag-primary);
    overflow-x: hidden;
}

/* Navbar override */
.ag-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.ag-theme .nav-link {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-ag-primary) !important;
}

.ag-theme .nav-link::after { background: var(--accent-crimson); }

/* Typography Overrides */
.ag-theme h1, .ag-theme h2, .ag-theme h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.ag-theme .bold-accent {
    font-weight: 800;
    color: var(--accent-crimson);
}

/* Buttons */
.ag-theme .btn-primary {
    background: var(--accent-chrome);
    border: 1px solid var(--accent-chrome);
    color: #ffffff;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-theme .btn-primary:hover {
    background: var(--accent-crimson);
    border-color: var(--accent-crimson);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.3);
}

/* Hero Section */
.ag-hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: var(--bg-ag-panel);
    overflow: hidden;
    padding-top: 130px;
    padding-bottom: 60px;
}

/* Speed Lines Animation */
.speed-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
    z-index: 1;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
    height: 2px;
    width: 200vw;
    animation: speedDash linear infinite;
}
.line-1 { top: 20%; animation-duration: 3s; opacity: 0.5; }
.line-2 { top: 40%; animation-duration: 4s; animation-delay: 1s; opacity: 0.7; }
.line-3 { top: 60%; animation-duration: 2s; opacity: 0.3; }
.line-4 { top: 80%; animation-duration: 5s; animation-delay: 2s; opacity: 0.6; }

@keyframes speedDash {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

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

.ag-hero img.hero-logo {
    width: 450px;
    max-width: 80%;
    margin-top: 40px;
    margin-bottom: 32px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.05));
    animation: ag-float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.ag-hero p {
    color: var(--text-ag-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Product Grid */
.ag-products-section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
    background: var(--bg-ag-base);
}

.ag-section-title {
    text-align: center;
    margin-bottom: 80px;
}

.ag-section-title h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--accent-chrome);
}

.ag-section-title .divider {
    width: 80px;
    height: 4px;
    background: var(--accent-crimson);
    margin: 0 auto;
    border-radius: 2px;
}

.ag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Minimalist Card (Light Mode) */
.ag-card {
    background: var(--bg-ag-panel);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.ag-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent-crimson);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.08);
}

.ag-card:hover::before {
    transform: scaleX(1);
}

.ag-card-img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    margin-bottom: 24px;
    background: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: multiply;
}

.ag-card:hover .ag-card-img {
    transform: scale(1.08) translateX(5px);
}

.ag-card-title {
    font-size: 1.3rem;
    letter-spacing: 0px;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--accent-chrome);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ag-card-price {
    font-size: 1.4rem;
    color: var(--text-ag-secondary);
    font-weight: 600;
    margin-bottom: 24px;
}

/* Footer */
.ag-footer {
    border-top: 1px solid rgba(0,0,0,0.04);
    padding: 60px 0;
    text-align: center;
    background: var(--bg-ag-panel);
}

.ag-footer img {
    height: 40px;
    margin-bottom: 24px;
    opacity: 0.8;
    transition: opacity 0.3s;
    filter: brightness(0); /* Force black */
}

.ag-footer img:hover {
    opacity: 1;
}

@keyframes ag-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Cinematic Video Banner */
.video-banner-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 60vh; /* Más grande para que no sea tan delgado */
    min-height: 400px;
    max-height: 700px;
    margin-top: 50px;
    margin-bottom: 30px;
    background: #000;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1) grayscale(20%); /* Filtro oscuro premium */
    opacity: 0.9;
}
/* Efecto Viñeta (suave degradado en los bordes) para fusionar con la página blanca */
.video-banner-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 20px 40px rgba(255,255,255,1), inset 0 -20px 40px rgba(255,255,255,1);
    pointer-events: none;
}
