/* ═══════════════════════════════════════════
   AutoExpert – Modern Design
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --blue-900: #0B1D3A;
    --blue-800: #0F2748;
    --blue-700: #12326C;
    --blue-600: #1E40AF;
    --blue-500: #3B82F6;
    --blue-400: #60A5FA;
    --blue-100: #DBEAFE;
    --blue-50: #EFF6FF;

    --orange-500: #F97316;
    --orange-600: #EA580C;

    --green-500: #10B981;
    --green-600: #059669;
    --green-400: #34D399;

    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --white: #fff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────
   GRADIENT TEXT
   ───────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--blue-400), var(--green-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 35%, var(--blue-700) 70%, #1a3f80 100%);
    color: #fff;
    text-align: center;
    padding: 60px 24px 90px;
    position: relative;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: white;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: floatShape 16s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 60%;
    opacity: 0.04;
    animation: floatShape 12s ease-in-out infinite;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

.hero-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
}

/* Logo */
.logo-img {
    height: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: fadeInDown 0.8s ease;
}

.beta-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    animation: fadeInDown 0.8s ease 0.1s both;
}

.hero h1 {
    font-size: clamp(30px, 5.5vw, 46px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin: 0 auto 38px;
    line-height: 1.75;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(249, 115, 22, 0.45);
}

.btn-cta svg {
    transition: transform 0.3s;
}

.btn-cta:hover svg {
    transform: translateY(3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────
   FEATURES
   ───────────────────────────────────────── */
.features {
    background: var(--gray-50);
    padding: 80px 24px 90px;
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 800;
    color: var(--gray-900);
    max-width: 650px;
    margin: 0 auto 52px;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px 28px 34px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--green-400));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon-wrap {
    background: linear-gradient(135deg, var(--blue-100), #E0F2FE);
    transform: scale(1.08);
}

.feature-icon {
    font-size: 30px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-700);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.65;
}

/* ─────────────────────────────────────────
   CALCULATOR
   ───────────────────────────────────────── */
.calculator-section {
    background: var(--gray-50);
    padding: 10px 24px 80px;
}

.calculator-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.08);
}

.calculator-header {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    color: #fff;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-body {
    padding: 32px 36px 16px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    gap: 16px;
}

.form-row label {
    flex: 0 0 150px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: right;
    padding-right: 4px;
}

.form-row .req {
    color: #EF4444;
    font-weight: 700;
}

.form-row .input-wrap {
    flex: 1;
}

/* Inputs */
select,
input[type="number"] {
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--transition);
}


select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

select:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: var(--white);
}

select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Footer / button */
.calculator-footer {
    padding: 4px 36px 32px;
    text-align: center;
}

.required-note {
    color: #EF4444;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: left;
}

.btn-cotizar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 44px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}

.btn-cotizar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
}

.btn-cotizar:active:not(:disabled) {
    transform: translateY(0);
}

.btn-cotizar:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.check-icon {
    flex-shrink: 0;
}

.btn-cotizar.loading .check-icon {
    display: none;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-cotizar.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─────────────────────────────────────────
   ENDORSEMENT
   ───────────────────────────────────────── */
.endorsement {
    background: linear-gradient(135deg, var(--blue-50), #E0F2FE);
    padding: 64px 24px;
    text-align: center;
}

.endorsement-inner {
    max-width: 680px;
    margin: 0 auto;
}

.endorsement-badge {
    font-size: 38px;
    margin-bottom: 18px;
}

.endorsement p {
    font-size: 17px;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.8;
}

.endorsement strong {
    color: var(--blue-700);
    font-weight: 800;
    font-style: normal;
}

/* ─────────────────────────────────────────
   TRUST
   ───────────────────────────────────────── */
.trust {
    background: var(--white);
    padding: 80px 24px 90px;
    text-align: center;
}

.trust-inner {
    max-width: 700px;
    margin: 0 auto;
}

.trust h2 {
    font-size: clamp(24px, 4.5vw, 34px);
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 40px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.trust-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.trust-card:hover {
    background: var(--green-400);
    color: var(--white);
    border-color: var(--green-400);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.trust-card:hover .trust-check {
    background: var(--white);
    color: var(--green-600);
}

.trust-check {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--green-500);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--transition);
}

.trust-card span {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    transition: color var(--transition);
}

.trust-card:hover span {
    color: var(--white);
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    text-align: center;
    padding: 32px 24px;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-logo {
    height: 36px;
    opacity: 0.7;
    filter: brightness(2);
}

.aeade-logo {
    height: 48px;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 20px 60px;
        min-height: 0;
    }

    .logo-img {
        height: 60px;
        margin-bottom: 28px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .form-row label {
        text-align: left;
        flex: none;
    }

    .form-row .input-wrap {
        width: 100%;
    }

    .calculator-body,
    .calculator-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .km-group {
        flex-direction: column;
        align-items: stretch;
    }

    .km-group input[type="number"] {
        width: 100%;
    }

    .trust-card {
        padding: 14px 18px;
    }

}

/* Laravel forms: same page shell, existing valuation flow. */
.calculator-section { scroll-margin-top: 24px; }
.calculator-section:focus { outline: none; }
.quote-status, .quote-notice { max-width: 1000px; margin: 0 auto 20px; }
.quote-status { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.quote-notice { border: 1px solid #FCD34D; border-radius: 12px; padding: 16px 20px; color: #92400E; background: #FFFBEB; }
.quote-field { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; margin-bottom: 22px; align-items: center; }
.quote-field > label { grid-column: 1; grid-row: 1; font-size: 14px; font-weight: 600; text-align: right; color: var(--gray-700); }
.quote-field > input, .quote-field > select, .quote-field > textarea { grid-column: 2; grid-row: 1; min-width: 0; }
.quote-field > .form-text, .quote-field > .text-danger { grid-column: 2; }
.maker-search { position: relative; grid-column: 2; grid-row: 1; min-width: 0; }
.quote-field .maker-search input { padding-right: 44px; font-size: 16px; }
.maker-search-toggle { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--gray-700); cursor: pointer; font-size: 18px; }
.maker-search ul, .maker-search-empty { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 6px; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; list-style: none; background: white; border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: var(--shadow-lg); }
.maker-search li { padding: 11px 12px; border-radius: 6px; font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
.maker-search li:hover, .maker-search li[aria-selected="true"] { background: var(--blue-50); color: var(--blue-700); }
.maker-search-empty { font-size: 14px; padding: 14px; color: var(--gray-500); }
.quote-field input, .quote-field textarea { width: 100%; padding: 11px 16px; font-size: 14px; font-family: inherit; color: var(--gray-800); background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.quote-field textarea { resize: vertical; }
.quote-field input:focus, .quote-field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.1); background: white; }
.form-text { font-size: 12px; color: var(--gray-500); line-height: 1.5; }
.text-danger { font-size: 13px; color: #B91C1C; }
.quote-secondary { display: inline-block; border: 1px solid var(--gray-300); border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; font-size: 13px; color: var(--blue-700); background: white; cursor: pointer; text-decoration: none; }
.quote-secondary:hover { background: var(--blue-50); }
.quote-intro { margin-bottom: 28px; font-size: 14px; color: var(--gray-500); }
.quote-consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-size: 14px; }
.quote-consent input { margin-top: 5px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--blue-600); }
.quote-consent-help { margin: 0 0 24px 27px; }
.quote-contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.quote-contact-actions > .quote-secondary { border-radius: 50px; }
.quote-service-panel { padding: clamp(20px, 4vw, 36px); border-radius: 18px; border: 1px solid var(--blue-100); background: var(--blue-50); }
.quote-service-panel h3 { margin-bottom: 8px; color: var(--blue-900); font-size: clamp(24px, 4vw, 32px); line-height: 1.2; }
.quote-service-panel p { margin-bottom: 20px; color: var(--gray-700); }
.quote-service-panel .quote-service-kicker { margin-bottom: 8px; color: var(--blue-700); font-size: 14px; font-weight: 600; }
.quote-service-cta { justify-content: center; padding-inline: 24px; background: #047857; text-align: center; text-decoration: none; }
.quote-service-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 20px; padding: 14px 18px; margin-bottom: 24px; background: var(--gray-50); border-radius: 10px; overflow-wrap: anywhere; }
.quote-service-contact dt { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.quote-service-contact dd { margin: 0; }
button:focus-visible, a:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 4px; }
@media (max-width: 640px) {
    .quote-field { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
    .quote-field > label { text-align: left; }
    .quote-contact-actions > * { width: 100%; justify-content: center; text-align: center; }
    .quote-service-panel .quote-service-cta { width: 100%; }
    .calculator-header { padding: 18px 20px; font-size: 14px; letter-spacing: 1px; }
    .quote-status { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
