/* =========================================================
   Grupo Vettel · Estilos del sitio
   Colores y tipografía tomados del diseño en Figma
   ========================================================= */
:root {
  --ink: #1E1F22;
  --ink-2: #26282C;
  --green: #1F8F37;
  --green-2: #2BA547;
  --lime: #6FD36B;
  --gold: #C9A54B;
  --gold-bg: #3A3220;
  --bg: #F3F4F2;
  --white: #FFFFFF;
  --muted: #5B6170;
  --label: #8A8E95;
  --soft: #A9AEB6;
  --line: #E3E5E3;
  --line-dark: #3A3D42;
  --radius: 4px;
  --radius-card: 6px;
  --container: 1232px;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding-inline: 24px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 13px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, opacity .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-2); }
.btn--white { background: var(--white); color: var(--ink); border-color: #D2D5D2; }
.btn--dark { background: var(--ink); color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Etiquetas de sección ---------- */
.eyebrow { font-size: 13px; letter-spacing: .02em; padding-bottom: 16px; border-bottom: 1px solid currentColor; display: block; opacity: .9; }
.eyebrow--plain { border: 0; padding: 0; color: var(--gold); font-size: 14px; letter-spacing: .06em; }
.section-title { font-size: clamp(32px, 4vw, 46px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(243, 244, 242, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.header__logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 32px; font-size: 15px; color: #3A4150; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--green); transition: width .25s ease; }
.nav a:hover::after { width: 100%; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); min-height: 640px; display: flex; align-items: flex-end; background: #2b2d30 center/cover no-repeat; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.85) 100%); }
.hero__content { position: relative; padding-block: 56px 72px; display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(40px, 5.5vw, 68px); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.hero p { font-size: clamp(16px, 1.6vw, 19px); max-width: 620px; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

/* ---------- Unidades ---------- */
.units { color: var(--white); background: linear-gradient(180deg, #030303 0%, rgba(29, 92, 42, .68) 100%), #1b3a22; padding-block: 88px 96px; }
.units__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.units__head p { font-size: 17px; }

.slider { position: relative; }
.slider__viewport { overflow: hidden; padding: 4px; margin: -4px; }
.slider__track { display: flex; gap: 24px; transition: transform .5s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.slider__arrow { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid #D2D5D2; background: var(--white); color: var(--ink); transition: transform .2s ease; }
.slider__arrow:hover { transform: translateY(-1px); }
.slider__arrow--next { background: var(--ink); color: var(--white); border-color: var(--ink); }
.slider__arrow svg { width: 20px; height: 20px; }
.slider__dots { display: flex; gap: 8px; align-items: center; }
.slider__dot { width: 8px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255,255,255,.45); transition: width .3s ease, background-color .3s ease; }
.slider__dot.is-active { width: 28px; background: var(--white); }

.car { flex: 0 0 calc((100% - 48px) / 3); background: var(--white); color: var(--ink); border-radius: var(--radius-card); padding: 12px; border: 1px solid var(--line); transition: border-color .3s ease, box-shadow .3s ease; }
.car.is-center { border: 2px solid var(--green); padding: 11px; }
.car__photo { position: relative; aspect-ratio: 356 / 260; border-radius: var(--radius); overflow: hidden; background: #E3E5E3; }
.car__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.car__photo img.is-active { opacity: .25; }
.car:hover .car__photo img.is-active, .car:focus-within .car__photo img.is-active { opacity: 1; }
.car__tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--white); font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: var(--radius); }
.car__info { padding: 18px 6px 6px; display: flex; flex-direction: column; gap: 6px; }
.car__cat { font-size: 12px; color: var(--label); letter-spacing: .04em; }
.car__name { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.car__details { font-size: 14px; color: var(--muted); }
.car__divider { height: 1px; background: var(--line); margin-top: 4px; }
.car .link-arrow { color: var(--green); padding-top: 6px; }
.units__cta { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Cómo funciona ---------- */
.steps { background: var(--ink); color: var(--white); padding-block: 56px; }
.steps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step__num { font-size: 40px; line-height: 1; }
.step h3 { font-size: 21px; font-weight: 500; }
.step p { font-size: 15px; color: #C9CDD6; }

/* ---------- Nosotros ---------- */
.about { background: linear-gradient(180deg, #1E1F22 78%, #2a2b2e 100%); color: var(--white); padding-block: 80px; }
.about__wrap { display: flex; flex-direction: column; gap: 56px; }
.about__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 22px; }
.about__title { font-size: clamp(36px, 4.5vw, 56px); font-weight: 400; line-height: 1.04; letter-spacing: -0.03em; }
.about__title span { color: var(--lime); }
.about__lead { font-size: 18px; color: var(--soft); line-height: 1.65; }
.values { display: flex; flex-wrap: wrap; gap: 10px; }
.value { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 15px; color: #E6E8EB; }
.value svg { width: 18px; height: 18px; color: var(--lime); }
.about__photo { position: relative; aspect-ratio: 560 / 420; border-radius: 8px; overflow: hidden; background: #2E3136; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__badge { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 8px; background: var(--gold); color: #2A2108; font-size: 15px; font-weight: 500; }
.about__badge svg { width: 18px; height: 18px; }

.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mv__card { border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.mv__card--green { background: var(--green); }
.mv__card--gold { border: 1.5px solid var(--gold); }
.mv__card .eyebrow--plain { color: #CFF2D6; }
.mv__card--gold .eyebrow--plain { color: var(--gold); }
.mv__card p { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; }
.icon-box { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; }
.icon-box svg { width: 22px; height: 22px; }
.icon-box--green { background: var(--green-2); color: var(--white); }
.icon-box--gold { background: var(--gold-bg); color: var(--gold); }
.icon-box--solid { background: var(--green); color: var(--white); }

.goals { display: flex; flex-direction: column; gap: 18px; }
.goals__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.goal { background: var(--ink-2); border-radius: 10px; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: #E6E8EB; line-height: 1.45; transition: transform .25s ease; }
.goal:hover { transform: translateY(-3px); }
.goal svg { width: 26px; height: 26px; color: var(--lime); }

.history { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; padding-top: 40px; border-top: 1px solid var(--line-dark); }
.history__text { display: flex; flex-direction: column; gap: 16px; }
.history__quote { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -0.02em; }
.history__text p:last-child { color: var(--soft); font-size: 17px; line-height: 1.65; }
.where { background: var(--ink-2); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.where h3 { font-size: 20px; font-weight: 500; }
.where p { color: var(--soft); font-size: 15px; }
.where a { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 15px; word-break: break-all; }
.where a svg { width: 18px; height: 18px; flex: none; }

/* ---------- Sucursal ---------- */
.branch { padding-block: 88px; }
.branch__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; color: var(--label); }
.branch__head .section-title { color: var(--ink); }
.branch__card { display: grid; grid-template-columns: 640px minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.branch__map { min-height: 330px; background: #E3E5E3; }
.branch__map iframe { width: 100%; height: 100%; min-height: 330px; border: 0; display: block; }
.branch__data { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; color: var(--muted); font-size: 15px; }
.branch__data h3 { color: var(--ink); font-size: 22px; font-weight: 500; }
.branch__data .link-arrow { color: var(--ink); padding-top: 8px; }

/* ---------- CTA final ---------- */
.cta { padding-bottom: 96px; }
.cta__band { background: var(--green); color: var(--white); border-radius: var(--radius-card); padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta__band h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 400; letter-spacing: -0.02em; }
.cta__band p { font-size: 18px; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #C9CDD6; padding-block: 56px 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col strong { color: var(--white); font-weight: 500; }
.footer__brand { color: var(--white); font-size: 19px; font-weight: 500; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #34363A; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Contacto ---------- */
.page-header { border-bottom: 1px solid var(--line); }
.page-header .header__inner { min-height: 76px; }
.contact { padding-block: 64px 96px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact__text { display: flex; flex-direction: column; gap: 24px; }
.contact__text .eyebrow--plain { color: var(--green); }
.contact__text h1 { font-size: clamp(36px, 4.5vw, 56px); font-weight: 400; line-height: 1.02; letter-spacing: -0.03em; }
.contact__text > p { font-size: 18px; color: var(--muted); }
.process { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.process h2 { font-size: 18px; font-weight: 500; }
.process ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.process p { color: var(--muted); font-size: 14px; }
.email-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: var(--radius); border: 1px solid #D2D5D2; background: var(--white); font-size: 15px; font-weight: 500; }
.email-btn svg { width: 18px; height: 18px; color: var(--green); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 13px 16px; border: 1px solid #D2D5D2; border-radius: var(--radius); background: #F9FAF9; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 143, 55, .15); }
.field.has-error input, .field.has-error textarea { border-color: #C0392B; }
.field__error { color: #C0392B; font-size: 13px; display: none; }
.field.has-error .field__error { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.form .btn { width: 100%; justify-content: space-between; padding: 15px 18px; font-size: 15px; }
.form__alert { display: none; padding: 12px 14px; border-radius: var(--radius); background: #FCEBEB; color: #8B2A2A; font-size: 14px; }
.form__alert.is-visible { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { min-height: calc(100vh - 77px); display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.thanks__box { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 560px; }
.thanks__icon { width: 80px; height: 80px; border-radius: 50%; background: #E3F5E6; display: grid; place-items: center; color: var(--green); }
.thanks__icon svg { width: 36px; height: 36px; }
.thanks h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 400; letter-spacing: -0.02em; }
.thanks p { color: var(--muted); font-size: 18px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .car { flex-basis: calc((100% - 24px) / 2); }
  .goals__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .branch__card { grid-template-columns: 1fr; }
  .history { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav, .header .btn--green { display: none; }
  .menu-btn { display: block; }
  .header.is-open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header.is-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-open .menu-btn span:nth-child(2) { opacity: 0; }
  .header.is-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about__intro, .mv, .contact__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { min-height: 560px; }
  .car { flex-basis: 100%; }
  .goals__grid { grid-template-columns: 1fr; }
  .mv__card, .where, .branch__data, .form { padding: 24px; }
  .cta__band { padding: 36px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .header__logo img { height: 44px; }
  .car__photo img.is-active { opacity: 1; }
}
@media (hover: none) {
  .car__photo img.is-active { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.check.has-error { color: #C0392B; }

/* ---------- Testimonios ---------- */
.reviews { padding-block: 96px 8px; }
.reviews__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 48px; }
.reviews__head .section-title span { color: var(--green); }
.reviews__head p { color: var(--muted); font-size: 18px; max-width: 640px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px 30px; display: flex; flex-direction: column; gap: 18px; }
.review__quote { font-size: 64px; line-height: .7; color: var(--gold); font-weight: 500; height: 32px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.65; flex: 1; }
.review figcaption { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.review figcaption strong { font-weight: 500; }
.review figcaption span { color: var(--label); font-size: 14px; }
.header__logo img { height: 62px; width: auto; }
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ---------- Ajustes celular (v3) ---------- */
@media (max-width: 640px) {
  /* Portada: foto arriba completa, textos abajo */
  .hero { display: block; min-height: 0; background-color: #141516; background-size: 100% auto; background-position: top center; padding-top: 58vw; }
  .hero::before { background: linear-gradient(180deg, rgba(20,21,22,0) 0, rgba(20,21,22,0) 38vw, #141516 74vw, #141516 100%); }
  .hero__content { padding-block: 0 48px; gap: 18px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 15px; }
  .hero .chip { font-size: 12px; padding: 6px 10px; }
  .hero__actions .btn { flex: 1 1 0; justify-content: center; }

  /* Autos: deslizar con el dedo y ver un poco de la siguiente tarjeta */
  .slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 0; margin: -4px 0; }
  .slider__viewport::-webkit-scrollbar { display: none; }
  .slider__track { transform: none !important; transition: none; gap: 12px; }
  .car { flex-basis: 86%; scroll-snap-align: center; }
}
