/* Transportes Fronteras Perú · boceto v2 VOLKEIN
   Marca: rojo #C11F2A + blanco (del logo). Títulos Archivo cursiva 800, como el logotipo.
   Forma: botones en pastilla, tarjetas 14px, campos 10px. Tema claro fijo por identidad de marca. */
:root {
  --red: #C11F2A; --red-dark: #9A1520; --red-soft: #FBEAEB;
  --ink: #16171B; --ink-2: #24262C; --text: #3A3E46; --muted: #6A707B;
  --line: #E4E6EA; --bg: #FFFFFF; --bg-alt: #F3F4F6;
  --r: 14px; --r-in: 10px; --wrap: 1200px;
  --shadow: 0 18px 40px rgba(22, 23, 27, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Archivo", system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.08; letter-spacing: -0.015em; }
.display { font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.alt { background: var(--bg-alt); }
.lead { font-size: 1.14rem; max-width: 58ch; }
.muted { color: var(--muted); }
.i { font-size: 1.2em; line-height: 0; vertical-align: -0.14em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }

/* Aviso de boceto */
.draft { background: var(--ink); color: #D5D8DE; text-align: center; font-size: 13px; padding: 7px 16px; }
.draft b { color: #fff; }

/* Encabezado */
.head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .logo img { height: 58px; width: auto; }
.links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.links a { text-decoration: none; font-weight: 600; font-size: 15.5px; color: var(--ink-2); }
.links a:hover, .links a[aria-current="page"] { color: var(--red); }
.links a.btn { color: #fff; }
.menu { display: none; background: none; border: 0; font-size: 30px; color: var(--ink); cursor: pointer; width: 48px; height: 48px; align-items: center; justify-content: center; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 14px 26px; font: 700 16px "Archivo", sans-serif; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--red-soft); }
.btn-line { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-dark { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; }

/* Hero */
.hero { position: relative; background: var(--red); color: #fff; overflow: hidden; }
.speed { position: absolute; inset: 0; pointer-events: none; }
.speed span { position: absolute; right: -10%; height: 5px; border-radius: 6px; background: rgba(255,255,255,.1); }
.speed span:nth-child(1) { top: 16%; width: 38%; }
.speed span:nth-child(2) { top: 24%; width: 26%; }
.speed span:nth-child(3) { top: 58%; width: 44%; }
.speed span:nth-child(4) { top: 66%; width: 30%; }
.speed span:nth-child(5) { top: 84%; width: 36%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 24px 84px; }
.hero h1 { color: #fff; }
.hero .lead { color: #FBE3E4; margin: 22px 0 34px; }
.hero .eyebrow { color: #FFD9DB; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { position: relative; aspect-ratio: 4 / 3.3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); }
.hero-badge { position: absolute; left: -4%; bottom: 8%; background: #fff; color: var(--ink); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.hero-badge .ph { font-size: 30px; color: var(--red); }
.hero-badge strong { display: block; font-size: 16px; }
.hero-badge span { font-size: 13.5px; color: var(--muted); }

/* Ruta */
.route { background: var(--ink); color: #fff; }
.route-row { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 22px; padding: 30px 24px; }
.stop { display: flex; align-items: center; gap: 14px; }
.stop i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font-size: 24px; }
.stop strong { display: block; font-size: 20px; font-style: italic; font-weight: 800; text-transform: uppercase; }
.stop span { font-size: 14px; color: #A9AEB8; }
.road { position: relative; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 16px, transparent 16px 30px); opacity: .55; }
.road::after { content: ""; position: absolute; top: -9px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(193,31,42,.35); animation: drive 5s ease-in-out infinite; }
@keyframes drive { 0% { left: 0; } 100% { left: calc(100% - 22px); } }

/* Servicios */
.services { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 44px; }
.card { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.card img { width: 100%; height: 270px; object-fit: cover; }
.card-body { padding: 26px 28px 30px; }
.card-body p { margin-top: 10px; }
.card.red { background: var(--red); border-color: var(--red); color: #FBE3E4; }
.card.red h3 { color: #fff; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; }
.checks .ph { color: var(--red); font-size: 20px; margin-top: 2px; }
.card.red .checks .ph { color: #fff; }

/* Tablero de salidas */
.board { background: var(--ink); color: #fff; border-radius: var(--r); padding: 38px; }
.board-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.board-top h2 { color: #fff; }
.board-note { font-size: 13.5px; color: #A9AEB8; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr 1fr; gap: 16px; align-items: center; background: #202228; border-radius: 10px; padding: 18px 22px; }
.row.headrow { background: none; padding-top: 0; padding-bottom: 4px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #8E94A0; }
.row .dest { font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 19px; }
.row .time { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 26px; color: #fff; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px; background: var(--red); color: #fff; }

/* Cómo enviar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 3px solid var(--ink); }
.step { padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font-style: italic; font-weight: 800; font-size: 54px; color: var(--red); line-height: 1; }
.step h3 { margin-top: 12px; }
.step p { margin-top: 8px; }

/* Qué se envía */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yn { border-radius: var(--r); padding: 24px; }
.yn.yes { background: #fff; border: 1px solid var(--line); }
.yn.no { background: var(--red-soft); }
.yn h3 { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; }
.yn.yes h3 .ph { color: #1F7A45; }
.yn.no h3 .ph { color: var(--red); }
.yn ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: 15.5px; }
.photo-tall { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.photo-tall img { width: 100%; height: 100%; object-fit: cover; }

/* Agencia */
.agency { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: stretch; }
.info { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.info li { display: flex; gap: 14px; }
.info .ph { color: var(--red); font-size: 25px; margin-top: 2px; }
.info strong { display: block; color: var(--ink); }
.info li > div { min-width: 0; overflow-wrap: anywhere; }
.info a { display: inline-block; padding: 8px 0; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.agency-card { display: grid; grid-template-columns: 1fr 1.2fr; }
.soon { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.soon span { border: 1px dashed #C9CDD4; border-radius: 999px; padding: 6px 14px; font-size: 14.5px; }

/* Formulario */
.quote { background: var(--red); color: #fff; }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.quote h2 { color: #fff; }
.quote .lead { color: #FBE3E4; margin-top: 16px; }
.form { background: #fff; color: var(--text); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 700; color: var(--ink); font-size: 15px; }
.field input, .field select, .field textarea { font: 16px "Archivo", sans-serif; color: var(--ink); border: 1.5px solid #C9CDD4; border-radius: var(--r-in); padding: 12px 14px; background: #fff; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: #767C87; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(193,31,42,.2); border-color: var(--red); }
.help { font-size: 13.5px; color: var(--muted); }
.error { display: none; font-size: 13.5px; color: #A8141A; }
.invalid input, .invalid select, .invalid textarea { border-color: #A8141A; }
.invalid .error { display: block; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; gap: 8px; align-items: center; border: 1.5px solid #C9CDD4; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-weight: 600; }
.choice input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.choice input:focus-visible + span { outline: 3px solid rgba(193,31,42,.25); }
.factions { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ok { display: none; margin-top: 16px; background: #EDF7F1; border: 1px solid #BFE3CB; color: #1E5B34; border-radius: var(--r-in); padding: 13px 15px; }
.ok.show { display: flex; gap: 10px; }
.quote .info .ph { color: #fff; }
.quote .info strong { color: #fff; }

/* Preguntas */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 18px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { color: var(--red); transition: transform .2s ease; }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 64ch; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }

/* Cabecera interna */
.phead { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.phead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.phead .wrap { position: relative; padding-top: 88px; padding-bottom: 72px; }
.phead h1 { color: #fff; }
.phead p { margin-top: 14px; color: #E2E4E9; max-width: 56ch; font-size: 1.12rem; }
.phead.red { background: var(--red); }

/* Pie */
.foot { background: var(--red); color: #FBE3E4; padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot .logo img { height: 84px; width: auto; }
.foot h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15.5px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-note { border-top: 1px solid rgba(255,255,255,.25); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 21px; color: #fff; }

/* Botones flotantes */
.float { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; gap: 10px; }
.float a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 28px; text-decoration: none; box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.float .tt { background: #111; }
.float .fb { background: #1877F2; }
.float .wa { background: #1FA855; width: 62px; height: 62px; font-size: 32px; }

/* Aparición suave */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .rise.d2 { animation-delay: .08s; } .rise.d3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .wrap { padding: 0 18px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form { padding: 22px; }
  .foot ul, .foot p { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .road::after { animation: none; }
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .services, .split, .agency, .agency-card, .quote-grid, .faq-grid, .foot-grid { grid-template-columns: 1fr; }
  .agency-card .map, .agency-card .map iframe { min-height: 240px !important; }
  .hero-grid { padding-top: 40px; }
  .hero-badge { left: 4%; }
  .route-row { grid-template-columns: 1fr; justify-items: start; gap: 12px; }
  .road { width: 4px; height: 30px; margin-left: 23px; background: repeating-linear-gradient(180deg, #fff 0 8px, transparent 8px 14px); }
  .road::after { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 1fr 1fr; }
  .row.headrow { display: none; }
  .board { padding: 24px; }
  .yesno, .fgrid { grid-template-columns: 1fr; }
  .float .tt, .float .fb { display: none; }
  .section { padding: 68px 0; }
  .links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px 24px 26px; border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .menu { display: inline-flex; }
  .nav .logo img { height: 42px; }
}
