/* =========================================================
   AURA MOTORS - ULTRA DARK OLED STYLESHEET
   ========================================================= */

:root {
    --bg-black: #030305;
    --card-bg: rgba(14, 15, 20, 0.75);
    --card-border: rgba(255, 255, 255, 0.07);
    --accent-cyan: #00f0ff;
    --accent-purple: #7000ff;
    --text-main: #f0f2f5;
    --text-muted: #8a8d9b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* FONDOS Y AMBIENTE NEÓN */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}

.glow-1 {
    top: -200px;
    left: -100px;
    background: var(--accent-cyan);
}

.glow-2 {
    bottom: -200px;
    right: -100px;
    background: var(--accent-purple);
}

/* NAVEGACIÓN */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(3, 3, 5, 0.8);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-cyan);
    margin: 0 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* BOTONES */
.btn-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* HERO SECTION */
.hero {
    min-height: 80vh;
    padding: 12rem 4rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent-cyan);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 600px;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--card-bg);
    padding: 1.5rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: var(--card-border);
}

/* CATÁLOGO */
.catalog-section {
    padding: 6rem 4rem;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
}

.filter-tabs {
    display: flex;
    gap: 0.8rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.car-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
    position: relative;
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.4);
}

.car-image-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.car-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.car-card:hover .car-image-box img {
    transform: scale(1.08);
}

.car-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.car-content {
    padding: 1.5rem;
}

.car-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.car-price {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.car-specs i {
    color: #ffffff;
    margin-right: 4px;
}

/* CONFIGURADOR */
.configurator-section {
    padding: 4rem 4rem 6rem 4rem;
    position: relative;
    z-index: 1;
}

.config-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    padding: 3.5rem;
    gap: 3rem;
    align-items: center;
}

.tag {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.config-info h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem 0;
}

.config-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.color-picker-wrapper {
    margin-bottom: 2.5rem;
}

.picker-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.color-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-dot.active {
    border-color: #ffffff;
    transform: scale(1.15);
}

.color-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.config-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-halo {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    transition: background 0.5s ease;
}

.config-preview img {
    width: 100%;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* CALCULADORA */
.calc-section {
    padding: 4rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.calc-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3.5rem;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.calc-box h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.calc-box p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.input-group input[type="number"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    padding: 0.8rem;
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
}

.input-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-cyan);
    margin-top: 0.5rem;
}

.calc-result {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
}

.calc-result span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calc-result h3 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-cyan);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #0e0f14;
    border: 1px solid var(--card-border);
    padding: 3rem;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.modal-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.9rem;
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

/* FOOTER */
.footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .navbar { padding: 1rem 1.5rem; }
    .hero { padding: 8rem 1.5rem 3rem 1.5rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .stat-divider { display: none; }
    .config-card { grid-template-columns: 1fr; padding: 2rem; }
    .calc-grid { grid-template-columns: 1fr; }
    .catalog-section, .configurator-section, .calc-section { padding: 3rem 1.5rem; }
}