/* ===========================================================
   TVrapido — Rediseño estilo Uber sobre la marca (espresso + blanco)
   Paleta derivada del logo: fondo #362124 (espresso) + blanco
   =========================================================== */

:root {
  --espresso:    #362124;  /* color de marca (fondo del logo) */
  --espresso-d:  #241517;  /* más oscuro: footer / hover */
  --ink:         #1b1113;  /* texto principal (casi negro cálido) */
  --paper:       #ffffff;
  --cream:       #f7f4f3;  /* superficie clara cálida */
  --cream-2:     #efeae8;
  --muted:       #6e5f60;  /* texto secundario cálido */
  --muted-2:     #9a8d8d;
  --line:        #e6dedc;  /* bordes */
  --line-dark:   rgba(255,255,255,0.16);
  --wa:          #25d366;
  --wa-d:        #1aa84f;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------- BOTONES (rectangulares, estilo Uber) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  border-radius: var(--r-sm); padding: 13px 22px; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn--dark   { background: var(--ink); color: #fff; }
.btn--dark:hover   { background: #000; }
.btn--light  { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover  { background: var(--cream-2); border-color: var(--cream-2); }
.btn--ghost  { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover  { background: var(--cream); }
.btn--ghost-light { background: rgba(255,255,255,0.06); color:#fff; border-color: var(--line-dark); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.14); }
.btn--wa     { background: var(--wa); color: #06371b; border-color: var(--wa); }
.btn--wa:hover { background: var(--wa-d); border-color: var(--wa-d); color:#fff; }
.btn--block  { width: 100%; }
.btn--lg     { padding: 16px 28px; font-size: 1.06rem; }
.btn--sm     { padding: 10px 18px; font-size: .92rem; }

/* ---------- NAV (oscuro, sticky — top de Uber) ---------- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--espresso);
  border-bottom: 1px solid var(--line-dark);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.nav__logo-img { height: 30px; width: auto; display: block; }
.nav__logo-fallback { font-family:'Archivo',sans-serif; font-weight: 800; font-size: 1.35rem; color:#fff; letter-spacing:-0.03em; }
.nav__logo-fallback .tv { opacity:.85; }
.nav__links { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav__links a {
  color: rgba(255,255,255,0.92); text-decoration: none; font-size: .96rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-sm); transition: background .15s, color .15s;
}
.nav__links a:hover { background: rgba(255,255,255,0.10); color:#fff; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color:#fff; flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ---------- HERO (split: titular + card formulario, fondo oscuro) ---------- */
.hero { background: var(--espresso); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(255,255,255,0.04), transparent 55%);
  pointer-events:none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  padding: 84px 0 92px;
}
.hero__pill {
  display: inline-flex; align-items:center; gap:8px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line-dark);
  border-radius: 50px; padding: 6px 15px; font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,0.9); margin-bottom: 22px;
}
.hero__h1 { color:#fff; font-size: clamp(2.3rem, 4.7vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }
.hero__h1 em { font-style: normal; color: #fff; position: relative; white-space: nowrap; }
.hero__h1 em::after {
  content:''; position:absolute; left:0; right:0; bottom: 4px; height: 10px;
  background: rgba(255,255,255,0.16); z-index:-1; border-radius: 3px;
}
.hero__sub { font-size: 1.13rem; color: rgba(255,255,255,0.78); max-width: 500px; margin-bottom: 26px; }
.hero__trust { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; max-width: 480px; }
.hero__trust li { display:flex; align-items:center; gap:9px; font-size: .94rem; color: rgba(255,255,255,0.88); }
.hero__trust svg { width:18px; height:18px; flex-shrink:0; color: var(--wa); }

/* Card formulario (patrón "Request a ride" de Uber) */
.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--r-lg);
  padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.hero-card__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.hero-card__sub { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display:block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field select, .field input {
  width: 100%; font-family: inherit; font-size: .98rem; color: var(--ink);
  background-color: var(--cream); border: 1.5px solid transparent; border-radius: var(--r-sm);
  padding: 13px 14px; transition: border-color .15s, background-color .15s; appearance: none;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--ink); background-color:#fff; }
/* Flecha del select anclada al propio control (no depende del label) */
.field select {
  padding-right: 40px; background-repeat: no-repeat; background-position: right 14px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e5f60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.hero-card .btn { margin-top: 6px; }
.hero-card__note { font-size: .76rem; color: var(--muted-2); text-align:center; margin-top: 12px; }

/* ---------- TRUST BAR ---------- */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-bar__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { display:flex; align-items:center; gap:13px; padding: 22px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: none; }
.trust-item__ic { width: 26px; height: 26px; color: var(--espresso); flex-shrink:0; }
.trust-item strong { display:block; font-size: .92rem; font-weight: 700; color: var(--ink); }
.trust-item span { font-size: .8rem; color: var(--muted); }

/* ---------- SECCIONES ---------- */
.section { padding: 92px 0; }
.section--cream { background: var(--cream); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head--center { margin-left:auto; margin-right:auto; text-align:center; }
.section__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section__sub { font-size: 1.06rem; color: var(--muted); }

/* ---------- SERVICIOS ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; transition: border-color .18s, transform .18s, box-shadow .18s;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 14px 30px rgba(27,17,19,0.08); }
.service-card__ic {
  width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--espresso);
  color:#fff; display:flex; align-items:center; justify-content:center; margin-bottom: 16px;
}
.service-card__ic svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 7px; }
.service-card p { font-size: .92rem; color: var(--muted); }

.brands { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); text-align:center; }
.brands__label { font-size: .82rem; font-weight: 700; letter-spacing:.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.brands__list { display:flex; flex-wrap: wrap; justify-content:center; gap: 10px; }
.brands__list span {
  font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 50px; padding: 7px 16px;
}
.section--cream .brands__list span { background: #fff; }

/* ---------- CÓMO FUNCIONA (split: pasos + panel oscuro) ---------- */
.how__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.steps { list-style: none; }
.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: none; padding-top: 0; }
.step__num {
  flex-shrink:0; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--ink); color: var(--ink);
  font-family:'Archivo',sans-serif; font-weight: 800; font-size: 1.05rem;
  display:flex; align-items:center; justify-content:center;
}
.step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 5px; }
.step p { font-size: .94rem; color: var(--muted); }
.how__panel {
  background: var(--espresso); color:#fff; border-radius: var(--r-lg);
  padding: 40px 36px; align-self: stretch; display:flex; flex-direction:column; justify-content:center;
}
.how__panel h3 { color:#fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.how__panel p { color: rgba(255,255,255,0.78); font-size: 1rem; margin-bottom: 26px; }

/* ---------- ZONA / MAPA ---------- */
.zona__head { display:flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.zona__head .section__head { margin-bottom: 0; }
#map { height: 460px; width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map__note { text-align:center; font-size: .82rem; color: var(--muted); margin-top: 16px; }
.leaflet-container { font-family: 'Inter', sans-serif; }

/* ---------- PRECIOS ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; position: relative; display:flex; flex-direction:column;
  transition: transform .18s, box-shadow .18s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(27,17,19,0.08); }
.price-card--feat { background: var(--espresso); color:#fff; border-color: var(--espresso); }
.price-card--feat h3, .price-card--feat .price-card__amt { color:#fff; }
.price-card__badge {
  position:absolute; top: 22px; right: 22px;
  background:#fff; color: var(--espresso); font-size: .68rem; font-weight: 800;
  letter-spacing:.05em; text-transform: uppercase; padding: 5px 11px; border-radius: 50px;
}
.price-card__ic { width: 40px; height: 40px; margin-bottom: 16px; color: var(--espresso); }
.price-card--feat .price-card__ic { color:#fff; }
.price-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.price-card__amt { font-size: .95rem; color: var(--muted); margin-bottom: 22px; }
.price-card--feat .price-card__amt { color: rgba(255,255,255,0.75); }
.price-card__amt strong { font-family:'Archivo',sans-serif; font-size: 2rem; font-weight: 800; color: var(--ink); display:inline-block; vertical-align: -2px; }
.price-card--feat .price-card__amt strong { color:#fff; }
.price-card__list { list-style: none; margin-bottom: 24px; flex: 1; }
.price-card__list li { display:flex; gap: 10px; font-size: .92rem; color: var(--muted); padding: 7px 0; }
.price-card--feat .price-card__list li { color: rgba(255,255,255,0.84); }
.price-card__list svg { width:18px; height:18px; flex-shrink:0; color: var(--wa); margin-top: 2px; }
.price-card--feat .price-card__list svg { color: var(--wa); }
.pricing__note {
  margin-top: 26px; text-align:center; font-size: .92rem; color: var(--muted);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 22px; max-width: 760px; margin-left:auto; margin-right:auto;
}
.section--cream .pricing__note { background:#fff; }

/* ---------- FAQ (lista con líneas, estilo Uber) ---------- */
.faq__list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family:'Inter',sans-serif; font-size: 1.08rem; font-weight: 600; color: var(--ink);
  padding: 24px 44px 24px 4px; position: relative; display:flex; justify-content: space-between; align-items:center; gap: 16px;
}
.faq__q .pm { position: relative; width: 18px; height: 18px; flex-shrink:0; }
.faq__q .pm::before, .faq__q .pm::after {
  content:''; position:absolute; background: var(--ink); border-radius: 2px;
  top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; transition: transform .2s;
}
.faq__q .pm::after { transform: rotate(90deg); }
.faq__item.open .faq__q .pm::after { transform: rotate(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__item.open .faq__a { max-height: 500px; }
.faq__a p { padding: 0 44px 26px 4px; font-size: 1rem; color: var(--muted); }

/* ---------- CTA BANNER ---------- */
.cta { background: var(--espresso); color:#fff; }
.cta__inner { display:flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 64px 0; }
.cta__text { max-width: 620px; }
.cta__text h2 { color:#fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta__text p { color: rgba(255,255,255,0.78); font-size: 1.06rem; }

/* ---------- FOOTER (amplio, oscuro) ---------- */
.footer { background: var(--espresso-d); color: rgba(255,255,255,0.62); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer__logo-img { height: 30px; width: auto; display: block; margin-bottom: 16px; }
.footer__brand .footer__logo { font-family:'Archivo',sans-serif; font-size: 1.5rem; font-weight: 800; color:#fff; letter-spacing:-0.03em; margin-bottom: 14px; }
.footer__brand p { font-size: .9rem; line-height: 1.65; max-width: 320px; }
.footer h4 { color:#fff; font-size: .82rem; font-weight: 700; letter-spacing:.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer a, .footer__col p { display:block; color: rgba(255,255,255,0.62); text-decoration:none; font-size: .92rem; line-height: 1.9; }
.footer a:hover { color:#fff; }
.footer__bottom {
  border-top: 1px solid var(--line-dark); padding: 22px 0;
  display:flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .82rem; color: rgba(255,255,255,0.42);
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px; background: var(--wa); color:#fff; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45); transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37,211,102,0.55); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero-card { max-width: 460px; }
  .how__grid { grid-template-columns: 1fr; gap: 36px; }
  .how__panel { order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions { margin-left: auto; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; top: 68px; left: 0; right: 0; z-index: 199; background: var(--espresso);
    border-bottom: 1px solid var(--line-dark); box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    padding: 12px 24px 20px;
  }
  .nav.open .nav__links a { padding: 12px 14px; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .trust-bar__grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .zona__head { flex-direction: column; align-items: flex-start; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .trust-bar__grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: none; }
  .hero__trust { grid-template-columns: 1fr; }
  #map { height: 360px; }
}
