/* ==========================================================================
   SECCIONES — estilos específicos por bloque, en el orden del wireframe
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding-block: var(--sp-7) var(--section-pad);
}

.hero__grid {
  display: grid;
  gap: var(--sp-8);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
}

.hero__title em {
  display: block;
  font-weight: 500;
  color: var(--accent);
}

.hero__lead {
  max-width: 34rem;
  font-size: var(--fs-md);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
  margin-top: var(--sp-2);
}

.hero__locations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  padding-top: var(--sp-5);
  margin-top: var(--sp-2);
  width: 100%;
  border-top: var(--border-hair);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-subtle);
}

.hero__locations li + li::before {
  content: "·";
  margin-right: var(--sp-4);
  color: var(--line);
}

.hero__media {
  position: relative;
  padding-bottom: var(--sp-6);
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--c-sand) 0%, var(--c-sand-deep) 100%);
  border: var(--border-solid);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.hero__media .trust-badge {
  position: absolute;
  left: var(--sp-4);
  bottom: 0;
}

@media (min-width: 30em) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }
}

@media (min-width: 60em) {
  .hero {
    padding-top: var(--sp-9);
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: var(--sp-9);
  }

  .hero__media .trust-badge {
    left: calc(var(--sp-7) * -1);
    bottom: var(--sp-7);
  }
}

/* --------------------------------------------------------------------------
   2. FRANJA DE AUTORIDAD
   -------------------------------------------------------------------------- */
.pillars {
  border-block: var(--border-solid);
  background: var(--bg-alt);
}

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

.pillars__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-5) var(--sp-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.3;
}

.pillars__item:nth-child(odd) {
  border-right: var(--border-hair);
}

.pillars__item:nth-child(-n+2) {
  border-bottom: var(--border-hair);
}

.pillars__num {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

@media (min-width: 48em) {
  .pillars__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .pillars__item {
    padding: var(--sp-6) var(--sp-5);
    font-size: var(--fs-base);
  }

  .pillars__item,
  .pillars__item:nth-child(odd),
  .pillars__item:nth-child(-n+2) {
    border: 0;
    border-right: var(--border-hair);
  }

  .pillars__item:last-child {
    border-right: 0;
  }
}

/* --------------------------------------------------------------------------
   3. SERVICIOS
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 48em) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
  }

  .service-card {
    padding: var(--sp-7) var(--sp-6);
  }

  .service-card--featured,
  .service-card--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64em) {
  .service-card--featured,
  .service-card--wide {
    flex-direction: row;
    gap: var(--sp-8);
  }

  .service-card--featured .service-card__index,
  .service-card--wide .service-card__index {
    flex: 0 0 8rem;
  }

  .service-card--featured {
    padding: var(--sp-8) var(--sp-7);
  }

  .service-card--featured .service-card__title {
    font-size: var(--fs-2xl);
  }

  .service-card__list--inline {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--sp-6);
  }
}

/* --------------------------------------------------------------------------
   4. ESTÁNDAR INTERNACIONAL
   -------------------------------------------------------------------------- */
.standard {
  background: var(--bg-alt);
  border-block: var(--border-hair);
}

.standard__grid {
  display: grid;
  gap: var(--sp-7);
}

/* Evita que el contenido intrínseco (video) ensanche la columna del grid */
.standard__grid > * {
  min-width: 0;
}

/* Video documental: monocromo, sombrío, fundido con el grano de la página */
.standard__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 650px;
  overflow: hidden;
  background: var(--c-charcoal);
  border: var(--border-solid);
  isolation: isolate;
}

.standard__frame video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  /* filter: grayscale(0.6) contrast(1.1); */ /* TEMPORAL: desactivado para comparar colores originales */
}

/* Velo oliva cálido: tiñe el monocromo y lo integra a la paleta */
.standard__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--c-olive);
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

/* Viñeta oscura para el tono sombrío */
.standard__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(31, 28, 25, 0.55) 100%);
}

.standard__media figcaption {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.standard__copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 36rem;
  color: var(--text-muted);
}

.standard__copy .section-head__title {
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.standard__copy p + p {
  margin-top: 0;
}

.standard__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: var(--sp-4) 0 0;
  border-top: var(--border-solid);
}

.standard__facts > div {
  padding: var(--sp-4) var(--sp-3) 0 0;
}

.standard__facts dt {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
}

.standard__facts dd {
  margin: var(--sp-1) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text);
}

@media (min-width: 60em) {
  .standard__grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: var(--sp-9);
  }
}

/* --------------------------------------------------------------------------
   5. PROCESO — timeline vertical (móvil) / horizontal (desktop)
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0 var(--sp-7) var(--sp-8);
}

/* Línea vertical */
.step::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::before {
  bottom: auto;
  height: 1.25rem;
}

/* Nodo */
.step::after {
  content: "";
  position: absolute;
  left: calc(1.25rem - 0.375rem);
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.step:last-child::after {
  background: var(--accent);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-2xl);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-sand-deep);
}

.step__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-lg);
}

.step__text {
  margin-top: var(--sp-2);
  color: var(--text-muted);
  max-width: 28rem;
}

.process__cta {
  margin-top: var(--sp-7);
}

@media (min-width: 64em) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-5);
  }

  .step {
    padding: var(--sp-6) 0 0;
  }

  .step::before,
  .step:last-child::before {
    left: 0;
    right: calc(var(--sp-5) * -1);
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .step:last-child::before {
    right: 0;
  }

  .step::after {
    left: 0;
    top: calc(-0.375rem + 0.5px);
  }

  .step__num {
    font-size: var(--fs-num);
  }

  .step__title {
    font-size: var(--fs-md);
  }

  .step__text {
    font-size: var(--fs-sm);
  }

  .chips .chip {
    padding-inline: var(--sp-3);
  }

  .process__cta {
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   6. CTA FINAL
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  padding-block: var(--section-pad);
  background:
    var(--c-terracotta);
  color: #FFF8F2;
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
}

.final-cta__title {
  max-width: 48rem;
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: var(--lh-tight);
}

.final-cta__title em {
  display: block;
  font-weight: 500;
  color: var(--c-terracotta-tint);
}

@media (min-width: 60em) {
  .final-cta__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   7. FOOTER INSTITUCIONAL
   -------------------------------------------------------------------------- */
.locations {
  display: grid;
  gap: var(--sp-6);
}

.location {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(244, 239, 230, 0.25);
}

.location__city {
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-terracotta-tint);
}

.location__address {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-sand);
}

.location__link {
  align-self: flex-start;
  margin-top: auto;
  padding-block: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-bone);
  text-decoration: underline;
}

.location__link:hover {
  color: var(--c-terracotta-tint);
}

.footer-legal {
  display: grid;
  gap: var(--sp-1);
  margin-top: var(--sp-9);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(244, 239, 230, 0.25);
  font-size: var(--fs-xs);
  color: var(--c-stone);
}

.footer-legal p + p {
  margin-top: 0;
}

.footer-legal__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-base);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-bone);
}

.footer-legal strong {
  color: var(--c-sand);
}

.footer-legal a:hover {
  color: var(--c-bone);
}

@media (min-width: 40em) {
  .locations {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .locations {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
  }
}

/* --------------------------------------------------------------------------
   PÁGINA LEGAL (privacidad.html) — columna de lectura estrecha
   -------------------------------------------------------------------------- */
.legal {
  padding-block: var(--sp-8) var(--section-pad);
}

.legal__doc {
  max-width: 800px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: var(--fs-md);
}

.legal__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  color: var(--text);
}

.legal__updated {
  margin: var(--sp-4) 0 var(--sp-7);
  padding-bottom: var(--sp-5);
  border-bottom: var(--border-solid);
  font-size: var(--fs-sm);
  color: var(--text-subtle);
}

.legal__doc h2 {
  margin: var(--sp-7) 0 var(--sp-3);
  font-size: var(--fs-lg);
  color: var(--text);
}

.legal__doc ul {
  margin-top: var(--sp-4);
  padding-left: var(--sp-5);
  list-style: disc;
}

.legal__doc li + li {
  margin-top: var(--sp-2);
}

.legal__doc li::marker {
  color: var(--accent);
}

.legal__doc p a {
  color: var(--accent);
}

.legal__back {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: var(--border-hair);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.legal__back a {
  color: var(--text);
}
