/* ===== VARIABLES Y RESET — DRAFT 04 · BRAND BOOK LK AUTOMOTRIZ ===== */
/*
   Paleta oficial (Brand Book 2020):
   Negro    PANTONE Black 6C  →  #1d1d1b  (R29 G29 B27)
   Amarillo PANTONE 116C      →  #ffcd00  (R255 G205 B0)
   Gris 1   PANTONE Cool Gray 1C → #d9d8d6 (R217 G216 B214)
   Gris 2   PANTONE 663C      →  #e4e1e5  (R228 G225 B229)

   Tipografía: Gilroy (licencia comercial)
   Sustituto libre: Plus Jakarta Sans (Google Fonts)

   Logo: color (negro+amarillo) sobre fondos claros/blancos
         blanco sobre fondos oscuros (hero, footer)
         NUNCA sobre fondos con degradado ni fondos oscuros con versión color

   Tamaño mínimo digital: 100px de ancho
*/
:root {
    /* Colores de marca */
    --brand-black:   #1d1d1b;   /* PANTONE Black 6C */
    --brand-yellow:  #ffcd00;   /* PANTONE 116C */
    --brand-gray-1:  #d9d8d6;   /* PANTONE Cool Gray 1C */
    --brand-gray-2:  #e4e1e5;   /* PANTONE 663C */

    /* Aliases para el sistema de diseño */
    --primary-color:   var(--brand-black);
    --secondary-color: var(--brand-yellow);
    --accent-color:    var(--brand-yellow);
    --light-bg:        #f7f6f4;
    --text-dark:       var(--brand-black);
    --text-light:      #5a5a58;
    --white:           #ffffff;

    --transition-fast:   0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow:   0.8s ease;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Gilroy', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ANIMACIONES GLOBALES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

.animate-fade-down {
    animation: fadeInDown 0.8s ease forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.animate-fade-up-delay {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== HEADER Y NAVEGACIÓN — fondo blanco, logo color ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(29, 29, 27, 0.1);
    transition: all var(--transition-normal);
    border-bottom: 3px solid var(--brand-yellow);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo a:hover {
    transform: scale(1.05);
}

.logo a i {
    font-size: 1.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--brand-black);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.btn-whatsapp:hover {
    background: #1fa856;
    color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* ---- Brands dropdown nav ---- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle .fa-chevron-down {
    font-size: 0.7em;
    margin-left: 3px;
    transition: transform 0.2s;
}

.nav-dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 200;
}

.nav-dropdown.open .nav-submenu {
    display: block;
}

.nav-submenu li a {
    display: block;
    padding: 0.5rem 1.2rem;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-black);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-submenu li a:hover {
    background: var(--brand-yellow);
    color: var(--brand-black);
}

@media (max-width: 768px) {
    .nav-submenu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--brand-yellow);
        border-radius: 0;
        padding-left: 0.5rem;
        margin-top: 0.3rem;
        background: transparent;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    background: #000;
}

.hero-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(1.1) contrast(1.1);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    animation: none;
}

.gallery-slide.active {
    opacity: 1;
    animation: zoomIn 0.8s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1.05);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    backdrop-filter: blur(0.5px);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    animation: fadeInDown 0.8s ease-out;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 205, 0, 0.3);
    letter-spacing: -1px;
    line-height: 1.2;
    animation: slideInDown 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== BOTONES ===== */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--brand-yellow);
    color: var(--brand-black);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: #e6b800;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 205, 0, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, #25d366 0%, #1fa856 100%);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1fa856 0%, #128c3f 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

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

.btn-white:hover {
    background: var(--light-bg);
}

.btn-large {
    padding: 1.4rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-final .btn-large {
    background: var(--brand-black);
    color: var(--brand-yellow);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cta-final .btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    background: #2d2d2b;
}

.cta-final .btn-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateY(-50%);
    transition: left 0.6s ease;
}

.cta-final .btn-large:hover::before {
    left: 100%;
}

.cta-final .btn-large i {
    font-size: 1.3rem;
}

/* ===== CONTROLES DE GALERÍA ===== */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(255, 205, 0, 0.4);
    color: var(--brand-yellow);
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.gallery-indicators {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: var(--brand-yellow);
    width: 32px;
    border-radius: 5px;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 15px rgba(255, 205, 0, 0.6);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    animation: bounce 2s infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    width: auto;
    text-align: center;
}

.scroll-indicator p,
.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.5s both;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.mouse {
    width: 28px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    position: relative;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
}

.scroll-indicator:hover .mouse {
    border-color: var(--brand-yellow);
    background: rgba(255, 205, 0, 0.1);
    box-shadow: 0 6px 20px rgba(255, 205, 0, 0.3);
}

.wheel {
    width: 2px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
    border-radius: 2px;
    flex-shrink: 0;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ===== VEHICLE SELECTOR ===== */
.vehicle-selector {
    padding: 60px 0;
    background: var(--light-bg);
    border-top: 1px solid #e0e0e0;
}

.vehicle-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* ===== SECCIONES GENERALES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== BARRA DE SUBCATEGORÍAS ===== */
.subcategories-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: -1.5rem 0 2.5rem;
}

.subcategories-bar:empty {
    margin: 0;
}

.subcat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--brand-gray-1);
    border-radius: 999px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.subcat-chip:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--primary-color);
}

.subcat-chip.subcat-active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.subcat-chip.subcat-back {
    background: transparent;
    color: var(--text-light);
}

/* ===== BOTÓN "VER MÁS" PRODUCTOS ===== */
.products-more {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.products-more:empty {
    margin-top: 0;
}

/* ===== CATEGORÍAS ===== */
.categories {
    padding: 80px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    height: 350px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background var(--transition-normal);
    z-index: 1;
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--white);
    z-index: 2;
    transform: translateY(50px);
    transition: transform var(--transition-normal);
}

.category-card:hover .category-content {
    transform: translateY(0);
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.btn-link {
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--transition-fast);
}

.btn-link:hover {
    gap: 10px;
}

.hover-lift {
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.hover-lift:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* ===== PRODUCTOS DESTACADOS ===== */
.featured-products {
    padding: 80px 0;
    background: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-yellow);
    color: var(--brand-black);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    gap: 3px;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.product-rating i {
    color: #ffc107;
}

.product-rating span {
    color: var(--text-light);
    margin-left: 5px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-black);
}

.btn-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-yellow);
    color: var(--brand-black);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-cart:hover {
    background: #e6b800;
    transform: scale(1.1);
}

/* ===== BENEFICIOS ===== */
.benefits {
    padding: 80px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--light-bg);
    transition: all var(--transition-normal);
}

.benefit-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--brand-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-black);
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    transition: transform var(--transition-normal);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(10deg);
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== HERO PHRASES (rotativas, sincronizadas con galería) ===== */
.hero-phrases {
    position: relative;
    min-height: 160px;
    margin-bottom: 2rem;
}

.hero-phrase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hero-phrase.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.hero-phrase .hero-title {
    animation: none;
}

.hero-phrase .hero-subtitle {
    animation: none;
}

/* ===== TESTIMONIOS con foto de trabajo ===== */
.testimonials {
    padding: 80px 0;
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Foto del trabajo (parte superior de la card) */
.testimonial-work-photo {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.testimonial-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.testimonial-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

/* Foto circular del cliente */
.testimonial-avatar-wrap {
    flex-shrink: 0;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-meta h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: var(--text-dark);
}

.testimonial-meta p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.rating {
    display: flex;
    gap: 3px;
}

.rating i {
    color: #ffc107;
    font-size: 0.85rem;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.7;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1rem;
}

/* Tag del producto instalado */
.testimonial-product {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-black);
    background: rgba(255, 205, 0, 0.18);
    border: 1px solid rgba(255, 205, 0, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

/* ===== CTA FINAL ===== */
.cta-final {
    padding: 100px 0;
    background: var(--brand-yellow);
    color: var(--brand-black);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-final::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-final > .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    font-weight: 400;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

/* Lineas de contacto del footer (icono + texto).
   - Separa 5px el icono del texto (no quedan pegados).
   - Sangria francesa: el texto que se envuelve (p.ej. la direccion)
     alinea con el texto y NO debajo del icono. */
.footer-section p.contact-line {
    padding-left: 21px;   /* 16px del icono + 5px de separacion */
    text-indent: -21px;   /* la 1a linea arranca en el borde, con el icono */
}

.footer-section p.contact-line>i {
    display: inline-block;
    width: 16px;          /* ancho fijo: los 3 iconos quedan alineados */
    margin-right: 5px;
    text-align: center;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== CATEGORIAS SIN IMAGEN AUN ===== */
.category-card.no-image .category-image {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #3a3300 100%);
    position: relative;
}
.category-card.no-image .category-image::before {
    content: "Foto pendiente";
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: var(--brand-yellow);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* ===== REVEAL ON SCROLL (ligero, sin animaciones costosas) ===== */
.reveal-left,
.reveal-right,
.reveal-bottom,
.reveal-top,
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-top { transform: translateY(-30px); }

.reveal-left.in-view,
.reveal-right.in-view,
.reveal-bottom.in-view,
.reveal-top.in-view,
.fade-in-on-scroll.in-view {
    opacity: 1;
    transform: none;
}

/* Mejora rendimiento del grid de categorías */
.categories-grid,
.products-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

/* Respeta preferencias de usuario */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        color: var(--white);
    }

    .nav-menu .nav-link:hover {
        color: var(--brand-yellow);
    }

    .nav-menu .nav-submenu li a {
        color: var(--white);
    }

    .menu-toggle {
        display: flex;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-prev {
        left: 15px;
    }

    .gallery-next {
        right: 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .vehicle-form {
        grid-template-columns: 1fr;
    }

    .categories-grid,
    .products-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }

    .hero {
        height: 90vh;
        min-height: 600px;
    }

    .gallery-indicators {
        bottom: 100px;
        padding: 10px 16px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 85vh;
        min-height: 500px;
        margin-top: 50px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .gallery-indicators {
        bottom: 85px;
        padding: 8px 12px;
        gap: 8px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 24px;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
        margin-bottom: 2rem;
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
#lk-toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    pointer-events: none;
}

.lk-toast {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: var(--brand-black);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    max-width: 90vw;
}

.lk-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.lk-toast--warning {
    background: var(--brand-black);
    border-left: 4px solid var(--brand-yellow);
}

.lk-toast--error {
    background: #b91c1c;
    border-left: 4px solid #fca5a5;
}

.lk-toast--success {
    background: #15803d;
    border-left: 4px solid #86efac;
}

.lk-toast--info {
    background: var(--brand-black);
    border-left: 4px solid var(--brand-gray-1);
}

.lk-toast__icon {
    color: var(--brand-yellow);
    font-size: 1rem;
    flex-shrink: 0;
}

.lk-toast--error   .lk-toast__icon { color: #fca5a5; }
.lk-toast--success .lk-toast__icon { color: #86efac; }
.lk-toast--info    .lk-toast__icon { color: var(--brand-gray-1); }

/* ===== INTERSECT OBSERVER PARA SCROLL ANIMATIONS ===== */
[data-animate] {
    opacity: 0;
}

[data-animate].in-view {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== PÁGINA DE CATEGORÍA (/cat/<slug>) ===== */
.category-hero {
    margin-top: 72px; /* deja espacio para el header fijo */
    padding: 70px 0 56px;
    background: var(--primary-color);
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.category-hero .breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.category-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.category-hero .breadcrumb a:hover {
    color: var(--accent-color);
}

.category-hero .breadcrumb .sep {
    margin: 0 0.45rem;
    opacity: 0.6;
}

.category-hero .breadcrumb .current {
    color: var(--white);
    font-weight: 600;
}

.category-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.category-desc {
    max-width: 720px;
    margin-top: 1rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.category-subnav {
    padding: 2rem 0;
    background: var(--white);
}

.category-subnav .subcategories-bar {
    justify-content: flex-start;
    margin: 0;
}

/* El chip funciona también como enlace en la página de categoría */
.subcat-chip {
    text-decoration: none;
}

/* ===== FICHA DE PRODUCTO (/prod/<slug>) ===== */
.product-detail {
    margin-top: 72px;
    padding: 40px 0 70px;
    background: var(--white);
}

.product-detail .breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
    color: var(--text-light);
}

.product-detail .breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.product-detail .breadcrumb a:hover {
    color: var(--primary-color);
}

.product-detail .breadcrumb .sep {
    margin: 0 0.45rem;
    opacity: 0.5;
}

.product-detail .breadcrumb .current {
    color: var(--text-dark);
    font-weight: 600;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    background: var(--light-bg);
    box-shadow: var(--shadow-sm);
}

.product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    /* Las imágenes de producto se suben cuadradas (600x600). Un marco 4/3 con
       object-fit:cover recortaba ~25% del alto. Marco 1:1 + contain = imagen
       completa, sin recorte (y sin barras mientras la fuente sea cuadrada). */
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-bg);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--accent-color);
}

.product-detail-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--text-dark);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.product-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--brand-gray-2);
    color: var(--text-dark);
}

.product-detail-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.product-detail-desc p {
    margin-bottom: 0.8rem;
}

.product-variants {
    margin-bottom: 1.8rem;
}

.variant-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.variant-selector {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--brand-gray-1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    cursor: pointer;
    appearance: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.variant-selector:focus {
    outline: 2px solid var(--brand-yellow);
    border-color: var(--brand-yellow);
}

.product-detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

/* ── Compatibility filters ── */
.product-compat-filters {
    margin-bottom: 1.8rem;
    padding: 1.2rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--brand-gray-1);
}

.compat-filters-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin: 0 0 0.8rem;
}

.compat-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.compat-filter-group {
    display: flex;
    flex-direction: column;
}

.compat-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Variant info panel ── */
.product-variant-info {
    margin-bottom: 1.6rem;
    padding: 1.2rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--brand-gray-1);
}

.variant-info-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin: 0 0 0.6rem;
}

.variant-info-price {
    margin: 0 0 0.6rem;
}

.variant-price-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-black);
}

.variant-compat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem;
}

.variant-compat-list li {
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--brand-gray-1);
}

.variant-compat-list li:last-child {
    border-bottom: none;
}

.variant-compat-list li em {
    color: var(--text-light);
    font-style: italic;
}

.variant-info-desc p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .compat-filters-grid {
        grid-template-columns: 1fr;
    }
}
