/*
 * Staria · Nuestro Propósito
 * Bloque independiente (HTML + CSS, sin JS ni dependencias).
 * Todas las clases usan el prefijo .staria-proposito para no chocar con
 * los estilos del sitio anfitrión. Las rutas url() son relativas a este
 * archivo: conserva las carpetas assets/ y fonts/ junto a él.
 *
 * Breakpoints (mobile-first): base < 640 · sm 640 · md 768 · lg 1024 · xl 1280
 */

/* Adobe Fonts (halogen, archivo-expanded). Se carga aquí y no en index.html para que
 * Angular no intente inlinearlo durante el build (falla en el runner de CI). */
@import url('https://use.typekit.net/dwu0exl.css');

@font-face {
  font-family: 'Staria Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

.staria-proposito {
  /* Tokens (Figma: Staria Web) */
  --sp-bright-500: #e4e9f2;
  --sp-electric-500: #4218d9;
  --sp-powder-500: #2a0f8c;
  --sp-deep-500: #210759;
  --sp-white: #ffffff;
  --sp-tangelo-500: #f24b04;
  --sp-tangelo-600: #db3000;
  /* halogen / archivo-expanded vienen del kit de Adobe Fonts de Staria (ver <link> en el
     HTML); si el dominio no está autorizado en el kit, se usa Archivo local ensanchada. */
  --sp-font-title: 'halogen', 'Staria Archivo', 'Archivo', system-ui, sans-serif;
  --sp-font-body: 'archivo-expanded', 'Staria Archivo', 'Archivo', system-ui, sans-serif;
  --sp-container-max: 1350px; /* 1320px de contenido + gutters */
  --sp-gutter: 15px;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--sp-bright-500);
  text-align: center;
}

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

/* Decoración: degradado difuminado + dos hexágonos de línea */
.staria-proposito__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.staria-proposito__gradient,
.staria-proposito__hex {
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.staria-proposito__gradient {
  top: -514px;
  left: calc(50% - 1114.9px);
  width: 3056.24px;
  height: 2156px;
  background-image: url('assets/gradiente.svg');
}

.staria-proposito__hex {
  width: 666.541px;
  height: 894.07px;
  opacity: 0.5;
}

.staria-proposito__hex--top {
  top: -182px;
  left: calc(50% + 373px);
  background-image: url('assets/hexagono-superior.svg');
  transform: rotate(180deg);
}

.staria-proposito__hex--bottom {
  top: 112.62px;
  left: calc(50% + 374.46px);
  background-image: url('assets/hexagono-inferior.svg');
}

/* Contenido */
.staria-proposito__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--sp-container-max);
  margin: 0 auto;
  padding: 56px var(--sp-gutter);
}

.staria-proposito__logo {
  display: block;
  width: 160px;
  height: 28.8px;
  margin: 0 0 28px;
  background: url('assets/logo-staria.svg') no-repeat center / contain;
}

.staria-proposito__pretitle {
  margin: 0 0 16px;
  font-family: var(--sp-font-title);
  font-size: 14px;
  font-weight: 700;
  font-stretch: 125%;
  line-height: 18px;
  color: var(--sp-electric-500);
}

.staria-proposito__title {
  max-width: 1320px;
  margin: 0 0 20px;
  font-family: var(--sp-font-title);
  font-size: 28px;
  font-weight: 700;
  font-stretch: 125%;
  line-height: 34px;
  color: var(--sp-powder-500);
  text-wrap: balance;
}

.staria-proposito__text {
  max-width: 805px;
  margin: 0 0 28px;
  font-family: var(--sp-font-body);
  font-size: 16px;
  font-weight: 400;
  font-stretch: 125%;
  line-height: 24px;
  color: var(--sp-deep-500);
}

.staria-proposito__button {
  /* Mismo estilo que .btn.btn--primary-2 de staria.mx */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  padding: 20px;
  border: 1px solid var(--sp-bright-500);
  border-radius: 12px;
  background-color: var(--sp-bright-500);
  font-family: var(--sp-font-title);
  font-size: 16px;
  font-weight: 700;
  font-stretch: 125%;
  line-height: 22px;
  color: var(--sp-electric-500);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

.staria-proposito__button:hover {
  border-color: var(--sp-tangelo-500);
  background-color: var(--sp-tangelo-500);
  color: var(--sp-white);
}

.staria-proposito__button:active {
  border-color: var(--sp-tangelo-600);
  background-color: var(--sp-tangelo-600);
  color: var(--sp-white);
}

.staria-proposito__button:focus-visible {
  outline: 2px solid var(--sp-electric-500);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .staria-proposito__button {
    transition: none;
  }
}

/* md */
@media (min-width: 768px) {
  .staria-proposito__title {
    font-size: 36px;
    line-height: 44px;
  }
}

/* lg */
@media (min-width: 1024px) {
  .staria-proposito__container {
    padding-block: 81px;
  }

  .staria-proposito__logo {
    width: 200px;
    height: 36px;
    margin-bottom: 35px;
  }

  .staria-proposito__pretitle {
    margin-bottom: 24px;
  }

  .staria-proposito__title {
    margin-bottom: 28px;
    font-size: 48px;
    line-height: 56px;
  }

  .staria-proposito__text {
    margin-bottom: 32px;
  }

  .staria-proposito__button {
    width: auto;
    height: 62px;
    padding: 16px 20px;
    font-size: 18px;
  }
}

/* xl: corte de línea como en el diseño ("…con soluciones / que generan confianza") */
@media (min-width: 1280px) {
  .staria-proposito__title {
    /* En el diseño la primera línea (~1384px) rebasa el contenedor de 1320px. */
    width: min(1400px, 100vw - 50px);
    max-width: none;
    text-wrap: pretty;
  }
}
