/* =====================================================================
   Solid Pro Services UT — sistema de diseño
   Paleta muestreada del logo. Contrastes medidos (WCAG):
     naranja #FF7E06 sobre blanco = 2.55  -> FALLA. Nunca texto naranja en claro.
     navy    #000F22 sobre naranja = 7.55 -> AAA.   El boton es naranja + letra navy.
     azul    #004E98 sobre blanco = 8.26  -> AAA.
     azul    #004E98 sobre navy   = 2.33  -> FALLA. Sobre navy va --blue-400.
   ===================================================================== */

:root {
  --navy-900: #000F22;
  --navy-800: #0A1B33;
  --navy-700: #16273F;
  --navy-600: #24384F;

  --blue-700: #003D78;
  --blue-600: #004E98;
  --blue-400: #4D9BEA;

  --orange-600: #E86F00;
  --orange-500: #FF7E06;
  --orange-300: #FFB05C;

  --white: #FFFFFF;
  --gray-50: #F6F8FA;
  --gray-100: #EDF1F5;
  --gray-200: #E3E8EF;
  --gray-400: #9AA8B8;
  --gray-600: #5A6B80;
  --gray-800: #2B3A4C;

  --ink: var(--navy-900);
  --muted: var(--gray-600);

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 15, 34, .06), 0 2px 8px rgba(0, 15, 34, .06);
  --shadow-md: 0 4px 12px rgba(0, 15, 34, .08), 0 12px 32px rgba(0, 15, 34, .10);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 6.2vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.85rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
ul { padding-left: 1.15em; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section--tight { padding: clamp(40px, 5vw, 60px) 0; }
.section--gray { background: var(--gray-50); border-block: 1px solid var(--gray-200); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--blue-400); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-600);
  margin: 0 0 .5em;
}
.section--navy .eyebrow { color: var(--orange-300); }
.lede { font-size: clamp(1.06rem, 1.9vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.section--navy .lede { color: #C7D3E0; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: .7em 1.5em;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

/* naranja con letra navy: 7.55:1. Nunca blanco sobre naranja (2.6:1). */
.btn--primary { background: var(--orange-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--orange-600); }

/* El boton fantasma se pinta con tokens HEREDADOS, no con una lista de
   selectores. Sobre navy, navy es invisible — ese bug aparecio cuatro veces
   (hero, banda de cierre, barra movil, CTA pegajoso) porque cada fondo oscuro
   nuevo habia que acordarse de agregarlo a la lista. Ahora cualquier contenedor
   oscuro declara --ghost-* una sola vez y todo lo que tenga adentro queda bien. */
.btn--ghost {
  background: transparent;
  color: var(--ghost-fg, var(--navy-900));
  border-color: var(--ghost-bd, var(--navy-900));
}
.btn--ghost:hover {
  background: var(--ghost-fg, var(--navy-900));
  color: var(--ghost-bg, var(--white));
}

/* Superficies oscuras. Una linea por superficie, y listo. */
.hero,
.section--navy,
.sticky-cta,
.site-footer,
.trustbar,
.site-header {
  --ghost-fg: #FFFFFF;
  --ghost-bd: rgba(255, 255, 255, .55);
  --ghost-bg: var(--navy-900);
}

.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700);
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  color: var(--white); font-size: 1.28rem; line-height: 1; letter-spacing: .02em;
}
.brand__name b { color: var(--blue-400); font-weight: 700; }
.brand__sub {
  display: block; font-size: .62rem; letter-spacing: .22em; color: var(--gray-400);
  font-family: var(--font-body); font-weight: 600; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: #D6E0EB; text-decoration: none; font-weight: 600; font-size: .96rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--orange-500); }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); text-decoration: none; font-weight: 700;
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .02em;
}
.header-phone:hover { color: var(--orange-300); }
.header-phone svg { flex: none; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: var(--white);
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--orange-500) 0 34%, var(--blue-600) 34% 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.hero__inner { position: relative; max-width: 42rem; }
.hero h1 { color: var(--white); margin-bottom: .28em; }
.hero h1 em { font-style: normal; color: var(--orange-300); }
.hero__sub { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: #C7D3E0; margin-bottom: 1.5em; max-width: 34rem; }
.hero .btn-row { margin-bottom: 18px; }
.hero__note { font-size: .95rem; color: var(--gray-400); margin: 14px 0 0; max-width: 34rem; }
.hero__note a { color: var(--blue-400); font-weight: 600; }

/* ---------- tira de confianza ---------- */
.trustbar { background: var(--navy-800); border-bottom: 1px solid var(--navy-700); color: var(--white); }
.trustbar ul {
  list-style: none; margin: 0; padding: 18px 0;
  display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.trustbar li { display: flex; align-items: flex-start; gap: 10px; font-size: .97rem; font-weight: 600; }
.trustbar svg { flex: none; margin-top: 3px; color: var(--orange-500); }

/* ---------- grillas ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px 24px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--blue-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon { color: var(--blue-600); margin-bottom: 14px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 1em; }
.card__more { margin-top: auto; font-weight: 700; color: var(--blue-600); font-size: .95rem; }
a.card:hover .card__more { text-decoration: underline; }

/* ---------- pasos ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps li { position: relative; padding-top: 58px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange-500); color: var(--navy-900);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: .25em; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }
.section--navy .steps p { color: #C7D3E0; }

/* ---------- chips de tareas ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 7px 15px; font-size: .95rem; font-weight: 600; color: var(--gray-800);
}
.section--gray .chips li { background: var(--white); }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq details {
  border-bottom: 1px solid var(--gray-200); padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--blue-600); border-bottom: 2.5px solid var(--blue-600);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- agendador ---------- */
.sched {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--gray-200); border-radius: 14px;
  box-shadow: var(--shadow-md); overflow: hidden; max-width: 39rem; margin-inline: auto;
}
.sched__head { background: var(--navy-900); color: var(--white); padding: 20px 24px 18px; }
.sched__head h3 { color: var(--white); margin: 0 0 4px; font-size: 1.55rem; text-transform: uppercase; }
.sched__head p { margin: 0; font-size: .95rem; color: #C7D3E0; }
.sched__bar { display: flex; gap: 5px; margin-top: 15px; }
.sched__bar span { height: 4px; flex: 1; background: rgba(255, 255, 255, .22); border-radius: 2px; }
.sched__bar span.is-done { background: var(--orange-500); }
.sched__body { padding: 24px; }
.sched fieldset { border: 0; margin: 0; padding: 0; }
.sched legend { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; margin-bottom: 14px; padding: 0; }
.sched__step[hidden] { display: none; }
.sched__hint { font-size: .9rem; color: var(--muted); margin: -6px 0 16px; }

.opts { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt span {
  display: block; padding: 13px 15px; border: 2px solid var(--gray-200); border-radius: var(--radius);
  font-weight: 600; font-size: .97rem; cursor: pointer; background: var(--white); line-height: 1.3;
  transition: border-color .12s, background-color .12s;
}
.opt span:hover { border-color: var(--blue-400); }
.opt input:checked + span { border-color: var(--blue-600); background: #EAF2FB; }
.opt input:focus-visible + span { outline: 3px solid var(--orange-500); outline-offset: 2px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; font: inherit; font-size: 1rem;
  border: 2px solid var(--gray-200); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--blue-600); outline: none; }
.field textarea { min-height: 92px; resize: vertical; }
.sched__nav { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.sched__back {
  background: none; border: 0; color: var(--blue-600); font-weight: 700; cursor: pointer; padding: 10px 4px;
}
.sched__back:hover { text-decoration: underline; }
.sched__err { color: #B3261E; font-weight: 600; font-size: .93rem; margin: 10px 0 0; }
.sched__done { text-align: center; padding: 8px 0 4px; }
.sched__done svg { color: var(--blue-600); margin: 0 auto 12px; }
.sched__msg {
  text-align: left; background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; white-space: pre-wrap;
  margin: 16px 0; color: var(--gray-800);
}

/* ---------- cierre / CTA ---------- */
.cta-band { background: var(--navy-900); color: var(--white); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #B9C6D4; border-top: 5px solid var(--orange-500); padding: 48px 0 104px; font-size: .96rem; }
.site-footer a { color: #D6E0EB; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h4 {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 1rem; color: var(--white); margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-phone { font-family: var(--font-display); font-size: 1.7rem; color: var(--white) !important; font-weight: 700; }
.footer-bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--navy-700);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: .88rem; color: var(--gray-400);
}

/* ---------- CTA pegajoso ----------
   Aparece recien cuando el hero sale de pantalla: agarra a la gente en el pico
   de interes, no antes. Y se esconde solo cuando el agendador esta en pantalla,
   para no pedir dos veces la misma cosa al mismo tiempo. */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  background: rgba(0, 15, 34, .97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 3px solid var(--orange-500);
  padding: 11px 0 calc(11px + env(safe-area-inset-bottom));
  transform: translateY(115%);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .28);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__inner { display: flex; align-items: center; gap: 16px; }
.sticky-cta__copy { margin: 0 auto 0 0; color: #C7D3E0; font-size: .92rem; line-height: 1.3; }
.sticky-cta__copy b {
  display: block; color: var(--white);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.24rem; text-transform: uppercase; letter-spacing: .02em;
}
.sticky-cta .btn { font-size: 1.08rem; padding: .58em 1.3em; white-space: nowrap; }

/* micro-copy debajo del boton: baja la friccion antes del click */
.cta-micro { font-size: .88rem; color: var(--gray-600); margin: 10px 0 0; }
.section--navy .cta-micro, .hero .cta-micro { color: var(--gray-400); }
.center .cta-micro { text-align: center; }

/* ---------- utilidades ---------- */
.stack > * + * { margin-top: 12px; }
.breadcrumb { font-size: .9rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb a { color: var(--blue-600); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--orange-500); color: var(--navy-900); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    order: 4; flex-basis: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--navy-700); padding-bottom: 8px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--navy-700); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--navy-700); }
  .site-header__inner { flex-wrap: wrap; }
  .header-phone span { display: none; }
}

@media (max-width: 720px) {
  .sticky-cta__copy { display: none; }
  .sticky-cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .sticky-cta .btn { width: 100%; min-height: 48px; font-size: 1.02rem; padding: .5em .6em; }
}

@media (max-width: 640px) {
  .btn-row .btn { width: 100%; }
  .sched__body { padding: 20px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .sticky-cta, .sched { display: none; }
}
