/* =========================================================
   IEL Portugalete SL · Web tarjeta de presentación
   Colores del flyer de la marca: rojo IEL, blanco y tonos
   cálidos de atardecer. Diseño pensado primero para móvil:
   - Móvil:     hasta 639px
   - Tablet:    640px – 1023px (mismo diseño que el móvil, con más aire)
   - Ordenador: desde 1024px (menú arriba y columnas)
   ========================================================= */

:root {
  --red: #C8322A;
  --red-600: #A92A23;
  --red-50: #FCEEEB;
  --orange: #E3743F;
  --warm-1: #BC3A2B;
  --warm-2: #DE6E3C;

  --ink: #1E1A17;
  --text: #3D3631;
  --muted: #6F665E;
  --bg: #FFFFFF;
  --tint: #F8F4F0;
  --peach: #FFF3EC;
  --line: #ECE4DC;
  --wa: #1FAF55;
  --wa-50: #E6F6EC;

  --radius: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 2px 4px rgba(30, 26, 23, .04), 0 24px 48px -20px rgba(120, 50, 30, .28);
  --shadow-soft: 0 1px 2px rgba(30, 26, 23, .04), 0 8px 22px -12px rgba(30, 26, 23, .16);

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; color: var(--ink); }
p { margin: 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow--light { color: #FFE1D6; }

.title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 8.4vw, 50px);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ink);
}
.title--light { color: #fff; }

.text { color: var(--muted); margin-bottom: 14px; }
.text strong { color: var(--ink); font-weight: 600; }
.text--light { color: #FFEDE5; margin-top: 12px; }
.text--light strong { color: #fff; }

.head { margin-bottom: 28px; }
.head__sub { margin-top: 10px; color: var(--muted); font-size: 16px; }
.head__hint { margin-top: 10px; color: var(--muted); font-size: 15px; }
.note { margin-top: 12px; color: var(--muted); font-size: 15px; }
.note a { color: var(--red); font-weight: 600; }

.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); line-height: 1.45; }
.checks i { color: var(--red); margin-top: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(200, 50, 42, .8); }
.btn--primary:hover { background: var(--red-600); }
.btn--soft { background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--soft:hover { background: #F1EAE3; }
.btn[disabled] { opacity: .65; pointer-events: none; }

:focus-visible { outline: 3px solid #F59E0B; outline-offset: 3px; border-radius: 6px; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: 800 17px/1 var(--font-head);
  letter-spacing: .03em;
}
.brand__text { display: flex; flex-direction: column; font: 700 18px/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.brand__text small { font: 600 11px/1.3 var(--font-body); letter-spacing: .22em; color: var(--red); }

/* =========================================================
   CABECERA
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(30, 26, 23, .35); }
.header__inner {
  height: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__nav { display: none; }
.header__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--red-50);
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

/* =========================================================
   1. TARJETA DE VISITA
   ========================================================= */
.hero {
  position: relative;
  padding: 20px 16px 40px;
  background:
    radial-gradient(70% 45% at 85% 0%, rgba(227, 116, 63, .22), transparent 70%),
    radial-gradient(60% 40% at 0% 10%, rgba(200, 50, 42, .12), transparent 70%),
    linear-gradient(180deg, var(--peach) 0%, #FFFFFF 85%);
}
.hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
  justify-items: center;
}
.hero__intro { text-align: center; max-width: 560px; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 10vw, 72px);
  line-height: .96;
  text-transform: uppercase;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__lead { display: none; margin-top: 16px; color: var(--muted); font-size: 18px; }
.hero__checks { display: none; }

.card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 20px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid #F3E9E2;
  text-align: center;
  overflow: hidden;
}
.card::before {
  /* canto rojo de la tarjeta de visita */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}
.card__share {
  position: absolute;
  top: 16px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.card__share:hover { color: var(--red); border-color: var(--red); }
.card__logo { width: 180px; margin: 4px auto 18px; }
.card__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.card__role { margin-top: 4px; color: var(--muted); font-size: 15px; }
.card__tags {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.card__tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.card__tags i { color: var(--red); font-size: 12px; }

.card__actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.card__actions--3 { grid-template-columns: repeat(3, 1fr); }
.qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.qa__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--red-50);
  color: var(--red);
  font-size: 21px;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.qa--wa .qa__icon { background: var(--wa-50); color: var(--wa); font-size: 25px; }
.qa:hover .qa__icon { background: var(--red); color: #fff; }
.qa--wa:hover .qa__icon { background: var(--wa); color: #fff; }
.qa:active .qa__icon { transform: scale(.93); }
.qa__label { font-size: 12.5px; font-weight: 600; line-height: 1.2; }

.card .btn + .btn { margin-top: 10px; }

.card__data {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 14px;
}
.card__data div { display: flex; justify-content: space-between; gap: 12px; }
.card__data dt { color: var(--muted); }
.card__data dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: break-word; min-width: 0; }
.card__data a { text-decoration: none; color: var(--ink); }
.card__data .gmb { color: var(--red); }

/* =========================================================
   2. FRANJA DE CONFIANZA
   ========================================================= */
.trust { padding: 8px 0; background: #fff; }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: var(--tint);
}
.trust__item > i {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: #fff;
  color: var(--red);
  font-size: 16px;
  box-shadow: var(--shadow-soft);
}
.trust__item strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.25; }
.trust__item span { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
.section--warm {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 200, 150, .35), transparent 70%),
    linear-gradient(135deg, var(--warm-1), var(--warm-2));
  color: #fff;
}
.split { display: grid; gap: 22px; }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 12px; }
.service {
  display: flex;
  gap: 16px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.service__icon {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-size: 19px;
}
.service h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; line-height: 1.25; }
.service p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Flota: carrusel en móvil ---------- */
.fleet {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 20px;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}
.fleet::-webkit-scrollbar { display: none; }
.vehicle {
  flex: 0 0 76%;
  max-width: 300px;
  scroll-snap-align: start;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.vehicle__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--red-50), #FFE8DC);
  color: var(--red);
  font-size: 26px;
}
.vehicle h3 { font-family: var(--font-head); font-size: 24px; font-weight: 700; text-transform: uppercase; }
.vehicle p { margin: 6px 0 16px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.vehicle ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vehicle li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.vehicle li i { color: var(--red); font-size: 11px; }

/* ---------- Zona de trabajo ---------- */
.zone-group + .zone-group { margin-top: 18px; }
.zone-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #FFE1D6;
  margin-bottom: 10px;
}
.base {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  margin-bottom: 10px;
  box-shadow: 0 16px 30px -18px rgba(60, 20, 10, .5);
}
.base__pin {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 16px;
}
.base strong { display: block; font-size: 16px; }
.base > div span { font-size: 14px; color: var(--muted); }
.regions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.regions li {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .95);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.peninsula {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
}
.peninsula > i { font-size: 22px; color: #FFE1D6; }
.peninsula strong { display: block; font-size: 16px; }
.peninsula > div span { font-size: 14px; color: #FFEDE5; }

/* ---------- Pequeños portes ---------- */
.anchor { position: relative; top: calc(-1 * var(--header-h)); display: block; }
.portes { background: linear-gradient(180deg, #fff 0%, var(--peach) 100%); }
.portes__grid { display: grid; gap: 34px; justify-items: center; }
.portes__text { width: 100%; }
.card--portes { order: -1; }
.card--portes::before { background: linear-gradient(90deg, var(--orange), var(--red)); }
.card__badge {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 2px auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 22px -10px rgba(200, 50, 42, .8);
}

/* ---------- Equipo ---------- */
.team { display: grid; gap: 12px; }
.person {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.person__avatar {
  flex: none;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--red), var(--orange));
  color: #fff;
  font: 800 22px/1 var(--font-head);
  letter-spacing: .02em;
}
.person__body { flex: 1; min-width: 0; }
.person h3 { font-size: 19px; font-weight: 700; }
.person__role { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 3px 0 6px; }
.person__body > p:not(.person__role) { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.person__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--red-50);
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.person__phone:hover { background: var(--red); color: #fff; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.contact__grid { display: grid; gap: 30px; }
.contact__direct { display: grid; gap: 10px; margin-top: 20px; }
.direct {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  box-shadow: var(--shadow-soft);
}
.direct > i {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
}
.direct--wa > i { background: var(--wa); font-size: 22px; }
.direct--google > i { background: #fff; color: #4285F4; box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; }
.direct span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; overflow-wrap: break-word; }
.direct small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid #F3E9E2;
}
.form__title { font-size: 19px; font-weight: 700; margin-bottom: 18px; line-height: 1.3; }
.field { display: flex; flex-direction: column; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font-body); /* 16px evita el zoom en iPhone */
  color: var(--ink);
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #FDFBF9;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field 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='%236F665E' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 50, 42, .12);
  background: #fff;
}
.is-invalid { border-color: #DC2626 !important; }
.field__error { font-size: 13px; color: #DC2626; }
.field__error:empty { display: none; }
.field__error:not(:empty) { margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 6px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.check a { color: var(--red); font-weight: 600; }
.form .btn { margin-top: 14px; }
.form__response { margin-top: 12px; font-size: 15px; font-weight: 600; text-align: center; }
.form__response:empty { display: none; }
.form__response.is-success { color: #15803D; }
.form__response.is-error { color: #DC2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   PIE
   ========================================================= */
.footer {
  background: var(--tint);
  border-top: 4px solid var(--red);
  color: var(--muted);
  padding: 40px 0 calc(110px + var(--safe-b));
  font-size: 14px;
  text-align: center;
}
.footer__inner { display: grid; gap: 14px; justify-items: center; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--red); }
.footer__contact a { font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer__copy { font-size: 13px; }

/* =========================================================
   BARRA DE CONTACTO (móvil y tablet)
   ========================================================= */
.dock {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(10px + var(--safe-b));
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 6px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -12px rgba(30, 26, 23, .35);
  transform: translateY(150%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.dock.is-visible { transform: none; }
.dock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
.dock__btn i { font-size: 17px; color: var(--red); }
.dock__btn--wa i { color: var(--wa); font-size: 20px; }
.dock__btn--primary { background: var(--red); color: #fff; }
.dock__btn--primary i { color: #fff; }

/* =========================================================
   COOKIES Y AVISOS
   ========================================================= */
.cookie {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(10px + var(--safe-b));
  z-index: 70;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  box-shadow: 0 20px 40px -12px rgba(30, 26, 23, .35);
  transform: translateY(160%);
  transition: transform .4s ease;
}
.cookie.is-visible { transform: none; }
.cookie a { color: var(--red); }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cookie .btn { min-height: 46px; font-size: 15px; }

.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + 14px);
  z-index: 80;
  transform: translate(-50%, -16px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Aparición suave al bajar ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal { padding: 40px 0 64px; }
.legal .container { max-width: 780px; }
.legal .section__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.legal .section__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 8vw, 46px); text-transform: uppercase; line-height: 1.02; }
.legal__updated { margin: 10px 0 28px; color: var(--muted); font-size: 14px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; line-height: 1.3; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--red); overflow-wrap: anywhere; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--tint); }
.back-link { display: inline-flex; margin-top: 32px; font-weight: 700; color: var(--red); text-decoration: none; }
.page-legal .footer { padding-bottom: 40px; }

/* =========================================================
   TABLET (640px+): mismo diseño que el móvil, con más aire
   ========================================================= */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .hero { padding: 36px 32px 56px; }
  .hero__lead { display: block; }
  .card { padding: 34px 30px 26px; }
  .trust { padding: 16px 0; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 80px 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .vehicle { flex-basis: 300px; }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .form { padding: 30px 28px; }
  .fleet { padding: 4px 32px 20px; scroll-padding: 0 32px; }
}

/* =========================================================
   ORDENADOR (1024px+)
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 74px; }
  body { font-size: 18px; }

  .header__nav { display: flex; gap: 26px; }
  .header__nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); }
  .header__nav a:hover { color: var(--red); }

  .hero { padding: 72px 32px 88px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; justify-items: stretch; }
  .hero__intro { text-align: left; max-width: none; }
  .hero__lead { max-width: 500px; font-size: 19px; }
  .hero__checks { display: grid; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
  .hero__checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); }
  .hero__checks i { color: var(--red); }
  .card { justify-self: end; }

  .trust { padding: 0; margin-top: -36px; background: transparent; position: relative; z-index: 2; }
  .trust__item { flex-direction: row; align-items: center; background: #fff; box-shadow: var(--shadow-soft); border: 1px solid var(--line); padding: 18px; }

  .section { padding: 100px 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .service { flex-direction: column; padding: 28px; }

  .fleet {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
  .vehicle { max-width: none; }
  .head__hint { display: none; }

  .regions { grid-template-columns: repeat(3, 1fr); }

  .portes__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; justify-items: stretch; }
  .card--portes { justify-self: start; }

  .team { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .person { flex-direction: column; padding: 26px; }

  .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .form { padding: 36px; }

  .dock { display: none; }
  .footer { padding-bottom: 40px; }
  .cookie { left: auto; right: 24px; bottom: 24px; margin: 0; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .header__nav { gap: 18px; }
  .header__nav a { font-size: 14px; }
}

/* Separación entre titular y texto */
.title + .text { margin-top: 14px; }

/* =========================================================
   ZONA DE TRABAJO (fondo claro, rojo solo en detalles) + MAPA
   ========================================================= */
.title__accent { color: var(--red); }
.zone { display: grid; gap: 20px; }
.zone-label { color: var(--red); }
.base { box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.regions li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.regions li i { color: var(--red); font-size: 12px; }
.peninsula {
  margin-top: 10px;
  background: #fff;
  border: 1px dashed #E9B8AE;
  color: var(--ink);
}
.peninsula__icon {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--red-50);
  color: var(--red);
  font-size: 18px;
}
.peninsula > div span { color: var(--muted); }

.zone__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 300px;
}
.zone__map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.zone__maplink {
  position: absolute;
  right: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(200, 50, 42, .8);
}
.zone__maplink:hover { background: var(--red-600); }

/* ---------- Teléfono del equipo: botón redondo ---------- */
.person { position: relative; }
.person__call {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red);
  font-size: 17px;
  text-decoration: none;
  align-self: center;
  transition: background-color .2s, color .2s;
}
.person__call:hover { background: var(--red); color: #fff; }

@media (min-width: 640px) {
  .zone__map, .zone__map iframe { min-height: 380px; }
}
@media (min-width: 1024px) {
  .zone { grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: stretch; }
  .zone .regions { grid-template-columns: 1fr 1fr; }
  .person__call { position: absolute; top: 26px; right: 26px; }
}

/* Crédito de autoría en el pie */
.footer__credit { font-size: 13px; color: var(--muted); }
.footer__credit a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer__credit a:hover { color: var(--red-600); }

/* Portada: fondo neutro (gris cálido muy suave) en lugar del degradado rojizo */
.hero {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(30, 26, 23, .045), transparent 70%),
    linear-gradient(180deg, #F5F4F2 0%, #FAFAF9 55%, #FFFFFF 100%);
}
.hero .card { border-color: #ECEAE7; box-shadow: 0 2px 4px rgba(30, 26, 23, .04), 0 24px 48px -22px rgba(30, 26, 23, .25); }

/* Equipo al final: fondo blanco para separarlo del contacto y del pie */
.team-section { background: #fff; }
.team-section .person { border: 1px solid var(--line); }
