/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    --color-bg-dark: #0E3A2F;
    --color-bg-card: #04362d;
    --color-accent: #FF5E00;
    --color-text-white: #ffffff;
    --color-text-muted: #EBFFF7;
    --color-light-mint: #00ffaa;
    --font-primary: 'Urbanist', Arial, sans-serif;
    --max-width: 1180px;
    --verde-sost: #00cb7b;
    --verde-sost-100: #d7ffee;
    --verde-sost-700: #04915a;
    --verde-bosc: #0e3a2f;
    --verde-bosc-800: #08261f;
    --gris: #f2f2f2;
    --gris-100: #f8f8f8;
    --gris-700: #dcdcdc;
    --blanco: #ffffff;
    --tinta: #1c2b26;
    --tinta-suave: #4c5f58;
    --radius: 20px;
    --shadow: 0 12px 40px rgba(14, 58, 47, .18);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary), serif;
    background: var(--verde-bosc);
    color: var(--color-text-white);
    line-height: 1.5;
    overflow-x: hidden;
    letter-spacing: -.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    display: block;
}

main {
    background: linear-gradient(160deg, var(--verde-bosc) 0%, var(--verde-bosc-800) 75%) no-repeat;
}

section {
    margin-top: -1px;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow-sm {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--verde-sost-700);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

h2.sec-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--verde-bosc);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -.01em;
}

p.sec-sub {
    text-align: center;
    color: var(--tinta-suave);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.55;
}

/* ==========================================================================
   3. HEADER / NAVIGATION
   ========================================================================== */
.site-header {
    width: 100%;
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo .logo-img {
    height: 24px;
    max-width: inherit;
}

.main-navigation {
    display: block;
    margin-right: auto;
}

.nav-list {
    display: flex;
    gap: 18px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.9;
}

.nav-link:hover {
    color: var(--color-light-mint);
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-user {
    width: 22px;
    height: 22px;
    fill: currentColor;
    opacity: 0.9;
}

.btn-sell-car {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 10px 18px;
    justify-content: space-between;
    background: var(--blanco);
    color: var(--verde-bosc);
    font-weight: 700;
    font-size: 14px;
}

.btn-sell-car:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-white);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 28px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-white);
    border-radius: 2px;
    transition: 0.3s;
}

/* ==========================================================================
   4. HERO SECTION & FORM COMPONENTS
   ========================================================================== */
.hero-section {
    position: relative;
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 0 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.crumb {
    font-size: 13px;
    color: #9fc9b8;
    padding: 14px 0 6px;
    text-align: left;
    width: 90%;
}

.crumb b {
    color: #d7ffee;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-title {
    font-size: 44px;
    line-height: 1.14;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -.01em;
}

.hero-description {
    text-align: justify;
    font-size: 17.5px;
    line-height: 1.55;
    color: #c9ddd4;
    max-width: 600px;
    margin: 0 auto 28px;
}

.hero-form input {
    flex: 1;
    min-width: 200px;
    padding: 15px 18px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    font-family: inherit;
    background: var(--blanco);
    color: var(--tinta);
}

/* CTA Form */
.cta-form-container {
    margin: 0 auto;
}

.cta-form-container.m-center {
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: flex;
    padding: 6px;
    gap: 10px;
}

.hero-section .cta-form-container .cta-form {
    width: 450px;
    margin: 0 auto;
}

.form-group {
    flex: 1;
}

.email-hero-div {
    width: 265px;
}

.input-container {
    position: relative;
}

.form-input {
    border: none;
    outline: none;
    font-size: 16px;
    color: #0E3A2F;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-family: var(--font-primary), serif;
    padding: 20px 17px;
    width: 100%;
}

.custom-input {
    background: transparent;
    color: #333333;
}

.custom-placeholder {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
    color: #0E3A2F;
}

.custom-input:focus ~ .custom-placeholder,
.custom-input:not(:placeholder-shown) ~ .custom-placeholder {
    top: 16px;
    font-size: 10px;
    transform: translateY(-80%);
}

.btn-submit {
    background-color: var(--color-accent);
    color: var(--color-text-white);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 1.5px;
    font-family: var(--font-primary), serif;
}

.btn-submit:hover {
    background-color: #e04f00;
}

.cta-guarantees {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 12px;
    font-size: 13.5px;
    color: #b9d3c8;
}

.check-icon {
    font-weight: bold;
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 920px;
    margin: 34px auto;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
}

.trust-item {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #e4f2ec;
    border-right: 1px solid rgba(255, 255, 255, .12);
    text-align: left;
}

.trust-item:last-child {
    border-right: none;
}

.trust-item .ic {
    color: var(--verde-sost);
    font-size: 16px;
}

/* ==========================================================================
   5. SECTION: WHO (¿Es esto para ti?)
   ========================================================================== */
.who {
    padding: 64px 0;
    background: var(--gris-100);
}

.who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 920px;
    margin: 0 auto;
}

.who-card {
    background: var(--blanco);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow);
}

.who-card.yes {
    border-top: 4px solid var(--verde-sost);
}

.who-card.no {
    border-top: 4px solid var(--gris-700);
}

.who-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--verde-bosc);
}

.who-card ul {
    list-style: none;
}

.who-card li {
    display: flex;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--tinta);
    margin-bottom: 14px;
}

.who-card.yes li::before {
    content: "✓";
    color: var(--verde-sost-700);
    font-weight: 800;
    flex: none;
}

.who-card.no li::before {
    content: "→";
    color: var(--tinta-suave);
    font-weight: 800;
    flex: none;
}

/* ==========================================================================
   6. SECTION: HOW (Cómo funciona)
   ========================================================================== */
.how {
    padding: 64px 0;
    background: var(--blanco);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
}

.step-card {
    background: var(--gris-100);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--verde-bosc);
    color: var(--blanco);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--verde-bosc);
}

.step-card p.txt {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--tinta-suave);
}

.chat-mock {
    background: var(--blanco);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(14, 58, 47, .08);
}

.chat-bubble {
    background: var(--verde-sost-100);
    color: var(--verde-bosc);
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 12px 12px 12px 3px;
    line-height: 1.35;
}

.chat-bubble.q {
    align-self: flex-end;
    background: var(--verde-bosc);
    color: var(--blanco);
    border-radius: 12px 12px 3px 12px;
}

.mini-tag {
    display: inline-block;
    background: var(--gris);
    color: var(--tinta-suave);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    width: fit-content;
}

.cards-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    background: var(--blanco);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tinta);
    box-shadow: 0 2px 8px rgba(14, 58, 47, .06);
}

.cost-row span.v {
    color: var(--verde-sost-700);
}

/* ==========================================================================
   7. SECTION: TRUST SOCIAL
   ========================================================================== */
.trust-social {
    background: var(--verde-sost-100);
    padding: 64px 0;
}

.placeholder-box {
    max-width: 760px;
    margin: 0 auto;
    border: 2px dashed var(--verde-sost-700);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    background: rgba(255, 255, 255, .5);
}

.placeholder-box .ic {
    font-size: 30px;
    margin-bottom: 10px;
}

.placeholder-box h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--verde-bosc);
    margin-bottom: 8px;
}

.placeholder-box p {
    font-size: 14.5px;
    color: var(--tinta-suave);
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

.placeholder-box .tag {
    display: inline-block;
    margin-top: 16px;
    background: var(--verde-bosc);
    color: var(--blanco);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}

/* ==========================================================================
   8. SECTION: FAQ
   ========================================================================== */
.faq-sec {
    padding: 64px 0;
    background: var(--blanco);
}

.faq {
    max-width: 760px;
    margin: 0 auto;
    background: var(--blanco);
    border: 1px solid var(--gris-700);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-item {
    border-bottom: 1px solid var(--gris);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.faq-q .num {
    color: var(--verde-sost-700);
    font-weight: 800;
    font-size: 14px;
    margin-right: 10px;
}

.faq-q .txt {
    font-weight: 700;
    font-size: 16px;
    color: var(--verde-bosc);
    flex: 1;
}

.faq-q .icon {
    font-size: 20px;
    color: var(--verde-sost-700);
    font-weight: 800;
    flex: none;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.faq-item.open .faq-a {
    max-height: 260px;
}

.faq-a-inner {
    padding: 0 24px 22px 58px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--tinta-suave);
}

/* ==========================================================================
   9. MID-PAGE LEAD GENERATION SECTION
   ========================================================================== */
.mid-cta-section {
    padding: 24px 20px 32px 20px;
    text-align: center;
    background-color: var(--blanco);
}

.mid-cta-section .section-container {
    background: linear-gradient(160deg, var(--verde-bosc) 0%, var(--verde-bosc-800) 100%);
    color: var(--blanco);
    text-align: center;
    border-radius: 28px;
    max-width: 80%;
    margin: 34px auto;
    padding: 52px 32px;
}

.mid-cta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 17.5px;
    line-height: 1.55;
    color: #c9ddd4;
    max-width: 600px;
    margin: 0 auto 28px;
}

.mid-cta-section .hero-form {
    max-width: 455px;
    margin: 24px auto;
}

.cta-share {
    font-size: 13.5px;
    color: #b9d3c8;
    margin-top: 18px;
}

.text-highlight {
    color: var(--color-light-mint);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer.site {
    background: var(--verde-bosc);
    color: #cfe6dc;
    padding: 48px 0 22px;
}

.foot-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 34px;
}

.foot-brand .logo {
    margin-bottom: 14px;
}

.foot-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.foot-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.foot-contact {
    margin-top: 16px;
    font-size: 13.5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.foot-col h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: 14px;
}

.foot-col a,
.foot-col span {
    display: block;
    font-size: 13.5px;
    color: #a9c9bd;
    margin-bottom: 10px;
}

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: #8fb3a5;
}

.foot-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   11. MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1326px) {
    .btn-sell-car {
        display: none;
    }
}

@media (max-width: 1132px) {
    .header-container {
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
    }

    .main-navigation.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-actions {
        margin-left: 15px;
    }
}

@media (max-width: 900px) {
    .how-steps {
        grid-template-columns: 1fr;
    }

    .who-grid {
        grid-template-columns: 1fr;
    }

    .foot-top {
        grid-template-columns: 1fr 1fr;
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .trust-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px 20px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-section .cta-form-container .cta-form {
        width: 100%;
    }

    .cta-form {
        gap: 10px;
        flex-direction: column;
    }

    .email-hero-div {
        width: 100%;
    }

    .form-group {
        width: 100%;
    }

    .cta-guarantees {
        flex-direction: column;
        align-items: center;
    }

    .mid-cta-section {
        padding: 24px 15px 60px 15px;
    }

    .mid-cta-section .section-container {
        max-width: 100%;
    }

    .mid-cta-section .hero-form {
        display: flex;
        flex-direction: column;
        height: auto;
    }
}

@media (max-width: 520px) {
    .foot-top {
        grid-template-columns: 1fr;
    }

    section {
        padding: 48px 0;
    }
}
