/* ==========================================================
   HOME - HERO
   ========================================================== */

.home-hero {
  position: relative;
  min-height: 760px;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #002e5e;
  font-family: var(--maetel-font-main);
}

.home-hero__backgrounds,
.home-hero__background,
.home-hero__overlay {
  position: absolute;
  inset: 0;
}

.home-hero__background {
  opacity: 0;
  transform: scale(1.04);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition:
    opacity 1500ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 6500ms ease;
}

.home-hero__background.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-hero__overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 18, 40, 0.84) 0%,
      rgba(0, 28, 60, 0.76) 32%,
      rgba(0, 46, 94, 0.48) 60%,
      rgba(0, 20, 42, 0.14) 78%,
      rgba(0, 0, 0, 0.04) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 20, 42, 0.3) 100%);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: inherit;
  grid-template-rows: 1fr auto;
  padding-top: clamp(130px, 15vh, 180px);
  padding-bottom: 42px;
}

.home-hero__content {
  align-self: center;
  max-width: 980px;
  transform: translateY(-24px);
}

.home-hero__title {
  margin: 0 0 20px;
  color: #fff;
  font-size: var(--maetel-font-size-home-label, 15px);
  font-weight: 400;
  line-height: 1.35;
  text-transform: capitalize;
}

.home-hero__text {
  max-width: 980px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--maetel-font-size-hero-statement, clamp(34px, 4.2vw, 62px));
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.home-hero__text strong {
  font-weight: 600;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

/* CTA visual heredado de main.css: .maetel-btn o .maetel-pill-button */
.home-hero__cta {
  flex-shrink: 0;
}

.home-hero__sectors {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.home-hero__sector {
  position: relative;
  display: grid;
  grid-template-rows: 52px 3px;
  align-content: end;
  min-height: 90px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease;
}

.home-hero__sector.is-active,
.home-hero__sector:hover,
.home-hero__sector:focus-visible {
  color: #fff;
}

.home-hero__sector-title {
  display: flex;
  align-items: flex-end;
  max-width: none;
  margin: 0 0 14px;
  font-size: var(--maetel-font-size-home-label, 15px);
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

@media (min-width: 901px) {
  .home-hero__sector-title {
    white-space: nowrap;
  }
}

.home-hero__title,
.home-hero__text {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.home-hero__sector-progress {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.home-hero__sector-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #0097a9;
  transform: translateX(-100%);
  will-change: transform;
}

/* ==========================================================
   HOME - HERO / MOBILE
   ========================================================== */

@media (max-width: 560px) {
  .home-hero__sectors {
    display: block;
    width: min(280px, 72vw);
    margin: 0 auto;
  }

  .home-hero__sector {
    display: none;
    width: 100%;
    min-height: auto;
    grid-template-rows: auto 3px;
    padding: 0;
  }

  .home-hero__sector.is-active {
    display: grid;
  }

  .home-hero__sector-title {
    display: block;
    max-width: none;
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  .home-hero__sector-progress {
    display: block;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.28);
  }

  .home-hero__sector-progress span {
    height: 100%;
    background: var(--maetel-turquoise);
  }
}

/* ==========================================================
   HOME - EMPRESA
   ========================================================== */

.home-company {
  padding: clamp(76px, 9vw, 132px) 0;
  background: #eef3f5;
  color: var(--maetel-blue);
}

.home-company__container {
  position: relative;
  text-align: center;
}

.home-company__eyebrow {
  position: relative;
  display: table;
  margin: 0 auto 20px;
  padding: 0 0 10px;
  background: transparent;
  color: var(--maetel-turquoise);
  font-size: var(--maetel-font-size-section-marker, 14px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.home-company__eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--maetel-blue);
}

.home-company__title {
  max-width: 1080px;
  margin: 44px auto 24px;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-section-title, clamp(30px, 3.2vw, 46px));
  font-weight: 400;
  line-height: 1.14;
  text-align: center;
}

.home-company__text {
  max-width: 780px;
  margin: 0 auto;
  color: #506070;
  font-size: var(--maetel-font-size-body, 17px);
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
}

.home-company__counter {
  max-width: 1180px;
  margin: clamp(50px, 6vw, 78px) auto 0;
}

.home-company__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.home-company__stat {
  position: relative;
  min-width: 0;
  min-height: 120px;
  text-align: center;
}

.home-company__stat::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 0 auto 22px;
  background: var(--maetel-turquoise);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 700ms ease;
}

.home-company__counter.is-active .home-company__stat::before {
  transform: scaleX(1);
}

.home-company__stat-number {
  margin: 0 0 12px;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-counter-value, clamp(42px, 5vw, 58px));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-company__stat-label {
  max-width: 220px;
  margin: 0 auto;
  color: #506070;
  font-size: var(--maetel-font-size-section-marker, 14px);
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-company__stat-pending {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(0, 151, 169, 0.16);
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-content-title-mobile, 22px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

/* CTA visual heredado de main.css: .maetel-btn */
.home-company__cta {
  margin-top: 44px;
}

/* ==========================================================
   HOME - EMPRESA / TABLET
   ========================================================== */

@media (max-width: 900px) {
  .home-company {
    padding: 80px 0;
  }

  .home-company__eyebrow {
    margin: 0 auto 20px;
    font-size: var(--maetel-font-size-section-marker-tablet, 13px);
  }

  .home-company__title {
    max-width: 760px;
    margin: 36px auto 22px;
    font-size: var(
      --maetel-font-size-section-title-tablet,
      clamp(25px, 4.4vw, 34px)
    );
    line-height: 1.16;
  }

  .home-company__text {
    max-width: 680px;
    font-size: var(--maetel-font-size-body-mobile, 16px);
    line-height: 1.62;
  }

  .home-company__counter {
    max-width: 760px;
    margin-top: 48px;
  }

  .home-company__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px;
  }

  .home-company__stat-number {
    font-size: var(--maetel-font-size-counter-value-tablet, 48px);
  }

  .home-company__cta {
    margin-top: 36px;
  }
}

/* ==========================================================
   HOME - EMPRESA / MOBILE
   ========================================================== */

@media (max-width: 560px) {
  .home-company {
    padding: 64px 0;
  }

  .home-company__eyebrow {
    margin-bottom: 18px;
    font-size: var(--maetel-font-size-button, 12px);
  }

  .home-company__title {
    margin: 30px auto 20px;
    font-size: var(
      --maetel-font-size-section-title-mobile,
      clamp(23px, 6.8vw, 30px)
    );
    line-height: 1.17;
  }

  .home-company__text {
    font-size: var(--maetel-font-size-body-mobile, 16px);
    line-height: 1.62;
  }

  .home-company__counter {
    margin-top: 40px;
  }

  .home-company__stats {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-company__stat {
    width: 100%;
    max-width: 320px;
    min-height: auto;
    margin: 0 auto;
  }

  .home-company__stat::before {
    width: 34px;
    height: 3px;
    margin-bottom: 18px;
  }

  .home-company__stat-number {
    margin-bottom: 10px;
    font-size: var(--maetel-font-size-counter-value-mobile, 40px);
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
  }

  .home-company__stat-label {
    max-width: 220px;
    margin: 0 auto;
    font-size: var(--maetel-font-size-button, 12px);
    line-height: 1.3;
  }

  .home-company__stat-pending {
    font-size: var(--maetel-font-size-body-mobile, 16px);
  }

  .home-company__cta {
    margin-top: 34px;
  }
}

/* ==========================================================
   HOME - SECTORES
   ========================================================== */

.home-sectors {
  padding: clamp(70px, 9vw, 130px) 0;
  background: #fff;
  color: var(--maetel-blue);
}

.home-sectors__eyebrow,
.home-renewable-projects__eyebrow,
.home-world__eyebrow {
  position: relative;
  display: table;
  margin: 0 auto 20px;
  padding: 0 0 10px;
  background: transparent;
  color: var(--maetel-turquoise);
  font-size: var(--maetel-font-size-section-marker, 14px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.home-sectors__eyebrow::after,
.home-renewable-projects__eyebrow::after,
.home-world__eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--maetel-blue);
}

@media (max-width: 900px) {
  .home-sectors__eyebrow,
  .home-renewable-projects__eyebrow,
  .home-world__eyebrow {
    margin: 0 auto 20px;
    font-size: var(--maetel-font-size-section-marker-tablet, 13px);
  }
}

@media (max-width: 560px) {
  .home-sectors__eyebrow,
  .home-renewable-projects__eyebrow,
  .home-world__eyebrow {
    margin-bottom: 18px;
    font-size: var(--maetel-font-size-button, 12px);
  }
}

.home-sectors__top-line {
  display: none;
}

.home-sectors__title {
  max-width: 1080px;
  margin: 44px auto clamp(64px, 9vw, 120px);
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-section-title, clamp(30px, 3.2vw, 46px));
  font-weight: 400;
  line-height: 1.14;
  text-align: center;
}

/* ==========================================================
   HOME - SECTORES / LAYOUT DESKTOP
   ========================================================== */

.home-sectors__stage {
  position: relative;
  min-height: auto;
}

.home-sectors__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  column-gap: clamp(72px, 10vw, 144px);
  align-items: start;
}

.home-sectors__grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0, 151, 169, 0.75);
  transform: translateX(-50%);
}

.home-sectors__left {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.home-sectors__right {
  padding-top: 0;
}

.home-sectors__middle-line {
  display: none;
}

/* ==========================================================
   HOME - SECTORES / ACORDEON IZQUIERDA DESKTOP
   ========================================================== */

.home-sectors__list {
  display: grid;
  gap: clamp(22px, 3vh, 32px);
  padding-bottom: 0;
}

.home-sectors__item-wrap {
  display: block;
}

.home-sectors__item {
  position: relative;
  display: block;
  width: 100%;
  max-width: 470px;
  padding: 0 42px 14px 0;
  border: 0;
  background: transparent;
  color: rgba(0, 46, 94, 0.34);
  text-align: left;
  cursor: pointer;
  transition: color 260ms ease;
}

.home-sectors__item::after {
  content: "+";
  position: absolute;
  top: 6px;
  right: 0;
  color: rgba(0, 46, 94, 0.34);
  font-size: var(--maetel-font-size-index-marker, 24px);
  font-weight: 300;
  line-height: 1;
  transition:
    color 260ms ease,
    transform 260ms ease;
}

.home-sectors__item.is-active::after {
  content: "\2013";
  color: var(--maetel-turquoise);
}

.home-sectors__item.is-active {
  color: var(--maetel-blue);
}

.home-sectors__item:hover {
  color: rgba(0, 46, 94, 0.62);
}

.home-sectors__item.is-active:hover {
  color: var(--maetel-blue);
}

.home-sectors__item:focus-visible {
  outline: 2px solid var(--maetel-turquoise);
  outline-offset: 6px;
}

.home-sectors__number {
  display: block;
  margin-bottom: 8px;
  color: rgba(0, 46, 94, 0.34);
  font-size: var(--maetel-font-size-home-label, 15px);
  font-weight: 600;
}

.home-sectors__item.is-active .home-sectors__number {
  color: var(--maetel-turquoise);
}

.home-sectors__item-title {
  display: block;
  margin: 0 0 14px;
  color: currentColor;
  font-size: var(--maetel-font-size-area-title, clamp(24px, 2.35vw, 33px));
  font-weight: 300;
  line-height: 1.15;
}

.home-sectors__item-line {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 1px;
  overflow: hidden;
  background: rgba(0, 46, 94, 0.16);
}

.home-sectors__item-line::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--maetel-turquoise);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms ease;
}

.home-sectors__item.is-active .home-sectors__item-line::before {
  transform: scaleX(1);
}

.home-sectors__accordion-panel {
  max-width: 470px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 560ms cubic-bezier(0.25, 1, 0.5, 1),
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.25, 1, 0.5, 1);
}

.home-sectors__accordion-panel.is-active {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
}

.home-sectors__accordion-inner {
  padding: 4px 42px 4px 0;
}

.home-sectors__accordion-image {
  display: none;
}

.home-sectors__accordion-content p {
  margin: 0;
  color: #506070;
  font-size: var(--maetel-font-size-body, 17px);
  line-height: 1.65;
}

/* El CTA del acordeón solo se muestra en tablet/móvil */
.home-sectors__accordion-cta {
  display: none;
}

/* ==========================================================
   HOME - SECTORES / PANEL DERECHA DESKTOP
   ========================================================== */

.home-sectors__panels {
  position: relative;
}

.home-sectors__panel[hidden] {
  display: none;
}

.home-sectors__panel.is-active {
  animation: maetelSectorPanelIn 620ms cubic-bezier(0.25, 1, 0.5, 1);
}

.home-sectors__panel-heading {
  margin: 0 0 24px;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-content-title, clamp(22px, 2.4vw, 34px));
  font-weight: 400;
  line-height: 1.18;
}

.home-sectors__image {
  width: 100%;
  aspect-ratio: 714 / 561;
  margin-bottom: 0;
  overflow: hidden;
  background: #e7eef2;
}

.home-sectors__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botón debajo de la imagen en columna derecha */
.home-sectors__panel-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 26px;
}

.home-sectors__panel-cta {
  margin-top: 0;
}

/* ==========================================================
   HOME - AREAS DE ACTIVIDAD / TABLET + MOBILE ACORDEON
   ========================================================== */

@media (max-width: 900px) {
  .home-sectors {
    padding: 80px 0;
    background: #fff;
  }

  .home-sectors__title {
    max-width: 760px;
    margin: 36px auto 48px;
    font-size: var(
      --maetel-font-size-section-title-tablet,
      clamp(25px, 4.4vw, 34px)
    );
    line-height: 1.16;
  }

  .home-sectors__grid {
    display: block;
  }

  .home-sectors__grid::before,
  .home-sectors__middle-line,
  .home-sectors__right {
    display: none;
  }

  .home-sectors__left {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-sectors__list {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
  }

  .home-sectors__item-wrap {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(0, 46, 94, 0.12);
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 46, 94, 0.06);
  }

  .home-sectors__item {
    position: relative;
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 18px 48px 18px 18px;
    border: 0;
    background: #fff;
    color: var(--maetel-blue);
    text-align: left;
  }

  .home-sectors__item::after {
    top: 50%;
    right: 18px;
    color: var(--maetel-turquoise);
    transform: translateY(-50%);
  }

  .home-sectors__item.is-active::after {
    content: "\2013";
  }

  .home-sectors__item:hover,
  .home-sectors__item.is-active {
    color: var(--maetel-blue);
  }

  .home-sectors__item:focus-visible {
    outline: 2px solid var(--maetel-turquoise);
    outline-offset: -2px;
  }

  .home-sectors__number {
    display: block;
    margin: 0;
    color: var(--maetel-turquoise);
    font-size: var(--maetel-font-size-section-marker-tablet, 13px);
    font-weight: 600;
    line-height: 1;
  }

  .home-sectors__item-title {
    display: block;
    margin: 0;
    color: currentColor;
    font-size: var(
      --maetel-font-size-area-title-tablet,
      clamp(18px, 2.8vw, 22px)
    );
    font-weight: 400;
    line-height: 1.22;
  }

  .home-sectors__item-line {
    display: none;
  }

  .home-sectors__accordion-panel {
    max-width: none;
  }

  .home-sectors__accordion-panel.is-active {
    max-height: 760px;
  }

  .home-sectors__accordion-inner {
    padding: 0 18px 24px;
    text-align: center;
  }

  .home-sectors__accordion-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 auto 20px;
    overflow: hidden;
    background: #e7eef2;
  }

  .home-sectors__accordion-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-sectors__accordion-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  .home-sectors__accordion-content p {
    margin: 0 auto;
    color: #506070;
    font-size: var(--maetel-font-size-body-mobile, 16px);
    line-height: 1.62;
  }

  .home-sectors__panel-actions {
    display: none;
  }

  .home-sectors__accordion-cta {
    display: inline-flex;
    margin: 24px auto 0;
  }
}

/* ==========================================================
   HOME - AREAS DE ACTIVIDAD / MOBILE
   ========================================================== */

@media (max-width: 560px) {
  .home-sectors {
    padding: 64px 0;
  }

  .home-sectors__title {
    max-width: 100%;
    margin: 30px auto 38px;
    font-size: var(
      --maetel-font-size-section-title-mobile,
      clamp(23px, 6.8vw, 30px)
    );
    line-height: 1.17;
  }

  .home-sectors__list {
    gap: 10px;
  }

  .home-sectors__item {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    padding: 17px 44px 17px 16px;
  }

  .home-sectors__item::after {
    right: 16px;
    font-size: var(--maetel-font-size-index-marker-mobile, 23px);
  }

  .home-sectors__number {
    font-size: var(--maetel-font-size-section-marker-tablet, 13px);
  }

  .home-sectors__item-title {
    font-size: var(--maetel-font-size-area-title-mobile, 18px);
    line-height: 1.22;
  }

  .home-sectors__accordion-inner {
    padding: 0 16px 22px;
  }

  .home-sectors__accordion-image {
    margin-bottom: 18px;
  }

  .home-sectors__accordion-content p {
    font-size: var(--maetel-font-size-body-mobile, 16px);
    line-height: 1.62;
  }

  .home-sectors__accordion-cta {
    margin-top: 22px;
  }
}
/* ==========================================================
   REVEAL ANIMATIONS
   ========================================================== */

[data-maetel-reveal] [data-reveal-item] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    color 260ms ease;
}

[data-maetel-reveal].is-visible [data-reveal-item] {
  opacity: 1;
  transform: translateY(0);
}

@keyframes maetelSectorPanelIn {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   HOME - PROYECTOS DESTACADOS
   ========================================================== */

.home-featured-projects {
  padding: clamp(76px, 9vw, 132px) 0;
  background: #eef3f5;
  color: var(--maetel-blue);
}

.home-featured-projects__container {
  position: relative;
  overflow: visible;
}

.home-featured-projects__header {
  max-width: 1080px;
  margin: 0 auto clamp(54px, 7vw, 88px);
  text-align: center;
}

.home-featured-projects__eyebrow {
  position: relative;
  display: table;
  margin: 0 auto 20px;
  padding: 0 0 10px;
  background: transparent;
  color: var(--maetel-turquoise);
  font-size: var(--maetel-font-size-section-marker, 14px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.home-featured-projects__eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--maetel-blue);
}

.home-featured-projects__title {
  max-width: 980px;
  margin: 44px auto 24px;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-section-title, clamp(30px, 3.2vw, 46px));
  font-weight: 400;
  line-height: 1.14;
  text-align: center;
}

.home-featured-projects__intro {
  max-width: 780px;
  margin: 0 auto;
  color: #506070;
  font-size: var(--maetel-font-size-body, 17px);
  line-height: 1.65;
  text-align: center;
}

.home-featured-projects__intro p {
  margin: 0;
}

.home-featured-projects__intro p + p {
  margin-top: 14px;
}

/* ==========================================================
   HOME - PROYECTOS DESTACADOS / GRID
   ========================================================== */

.home-featured-projects__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
}

/* ==========================================================
   HOME - PROYECTOS DESTACADOS / CARD
   ========================================================== */

.home-featured-projects__card {
  position: relative;
  z-index: 1;
  height: 430px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 46, 94, 0.12);
  background: #dce6ea;
  isolation: isolate;
  transform: scale(1) translateZ(0);
  transform-origin: center center;
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 560ms ease,
    box-shadow 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.home-featured-projects__card:hover,
.home-featured-projects__card:focus-within {
  z-index: 6;
  border-color: rgba(0, 151, 169, 0.18);
  box-shadow: 0 22px 46px rgba(7, 27, 47, 0.22);
  transform: scale(1.045) translateZ(0);
}

/* La card completa es clicable */
.home-featured-projects__card-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-featured-projects__card-link:hover,
.home-featured-projects__card-link:focus,
.home-featured-projects__card-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.home-featured-projects__card-link *,
.home-featured-projects__card-link:hover *,
.home-featured-projects__card-link:focus *,
.home-featured-projects__card-link:focus-visible * {
  text-decoration: none;
}

.home-featured-projects__media,
.home-featured-projects__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-featured-projects__media {
  z-index: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.045);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.home-featured-projects__media--placeholder {
  background: linear-gradient(135deg, #dce6ea 0%, #c7d6dc 100%);
}

.home-featured-projects__overlay {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 46, 94, 0.16) 0%,
    rgba(7, 27, 47, 0.36) 42%,
    rgba(7, 27, 47, 0.9) 100%
  );
  transition: background 680ms ease;
}

.home-featured-projects__card:hover .home-featured-projects__media,
.home-featured-projects__card:focus-within .home-featured-projects__media {
  transform: scale(1);
}

.home-featured-projects__card:hover .home-featured-projects__overlay,
.home-featured-projects__card:focus-within .home-featured-projects__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 46, 94, 0.42) 0%,
    rgba(7, 27, 47, 0.66) 46%,
    rgba(7, 27, 47, 0.94) 100%
  );
}

.home-featured-projects__content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
}

.home-featured-projects__main {
  min-width: 0;
}

.home-featured-projects__card-title {
  max-width: 96%;
  margin: 0;
  color: #fff;
  font-size: var(--maetel-font-size-area-title, clamp(24px, 2.35vw, 33px));
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.26);
}

.home-featured-projects__hidden {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition:
    max-height 720ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 680ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms ease 120ms,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}

.home-featured-projects__card:hover .home-featured-projects__hidden,
.home-featured-projects__card:focus-within .home-featured-projects__hidden {
  max-height: 260px;
  margin-top: 16px;
  opacity: 1;
  transform: translateY(0);
}

.home-featured-projects__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
}

.home-featured-projects__stat {
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.36);
}

.home-featured-projects__stat dt {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--maetel-font-size-micro, 10px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-featured-projects__stat dd {
  margin: 0;
  color: #fff;
  font-size: var(--maetel-font-size-home-label, 15px);
  font-weight: 600;
  line-height: 1.18;
}

.home-featured-projects__footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(42px, 5vw, 64px);
}

/* ==========================================================
   HOME - PROYECTOS DESTACADOS / TABLET
   ========================================================== */

@media (max-width: 980px) {
  .home-featured-projects {
    padding: 76px 0;
  }

  .home-featured-projects__header {
    max-width: 760px;
    margin-bottom: 48px;
  }

  .home-featured-projects__eyebrow {
    margin: 0 auto 20px;
    font-size: var(--maetel-font-size-section-marker-tablet, 13px);
  }

  .home-featured-projects__title {
    max-width: 760px;
    margin: 36px auto 22px;
    font-size: var(
      --maetel-font-size-section-title-tablet,
      clamp(25px, 4.4vw, 34px)
    );
    line-height: 1.16;
  }

  .home-featured-projects__intro {
    max-width: 680px;
    font-size: var(--maetel-font-size-body-mobile, 16px);
    line-height: 1.62;
  }

  .home-featured-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-featured-projects__card {
    height: 460px;
    transform: none;
  }

  .home-featured-projects__card:hover,
  .home-featured-projects__card:focus-within {
    transform: none;
  }

  .home-featured-projects__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 46, 94, 0.42) 0%,
      rgba(7, 27, 47, 0.66) 46%,
      rgba(7, 27, 47, 0.94) 100%
    );
  }

  .home-featured-projects__media {
    transform: scale(1);
  }

  .home-featured-projects__hidden {
    max-height: 260px;
    margin-top: 16px;
    opacity: 1;
    transform: translateY(0);
  }

  .home-featured-projects__card-title {
    font-size: var(
      --maetel-font-size-area-title-tablet,
      clamp(18px, 2.8vw, 22px)
    );
    line-height: 1.18;
  }

  .home-featured-projects__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-featured-projects__footer {
    margin-top: 46px;
  }
}

/* ==========================================================
   HOME - PROYECTOS DESTACADOS / MOBILE
   ========================================================== */

@media (max-width: 640px) {
  .home-featured-projects {
    padding: 64px 0;
  }

  .home-featured-projects__header {
    margin-bottom: 38px;
  }

  .home-featured-projects__eyebrow {
    margin-bottom: 18px;
    font-size: var(--maetel-font-size-button, 12px);
  }

  .home-featured-projects__title {
    margin: 30px auto 20px;
    font-size: var(
      --maetel-font-size-section-title-mobile,
      clamp(23px, 6.8vw, 30px)
    );
    line-height: 1.17;
  }

  .home-featured-projects__intro {
    font-size: var(--maetel-font-size-body-mobile, 16px);
    line-height: 1.62;
  }

  .home-featured-projects__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-featured-projects__card {
    height: 410px;
  }

  .home-featured-projects__content {
    align-items: center;
    padding: 22px 18px 22px;
    text-align: center;
  }

  .home-featured-projects__main {
    width: 100%;
  }

  .home-featured-projects__card-title {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    font-size: 20px;
    line-height: 1.12;
    text-align: center;
  }

  .home-featured-projects__hidden {
    width: 100%;
    max-height: none;
    margin-top: 12px;
    margin-right: auto;
    margin-left: auto;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .home-featured-projects__stats {
    grid-template-columns: 1fr;
    max-width: 260px;
    gap: 5px;
    margin-right: auto;
    margin-left: auto;
  }

  .home-featured-projects__stat {
    padding-top: 6px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.34);
    border-left: 0;
    text-align: center;
  }

  .home-featured-projects__stat dt {
    margin-bottom: 1px;
    font-size: 9px;
    line-height: 1.08;
  }

  .home-featured-projects__stat dd {
    font-size: 14px;
    line-height: 1.1;
  }

  .home-featured-projects__footer {
    margin-top: 38px;
  }
}

/* ==========================================================
   HOME - PROYECTOS DESTACADOS / TOUCH MOBILE
   ========================================================== */

@media (hover: none) and (max-width: 640px) {
  .home-featured-projects__card,
  .home-featured-projects__card:hover,
  .home-featured-projects__card:focus-within {
    transform: none;
  }

  .home-featured-projects__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 46, 94, 0.42) 0%,
      rgba(7, 27, 47, 0.66) 46%,
      rgba(7, 27, 47, 0.94) 100%
    );
  }

  .home-featured-projects__media {
    transform: scale(1);
  }

  .home-featured-projects__hidden {
    max-height: none;
    margin-top: 12px;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   HOME - PROYECTOS DESTACADOS / REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .home-featured-projects__card,
  .home-featured-projects__media,
  .home-featured-projects__overlay,
  .home-featured-projects__hidden {
    transition: none;
  }
}

/* ==========================================================
   HOME - MAETEL EN EL MUNDO
   ========================================================== */

.home-world {
  padding: clamp(78px, 9vw, 136px) 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fa 100%);
  color: var(--maetel-blue);
}

.home-world__container {
  position: relative;
}

.home-world__eyebrow {
  position: relative;
  display: table;
  margin: 0 auto 20px;
  padding: 0 0 10px;
  background: transparent;
  color: var(--maetel-turquoise);
  font-size: var(--maetel-font-size-section-marker, 14px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.home-world__eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--maetel-blue);
}

.home-world__title {
  max-width: 1080px;
  margin: 44px auto clamp(48px, 7vw, 92px);
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-section-title, clamp(30px, 3.2vw, 46px));
  font-weight: 400;
  line-height: 1.14;
  text-align: center;
}

.home-world__map-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.home-world__map {
  position: relative;
  aspect-ratio: 3200 / 1855.2;
  min-height: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.home-world__map-base,
.home-world__map-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-world__map-base {
  z-index: 1;
}

.home-world__map-overlay {
  z-index: 2;
  pointer-events: none;
}

/* Labels sobre el mapa */

.home-world__labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.home-world__label {
  position: absolute;
  left: var(--label-x);
  top: var(--label-y);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(0, 151, 169, 0.24);
  border-radius: 999px;
  color: var(--maetel-blue);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 46, 94, 0.1);
  font-size: var(--maetel-font-size-button, 12px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -135%);
}

/* Ocultamos la fila inferior antigua si todavía existe en el HTML */

.home-world__regions {
  display: none;
}

/* ==========================================================
   HOME - MAETEL EN EL MUNDO / TABLET
   ========================================================== */

@media (max-width: 900px) {
  .home-world {
    padding: 80px 0;
  }

  .home-world__eyebrow {
    margin: 0 auto 20px;
    font-size: var(--maetel-font-size-section-marker-tablet, 13px);
  }

  .home-world__title {
    max-width: 760px;
    margin: 36px auto 48px;
    font-size: var(
      --maetel-font-size-section-title-tablet,
      clamp(25px, 4.4vw, 34px)
    );
    line-height: 1.16;
  }

  .home-world__map-wrap {
    max-width: 100%;
  }

  .home-world__label {
    padding: 4px 7px;
    font-size: var(--maetel-font-size-button, 12px);
    transform: translate(-50%, -130%);
  }
}

/* ==========================================================
   HOME - MAETEL EN EL MUNDO / MOBILE
   ========================================================== */

@media (max-width: 560px) {
  .home-world {
    padding: 64px 0;
  }

  .home-world__eyebrow {
    margin-bottom: 18px;
    font-size: var(--maetel-font-size-button, 12px);
  }

  .home-world__title {
    margin: 30px auto 34px;
    font-size: var(
      --maetel-font-size-section-title-mobile,
      clamp(23px, 6.8vw, 30px)
    );
    line-height: 1.17;
  }

  .home-world__map-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .home-world__map {
    width: 720px;
    max-width: none;
  }

  .home-world__labels {
    display: none;
  }
}

@media (max-width: 390px) {
  .home-world__map {
    width: 680px;
  }
}
/* ==========================================================
   HOME - ULTIMAS NOTICIAS
   ========================================================== */

.home-latest-news {
  padding: clamp(76px, 9vw, 132px) 0;
  background: #eef3f5;
  color: var(--maetel-blue);
}

.home-latest-news__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 395px) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 58px);
  align-items: stretch;
}

.home-latest-news__intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--maetel-turquoise);
}

.home-latest-news__eyebrow {
  position: relative;
  display: table;
  width: fit-content;
  margin: 0 0 34px;
  padding: 0 0 10px;
  background: transparent;
  color: var(--maetel-turquoise);
  font-size: var(--maetel-font-size-section-marker, 14px);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.home-latest-news__eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--maetel-blue);
}

.home-latest-news__title {
  position: relative;
  max-width: none;
  margin: 0 0 24px;
  padding-bottom: 0;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-news-title, clamp(30px, 3vw, 42px));
  font-weight: 400;
  line-height: 1.14;
  white-space: normal;
}

.home-latest-news__title::after {
  display: none;
  content: none;
}

.home-latest-news__text {
  max-width: 330px;
  margin: 0;
  color: #506070;
  font-size: var(--maetel-font-size-body, 17px);
  line-height: 1.65;
}

.home-latest-news__cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-top: 110px;
  padding-top: 0;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-home-label, 15px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.home-latest-news__cta-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--maetel-blue);
  color: var(--maetel-turquoise);
  overflow: hidden;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.home-latest-news__cta-icon svg {
  width: 16px;
  height: 16px;
}

.home-latest-news__cta-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.home-latest-news__cta:hover,
.home-latest-news__cta:focus-visible {
  color: var(--maetel-blue);
}

.home-latest-news__cta:hover .home-latest-news__cta-icon,
.home-latest-news__cta:focus-visible .home-latest-news__cta-icon {
  background: var(--maetel-turquoise);
  color: var(--maetel-blue);
  transform: translateX(3px);
}

.home-latest-news__news {
  --latest-news-gap: clamp(24px, 3vw, 40px);

  position: relative;
  min-width: 0;
}

.home-latest-news__viewport {
  min-width: 0;
  overflow: hidden;
}

.home-latest-news__items {
  display: flex;
  gap: var(--latest-news-gap);
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-latest-news__items::-webkit-scrollbar {
  display: none;
}

.home-latest-news__card {
  flex: 0 0 calc((100% - var(--latest-news-gap)) / 2);
  min-width: 0;
  scroll-snap-align: start;
}

.home-latest-news__card-link {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  color: var(--maetel-blue);
  text-decoration: none;
}

.home-latest-news__image {
  display: block;
  width: 100%;
  aspect-ratio: 537 / 395;
  margin-bottom: 22px;
  overflow: hidden;
  background: #dce6ea;
}

.home-latest-news__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition:
    transform 620ms cubic-bezier(0.25, 1, 0.5, 1),
    filter 260ms ease;
}

.home-latest-news__card-link:hover .home-latest-news__image img,
.home-latest-news__card-link:focus-visible .home-latest-news__image img {
  filter: saturate(1.04);
  transform: scale(1.12);
}

.home-latest-news__card-title {
  max-width: 96%;
  margin: 0 0 24px;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-news-card-title, clamp(19px, 1.65vw, 25px));
  font-weight: 400;
  line-height: 1.22;
}

/* Botón visual heredado de main.css: .maetel-pill-button */
.home-latest-news__read-more {
  margin-top: auto;
}

.home-latest-news__read-more::before,
.home-latest-news__read-more::after {
  display: none;
  content: none;
}

.home-latest-news__card-link:hover .home-latest-news__read-more,
.home-latest-news__card-link:focus-visible .home-latest-news__read-more {
  color: var(--maetel-white);
  background-color: var(--maetel-blue);
  border-color: var(--maetel-blue);
  transform: translateY(-2px);
}

.home-latest-news__arrow {
  position: absolute;
  top: clamp(118px, 14vw, 190px);
  z-index: 3;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 160, 177, 0.34);
  border-radius: 999px;
  background: #fff;
  color: var(--maetel-blue);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 46, 94, 0.13);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.home-latest-news__arrow svg {
  width: 24px;
  height: 24px;
}

.home-latest-news__arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.home-latest-news__arrow:hover,
.home-latest-news__arrow:focus-visible {
  border-color: var(--maetel-turquoise);
  background: var(--maetel-turquoise);
  color: #fff;
}

.home-latest-news__arrow[disabled] {
  opacity: 0.25;
  pointer-events: none;
}

.home-latest-news__arrow--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.home-latest-news__arrow--next {
  right: 0;
  transform: translate(50%, -50%);
}

/* ==========================================================
   HOME - ULTIMAS NOTICIAS / TABLET
   ========================================================== */

@media (max-width: 980px) {
  .home-latest-news__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-latest-news__intro {
    align-items: center;
    padding-right: 0;
    padding-bottom: 34px;
    border-right: 0;
    border-bottom: 1px solid var(--maetel-turquoise);
    text-align: center;
  }

  .home-latest-news__eyebrow {
    margin: 0 auto 28px;
    font-size: var(--maetel-font-size-section-marker-tablet, 13px);
    text-align: center;
  }

  .home-latest-news__title {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
  }

  .home-latest-news__text {
    max-width: 680px;
    margin: 0 auto;
  }

  .home-latest-news__cta {
    margin-top: 28px;
    padding-top: 0;
  }

  .home-latest-news__arrow {
    top: clamp(135px, 22vw, 210px);
  }
}

/* ==========================================================
   HOME - ULTIMAS NOTICIAS / MOBILE
   ========================================================== */

@media (max-width: 620px) {
  .home-latest-news {
    padding: 64px 0;
  }

  .home-latest-news__grid {
    gap: 30px;
  }

  .home-latest-news__intro {
    padding-bottom: 30px;
  }

  .home-latest-news__eyebrow {
    margin-bottom: 24px;
    font-size: var(--maetel-font-size-button, 12px);
  }

  .home-latest-news__title {
    margin-bottom: 22px;
    padding-bottom: 0;
    font-size: var(
      --maetel-font-size-section-title-mobile,
      clamp(23px, 6.8vw, 30px)
    );
    line-height: 1.17;
    white-space: normal;
  }

  .home-latest-news__text {
    font-size: var(--maetel-font-size-body-mobile, 16px);
    line-height: 1.62;
  }

  .home-latest-news__news {
    --latest-news-gap: 22px;
  }

  .home-latest-news__card {
    flex-basis: 100%;
  }

  .home-latest-news__image {
    margin-bottom: 18px;
  }

  .home-latest-news__card-title {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: var(--maetel-font-size-compact-title, 19px);
    line-height: 1.24;
  }

  .home-latest-news__arrow {
    top: 34vw;
    width: 40px;
    height: 40px;
  }

  .home-latest-news__arrow--prev {
    left: 8px;
    transform: translateY(-50%);
  }

  .home-latest-news__arrow--next {
    right: 8px;
    transform: translateY(-50%);
  }
}
