/* ===== Servicio Gallardo — azul acero, crema y azul cielo (del logo) ===== */

:root {
  /* Paleta propia */
  --steel: #2f6496;        /* azul del logo: títulos, botones */
  --steel-dark: #1f4a74;   /* hover de botones */
  --navy: #163654;         /* fondos oscuros (portada, nosotros, cierre) */
  --navy-2: #1c4166;       /* superficies sobre oscuro */
  --sky: #42c5e6;          /* azul cielo del fondo del logo: acentos */
  --sky-soft: #8fdcf0;
  --paper: #faf8f0;        /* crema del logo: fondo principal */
  --paper-2: #eef3f7;      /* secciones alternas */
  --ink: #17283a;          /* texto principal sobre crema */
  --ink-muted: #4f6275;
  --sos: #e0472b;          /* rojo de emergencia: solo asistencia vial */
  --sos-dark: #bf3820;

  /* Alias que usan ofertas.css y citas.css (los módulos copiados usan esos nombres).
     No renombrar: si una variable no existe, el popup de ofertas queda sin fondo. */
  --black: var(--navy);
  --black-2: var(--navy-2);
  --black-3: #24507c;
  --cream: var(--paper);
  --muted: rgba(250, 248, 240, 0.72);
  --gold: var(--sky);
  --gold-soft: var(--sky-soft);
  --gold-deep: var(--steel);
  --gold-grad: linear-gradient(135deg, #8fdcf0 0%, #42c5e6 55%, #2f9fc4 100%);
  --line: rgba(250, 248, 240, 0.18);
  --line-strong: rgba(250, 248, 240, 0.4);

  /* Líneas sobre fondo claro */
  --rule: rgba(47, 100, 150, 0.18);
  --rule-strong: rgba(47, 100, 150, 0.4);

  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Pacifico', cursive;

  --max: 1120px;
  --gutter: 24px;
  --sos-h: 44px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- Tipografía base ----- */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow--light { color: var(--sky); }

.section__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--steel);
}
.section--dark .section__title { color: var(--paper); }

/* Remate en letra script, como el "desde 1999" del logo */
.hero__title em,
.closing__title em {
  display: inline-block;
  margin-top: 0.15em;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  font-size: 0.62em;
  letter-spacing: 0;
  color: var(--sky);
}

/* ----- Botones ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--block { width: 100%; }

.btn--sos { background: var(--sos); color: #fff; }
.btn--sos:hover { background: var(--sos-dark); }
.btn--light { background: var(--paper); color: var(--steel); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--steel); color: var(--paper); }
.btn--dark:hover { background: var(--steel-dark); }
.btn--outline { border-color: var(--line-strong); color: var(--paper); padding: 9px 16px; }
.btn--outline:hover { border-color: var(--sky); color: var(--sky); }
.btn--outline-dark { border-color: var(--steel); color: var(--steel); }
.btn--outline-dark:hover { background: var(--steel); color: var(--paper); }
/* Se conservan por si algún módulo copiado los usa */
.btn--gold { background: var(--sky); color: var(--navy); }
.btn--ghost { border-color: var(--line-strong); color: var(--paper); }

/* ----- Franja de asistencia vial ----- */
.sos-bar {
  position: relative;
  z-index: 11;
  height: var(--sos-h);
  background: var(--sos);
  color: #fff;
  font-size: 14px;
}
.sos-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
}
.sos-bar__text { display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sos-bar__dot {
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  animation: sos-pulse 1.6s ease-in-out infinite;
}
@keyframes sos-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.sos-bar__call {
  flex: none;
  padding: 5px 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sos-bar__call:hover { background: #fff; color: var(--sos); }

/* ----- Encabezado ----- */
.header {
  position: absolute;
  top: var(--sos-h); left: 0; right: 0;
  z-index: 10;
  color: var(--paper);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 56px; height: 56px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__tag {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sky);
}
.brand__name {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}
.brand__name--sm { font-size: 22px; }

.nav { display: flex; align-items: center; gap: 28px; font-family: var(--display); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a:not(.btn):hover { color: var(--sky); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  margin: 7px auto;
  background: var(--paper);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--sos-h));
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(66, 197, 230, 0.28), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, #1a4470 60%, var(--steel) 100%);
  background-size: cover;
  background-position: center;
  color: var(--paper);
  overflow: hidden;
}
.hero__inner { padding-top: 136px; padding-bottom: 80px; }
.hero .eyebrow { color: var(--sky); }
.hero__title {
  margin: 0;
  max-width: 820px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 7.5vw, 86px);
  line-height: 1;
  text-transform: uppercase;
}
.hero__lead {
  max-width: 540px;
  margin: 26px 0 36px;
  color: var(--muted);
  font-size: 18px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 56px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sky);
}
.hero__badges span { font-size: 14px; color: var(--muted); }

/* ----- Secciones ----- */
.section { padding: 104px 0; background: var(--paper); }
.section--tint { background: var(--paper-2); }
.section--dark {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(66, 197, 230, 0.16), transparent 60%),
    var(--navy);
  color: var(--paper);
}
.section__head { margin-bottom: 52px; max-width: 640px; }
.section__note { margin: 16px 0 0; color: var(--ink-muted); }
.section__cta { margin-top: 52px; text-align: center; }

/* ----- Servicios ----- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--steel);
  border-radius: var(--radius);
}
.service h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--steel);
}
.service p { margin: 0; color: var(--ink-muted); font-size: 16px; }
.service--accent { background: var(--navy); border-color: var(--navy); border-top-color: var(--sos); }
.service--accent h3 { color: var(--paper); }
.service--accent p { color: var(--muted); }
.service__link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
}
.service__link:hover { color: var(--paper); }

/* ----- Cotización ----- */
.quote {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: start;
}
.quote__intro p:last-child { color: var(--ink-muted); margin: 18px 0 0; }
.quote__form {
  display: grid;
  gap: 16px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr 0.6fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px evita el zoom automático en iPhone */
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--steel); }
.quote__error { margin: 0; color: var(--sos); font-size: 15px; }

/* ----- Nosotros ----- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar { padding-top: 24px; border-top: 2px solid var(--sky); }
.pillar__num { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--sky); }
.pillar h3 {
  margin: 10px 0 10px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--paper);
}
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

/* ----- Visítanos ----- */
.visit {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.hours { margin: 32px 0 20px; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--steel); font-weight: 600; }
.visit__address { margin: 0 0 28px; color: var(--ink-muted); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}
.visit__map iframe { width: 100%; height: 100%; border: 0; }

/* ----- Cierre ----- */
.closing {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(66, 197, 230, 0.3), transparent 60%),
    var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--paper);
  padding: 104px 0;
  text-align: center;
}
.closing__title {
  margin: 0 0 36px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.05;
  text-transform: uppercase;
}
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ----- Pie ----- */
.footer {
  background: #0f2740;
  color: var(--muted);
  padding: 36px 0 110px; /* espacio para los botones flotantes */
  font-size: 14px;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer p { margin: 0; }
.footer .brand__name { color: var(--paper); }

/* ----- Botones flotantes ----- */
.float-actions {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.float-call {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sos);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.float-call:hover { background: var(--sos-dark); }
.float-call svg { width: 26px; height: 26px; }
.wa-float {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  background: #1da851;
  color: var(--paper);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.wa-float:hover { background: #168c43; }
.wa-float svg { width: 22px; height: 22px; }

/* ----- Responsivo ----- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header__inner { height: 80px; }
  .brand__logo { width: 46px; height: 46px; }
  .brand__name { font-size: 26px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    gap: 22px;
    padding: 28px var(--gutter) 36px;
    background: var(--navy-2);
    border-top: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }

  .pillars, .visit, .quote { grid-template-columns: 1fr; }
  .quote, .visit { gap: 40px; }
  .section { padding: 80px 0; }
  .hero__inner { padding-top: 116px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .services { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field--short { grid-column: span 2; }
  .quote__form { padding: 22px 18px; }
  .sos-bar { font-size: 13px; }
  .sos-bar__text strong { display: none; }
  .hero__actions .btn,
  .closing__actions .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
}
