/* ============================================================
   Estudio Contable JC & Más — Hoja de estilos principal
   Arequipa, Perú · Contabilidad, tributación y finanzas
   ============================================================ */

/* ---------- 1. Tokens de diseño ---------- */
:root {
  /* Marca (tomada del logotipo) */
  --navy: #0f3b6c;
  --navy-900: #0a2747;
  --navy-700: #14497f;
  --sky: #229ad6;
  --sky-300: #6ec2ea;
  --green: #13945a;
  --green-100: #e3f4ec;

  /* Neutros */
  --ink: #10202f;
  --body: #41576c;
  --muted: #6b8095;
  --line: #dfe6ee;
  --paper: #ffffff;
  --paper-alt: #f5f8fb;
  --paper-deep: #eef3f9;

  /* Acentos */
  --gold: #e0a325;

  /* Tipografía */
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Formas y sombras */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(15, 59, 108, .06), 0 2px 8px rgba(15, 59, 108, .05);
  --sh-md: 0 4px 12px rgba(15, 59, 108, .08), 0 12px 32px rgba(15, 59, 108, .07);
  --sh-lg: 0 18px 50px rgba(10, 39, 71, .16);

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .15vw, 1.0625rem);
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  font-family: var(--serif);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.15rem, 1.5rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.55rem); }
h4 { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

strong { color: var(--ink); font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--sky-300); color: var(--navy-900); }

/* ---------- 3. Utilidades ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-alt); }
.section--deep { background: var(--paper-deep); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  flex: none;
}
.eyebrow--light { color: var(--sky-300); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head p {
  font-size: 1.075rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- 4. Botones ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.6rem;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 59, 108, .22);
}
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary { --btn-bg: var(--navy); }
.btn--primary:hover { --btn-bg: var(--navy-700); }

.btn--accent { --btn-bg: var(--green); }
.btn--accent:hover { --btn-bg: #0f7c4c; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: rgba(15, 59, 108, .28);
}
.btn--ghost:hover {
  --btn-bg: rgba(15, 59, 108, .06);
  box-shadow: none;
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--navy);
}
.btn--light:hover { --btn-bg: #eef3f9; }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--outline-light:hover {
  --btn-bg: rgba(255, 255, 255, .12);
  color: #fff;
}

.btn--block { width: 100%; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

/* ---------- 5. Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(15, 59, 108, .07);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 78px;
}

/* Marca */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--navy-900);
  flex: none;
}
.brand:hover { color: var(--navy-900); }
.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #fff;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand__tag {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sky);
}

/* Navegación */
.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; }
.nav__link {
  display: block;
  padding: .55rem .82rem;
  font-size: .925rem;
  font-weight: 650;
  color: var(--navy-900);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background .16s ease, color .16s ease;
}
.nav__link:hover { background: var(--paper-deep); color: var(--navy); }
.nav__link[aria-current="page"] {
  color: var(--sky);
  position: relative;
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .82rem;
  right: .82rem;
  bottom: .18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.header__cta { margin-left: .35rem; }

/* Botón de menú móvil */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  background: var(--navy-900);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(10, 39, 71, .95) 0%, rgba(10, 39, 71, .88) 42%, rgba(15, 59, 108, .72) 100%),
    radial-gradient(circle at 78% 18%, rgba(34, 154, 214, .35), transparent 55%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__title {
  color: #fff;
  margin-bottom: .35em;
}
.hero__title em {
  font-style: italic;
  color: var(--sky-300);
}
.hero__claim {
  font-size: clamp(1.02rem, .98rem + .45vw, 1.22rem);
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  max-width: 34rem;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .9rem;
  margin: 0 0 1.9rem;
  padding: 0;
  list-style: none;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .4rem .85rem .4rem .55rem;
  font-size: .82rem;
  font-weight: 650;
  color: rgba(255, 255, 255, .95);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-pill);
}
.hero__badges svg { flex: none; color: #6ee7a8; }

/* Tarjeta del formulario */
.quote-card {
  background: #fff;
  color: var(--body);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  border-top: 5px solid var(--green);
}
.quote-card__title {
  font-size: clamp(1.28rem, 1.15rem + .5vw, 1.6rem);
  margin-bottom: .3rem;
  color: var(--navy-900);
}
.quote-card__sub {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ---------- 7. Formularios ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.field label .req { color: #d33a2c; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .72rem .85rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 92px; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%230f3b6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.3rem;
  cursor: pointer;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c3d1e0; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(34, 154, 214, .16);
}

.field input::placeholder,
.field textarea::placeholder { color: #94a6b8; }

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: #d33a2c;
  background: #fdf3f2;
}

.field__error {
  font-size: .78rem;
  font-weight: 650;
  color: #c02f22;
  min-height: 0;
}

.form-note {
  margin: .85rem 0 0;
  font-size: .76rem;
  line-height: 1.55;
  color: var(--muted);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: .85rem 1rem;
  font-size: .88rem;
  border-radius: var(--r-sm);
  border-left: 4px solid;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: var(--green-100);
  border-color: var(--green);
  color: #0b5c39;
}
.form-status.is-error {
  background: #fdf3f2;
  border-color: #d33a2c;
  color: #8f2a1f;
}

/* ---------- 8. Cinta de ventajas (marquee) ---------- */
.strip {
  background: var(--navy);
  color: #fff;
  padding-block: .85rem;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, .1);
}
.strip__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: strip-scroll 38s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  flex: none;
}
.strip__item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .015em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .96);
}
.strip__item::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 1.55rem;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 9. Tarjetas de servicios ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.6vw, 1.85rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 154, 214, .45);
  box-shadow: var(--sh-md);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--paper-deep), #dfeaf5);
  color: var(--navy);
  flex: none;
}
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.card ul {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}
.card ul li {
  position: relative;
  margin: 0;
  padding-left: 1.5rem;
  font-size: .89rem;
  line-height: 1.55;
  color: var(--body);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--green);
  transform: rotate(45deg);
}
.card__link {
  margin-top: auto;
  font-size: .875rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.card__link:hover { color: var(--sky); gap: .6rem; }
.card__link svg { transition: transform .18s ease; }
.card__link:hover svg { transform: translateX(3px); }

/* ---------- 10. Sobre nosotros / split ---------- */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: .85fr 1.15fr; }
}

.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  aspect-ratio: 4 / 3;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__media--stack { display: grid; gap: 1rem; aspect-ratio: auto; }
.split__media--stack > * { border-radius: var(--r-md); overflow: hidden; }
.split__media--stack img { width: 100%; height: 100%; object-fit: cover; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.stat-row li { margin: 0; }
.stat-row dt, .stat-row .stat__value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-row .stat__label {
  font-size: .8rem;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.4;
}

/* Lista de checks */
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .7rem;
}
.check-list li {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  font-size: .95rem;
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2313945a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 6.3l3 3 6-6.6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- 11. Planes ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.plan--featured {
  border-color: var(--navy);
  box-shadow: 0 16px 44px rgba(15, 59, 108, .16);
  position: relative;
}
@media (min-width: 900px) {
  .plan--featured { transform: translateY(-10px); }
  .plan--featured:hover { transform: translateY(-14px); }
}
.plan__flag {
  position: absolute;
  top: 0;
  right: clamp(1.5rem, 3vw, 2.1rem);
  transform: translateY(-50%);
  padding: .3rem .85rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.plan__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: .2rem;
}
.plan__for {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
  min-height: 2.6em;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.plan__price strong {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.plan__price span { font-size: .82rem; font-weight: 650; color: var(--muted); }
.plan ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
  font-size: .9rem;
}
.plan ul li {
  position: relative;
  margin: 0;
  padding-left: 1.6rem;
  line-height: 1.55;
}
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .34em;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2313945a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M1.5 6.3l3 3 6-6.6'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.plan .btn { margin-top: auto; }

.plans__note {
  margin-top: 1.6rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- 12. Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding-top: 3.4rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sky);
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(34, 154, 214, .35);
}
.steps h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: .4rem;
  color: var(--navy-900);
}
.steps p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- 13. Acordeón (FAQ) ---------- */
.faq {
  display: grid;
  gap: .7rem;
  max-width: 52rem;
  margin-inline: auto;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open],
.faq__item.is-open {
  border-color: rgba(34, 154, 214, .5);
  box-shadow: var(--sh-sm);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.25rem;
  margin: 0;
  font-family: var(--sans);
  font-size: .975rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  color: var(--navy-900);
  background: none;
  border: 0;
  cursor: pointer;
}
.faq__q:hover { color: var(--navy-700); }
.faq__icon {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--navy);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .22s ease, opacity .22s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--navy); color: #fff; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p,
.faq__a ul {
  padding-inline: 1.25rem;
  font-size: .925rem;
  color: var(--body);
}
.faq__a > div > *:first-child { padding-top: 0; margin-top: 0; }
.faq__a > div > *:last-child { padding-bottom: 1.2rem; margin-bottom: 0; }
.faq__a ul { padding-left: 2.5rem; }
.faq__a li { font-size: .915rem; }

/* ---------- 14. Contacto ---------- */
.contact {
  background: linear-gradient(160deg, var(--navy-900), var(--navy) 60%, #124b83);
  color: #fff;
}
.contact h2 { color: #fff; }
.contact__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 940px) {
  .contact__grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
}
.contact__lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .82);
  max-width: 30rem;
}

.info-list {
  display: grid;
  gap: .55rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.info-list li { margin: 0; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  color: #fff;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
a.info-item:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  transform: translateX(3px);
}
.info-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: #6ee7a8;
}
.info-item__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.info-item__label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.info-item__value {
  font-size: .95rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.contact__card {
  background: #fff;
  color: var(--body);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 3vw, 2.1rem);
  box-shadow: var(--sh-lg);
}
.contact__card h3 { margin-bottom: .3rem; }
.contact__card > p { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }

.hours {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
}
.hours__title {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6ee7a8;
  margin-bottom: .7rem;
}
.hours dl {
  display: grid;
  gap: .45rem;
  margin: 0;
  font-size: .88rem;
}
.hours dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .45rem;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
}
.hours dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { color: rgba(255, 255, 255, .78); }
.hours dd { margin: 0; font-weight: 700; color: #fff; text-align: right; }

/* ---------- 15. Footer ---------- */
.footer {
  background: #071d35;
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
}
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: var(--sky-300); }
.footer__about { font-size: .89rem; line-height: 1.7; max-width: 26rem; }

.footer h4 {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .9rem;
}
.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}
.footer__links li { margin: 0; }
.footer__links a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: .89rem;
}
.footer__links a:hover { color: #fff; text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}
.footer__bottom p { margin: 0; }

/* ---------- 16. Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(.9rem, 2.5vw, 1.6rem);
  bottom: clamp(.9rem, 2.5vw, 1.6rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.15rem;
  font-size: .875rem;
  font-weight: 750;
  color: #fff;
  background: #1fa855;
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(11, 92, 57, .38);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.wa-float:hover {
  color: #fff;
  background: #178f47;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(11, 92, 57, .45);
}
.wa-float__text { display: none; }
@media (min-width: 620px) { .wa-float__text { display: inline; } }
.wa-float svg { flex: none; }

/* ---------- 17. CTA banda ---------- */
.cta-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 154, 214, .3), transparent 55%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--sh-md);
}
@media (min-width: 800px) {
  .cta-band { grid-template-columns: 1fr auto; }
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 1.25rem + 1.3vw, 2.15rem);
  margin-bottom: .4rem;
}
.cta-band p {
  color: rgba(255, 255, 255, .82);
  font-size: .97rem;
  margin: 0;
}

/* ---------- 18. Página interior: cabecera ---------- */
.page-head {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(115deg, var(--navy-900), var(--navy) 70%);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 82% 10%, rgba(34, 154, 214, .38), transparent 52%);
}
.page-head h1 { color: #fff; margin-bottom: .5rem; }
.page-head p {
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1rem, .97rem + .3vw, 1.15rem);
  max-width: 42rem;
  margin-bottom: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: rgba(255, 255, 255, .62);
}
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; }
.crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs [aria-current="page"] { color: var(--sky-300); font-weight: 650; }

/* ---------- 19. Responsive ---------- */
/* En escritorio el CTA vive en la cabecera (.header__cta);
   el botón dentro del menú solo aparece en la vista móvil. */
@media (min-width: 901px) {
  .nav .btn { display: none; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .quote-card { max-width: 34rem; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 72px; }

  .header__inner { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: .6rem var(--gutter) 1.1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(10, 39, 71, .12);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }
  .nav__link {
    padding: .8rem .85rem;
    font-size: 1rem;
    border-radius: var(--r-sm);
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--paper-deep); }
  .nav .btn { margin-top: .7rem; width: 100%; }

  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.16rem; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .hero__badges li { font-size: .78rem; }
  .quote-card { border-radius: var(--r-md); }
  .faq__q { padding: .9rem 1rem; font-size: .93rem; }
  .faq__a p, .faq__a ul { padding-inline: 1rem; }
  .wa-float { padding: .8rem; }
  .plan__flag { right: 1.25rem; }
}

/* ---------- 20. Impresión ---------- */
@media print {
  .header, .wa-float, .strip, .hero__bg, .nav-toggle { display: none !important; }
  body { color: #000; }
  .hero, .contact, .page-head, .footer { background: none !important; color: #000; }
  .hero h1, .hero__title, .contact h2, .page-head h1 { color: #000 !important; }
}
