/* ═══════════════════════════════════════════════════════════
   CREDIAUTOEC — Premium Stylesheet
   Estética: Kia-inspired, limpia, cinematográfica, full-width
   ═══════════════════════════════════════════════════════════ */

/* ── Variables globales ── */
:root {
    --brand-red:    #D50000;
    --brand-dark:   #9b0000;
    --brand-black:  #0d0d0d;
    --brand-gray:   #f5f5f7;
    --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar personalizado ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand-red); border-radius: 99px; }


/* ═══════════════════════════════════════════════════════════
   HERO — Animaciones de entrada
   ═══════════════════════════════════════════════════════════ */

.hero-reveal {
    animation: heroReveal 0.9s var(--ease-smooth) both;
}

.hero-reveal-d1 { animation-delay: 0.10s; }
.hero-reveal-d2 { animation-delay: 0.22s; }
.hero-reveal-d3 { animation-delay: 0.34s; }
.hero-reveal-d4 { animation-delay: 0.46s; }

/* hero-reveal-active ya no es necesario, pero se mantiene por compatibilidad */
.hero-reveal-active { animation-play-state: running; }

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

/* Gradiente de texto rojo */
.text-gradient-red {
    background: linear-gradient(135deg, #ff1a1a 0%, #D50000 50%, #8b0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ═══════════════════════════════════════════════════════════
   HEADER — Estados (transparente / sólido)
   ═══════════════════════════════════════════════════════════ */

#main-header {
    /* Estado inicial: transparente */
}

.nav-link {
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--brand-red);
    transition: width 0.3s var(--ease-smooth);
}

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


/* ═══════════════════════════════════════════════════════════
   CHIPS — Info rápida en el Hero
   ═══════════════════════════════════════════════════════════ */

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* ═══════════════════════════════════════════════════════════
   STAT BAND — Barra de métricas
   ═══════════════════════════════════════════════════════════ */

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 100px;
}

.stat-number {
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════
   SECTION — Tipografía de sección reutilizable
   ═══════════════════════════════════════════════════════════ */

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-red);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--brand-black);
}


/* ═══════════════════════════════════════════════════════════
   CATEGORÍAS — Tabs
   ═══════════════════════════════════════════════════════════ */

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    white-space: nowrap;
}

.cat-tab:hover {
    border-color: var(--brand-black);
    color: var(--brand-black);
}

.cat-tab.active {
    background: var(--brand-black);
    border-color: var(--brand-black);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 13, 13, 0.15);
}


/* ═══════════════════════════════════════════════════════════
   VEHICLE CARDS — Tarjetas de vehículos premium
   ═══════════════════════════════════════════════════════════ */

.vehicle-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-smooth);
}

.vehicle-card:hover {
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: transparent;
}

.vehicle-card-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f7;
}

.vehicle-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s var(--ease-smooth);
}

.vehicle-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    text-transform: capitalize;
    letter-spacing: 0.05em;
}

.vehicle-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}


/* ═══════════════════════════════════════════════════════════
   BENEFIT CARDS — Tarjetas de beneficios (tout-cards)
   ═══════════════════════════════════════════════════════════ */

.benefit-card {
    padding: 32px;
    border-radius: 20px;
    border: 1.5px solid #f0f0f0;
    background: white;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-smooth);
    cursor: default;
}

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

.benefit-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s var(--ease-smooth);
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brand-black);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.benefit-text {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.65;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    flex: 1;
}


/* ═══════════════════════════════════════════════════════════
   STEP CARDS — Pasos del proceso
   ═══════════════════════════════════════════════════════════ */

.step-card {
    position: relative;
    padding: 36px;
    border-radius: 24px;
    border: 1.5px solid #e5e7eb;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.step-card:hover {
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 5rem;
    font-weight: 900;
    color: #f0f0f0;
    line-height: 1;
    letter-spacing: -0.05em;
    user-select: none;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════
   CONTACT CARDS — Tarjetas de contacto
   ═══════════════════════════════════════════════════════════ */

.contact-card {
    padding: 28px 24px;
    border-radius: 18px;
    border: 1.5px solid #f0f0f0;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.35s var(--ease-smooth);
    cursor: pointer;
    text-decoration: none;
}

.contact-card:hover {
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: transparent;
}

.contact-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s var(--ease-smooth);
}


/* ═══════════════════════════════════════════════════════════
   FOOTER — Links
   ═══════════════════════════════════════════════════════════ */

.footer-nav-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', sans-serif;
    transition: color 0.25s var(--ease-smooth);
    position: relative;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-red);
    transition: width 0.3s var(--ease-smooth);
}

.footer-nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

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


/* ═══════════════════════════════════════════════════════════
   GLASSMORPHISM — Reutilizable
   ═══════════════════════════════════════════════════════════ */

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}


/* ═══════════════════════════════════════════════════════════
   BOTONES — Estilos globales reutilizables
   ═══════════════════════════════════════════════════════════ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--brand-black);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(213, 0, 0, 0.35);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--brand-red);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-accent:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(213, 0, 0, 0.4);
}


/* ═══════════════════════════════════════════════════════════
   UTILIDADES — Animaciones globales
   ═══════════════════════════════════════════════════════════ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Scroll reveal — se activa con JS via Intersection Observer si se añade */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Ajustes específicos
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .step-card {
        min-height: 300px;
    }

    .stat-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cat-tab {
        padding: 7px 14px;
        font-size: 12px;
    }
}


/* ═══════════════════════════════════════════════════════════
   BENTO GRID — Para catálogo en otras páginas (legado)
   ═══════════════════════════════════════════════════════════ */

.bento-card {
    transition: all 0.4s var(--ease-smooth);
}

.bento-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.premium-card {
    transition: all 0.5s var(--ease-smooth);
}

.premium-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1);
}
