/* BRAND A BRAND — componentes */

/* --- Marca --- */
.brand { display: inline-flex; align-items: center; }

.wordmark {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark--stack {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: 0.22em;
  white-space: normal;
}

/* --- Selector de idioma --- */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang__btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding: 4px 2px;
}

.lang__btn.is-active { color: var(--ink); }

.lang__sep {
  font-size: 13px;
  color: var(--ink-faint);
  opacity: 0.6;
}

/* --- Tipos de bloque --- */
.display {
  font-size: clamp(36px, 5.6vw, 82px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
  /* Los titulares con salto forzado lo ignoran; los que fluyen reparten mejor */
  text-wrap: balance;
}

.duo__left .lead { margin-top: 26px; }

.display--sm { font-size: clamp(30px, 4vw, 58px); }
.display--xl { font-size: clamp(40px, 7.6vw, 116px); }

.lead {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.48;
  color: var(--ink);
  max-width: 46ch;
}

.note {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 20px;
  border-left: 2px solid var(--steel-mid);
  max-width: 46ch;
}

.link {
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* --- Botón pastilla --- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.pill--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pill--lg {
  padding: 18px 34px;
  font-size: 17px;
}

.pill__arrow { font-size: 0.95em; line-height: 1; }

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.stat__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.stat__value {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 8px;
}

/* --- Servicios --- */
.services { border-top: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.5fr);
  align-items: baseline;
  gap: 28px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--line);
}

.service__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--steel);
}

.service__title {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.service__text {
  font-size: 16px;
  color: var(--ink-soft);
}

/* --- Método --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  background: var(--paper-alt);
  padding: 32px 26px 36px;
}

.step__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--steel);
}

.step__title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}

.step__text {
  font-size: 15px;
  color: var(--ink-soft);
}

/* --- Equipo --- */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 64px);
}

.member__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.member__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.member__name {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-top: 26px;
}

.member__role {
  font-size: 14px;
  font-weight: 700;
  color: var(--steel);
  margin-top: 8px;
}

.member__text {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* --- Páginas legales --- */
.legal {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 8vw, 120px);
}

.legal__head { margin-bottom: clamp(36px, 4vw, 56px); }

.legal__date {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-faint);
}

.legal__index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 500;
}

.legal__section {
  padding-top: clamp(44px, 5vw, 72px);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.legal__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.03em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 30px 0 10px;
}

.legal p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* Especificidad a la par de `.legal p`, que si no lo pisa */
.legal p.legal__lead {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.legal__list,
.legal__data {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 20px;
  font-size: 16px;
  color: var(--ink-soft);
}

.legal__list li { padding-left: 20px; position: relative; }

.legal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel-mid);
}

.legal__data li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.legal__data span {
  min-width: 130px;
  font-weight: 700;
  color: var(--ink);
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--veil-06);
  color: var(--ink);
}

/* --- Formularios --- */
.form { width: 100%; }

.form--stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  text-align: left;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form__group { display: flex; }

.field {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 16px;
}

.field::placeholder { color: var(--ink-faint); }

.field--area {
  min-height: 130px;
  border-radius: 22px;
}

.field.is-error { border-color: var(--ink); }

.form--stack .pill { align-self: flex-start; }

.form__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* --- Toast --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(460px, calc(100vw - 36px));
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 24px);
  opacity: 0;
  visibility: hidden;
}

.toast__mark {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--steel-mid);
}

.toast__text { font-size: 15px; }

/* --- Aviso de cookies --- */
.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: min(560px, calc(100vw - 48px));
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(242, 241, 238, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transform: translateY(16px);
  opacity: 0;
}

.cookie[hidden] { display: none; }

.cookie__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cookie__btn { flex: none; }

/* Mientras el aviso está abajo, el mensaje de confirmación sube para no taparse */
.has-cookie .toast { bottom: 128px; }

/* --- Pendiente de completar en la página legal --- */
.legal__pending {
  font-style: normal;
  padding: 1px 8px;
  border-radius: 3px;
  background: var(--veil-06);
  color: var(--ink-faint);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }

  .service {
    grid-template-columns: 48px 1fr;
    gap: 10px 20px;
  }

  .service__text { grid-column: 2; }

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

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

@media (max-width: 500px) {
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pill--lg { width: 100%; }

  .cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .has-cookie .toast { bottom: 190px; }
}
