/* =========================================================
   EDSAONE · Quiénes somos (generado desde Figma 1:1183)
   Requiere eds-base.css (tokens y componentes).
   ========================================================= */

/* ---------- 1 · Hero ---------- */
#top #eds-qs-hero {
  background-color: #dee3e5;
  background-size: auto 132% !important;          /* la foto ocupa 1688×900 sobre un fondo de 1920×680 */
  background-position: 72% 45% !important;
}
#top #eds-qs-hero { min-height: 510px; }            /* 680 px de Figma menos la cabecera */
#top #eds-qs-hero .content { padding: 54px 0 58px; }
@media only screen and (min-width: 768px) {
  /* 680px de Figma; la cabecera transparente (170px) se superpone, así que el título queda en y≈230 */
  #top #eds-qs-hero { min-height: 680px; }
  #top #eds-qs-hero .content { padding: 224px 0 58px; }
}
#top #eds-qs-hero.eds-sec--ia::after { left: max(16px, calc((100% - 1210px) / 2)); bottom: 10px; }
#top .eds-qs-hero__content { max-width: 410px; }
#top .eds-qs-hero__title {
  margin: 0;
  color: var(--eds-azul-dark);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}
#top .eds-breadcrumb { margin: 0 0 14px; color: var(--eds-azul-dark); font-size: 16px; line-height: 20px; }
#top .eds-breadcrumb a { color: var(--eds-azul-light); text-decoration: underline; }
#top .eds-qs-hero__text p { margin: 0 0 20px; color: var(--eds-azul-dark); font-size: 16px; line-height: 20px; }
#top #eds-qs-hero .eds-btns .avia-button:nth-of-type(1) { background: var(--eds-verde) !important; border-color: var(--eds-verde) !important; color: var(--eds-azul-dark) !important; }
#top #eds-qs-hero .eds-btns .avia-button:nth-of-type(2) { background: transparent !important; border-color: var(--eds-verde) !important; color: var(--eds-azul-dark) !important; }
/* CTAs en la misma línea (los dos botones suman más de 410px: no deben saltar de línea) */
#top #eds-qs-hero .eds-btns { flex-wrap: nowrap; width: max-content; max-width: none; gap: 20px; }
#top #eds-qs-hero .eds-btns .avia-button { flex: 0 0 auto; white-space: nowrap; }
@media only screen and (max-width: 479px) {
  #top #eds-qs-hero .eds-btns { flex-wrap: wrap; width: auto; }
}

/* ---------- 2 · Evolución ---------- */
@media only screen and (min-width: 990px) {
  #top #eds-qs-evolucion { --eds-gap: 50px; }
  #top #eds-qs-evolucion .eds-qs-evolucion__media { flex: 0 1 810px; }
  #top #eds-qs-evolucion .eds-qs-evolucion__text  { flex: 0 1 390px; justify-content: center; }
}
#top .eds-qs-evolucion__img { aspect-ratio: 810 / 410; --eds-img-pos: 67% 39%; }
#top .eds-qs-evolucion__text .eds-lead { margin: 12px 0 30px !important; }
#top .eds-qs-evolucion__text .eds-lead p + p { margin-top: 20px; }

/* ---------- 3 · Proceso (reutiliza .eds-split del home) ---------- */
#top #eds-qs-proceso .eds-split__intro .eds-title { max-width: 390px; }
/* En Figma este icono está volteado en vertical */
#top #eds-qs-proceso .eds-svg--paso-procesos { transform: scaleY(-1); }
#top #eds-qs-proceso .eds-split__intro .eds-head { padding-top: 35px; }
#top #eds-qs-proceso .eds-lead { margin-top: 13px !important; }
@media only screen and (min-width: 990px) {
  #top #eds-qs-proceso .eds-steps { padding-top: 62px; }
  #top #eds-qs-proceso .eds-split__items { min-height: 271px; } /* altura de la línea vertical en Figma */
}

/* ---------- 4 · CEO ---------- */
#top #eds-qs-ceo .content { padding: 0; }
@media only screen and (min-width: 990px) {
  #top #eds-qs-ceo { --eds-gap: 30px; }
  #top #eds-qs-ceo .flex_column_table { justify-content: center; }
  #top #eds-qs-ceo .eds-qs-ceo__text  { flex: 0 1 380px; justify-content: center; padding: 90px 0 !important; }
  #top #eds-qs-ceo .eds-qs-ceo__media { flex: 0 1 630px; }
}
#top .eds-qs-ceo__img { height: 500px; --eds-img-radius: 0; }
#top #eds-qs-ceo .eds-head .eds-kicker { margin-bottom: 4px; }
#top .eds-qs-ceo__role { margin: 0; color: var(--eds-blanco); font-size: 24px; line-height: 1.15; }
#top #eds-qs-ceo .eds-lead { margin-top: 14px !important; }
#top #eds-qs-ceo .eds-lead p { color: var(--eds-blanco); }
#top #eds-qs-ceo .eds-lead p + p { margin-top: 20px; }

/* ---------- 5 · Grupo ---------- */
@media only screen and (min-width: 768px) {
  #top #eds-qs-grupo { --eds-gap: 30px; }
}
#top #eds-qs-grupo .eds-sec__head { margin-bottom: 30px !important; }
#top #eds-qs-grupo .eds-head--center { max-width: none; }   /* en Figma el título va en una sola línea */
#top .eds-company { flex-direction: row !important; gap: 20px; }
#top .eds-company > .eds-company__img { flex: 0 0 54%; height: 358px; }
#top .eds-company__img--troquel { --eds-img-pos: 40% 40%; }
#top .eds-company__img--rodillo { --eds-img-pos: 42% 8%; }
#top .eds-company > .av_textblock_section { flex: 1 1 0; min-width: 0; padding-top: 20px; }
#top .eds-company__logo { display: block; width: 190px; height: auto; margin: 0 0 12px; }
#top .eds-company__body h3 { margin: 0 0 15px; color: var(--eds-azul-dark); font-size: 16px; font-weight: 700; line-height: 20px; }
#top .eds-company__cta { margin: 24px 0 0 !important; }

/* ---------- 6 · Misión, visión y valores ---------- */
#top #eds-qs-mvv .eds-sec__head { margin-bottom: 28px !important; }
#top .eds-mvv {
  border-radius: var(--eds-radius);
  background: var(--eds-blanco);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, .25);
}
#top .eds-mvv > .av_textblock_section { flex: 1; display: flex; }
#top .eds-mvv__body { display: flex; flex-direction: column; width: 100%; padding: 35px 20px 32px; color: var(--eds-azul-dark); }
#top .eds-mvv .eds-mvv__title { margin: 0 0 9px; color: var(--eds-azul-dark); font-size: 32px; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
#top .eds-mvv__body p { margin: 0; font-size: 16px; line-height: 20px; }
#top .eds-mvv__body .eds-mvv__claim { margin-top: auto; padding-top: 30px; font-size: 20px; font-weight: 700; line-height: 1.15; }

/* ---------- 7 · Personas ---------- */
#top #eds-qs-personas .content { padding-bottom: 0; }
@media only screen and (min-width: 990px) {
  #top #eds-qs-personas { --eds-gap: 30px; }
  #top #eds-qs-personas .flex_column_table { justify-content: center; }
  #top #eds-qs-personas .eds-qs-personas__media { flex: 0 1 520px; }
  #top #eds-qs-personas .eds-qs-personas__text  { flex: 0 1 520px; padding: 60px 0 90px !important; }
}
#top .eds-qs-personas__img { height: 500px; --eds-img-pos: 0 0; --eds-img-radius: 0; }
#top #eds-qs-personas .eds-lead { margin: 13px 0 35px !important; }

/* ---------- Responsive ---------- */
@media only screen and (max-width: 989px) {
  #top #eds-qs-hero { background-size: cover !important; background-position: 70% 50% !important; }
  #top #eds-qs-hero .content { padding: 48px 0; }
  #top #eds-qs-evolucion .flex_column_table,
  #top #eds-qs-ceo .flex_column_table,
  #top #eds-qs-personas .flex_column_table { flex-direction: column; }
  #top .eds-qs-evolucion__text { margin-top: 32px !important; }
  #top #eds-qs-ceo .eds-qs-ceo__text { padding: 64px 0 32px !important; }
  #top .eds-qs-ceo__img { height: 420px; }
  #top #eds-qs-personas .eds-qs-personas__text { padding: 40px 0 64px !important; }
  #top .eds-company { flex-direction: column !important; }
  #top .eds-company > .eds-company__img { flex-basis: auto; height: 300px; }
}
@media only screen and (max-width: 767px) {
  /* En móvil la foto del hero se aclara para que el texto oscuro se lea */
  #top #eds-qs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(222, 227, 229, .82);
  }
  #top #eds-qs-hero > .container { position: relative; z-index: 2; }
  #top .eds-qs-ceo__img,
  #top .eds-qs-personas__img { height: 320px; }
  #top .eds-mvv .eds-mvv__title { font-size: 26px; }
  #top .eds-feats li { flex-basis: 100%; }
}
