/* Vidassan — paleta tomada del logo: azul #287DB9 y verde #AFCD78.
   El azul de botones y enlaces está oscurecido a #1A5F8C para contraste AA. */

:root {
  --blue: #287db9;
  --blue-strong: #1a5f8c;
  --blue-deep: #123044;
  --blue-soft: #e7f2f9;
  --green: #afcd78;
  --ink: #123044;
  --muted: #3e5568;
  --bg: #f4f8fb;
  --white: #ffffff;
  --line: #d5e2ec;
  --wa: #0b6b4a;
  --wa-hover: #084d35;
  --focus: #123044;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(18, 48, 68, 0.08);
  --max: 1120px;
  --header-offset: 108px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 96px;
}

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

a {
  color: var(--blue-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 80;
  border-radius: 8px;
  border: 2px solid var(--blue-strong);
}

.skip:focus {
  top: 12px;
}

.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;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(760px, calc(100% - 32px));
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
  color: var(--blue-deep);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

p {
  margin: 0 0 12px;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-strong);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 64%, var(--green) 64% 100%);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 12px;
  padding-block: 10px;
}

.logo {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: fit-content;
}

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

.nav-toggle {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.nav-toggle:has(.nav-check:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

.header-cta {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.header-cta .btn-results {
  flex: 1 1 220px;
  justify-content: center;
}

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

.site-nav {
  display: none;
}

.site-header:has(.nav-check:checked) .site-nav {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px 16px 16px;
  z-index: 60;
  max-height: calc(100vh - 140px);
  overflow: auto;
}

.menu,
.sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a,
.sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover,
.sub a:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.menu a[aria-current="page"],
.sub a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue-strong);
  box-shadow: inset 3px 0 0 var(--blue);
}

.sub-label::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.sub {
  padding: 0 0 8px 12px;
}

.nowrap {
  white-space: nowrap;
}

main:focus {
  outline: none;
}

.hero {
  background:
    radial-gradient(circle at 92% 18%, rgba(175, 205, 120, 0.55), transparent 26%),
    radial-gradient(circle at 80% 70%, rgba(40, 125, 185, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 28px 0 36px;
}

.hero-grid {
  display: grid;
  gap: 20px;
  align-items: center;
}

.hero-art {
  display: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn-results {
  background: var(--blue-strong);
  color: var(--white);
}

.btn-results:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-wa {
  background: var(--wa);
  color: var(--white);
}

.btn-wa:hover {
  background: var(--wa-hover);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--blue-strong);
}

.btn-light:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-strong);
  border-color: var(--blue-strong);
}

.btn-ghost:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.btn svg {
  flex: 0 0 auto;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.facts span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-strong);
}

.facts a {
  font-weight: 700;
  text-decoration: none;
}

.section {
  padding: 40px 0;
}

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

.section-head {
  max-width: 44rem;
  margin-bottom: 20px;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(18, 48, 68, 0.03);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-strong);
}

.card p {
  color: var(--muted);
  flex: 1;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--blue-strong);
  text-decoration: underline;
}

.text-link {
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 16px 64px;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.results-band {
  background: var(--blue-strong);
  color: var(--white);
  padding: 40px 0;
}

.results-band h2,
.results-band p,
.results-band a.text-link {
  color: var(--white);
}

.results-band .fine {
  color: #e7f2f9;
  max-width: 40rem;
}

.results-band .btn-ghost,
.results-band .btn-ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: transparent;
}

.results-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.split {
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.hours td:last-child,
.hours th:last-child {
  text-align: right;
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}

.hours .is-closed td {
  color: var(--muted);
}

.note {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  margin: 16px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  position: relative;
  padding-left: 22px;
}

.list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 0.5em;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 16px;
  min-height: 48px;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--blue-strong);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .faq-a {
  padding: 0 16px 14px;
  color: var(--muted);
}

.page-head {
  background:
    radial-gradient(circle at 100% 0%, rgba(175, 205, 120, 0.45), transparent 30%),
    var(--bg);
  padding: 22px 0 8px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--muted);
}

.prose {
  padding: 8px 0 28px;
}

.prose h2 {
  margin-top: 28px;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--white);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 36px;
}

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-soft);
  min-height: 280px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.stack {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.address {
  font-style: normal;
  font-weight: 600;
}

.site-footer {
  background: var(--blue-deep);
  color: #e7f2f9;
  padding: 36px 0 28px;
}

.site-footer a {
  color: #ffffff;
  text-decoration-thickness: 1px;
}

.footer-grid {
  display: grid;
  gap: 22px;
}

.site-footer .logo img {
  height: 48px;
  background: var(--white);
  border-radius: 10px;
  padding: 4px 8px;
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--green);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer p,
.site-footer li {
  margin: 0;
}

.legal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 6px;
}

.tagline {
  color: var(--green);
  font-weight: 700;
  margin: 8px 0;
}

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11, 107, 74, 0.35);
}

.wa-float:hover {
  background: var(--wa-hover);
  color: var(--white);
}

@media (max-width: 719px) {
  .wa-float {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

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

.missing {
  padding: 48px 0 24px;
}

.missing .cta-row {
  margin-top: 20px;
}

[id] {
  scroll-margin-top: 120px;
}

@media (min-width: 720px) {
  .wrap,
  .wrap.narrow {
    width: min(var(--max), calc(100% - 48px));
  }

  .wrap.narrow {
    width: min(760px, calc(100% - 48px));
  }

  .logo img {
    height: 56px;
  }

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

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

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

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

  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 1040px) {
  body {
    padding-bottom: 28px;
  }

  .header-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo nav cta";
    align-items: center;
    gap: 16px;
  }

  .logo {
    grid-area: logo;
    grid-column: auto;
    grid-row: auto;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    grid-area: nav;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    max-height: none;
    overflow: visible;
  }

  .header-cta {
    grid-area: cta;
    grid-column: auto;
    grid-row: auto;
    flex-wrap: nowrap;
  }

  .btn.header-wa {
    display: inline-flex;
  }

  .menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
  }

  .has-sub {
    position: relative;
  }

  .sub {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    min-width: 260px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 70;
  }

  .has-sub:hover > .sub,
  .has-sub:focus-within > .sub {
    display: grid;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero-art {
    display: grid;
    place-items: center;
    min-height: 280px;
  }

  .hero-art img {
    width: min(280px, 100%);
    height: auto;
  }

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

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .wa-float,
  .nav-toggle,
  .header-cta,
  .site-nav,
  .brand-bar {
    display: none !important;
  }

  .site-header {
    position: static;
  }

  body {
    padding-bottom: 0;
    color: #000;
  }

  .site-footer {
    background: #fff;
    color: #000;
  }

  .site-footer a,
  .site-footer h2,
  .tagline {
    color: #000;
  }
}
