/* =============================================
   AUTOPRIME — home.css
   Estilos específicos del Home + componentes
   duplicados según separación de responsabilidades.
   ============================================= */

/* ========== HERO ========== */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, var(--ap-accent-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, var(--ap-accent-2-glow) 0%, transparent 55%),
        var(--ap-bg);
    z-index: 0;
}

.hero-content-modern {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ap-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--ap-glass-border);
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--ap-accent);
    margin-bottom: 2rem;
}

.hero-image-container {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s ease;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-float-card {
    position: absolute;
    background: var(--ap-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ap-glass-border);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--ap-shadow);
    animation: home-float 6s ease-in-out infinite;
}

.hero-float-card-1 {
    top: 10%;
    right: -2rem;
    animation-delay: 0s;
}

.hero-float-card-2 {
    bottom: 15%;
    left: -2rem;
    animation-delay: 2s;
}

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

/* ========== HERO IMAGE FRAME (copia 1) ========== */
.hero-image-frame {
    background: var(--ap-bg-elevated);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: var(--ap-shadow-lg);
    position: relative;
}

.hero-image-frame img {
    border-radius: 1.5rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========== VEHICLE CARD PREMIUM (copia 1) ========== */
.vehicle-card-premium {
    background: var(--ap-bg-elevated);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--ap-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--ap-shadow-lg);
    border-color: var(--ap-accent);
}

.vehicle-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ap-accent), var(--ap-accent-active));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.vehicle-card-premium:hover::before {
    transform: scaleX(1);
}

.vehicle-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.vehicle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vehicle-card-premium:hover .vehicle-img-wrapper img {
    transform: scale(1.08);
}

.vehicle-badge-stock {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--ap-accent);
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.vehicle-badge--oferta {
    background: var(--ap-warning);
}

.vehicle-badge--nuevo {
    background: var(--ap-success);
}

.vehicle-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--ap-text);
}

.vehicle-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ap-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.vehicle-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.vehicle-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ap-accent);
    margin-bottom: 1.25rem;
    margin-top: auto;
}

.vehicle-actions {
    display: flex;
    gap: 0.75rem;
}

.vehicle-actions .btn {
    flex: 1;
    padding: 0.875rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 1rem;
}

/* ========== FEATURE CARD MODERNA (copia 1) ========== */
.feature-card-modern {
    background: var(--ap-bg-elevated);
    border: 1px solid var(--ap-border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--ap-shadow);
    border-color: var(--ap-accent);
}

.feature-icon-modern {
    width: 64px;
    height: 64px;
    background: var(--ap-gradient-aurora);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.feature-card-modern h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
}

.feature-card-modern p {
    color: var(--ap-text-muted);
    margin: 0;
}

/* ========== PROCESO STEPPER ========== */
.process-step-modern {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--ap-bg-elevated);
    border-radius: 1.5rem;
    border: 1px solid var(--ap-border);
    transition: all 0.4s ease;
    height: 100%;
}

.process-step-modern:hover {
    border-color: var(--ap-accent);
    transform: translateY(-4px);
}

.step-number-modern {
    width: 56px;
    height: 56px;
    background: var(--ap-gradient-aurora);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 4px 20px var(--ap-accent-glow);
}

.step-number-modern::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--ap-accent);
    border-radius: 50%;
    opacity: 0.3;
}

.process-step-modern h5 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.process-step-modern p {
    color: var(--ap-text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

/* ========== CTA MODERNO (copia 1) ========== */
.cta-modern {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    border-radius: 2rem;
    margin: 0 1rem;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--ap-gradient-nocturne);
    border-radius: 2rem;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 32px 32px;
    border-radius: 2rem;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-image-container {
        margin-top: 3rem;
        transform: none;
    }

    .hero-image-container:hover {
        transform: none;
    }
}

@media (max-width: 767px) {
    .hero-modern {
        padding: 7rem 0 3rem;
    }

    .vehicle-actions {
        flex-direction: column;
    }
}
