@charset "utf-8";
/* CSS Document */
/* ===================================================
   STELLANTIS — Canal Concesionarios
   style-home.css  v1.1.0
   =================================================== */

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

:root {
    --navy:        #00205B;
    --navy-deep:   #001238;
    --navy-mid:    #0a1e52;
    --blue:        #0050FF;
    --blue-bright: oklch(55% 0.22 248);
    --blue-soft:   oklch(62% 0.18 248);
    --white:       #f4f6fb;
    --off-white:   #e8ecf5;
    --text-light:  rgba(244,246,251,0.72);
    --font:        'Montserrat', Helvetica, Arial, sans-serif;
    --header-h:    72px;
    --footer-h:    72px;
    --services-h:  220px;
    --transition:  0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
    height: 100%;
    overflow: hidden; /* desktop: no scroll */
    font-family: var(--font);
    background: var(--navy-deep);
    color: var(--white);
    overflow-x: hidden;
}

/* ─── PAGE WRAPPER ───────────────────────────────── */

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
}

/* ─── HEADER ─────────────────────────────────────── */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    flex-shrink: 0;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header--solid {
    background: rgba(0, 18, 56, 0.97);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

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

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: 1.5px solid rgba(244,246,251,0.35);
    border-radius: 3px;
    padding: 9px 20px;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-login:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    color: #fff;
}

.btn-login-icon {
    display: flex;
    align-items: center;
}

.btn-login-icon svg {
    width: 16px;
    height: 16px;
}

/* ─── HERO ───────────────────────────────────────── */

.hero {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    animation: heroZoom 12s ease-out forwards;
}

.hero-bg--fallback {
    background: linear-gradient(135deg, var(--navy-deep) 0%, #00326b 100%);
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1.00); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 18, 56, 0.38) 0%,
        rgba(0, 18, 56, 0.55) 45%,
        rgba(0, 18, 56, 0.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 760px;
    animation: heroFadeUp 1s 0.3s both ease-out;
}

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

.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue-soft);
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 20px;
    text-wrap: balance;
}

.hero-sub {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 40px;
    letter-spacing: 0.01em;
}

.hero-cta {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--blue-bright);
    padding: 15px 40px;
    border-radius: 3px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 8px 32px rgba(0,80,255,0.35);
}

.hero-cta:hover {
    background: oklch(50% 0.24 248);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0,80,255,0.45);
}

/* ─── SERVICES ───────────────────────────────────── */

.services {
    background: var(--navy-deep);
    padding: 20px 40px;
    flex-shrink: 0;
}

.services-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.service-card {
    position: relative;
    background: var(--navy-mid);
    display: flex;
    flex-direction: column;
    transition: background var(--transition);
    overflow: hidden;
}

/* Background image with color overlay */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 82, 0.95); /* navy-mid at 80% */
    z-index: 1;
    transition: background var(--transition);
}

.service-card--accent::after {
    background: rgba(11, 34, 96, 0.80);
}

.service-card:hover::after {
    background: rgba(14, 42, 116, 0.75);
}

.service-body {
    position: relative;
    z-index: 2;
    padding: 24px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 3px;
    background: rgba(0, 80, 255, 0.15);
    color: var(--blue-soft);
    flex-shrink: 0;
}

.service-icon svg {
    width: 22px;
    height: 22px;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.service-desc {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-light);
}

/* ─── FOOTER ─────────────────────────────────────── */

.footer {
    background: #000e2e;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 16px 40px;
    flex-shrink: 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 20px;
    width: auto;
    opacity: 0.5;
    filter: brightness(0) invert(1);
}

.footer-copy {
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(244,246,251,0.35);
    letter-spacing: 0.02em;
}

/* ─── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 900px) {
    html, body {
        overflow: auto; /* mobile: allow scroll */
    }

    .page-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .hero {
        height: 100svh;
        flex: none;
    }

    .services-inner {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .header-inner {
        padding: 0 24px;
    }

    .services {
        padding: 24px 16px;
    }

    .footer {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .service-body {
        padding: 20px 24px 24px;
    }
}