/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.75rem, 6vw, 3.75rem) clamp(2.25rem, 6vw, 4rem);
  background: var(--gradient-hero);
  color: var(--color-text-inverse);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
  pointer-events: none;
}

.hero__content,
.hero__visual,
.online__content,
.contact__content,
.about__media-column,
.online__media-column {
  position: relative;
  z-index: 1;
}

.hero__content {
  align-self: start;
}

.hero__title {
  max-width: 16ch;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 7vw, 5.15rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
}

.hero__copy {
  max-width: 42rem;
  margin-top: var(--space-4);
  color: rgba(247, 251, 255, 0.82);
  font-size: var(--text-base);
}

.hero__copy--lead {
  color: rgba(247, 251, 255, 0.95);
  font-size: var(--text-lg);
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* En móvil los botones ocupan el ancho completo */
@media (max-width: 47.9375rem) {
  .hero {
    padding-block: clamp(1.25rem, 5vw, 2rem) clamp(1.75rem, 7vw, 2.75rem);
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(9.25rem, 38vw);
    align-items: start;
    column-gap: var(--space-4);
    row-gap: var(--space-4);
  }

  .hero__content {
    display: contents;
  }

  .hero .section-kicker {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .hero__title {
    grid-column: 1;
    grid-row: 2;
    max-width: 7ch;
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    line-height: 0.98;
  }

  .hero__visual {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    gap: 0;
  }

  .hero__panel {
    display: none;
  }

  .hero__copy,
  .hero__actions,
  .hero__highlights {
    grid-column: 1 / -1;
  }

  .hero__copy {
    margin-top: var(--space-2);
    font-size: 1rem;
  }

  .hero__copy--lead {
    margin-top: var(--space-3);
    font-size: 1.05rem;
  }

  .hero__actions .button,
  .contact__actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.hero__panel {
  position: relative;
  overflow: hidden;
}

.hero__image {
  position: relative;
  height: clamp(22rem, 50vw, 38rem);
  max-height: min(78vh, 38rem);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 15%;
  transform: scale(1.02);
  border-radius: inherit;
    -webkit-mask-image: radial-gradient(120% 110% at 85% 50%, #000 45%, transparent 100%);
    mask-image: radial-gradient(120% 110% at 85% 50%, #000 45%, transparent 100%);
}

.hero__panel > *,
.online__panel > * {
  position: relative;
  z-index: 1;
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -14% -24% auto;
  width: 16rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 135, 173, 0.24), transparent 72%);
  pointer-events: none;
}

/* Hero facts: 2 columnas en móvil */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (max-width: 24rem) {
  .hero__facts {
    grid-template-columns: 1fr;
  }
}

.hero__fact-card {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__facts dt {
  color: rgba(247, 251, 255, 0.72);
  font-size: var(--text-xs);
  font-weight: 700;
}

.hero__facts dd {
  margin-top: var(--space-1);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
}

/* ─── ONLINE SECTION ────────────────────────────────────────── */
.online-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 241, 247, 0.96));
}

.online__panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(94, 131, 166, 0.26);
  background: linear-gradient(180deg, rgba(9, 19, 29, 0.96), rgba(17, 43, 66, 0.92));
  box-shadow: 0 22px 52px rgba(9, 19, 29, 0.16);
}

.online__panel::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 10rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 135, 173, 0.22), transparent 72%);
  pointer-events: none;
}

.online__panel .panel-label--light {
  color: rgba(218, 232, 246, 0.8);
}

.online__panel .contact__panel-title {
  color: rgba(247, 251, 255, 0.98);
}

.online__panel .contact-list {
  color: rgba(237, 245, 252, 0.92);
}

.online__panel .contact-list__label {
  color: rgba(198, 219, 238, 0.78);
}

.online__panel .contact-list li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.online__panel .button--light {
  box-shadow: 0 14px 30px rgba(5, 15, 24, 0.18);
}

.online__cta {
  margin-top: var(--space-5);
}

/* ─── ABOUT SECTION ─────────────────────────────────────────── */
.about__content {
  display: grid;
  gap: var(--space-4);
}

/* ─── PROCESS SECTION ───────────────────────────────────────── */
.process-step {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.92));
}

/* El marcador de proceso en móvil va arriba del card */
.process-step::before {
  content: "";
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(22, 59, 96, 0.12);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #09131d, #07101a);
  color: var(--color-text-inverse);
}

.site-footer__inner {
  padding-block: var(--space-10);
}

.site-footer__text {
  max-width: 35rem;
  color: rgba(247, 251, 255, 0.78);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(247, 251, 255, 0.68);
  font-size: var(--text-sm);
}

.site-footer__bottom-inner {
  padding-block: var(--space-4);
}

.contact__note {
  color: rgba(247, 251, 255, 0.78);
}

/* ─── Media queries de ajuste ───────────────────────────────── */

/* Móvil: imagen del hero más baja */
@media (max-width: 47.9375rem) {
  .hero__image {
    aspect-ratio: 4 / 5;
    height: auto;
    min-height: 15rem;
    max-height: none;
  }

  .hero__image img {
    object-fit: contain;
    object-position: 34% bottom;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Imagen de sección online y about: reducida en móvil */
  .media-frame--wide {
    aspect-ratio: 16 / 9;
  }

  /* contact-list en móvil: columna, no space-between */
  .contact-list li {
    flex-direction: column;
    gap: var(--space-1);
  }

  .contact-list a {
    text-align: left;
  }
}

/* Tablet intermedia */
@media (max-width: 63.9375rem) {
  .hero__image {
    height: clamp(19.5rem, 57vw, 28rem);
    max-height: 28rem;
  }

  .hero__image img {
    object-position: 50% 13%;
    -webkit-mask-image: radial-gradient(120% 110% at 85% 50%, #000 45%, transparent 100%);
    mask-image: radial-gradient(120% 110% at 85% 50%, #000 45%, transparent 100%);
  }
}

/* Desktop */
@media (min-width: 64rem) {
  .hero {
    padding-block: clamp(1.25rem, 2.2vw, 2.25rem) clamp(1.75rem, 2.8vw, 2.75rem);
  }

  .hero__content {
    align-self: center;
    padding-top: 0;
  }

  .hero .section-kicker {
    margin-bottom: var(--space-2);
  }

  .hero__image {
    height: min(78vh, 38rem);
    max-height: min(78vh, 38rem);
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .hero__copy {
    font-size: var(--text-lg);
  }

  .process-step::before {
    top: auto;
    left: var(--space-6);
    bottom: calc(100% + var(--space-3));
  }

  .process-list {
    position: relative;
    margin-top: var(--space-6);
  }

  .process-list::before {
    content: "";
    position: absolute;
    top: -1.45rem;
    left: var(--space-6);
    right: var(--space-6);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 59, 96, 0.3), transparent);
  }
}
