/*
Theme Name: AutoElite Pro
Theme URI: https://autoeloite.com
Author: AutoElite Team
Description: Tema profesional minimalista para tienda automotriz. Diseño elegante en rojo, negro y blanco con WooCommerce totalmente personalizado.
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: autoeloite
Tags: e-commerce, automotive, woocommerce, minimalist, dark, elegant
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rojo: #E31E24;
    --negro: #0A0A0A;
    --gris: #1A1A1A;
    --blanco: #FFFFFF;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--negro);
    color: var(--blanco);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--rojo);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================
   HEADER MEJORADO
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(227, 30, 36, 0.2);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--blanco);
    text-decoration: none;
}

.site-logo span {
    color: var(--rojo);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.main-navigation ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
    margin: 0;
}

.main-navigation a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--rojo);
}

/* ICONO DEL CARRITO MEJORADO */
.cart-trigger {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.cart-trigger:hover {
    transform: scale(1.1);
}

.cart-trigger svg {
    width: 28px;
    height: 28px;
    stroke: var(--blanco);
    fill: none;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.cart-trigger:hover svg {
    stroke: var(--rojo);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--rojo);
    color: var(--blanco);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 5px;
}

/* MINI CARRITO DESPLEGABLE */
.mini-cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--gris);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mini-cart.active {
    right: 0;
}

.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mini-cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(227, 30, 36, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-cart-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.mini-cart-close {
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mini-cart-close:hover {
    color: var(--rojo);
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.mini-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(227, 30, 36, 0.1);
}

.mini-cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid rgba(227, 30, 36, 0.2);
}

.mini-cart-item-details {
    flex: 1;
}

.mini-cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.mini-cart-item-price {
    color: var(--rojo);
    font-weight: 700;
}

.mini-cart-item-quantity {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.mini-cart-item-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.mini-cart-item-remove:hover {
    color: var(--rojo);
}

.mini-cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.mini-cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(227, 30, 36, 0.2);
    background: var(--negro);
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.mini-cart-subtotal-label {
    font-weight: 600;
}

.mini-cart-subtotal-amount {
    color: var(--rojo);
    font-weight: 700;
}

.mini-cart-buttons {
    display: grid;
    gap: 1rem;
}

.mini-cart-button {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--rojo);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.mini-cart-button-primary {
    background: var(--rojo);
    color: var(--blanco);
}

.mini-cart-button-primary:hover {
    background: transparent;
    color: var(--rojo);
}

.mini-cart-button-secondary {
    background: transparent;
    color: var(--blanco);
}

.mini-cart-button-secondary:hover {
    background: var(--blanco);
    color: var(--negro);
    border-color: var(--blanco);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--blanco);
    transition: 0.3s;
}

.site-content {
    padding-top: 100px;
}

/* FOOTER */
.site-footer {
    padding: 4rem 5%;
    background: var(--gris);
    border-top: 1px solid rgba(227, 30, 36, 0.2);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-section h3 span {
    color: var(--rojo);
}

.footer-section p,
.footer-section a {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--rojo);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
}

/* ANIMACIONES */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* UTILIDADES */
.section {
    padding: 6rem 5%;
    background: var(--negro);
}

.section-alt {
    background: var(--gris);
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--blanco);
}

.section-title span {
    color: var(--rojo);
}

.section-subtitle {
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--rojo);
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid var(--rojo);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: transparent;
    color: var(--rojo);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        padding: 2rem;
    }

    .header-nav.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 2rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mini-cart {
        width: 100%;
        right: -100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
