:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.7);
    --accent-orange: #ff5a00;
    --accent-red: #e60000;
    --accent-blue: #007bff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Outfit', sans-serif; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-accent { color: var(--accent-orange); }
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-orange); }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background: linear-gradient(45deg, var(--accent-red), var(--accent-orange));
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 0, 0.5);
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.text-gradient {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-blue {
    background: linear-gradient(45deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Parallax Banner */
.banner-parallax {
    position: relative;
    height: 100vh;
    min-height: 400px;
    background: url('../assets/autopro_ciudad.jpeg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.8), rgba(10,10,10,0.4), rgba(10,10,10,0.8));
}
.banner-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Sections */
.section { padding: 8rem 2rem; }
.section-container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Glassmorphism */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.brand-card {
    text-align: center;
    transition: transform 0.4s ease;
}
.brand-card:hover { transform: translateY(-10px); }
.brand-img {
    height: 80px;
    object-fit: contain;
    margin-bottom: 2rem;
}
.brand-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.brand-card p { color: var(--text-muted); }

/* Contact */
.contact-panel { text-align: center; max-width: 800px; margin: 0 auto; }
.contact-panel h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-panel p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.contact-item {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: background 0.3s;
}
.contact-item:hover { background: rgba(255,255,255,0.1); }
.contact-item.whatsapp { color: #25D366; }
.contact-item i { margin-right: 8px; }

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }

/* Catalog Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover {
    color: var(--accent-red);
}
.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.modal-logo {
    height: 70px;
    margin-bottom: 1rem;
    object-fit: contain;
}
.modal-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.product-card {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 20, 20, 0.6);
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 90, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 90, 0, 0.15);
}
.product-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1.2rem;
}
.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}
.product-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Footer Completo */
.main-footer {
    background: #050505;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 2rem 2rem 2rem;
    color: var(--text-muted);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.footer-logo {
    height: 120px;
    margin-bottom: 1rem;
    margin-left: -20px;
}
.footer-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}
.footer-col ul li i {
    color: var(--accent-orange);
    margin-right: 10px;
    margin-top: 4px;
}
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-link:hover {
    color: var(--accent-orange);
}
.map-link {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    text-underline-offset: 4px;
    transition: all 0.3s;
}
.map-link:hover {
    color: var(--accent-orange);
    text-decoration-color: var(--accent-orange);
}
.schedule-badge {
    background: rgba(255,255,255,0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: auto;
}
.schedule-badge.closed {
    color: var(--accent-red);
}
.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 2.5rem;
    color: var(--text-muted);
}
.payment-methods i:hover {
    color: var(--text-main);
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}
.legal-links {
    display: flex;
    gap: 1.5rem;
}
.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
}
.legal-links a:hover {
    color: var(--text-main);
}

/* Promotional Banners */
.promos-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.promo-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 2.5rem;
    border-radius: 16px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.promo-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    border-radius: 16px 0 0 16px;
}
.promo-blue::before { background: linear-gradient(to bottom, #007bff, #00d2ff); }
.promo-orange::before { background: linear-gradient(to bottom, #ff5a00, #ff8a00); }
.promo-green::before { background: linear-gradient(to bottom, #00c853, #69f0ae); }

.promo-banner:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.promo-blue:hover { border-color: rgba(0, 123, 255, 0.4); }
.promo-orange:hover { border-color: rgba(255, 90, 0, 0.4); }
.promo-green:hover { border-color: rgba(0, 200, 83, 0.4); }

.promo-icon {
    font-size: 2.2rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}
.promo-blue .promo-icon { color: #00d2ff; }
.promo-orange .promo-icon { color: var(--accent-orange); }
.promo-green .promo-icon { color: #69f0ae; }

.promo-content {
    flex: 1;
}
.promo-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}
.promo-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}
.promo-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    animation: pulseBadge 2s ease-in-out infinite;
}
.promo-blue .promo-badge {
    background: rgba(0, 123, 255, 0.15);
    color: #00d2ff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}
.promo-orange .promo-badge {
    background: rgba(255, 90, 0, 0.15);
    color: #ff8a00;
    border: 1px solid rgba(255, 90, 0, 0.3);
}
.promo-green .promo-badge {
    background: rgba(0, 200, 83, 0.15);
    color: #69f0ae;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .modal-content { padding: 2rem 1.5rem; }
    .modal-header h2 { font-size: 1.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .promo-banner { flex-direction: column; text-align: center; padding: 1.5rem; }
    .promo-banner:hover { transform: translateY(-5px); }
    .promo-badge { align-self: center; }
}

