/* ==========================================================================
   Seguros & Tiempo — V3
   Paleta oficial: #00026b (azul del logo), #e3a14a (ámbar del logo),
   #c2d7f6 (azul claro) y #f8f8f8 (gris claro).
   Regla de marca: los logotipos son PNG/SVG transparentes con tintas
   oscuras, por eso siempre se colocan sobre blanco o gris claro.
   ========================================================================== */

:root {
  --azul: #00026b;
  --azul-oscuro: #00013f;
  --azul-medio: #1b3a94;
  --azul-claro: #c2d7f6;
  --azul-suave: #e6eefb;
  --ambar: #e3a14a;
  --ambar-oscuro: #b3762a;
  --ambar-suave: #fdf2e2;
  --gris: #f8f8f8;
  --blanco: #ffffff;
  --texto: #1e2340;
  --texto-suave: #555c78;
  --borde: #e2e6f0;
  --borde-fuerte: #cbd4e6;
  --radio-sm: 10px;
  --radio: 16px;
  --radio-lg: 22px;
  --sombra-sm: 0 2px 8px rgba(0, 2, 107, 0.06);
  --sombra: 0 12px 28px rgba(0, 2, 107, 0.1);
  --sombra-lg: 0 24px 56px rgba(0, 2, 107, 0.16);
  --header-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--azul);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--azul);
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.35rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  width: 100%;
  height: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ambar);
  color: var(--azul);
  font-weight: 700;
  border-radius: 0 0 var(--radio-sm) var(--radio-sm);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--ambar);
  outline-offset: 2px;
}

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* --------------------------------------------------- Botones ------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ambar);
  border-color: var(--ambar);
  color: var(--azul);
  box-shadow: 0 8px 18px rgba(227, 161, 74, 0.35);
}

.btn-primary:hover {
  background: #efb161;
  border-color: #efb161;
}

.btn-outline {
  background: transparent;
  border-color: var(--azul);
  color: var(--azul);
}

.btn-outline:hover {
  background: var(--azul);
  color: var(--blanco);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--blanco);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--blanco);
}

.btn-soft {
  background: var(--azul-suave);
  border-color: var(--azul-claro);
  color: var(--azul);
}

.btn-soft:hover {
  background: var(--azul);
  border-color: var(--azul);
  color: var(--blanco);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------- Topbar -------------- */
.topbar {
  background: var(--azul);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 6px;
}

.topbar-note {
  margin: 0;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
}

.topbar-links svg {
  width: 16px;
  height: 16px;
  color: var(--ambar);
}

.topbar-links a:hover {
  color: var(--ambar);
}

/* --------------------------------------------------- Header -------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}

.header.is-stuck {
  box-shadow: var(--sombra-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 46px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  color: var(--texto);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--azul);
  border-bottom-color: var(--ambar);
}

.nav .nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--borde-fuerte);
  border-radius: 12px;
  background: var(--blanco);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--azul);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-bars {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bars::before {
  content: "";
  top: -7px;
}

.nav-toggle-bars::after {
  content: "";
  top: 7px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  transform: translateX(-50%) translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(40px, 5.5vw, 72px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(760px 420px at 92% 0%, rgba(227, 161, 74, 0.2), transparent 62%),
    linear-gradient(165deg, var(--gris) 0%, var(--azul-suave) 46%, var(--azul-claro) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 8px 16px;
  border: 1px solid var(--azul-claro);
  border-radius: 999px;
  background: var(--blanco);
  color: var(--azul);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 17ch;
}

.hero h1 .hl {
  color: var(--ambar-oscuro);
}

.hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--texto-suave);
  max-width: 48ch;
}

.hero-checks {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-checks li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
  color: var(--texto);
}

.hero-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e3a14a' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------- Formulario ---------- */
.lead-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.lead-head {
  padding: 24px 26px 18px;
  background: var(--azul);
  color: var(--blanco);
}

.lead-head h2 {
  font-size: 1.45rem;
  margin-bottom: 4px;
  color: var(--blanco);
}

.lead-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.lead-form {
  position: relative;
  padding: 22px 26px 26px;
}

.lead-form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--azul);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--borde-fuerte);
  border-radius: var(--radio-sm);
  background: var(--blanco);
  font-family: inherit;
  font-size: 1rem;
  color: var(--texto);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300026b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 22px;
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ambar);
  box-shadow: 0 0 0 4px rgba(227, 161, 74, 0.22);
  outline: none;
}

.field input.has-error,
.field select.has-error,
.field textarea.has-error {
  border-color: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--texto-suave);
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--azul);
  flex-shrink: 0;
}

.check.has-error span {
  color: #c62828;
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c62828;
}

.check + .field-error {
  margin: -10px 0 16px 30px;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--texto-suave);
  text-align: center;
}

.form-note.is-error {
  color: #c62828;
  font-weight: 600;
}

.form-note.is-success {
  color: #1b7a3a;
  font-weight: 700;
}

/* --------------------------------------------------- Stats --------------- */
.stats {
  background: var(--azul);
  color: var(--blanco);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0;
  text-align: center;
}

.stats-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-grid strong {
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
  font-weight: 800;
  color: var(--ambar);
  letter-spacing: -0.02em;
}

.stats-grid span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------- Secciones ----------- */
.section {
  padding: clamp(52px, 6.5vw, 84px) 0;
}

.section-alt {
  background: var(--gris);
}

.section-head {
  max-width: 700px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ambar);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azul);
}

.section-lead {
  margin: 0;
  color: var(--texto-suave);
  font-size: 1.03rem;
}

/* --------------------------------------------------- Tabs ---------------- */
.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 28px;
  background: var(--azul-suave);
  border: 1px solid var(--azul-claro);
  border-radius: 999px;
}

.tab {
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--azul);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.tab:hover {
  background: rgba(255, 255, 255, 0.7);
}

.tab.is-active {
  background: var(--azul);
  color: var(--blanco);
}

/* --------------------------------------------------- Tarjetas ------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cards.is-hidden {
  display: none;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--ambar);
  box-shadow: var(--sombra);
}

.card-media img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 11px;
  margin: -42px 0 14px;
  position: relative;
  border-radius: 14px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  color: var(--azul);
  box-shadow: var(--sombra-sm);
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body > p {
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 4px 0 20px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ambar-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b3762a' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.card-body .btn {
  margin-top: auto;
}

/* --------------------------------------------------- Pasos --------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.steps li {
  padding: 26px 22px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra-sm);
}

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--ambar);
  font-weight: 800;
}

.steps h3 {
  font-size: 1.08rem;
}

.steps p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

/* --------------------------------------------------- Nuestro rol --------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.role-card {
  padding: 26px 24px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  background: var(--blanco);
}

.role-card h3 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--borde);
}

.role-card ul {
  display: grid;
  gap: 11px;
}

.role-card li {
  position: relative;
  padding-left: 32px;
  color: var(--texto-suave);
}

.role-yes {
  background: var(--azul-suave);
  border-color: var(--azul-claro);
}

.role-yes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.role-no {
  background: var(--ambar-suave);
  border-color: #f0d7b3;
}

.role-no li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ambar-oscuro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M18.3 7.1 16.9 5.7 12 10.6 7.1 5.7 5.7 7.1l4.9 4.9-4.9 4.9 1.4 1.4 4.9-4.9 4.9 4.9 1.4-1.4-4.9-4.9z'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* --------------------------------------------------- Servicios ----------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service {
  padding: 24px 22px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.service:hover {
  transform: translateY(-3px);
  border-color: var(--ambar);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 13px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--azul-claro);
  color: var(--azul);
}

.service h3 {
  font-size: 1.06rem;
}

.service p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.94rem;
}

/* --------------------------------------------------- Aseguradoras -------- */
.logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.logos li {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 20px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra-sm);
}

.logos img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------- FAQ ----------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.faq-intro .btn {
  margin-top: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra-sm);
  overflow: hidden;
}

.faq-list details[open] {
  border-color: var(--azul-claro);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-weight: 700;
  color: var(--azul);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300026b' d='M11 5h2v14h-2zM5 11h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.faq-list details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300026b' d='M5 11h14v2H5z'/%3E%3C/svg%3E");
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--texto-suave);
}

/* --------------------------------------------------- CTA ----------------- */
.cta-band {
  padding: clamp(36px, 5vw, 56px) 0;
  background: linear-gradient(120deg, var(--azul) 0%, var(--azul-medio) 100%);
  color: var(--blanco);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin-bottom: 6px;
  color: var(--blanco);
}

.cta-band p {
  margin: 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------- Contacto ------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 12px;
  background: var(--azul-claro);
  color: var(--azul);
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-text small {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ambar-oscuro);
}

.contact-text a {
  font-weight: 700;
  color: var(--azul);
  text-decoration: none;
  word-break: break-word;
}

.contact-text a:hover {
  color: var(--ambar-oscuro);
}

.contact-aside {
  padding: 26px 24px;
  border: 1px solid var(--azul-claro);
  border-radius: var(--radio-lg);
  background: var(--gris);
}

.contact-aside h3 {
  margin-bottom: 14px;
}

.contact-aside h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hours {
  margin: 0 0 12px;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.hours strong {
  color: var(--azul);
  font-size: 1.02rem;
}

.contact-aside hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--borde-fuerte);
}

.aside-note {
  font-size: 0.92rem;
  color: var(--texto-suave);
}

/* --------------------------------------------------- Footer -------------- */
.footer {
  padding: 46px 0 24px;
  background: var(--azul);
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

/* Versión blanca del logotipo: se usa directo sobre el fondo azul. */
.footer-logo {
  width: auto;
  height: 52px;
}

.footer-slogan {
  margin: 18px 0 0;
  max-width: 36ch;
  color: var(--ambar);
  font-size: 0.98rem;
  font-weight: 700;
}

.footer-slogan span {
  color: var(--blanco);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: var(--ambar);
  color: var(--azul);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav h4 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ambar);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--blanco);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin: 0;
  max-width: 60ch;
}

/* En escritorio ancho el aviso legal cabe en un solo renglón,
   a la misma altura que el aviso de derechos reservados. */
@media (min-width: 1240px) {
  .footer-bottom {
    flex-wrap: nowrap;
    font-size: 0.7rem;
  }

  .footer-bottom p {
    max-width: none;
  }

  .footer-bottom p:last-child {
    white-space: nowrap;
    text-align: right;
  }
}

/* --------------------------------------------------- Barra móvil --------- */
.mobile-bar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 120;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--borde);
  box-shadow: 0 -6px 20px rgba(0, 2, 107, 0.12);
}

.mobile-bar a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--azul-suave);
  color: var(--azul);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-bar svg {
  width: 18px;
  height: 18px;
}

.mobile-bar .is-wa {
  background: rgba(37, 211, 102, 0.16);
  color: #0f7a3d;
}

.mobile-bar .is-cta {
  background: var(--ambar);
  color: var(--azul);
}

/* --------------------------------------------------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards,
  .steps,
  .services,
  .logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .faq-grid,
  .contact-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 22ch;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 1px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 20px 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--blanco);
    border-bottom: 1px solid var(--borde);
    box-shadow: var(--sombra);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  body.nav-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--borde);
    font-size: 1rem;
  }

  .nav a:hover {
    border-bottom-color: var(--borde);
  }

  .nav .nav-cta {
    display: block;
    margin-top: 16px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--ambar);
    color: var(--azul);
    text-align: center;
  }

  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  body {
    padding-bottom: 74px;
  }

  .mobile-bar {
    display: flex;
  }
}

@media (max-width: 720px) {
  .topbar-note {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
    gap: 22px;
  }

  .brand img {
    height: 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .cards,
  .steps,
  .services {
    grid-template-columns: 1fr;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .tab {
    padding: 12px 8px;
    font-size: 0.9rem;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .faq-intro .btn {
    width: 100%;
  }

  .lead-head,
  .lead-form {
    padding-inline: 20px;
  }

  .card-media img {
    height: 190px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(1200px, 100% - 32px);
  }

  .logos {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
