/* =========================================================
   EDSAONE · Home · secciones 3–9 (generado desde Figma 1:1636)
   Requiere eds-base.css (tokens y componentes).
   ========================================================= */

/* ---------- 1 · Hero (ajustes sobre el CSS del child, para igualarlo a Figma) ---------- */
#top #eds-hero {
  background-color: var(--eds-azul-dark);
  background-size: cover !important;
  background-position: 50% 74% !important;   /* en Figma se ve la parte baja de la foto */
}
/* Velo de Figma: solo degradado superior (detrás de la cabecera transparente) */
#top #eds-hero::before {
  background: linear-gradient(180deg, rgba(31, 33, 67, .9) 0, rgba(31, 33, 67, .9) 59px, rgba(31, 33, 67, 0) 325px);
}
#top #eds-hero .content { padding: calc(var(--eds-header-h) + 52px) 0 150px; }
#top #eds-hero .flex_column.eds-hero__content { max-width: 500px; }
#top #eds-hero .eds-hero__title h1 {
  max-width: none;                            /* antes 13ch: partía "metal-mecánicas" por el guion */
  margin: 0 0 14px;
  font-family: var(--eds-font);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}
#top #eds-hero .eds-hero__lead p { max-width: 500px; margin: 0 0 14px; font-size: 16px; line-height: 20px; color: var(--eds-blanco); }
#top #eds-hero .eds-hero__btns { gap: 14px; }
#top #eds-hero .eds-hero__btns .avia-button {
  gap: 10px;
  padding: 7px 18px;
  border: 2px solid var(--eds-verde) !important;
  border-radius: 5px;
  font-family: var(--eds-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}
#top #eds-hero .eds-hero__btns .avia-button:first-of-type { background: var(--eds-verde) !important; color: var(--eds-azul-dark) !important; }
#top #eds-hero .eds-hero__btns .avia-button:nth-of-type(2) { color: var(--eds-verde) !important; }
#top #eds-hero .eds-hero__btns .avia-button::after { width: 22px; height: 14px; -webkit-mask-image: var(--eds-arrow); mask-image: var(--eds-arrow); }
@media only screen and (max-width: 767px) {
  #top #eds-hero .content { padding: calc(var(--eds-header-h) + 40px) 0 56px; }
  #top #eds-hero::before { background: rgba(31, 33, 67, .6); }
  #top #eds-hero .eds-hero__title h1 { font-size: 28px; }
}

/* ---------- 3 · Sectores: tarjetas ---------- */
#top #eds-sectores .eds-card {
  overflow: hidden;
  background: var(--eds-blanco);
  border-radius: var(--eds-radius);
  box-shadow: 2px 4px 4px rgba(0, 0, 0, .25);
}
#top #eds-sectores .eds-card__img { position: relative; display: block; width: 100%; }
#top #eds-sectores .eds-card__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 220;
  object-fit: cover;
  object-position: var(--eds-img-pos, 50% 50%);
}
#top #eds-sectores .eds-card--movilidad { --eds-img-pos: 23% 41%; }
#top #eds-sectores .eds-card--hvac      { --eds-img-pos: 52% 17%; }
#top #eds-sectores .eds-card--industria { --eds-img-pos: 50% 23%; }
/* Etiqueta de imagen generada con IA (obligatoria en el diseño) */
#top #eds-sectores .eds-card--ia .eds-card__img::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  box-sizing: border-box;
  width: 94px;
  height: 18px;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
  background: var(--eds-ai-label) center / 94px 18px no-repeat;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  pointer-events: none;
}
#top #eds-sectores .eds-card > .av_textblock_section { flex: 1; display: flex; }
#top #eds-sectores .eds-card__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 35px 20px;
}
#top #eds-sectores .eds-card__title {
  margin: 0 0 8px;
  color: var(--eds-azul-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
#top #eds-sectores .eds-card__body p { margin: 0; font-size: 16px; line-height: 20px; }
#top #eds-sectores .eds-card__more { margin-top: auto !important; padding-top: 44px; }

/* ---------- 4 y 6 · Bloques partidos (intro | separador | pasos) ---------- */
@media only screen and (min-width: 990px) {
  #top .eds-split { --eds-gap: 25px; }
  #top .eds-split .eds-split__intro { flex: 0 1 390px; }
  #top .eds-split .eds-split__items {
    flex: 1 1 0;
    padding-left: 25px !important;
    border-left: 1px solid var(--eds-azul-light);
  }
  #top .eds-split .eds-steps { padding-top: 60px; }
}
/* En Figma la altura de estos bloques la marca la línea vertical azul (345 y 257 px), no el contenido */
@media only screen and (min-width: 990px) {
  #top #eds-capacidad .eds-split__items { min-height: 345px; }
  #top #eds-porque .eds-split__items { min-height: 257px; }
}
#top .eds-capacidad .eds-lead { margin: 22px 0 !important; }
#top .eds-capacidad .eds-split__intro .eds-head .eds-title { max-width: 390px; }

/* ---------- 5 · Tecnologías ---------- */
#top #eds-tecnologias { background-size: cover; }
#top #eds-tecnologias .eds-tec__intro .eds-head { max-width: 280px; margin-bottom: 28px; }
@media only screen and (min-width: 990px) {
  #top #eds-tecnologias .flex_column_table { justify-content: space-between; }
  #top #eds-tecnologias .eds-tec__intro { flex: 0 1 280px; }
  #top #eds-tecnologias .eds-tec__body  { flex: 0 1 720px; }
}
#top #eds-tecnologias p:not(.eds-kicker) { color: var(--eds-blanco); font-size: 16px; line-height: 20px; }
#top #eds-tecnologias .eds-head .eds-kicker { color: var(--eds-verde); }
#top .eds-tec__intro-text { margin: 0 0 40px; }
#top .eds-tec__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0 0 50px;
  padding: 0;
  list-style: none;
}
#top .eds-tec__list li { margin: 0; padding: 0; list-style: none; }
#top .eds-tec__list h3 { margin: 0 0 13px; color: var(--eds-verde); font-size: 20px; font-weight: 700; line-height: 1.15; }
#top .eds-tec__list p { margin: 0; }
#top .eds-tec__partners { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px 96px; flex-wrap: wrap; }
#top .eds-tec__meshind { max-width: 387px; color: var(--eds-blanco); }
#top .eds-tec__meshind .eds-svg { width: 238px; height: auto; margin-bottom: 21px; }
#top .eds-tec__meshind p { margin: 0; }
#top .eds-tec__azterlan { color: var(--eds-blanco); }
#top .eds-tec__azterlan .eds-svg { width: 237px; height: auto; }

/* ---------- 6 · Por qué ---------- */
#top #eds-porque .content { padding: var(--eds-sec-pad) 0 88px; } /* 90px arriba como en Figma: la regla común `.eds-porque .content { padding: 0 }` lo anulaba */
#top #eds-porque .eds-split__intro .eds-title { max-width: 390px; }

/* ---------- 7 · Prototipo ---------- */
#top #eds-prototipo .content { padding-top: 0; }
@media only screen and (min-width: 990px) {
  #top #eds-prototipo .flex_column_table:first-child { --eds-gap: 60px; align-items: flex-end; }
  #top #eds-prototipo .eds-proto__intro { flex: 1 1 0; padding-bottom: 30px !important; }
  #top #eds-prototipo .eds-media { flex: 0 1 750px; }
  #top #eds-prototipo .flex_column_table + .flex_column_table { --eds-gap: 20px; }
  #top #eds-prototipo .eds-phase { flex: 1 1 0; }
}
#top .eds-proto__intro .eds-lead { margin: 15px 0 !important; }
#top .eds-proto__intro .eds-head .eds-title { max-width: 500px; }



/* ---------- 8 · Casos ---------- */
#top #eds-casos .content { padding-bottom: 87px; }
@media only screen and (min-width: 990px) {
  #top #eds-casos { --eds-gap: 30px; }
  #top #eds-casos .eds-casos__intro { flex: 0 1 390px; }
  #top #eds-casos .eds-case { flex: 0 1 830px; flex-direction: row !important; }
}
#top .eds-casos__intro .eds-lead { margin-top: 13px !important; }
#top .eds-case { display: flex; }
#top .eds-case > .eds-case__img {
  flex: 1 1 535px;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--eds-radius) 0 0 var(--eds-radius);
  background: var(--eds-blanco);
}
#top .eds-case__img .avia-image-container-inner,
#top .eds-case__img .avia-image-overlay-wrap { height: 100%; }
#top .eds-case__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
#top .eds-case > .av_textblock_section { flex: 0 0 295px; display: flex; }
#top .eds-case__stats {
  width: 100%;
  padding: 60px 30px;
  border-radius: 0 var(--eds-radius) var(--eds-radius) 0;
  background: var(--eds-azul-dark);
}
#top .eds-stats { display: flex; flex-direction: column; gap: 60px; margin: 0; padding: 0; list-style: none; }
#top .eds-stats li { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; }
#top .eds-stats strong { color: var(--eds-verde); font-size: 40px; font-weight: 700; line-height: 1.15; }
#top .eds-stats span { color: var(--eds-blanco); font-size: 16px; line-height: 1.15; text-transform: uppercase; }

/* ---------- 9 · Banda CTA: en eds-base.css (.eds-cta-band) ---------- */

/* ---------- Responsive ---------- */
@media only screen and (max-width: 989px) {
  #top .eds-split .flex_column_table,
  #top #eds-tecnologias .flex_column_table,
  #top #eds-prototipo .flex_column_table:first-child,
  #top #eds-casos .flex_column_table { flex-direction: column; }
  #top .eds-split .eds-split__items { margin-top: 8px !important; }
  #top .eds-tec__list { grid-template-columns: 1fr; gap: 24px; }
  #top .eds-case { flex-direction: row; }
}
@media only screen and (max-width: 767px) {
  #top .eds-case { flex-direction: column; }
  #top .eds-case > .eds-case__img { border-radius: var(--eds-radius) var(--eds-radius) 0 0; }
  #top .eds-case > .av_textblock_section { flex-basis: auto; }
  #top .eds-case__stats { padding: 36px 24px; border-radius: 0 0 var(--eds-radius) var(--eds-radius); }
  #top .eds-stats { gap: 28px; }
  #top .eds-media > .av_textblock_section { position: static; transform: none; width: auto; margin-top: 10px !important; }
}
