/* ==========================================================================
   Kintsugi — Centro Psicológico
   Sistema visual basado en wwcounseling.com
   ========================================================================== */

:root {
  --petrol: #245675;
  --petrol-deep: #1b425c;
  --gold: #d9aa32;
  --ivory: #faf8f3;
  --sage: #e8ede7;
  --sage-deep: #d5ded3;
  --forest: #52665a;
  --charcoal: #454545;

  /* alias del sistema anterior para no tocar cada regla */
  --bone: var(--ivory);
  --cream: var(--ivory);
  --green: var(--petrol);
  --green-soft: #1d4763;
  --rust: var(--petrol);
  --rust-dark: var(--petrol-deep);
  --tan: var(--sage);
  --sand: var(--sage);
  --ink: var(--charcoal);
  --muted: var(--forest);
  --line: rgba(36, 86, 117, 0.24);
  --line-soft: rgba(36, 86, 117, 0.14);

  --serif: "Cormorant Garamond", "The Seasons", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --h1: clamp(2.2rem, 3.58vw, 3.22rem);
  --h2: clamp(1.9rem, 3.28vw, 2.95rem);
  --h3: clamp(1.05rem, 1.42vw, 1.28rem);
  --body: clamp(1.02rem, 1.32vw, 1.2rem);
  --small: 0.69rem;
  --label: 0.72rem;
  --btn: 0.95rem;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 157px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0;
}

h1 {
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 500;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--petrol);
}

h2 {
  font-family: var(--serif);
  font-size: var(--h2);
  font-weight: 500;
  line-height: 1.05;
  color: var(--petrol);
}

h3 {
  font-family: var(--sans);
  font-size: var(--h3);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

h4 {
  font-family: var(--sans);
  font-size: var(--h3);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1.1em;
}

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

.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(760px, calc(100% - 2 * var(--gutter)));
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--cream);
  padding: 0.75rem 1rem;
}

/* ------------------------------------------------------------------ etiquetas */
.label {
  display: block;
  font-family: var(--sans);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
}

.label::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 0.75rem;
  vertical-align: middle;
  background: var(--gold);
}

.label--light {
  color: var(--gold);
}

.label--rust {
  color: var(--forest);
}

.on-dark {
  color: var(--cream);
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4,
.on-dark .label {
  color: var(--cream);
}

/* -------------------------------------------------------------------- botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: var(--btn);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  padding: 0.95rem 1.35rem;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--green);
  color: var(--cream);
}

.btn--solid {
  background: var(--petrol);
  border-color: var(--petrol);
  color: var(--ivory);
}

.btn--solid:hover {
  background: var(--petrol-deep);
  border-color: var(--petrol-deep);
}

.btn--outline-light {
  border-color: var(--gold);
  color: var(--ivory);
}

.btn--outline-light:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--petrol);
}

.btn--line {
  border: 0;
  padding: 0 0 0.45rem;
  border-bottom: 1px solid currentColor;
  background: none;
}

.btn--line:hover {
  background: none;
  color: var(--gold);
}

.btn--small {
  font-size: 0.82rem;
  padding: 0.7rem 1.1rem;
}

/* ------------------------------------------------------------------- header */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--bone);
}

.site-header__top {
  display: grid;
  place-items: center;
  padding: 21px 0 16px;
  border-bottom: 1px solid rgba(36, 86, 117, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--green);
}

.brand__mark {
  width: 38px;
  height: auto;
}

.brand__name {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.95rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--petrol);
}

.site-nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4.2vw, 4.2rem);
  padding: 1.05rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.site-nav__bar a {
  font-family: var(--sans);
  font-size: var(--btn);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav__bar a:hover,
.site-nav__bar a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  z-index: 80;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bone);
  text-align: center;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 53.2vw, 766px);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin-inline: auto;
}

.hero h1 {
  margin: 1.5rem 0 1.75rem;
  text-wrap: balance;
}

.hero .label {
  color: var(--green);
}

/* --------------------------------------------------------------- secciones */
.section {
  padding: clamp(3.5rem, 6.6vw, 6rem) 0;
}

.section--dark {
  background: var(--green);
  color: var(--cream);
}

.section--white {
  background: #ffffff;
}

.section--tan {
  background: var(--sage);
}

.section-head {
  text-align: center;
}

.section-head h2 {
  margin-top: 1.1rem;
}

/* ------------------------------------------------------------- tres columnas */
.pilares {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.4vw, 3.2rem);
  margin-top: clamp(2.5rem, 4vw, 3.6rem);
}

.pilar__icon {
  width: 92px;
  height: 96px;
  margin-bottom: 1.6rem;
}

.pilar h3 {
  font-size: var(--h3);
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
}

.pilar p {
  font-size: var(--body);
  line-height: 1.6;
  margin: 0;
}

/* ---------------------------------------------------------------------- cta */
.cta-block {
  margin-top: clamp(3rem, 5.4vw, 4.8rem);
  text-align: center;
}

.cta-block h2 {
  margin-bottom: 1.75rem;
}

/* ------------------------------------------------------------------- about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about__figure {
  margin: 0;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 5;
}

.about__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__name {
  margin: 0.9rem 0 1.4rem;
}

.about__name small {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 0.5rem;
}

.about__text {
  font-size: clamp(1.02rem, 1.24vw, 1.18rem);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------------ recursos */
.recursos {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.recursos h2 {
  color: var(--petrol);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2.2rem);
}

.card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1.1rem;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.card__meta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}

/* ------------------------------------------------------------------- footer */
.site-footer {
  background: var(--petrol);
  color: var(--ivory);
  padding: clamp(3rem, 5.5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer__mark {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--ivory);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.footer__mark img {
  width: 118px;
  height: auto;
}

.footer__col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  margin-bottom: 1.15rem;
  color: var(--gold);
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 1.02rem;
  line-height: 1.9;
  text-decoration: none;
  color: var(--cream);
}

.footer__col .btn--line {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer__col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(217, 170, 50, 0.45);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-row {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.social-row a {
  display: inline-flex;
  color: inherit;
  opacity: 0.9;
}

.social-row a:hover {
  opacity: 1;
}

.social-row svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.social-row svg [data-fill] {
  fill: currentColor;
  stroke: none;
}

/* ------------------------------------------------------------- cabecera de página */
.page-head {
  background: var(--bone);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 3.4vw, 3rem);
  text-align: center;
}

.page-head h1 {
  font-size: clamp(1.9rem, 3.28vw, 2.95rem);
  text-transform: none;
  line-height: 1.08;
  margin: 1rem auto 0;
  max-width: 900px;
}

.page-head p {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  color: var(--muted);
}

/* ------------------------------------------------------------------ listas */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.split__figure {
  margin: 0;
}

.split__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split__figure--wide img {
  aspect-ratio: 16 / 11;
}

.prose h2 {
  margin-bottom: 1.3rem;
}

.prose h3 {
  margin: 2.2rem 0 0.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose--narrow {
  max-width: 720px;
  margin-inline: auto;
}

/* ------------------------------------------------------------ filas de servicio */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 4vw, 4rem);
  border-top: 1px solid var(--line-soft);
}

.service-row:first-of-type {
  border-top: 0;
}

.service-row:nth-child(even) .service-row__media {
  order: 2;
}

.service-row__media {
  margin: 0;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 360px;
}

.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row__tag {
  font-family: var(--sans);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------- precios */
.prices {
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.price__name {
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.price__note {
  font-size: 0.82rem;
  color: var(--muted);
}

.price__amount {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--petrol);
  white-space: nowrap;
}

/* -------------------------------------------------------------------- form */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.4rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend,
.field__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  appearance: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--petrol);
  outline-offset: 1px;
}

.field--radio {
  border: 0;
  padding: 0;
  margin: 0;
}

.radio-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.radio-row input {
  appearance: auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--petrol);
}

.form__submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.form__hint {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

.form__error {
  display: none;
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #8a3b1f;
  background: #fbeae4;
  border-left: 3px solid #a5321b;
  padding: 0.85rem 1rem;
}

.form__error.is-visible {
  display: block;
}

.form__success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 3vw, 2.75rem);
  background: var(--sage);
}

.form__success.is-visible {
  display: block;
}

.form__success h3 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.form__success-ref {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__success-ref strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.form__success-note {
  max-width: 46ch;
  margin: 1rem auto 0;
  font-size: 1rem;
  color: var(--muted);
}

.form__success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ------------------------------------------------------------------ horarios */
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slots__hint {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.slot {
  position: relative;
}

.slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.slot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 0.65rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.slot span:hover {
  border-color: var(--petrol);
}

.slot input:checked + span {
  background: var(--petrol);
  border-color: var(--petrol);
  color: var(--ivory);
}

.slot input:focus-visible + span {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}

.slots__next {
  margin-top: 0.9rem;
  padding: 0 0 3px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--petrol);
  cursor: pointer;
}

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------- aside */
.aside-note {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
}

.aside-note h3 {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.1rem;
}

.aside-note dl {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.aside-note dt {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-note dd {
  margin: 0;
  font-size: 0.98rem;
}

/* ---------------------------------------------------------------------- blog */
.article {
  max-width: 740px;
}

.article h2 {
  margin: 2.6rem 0 1rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--petrol);
}

.article h2:first-child {
  margin-top: 0;
}

.article p {
  line-height: 1.75;
}

.article__meta {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1.1rem;
}

.pull {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.4;
  color: var(--petrol);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* ---------------------------------------------------------------------- faq */
.faq {
  display: grid;
  gap: 0.25rem;
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 1.1rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--rust);
}

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

.faq details p {
  margin-top: 0.9rem;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 66ch;
}

/* ---------------------------------------------------------------------- mapa */
.map {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  filter: saturate(0.75) contrast(0.95);
}

/* ------------------------------------------------------------------- fichas */
.dato {
  border-bottom: 1px dashed rgba(217, 170, 50, 0.9);
  color: var(--muted);
}

.ficha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 3rem;
  margin: 0;
}

.ficha > div {
  border-top: 1px solid var(--line-soft);
  padding-top: 0.85rem;
}

.ficha dt,
.contact-list dt {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.ficha dd,
.contact-list dd {
  margin: 0;
  font-size: 1.02rem;
}

.contact-list {
  display: grid;
  gap: 1.4rem;
  margin: 1.6rem 0 0;
}

.contact-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3.25rem) clamp(2rem, 5vw, 4.5rem);
}

.values--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values article {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
}

.values h3 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
}

.values p {
  font-size: 1.02rem;
  margin: 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1.1rem;
}

.steps li {
  counter-increment: step;
  padding-left: 2.8rem;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
}

/* ------------------------------------------------------------------ reveals */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  :root {
    --header-h: 130px;
  }

  .pilares {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }

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

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-nav__bar {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 400px);
    background: var(--bone);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.4rem;
    padding: 5rem 2.5rem;
    translate: 100% 0;
    transition: translate 0.35s ease;
    border-bottom: 0;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    z-index: 70;
  }

  .site-nav__bar.is-open {
    translate: 0 0;
  }

  .site-nav__bar a {
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .hero__art {
    width: 190%;
    left: -45%;
    right: auto;
  }

  .about,
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__figure {
    order: -1;
    max-width: 420px;
  }

  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .service-row:nth-child(even) .service-row__media {
    order: 0;
  }

  .service-row__media {
    max-width: 300px;
  }

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

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

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

  .values,
  .values--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand__name {
    font-size: 1.75rem;
  }

  .brand__mark {
    width: 30px;
  }

  .site-header__top {
    padding: 14px var(--gutter) 12px;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7.6vw, 2.2rem);
    line-height: 1.08;
  }

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

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

  .footer__mark {
    width: 140px;
    height: 140px;
  }

  .footer__mark img {
    width: 94px;
  }

  .price {
    flex-wrap: wrap;
  }
}

[hidden] {
  display: none !important;
}
