/* =========================================================
   RESPONSIVE GENERAL
========================================================= */

@media (max-width: 1180px) {
  :root {
    --container: 1040px;
  }

  .container,
  .page-hero__container,
  .content-section__container,
  .services-section__container,
  .methodology-section__container,
  .experience-section__container,
  .contact-section__container {
    width: min(100% - 48px, var(--container));
  }
}

@media (max-width: 980px) {
  :root {
    --mobile-header-height: 104px;
  }

  html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-padding-top: var(--mobile-header-height);
  }

  body {
    max-width: 100%;
    margin: 0;
    padding-top: var(--mobile-header-height);
    overflow-x: hidden;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
}

/* =========================================================
   HEADER / MENÚ ACORDEÓN
========================================================= */

@media (max-width: 980px) {
  .header,
  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;

    width: 100%;
    height: var(--mobile-header-height);
    min-height: var(--mobile-header-height);

    overflow: visible;

    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(8, 23, 45, 0.1);
    box-shadow: 0 7px 24px rgba(3, 18, 38, 0.1);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .header__container,
  .site-header__container {
    position: relative;

    width: 100%;
    max-width: none;
    height: 100%;
    min-height: var(--mobile-header-height);

    margin: 0;
    padding: 0 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
  }

  .header__logo,
  .site-header__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;

    width: auto;
    max-width: calc(100% - 150px);
    min-height: 0;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);
  }

  .header__logo img,
  .site-header__logo img {
    display: block;

    width: auto;
    height: 78px;
    max-width: 170px;

    margin: 0 auto;

    object-fit: contain;
    object-position: center;
  }

  .header__toggle,
  .site-header__toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    z-index: 10002;

    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;

    margin: 0;
    padding: 0;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 11px;

    background: #08172d;
    box-shadow: 0 6px 16px rgba(3, 18, 38, 0.2);

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .header__toggle span,
  .site-header__toggle span {
    display: block !important;

    width: 25px;
    height: 3px;
    min-height: 3px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: #ffffff;

    opacity: 1;
    visibility: visible;

    transform-origin: center;

    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  .header__toggle.is-open span:nth-child(1),
  .header__toggle.is-active span:nth-child(1),
  .site-header__toggle.is-open span:nth-child(1),
  .site-header__toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .header__toggle.is-open span:nth-child(2),
  .header__toggle.is-active span:nth-child(2),
  .site-header__toggle.is-open span:nth-child(2),
  .site-header__toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .header__toggle.is-open span:nth-child(3),
  .header__toggle.is-active span:nth-child(3),
  .site-header__toggle.is-open span:nth-child(3),
  .site-header__toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .header__nav,
  .main-nav,
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 10001;

    width: 100%;
    max-width: none;
    max-height: 0;

    margin: 0;
    padding: 0 16px;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;

    background: #ffffff;
    border-top: 1px solid transparent;
    box-shadow: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      max-height 0.35s ease,
      padding 0.35s ease,
      opacity 0.22s ease,
      visibility 0.22s ease,
      border-color 0.22s ease,
      box-shadow 0.22s ease;
  }

  .header__nav.is-open,
  .main-nav.is-open,
  .site-nav.is-open {
    max-height: calc(100vh - var(--mobile-header-height));

    padding: 8px 16px 16px;

    overflow-x: hidden;
    overflow-y: auto;

    border-top-color: rgba(201, 154, 92, 0.28);
    box-shadow: 0 18px 32px rgba(3, 18, 38, 0.16);

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header__nav a,
  .main-nav a,
  .site-nav a {
    position: relative;

    width: 100%;
    min-height: 54px;

    margin: 0;
    padding: 14px 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom: 1px solid rgba(8, 23, 45, 0.09);

    color: #08172d;

    font-size: 0.92rem;
    line-height: 1.3;
    letter-spacing: 0.06em;

    text-align: center;
    text-decoration: none;
    white-space: normal;
  }

  .header__nav a:last-child,
  .main-nav a:last-child,
  .site-nav a:last-child {
    border-bottom: 0;
  }

  .header__nav a::after,
  .main-nav a::after,
  .site-nav a::after {
    bottom: 7px;
  }

  .header__nav a:hover::after,
  .header__nav a.active::after,
  .main-nav a:hover::after,
  .main-nav a.active::after,
  .site-nav a:hover::after,
  .site-nav a.active::after {
    width: 46px;
  }
}

@media (max-width: 520px) {
  :root {
    --mobile-header-height: 94px;
  }

  .header__container,
  .site-header__container {
    min-height: var(--mobile-header-height);
    padding: 0 62px;
  }

  .header__logo,
  .site-header__logo {
    max-width: calc(100% - 130px);
  }

  .header__logo img,
  .site-header__logo img {
    height: 68px;
    max-width: 145px;
  }

  .header__toggle,
  .site-header__toggle {
    right: 14px;

    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;

    border-radius: 10px;
  }

  .header__toggle span,
  .site-header__toggle span {
    width: 23px;
  }

  .header__nav,
  .main-nav,
  .site-nav {
    padding-right: 12px;
    padding-left: 12px;
  }

  .header__nav.is-open,
  .main-nav.is-open,
  .site-nav.is-open {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* =========================================================
   HERO
========================================================= */

@media (max-width: 1180px) {
  .hero {
    min-height: auto;
    padding: 74px 0 88px;
  }

  .hero__content {
    width: min(100% - 48px, var(--container));
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero__text {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    max-width: 920px;
    font-size: clamp(3.8rem, 8vw, 6rem);
  }

  .hero__description {
    max-width: 820px;
    min-height: auto;
  }

  .hero__features {
    width: 100%;
    max-width: 940px;
  }

  .hero__feature {
    margin-right: 20px;
    padding-right: 20px;
  }

  .hero__feature-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .hero__feature h3 {
    font-size: 1rem;
  }

  .hero__feature p {
    font-size: 0.84rem;
  }

  .hero__slider {
    min-height: auto;
    justify-content: flex-start;
  }

  .hero__slider-frame {
    width: min(100%, 790px);
    aspect-ratio: 16 / 9;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 860px) {
  .hero {
    padding: 66px 0 82px;
  }

  .hero__content {
    width: min(100% - 40px, var(--container));
    gap: 46px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(3.15rem, 10.5vw, 5rem);
    line-height: 0.96;
  }

  .hero__description {
    max-width: 700px;
  }

  .hero__features {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__feature {
    width: 100%;
    min-height: 98px;
    margin: 0;
    padding: 18px 4px;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero__feature:last-child {
    border-bottom: none;
  }

  .hero__feature-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
  }

  .hero__feature h3 {
    font-size: 1rem;
  }

  .hero__feature p {
    font-size: 0.86rem;
  }

  .hero__slider-frame {
    width: 100%;
    border-radius: 28px;
  }
}

/* =========================================================
   HERO MÓVIL
   Imagen arriba y servicio activo debajo
========================================================= */

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 44px 0 66px;
  }

  .hero__content {
    width: min(100% - 28px, var(--container));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero__text {
    display: contents;
  }

  .hero__label,
  .hero__text > h1,
  .hero__line,
  .hero__description {
    display: none;
  }

  .hero__slider {
    order: 1;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding-bottom: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__slider-frame {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
  }

  .hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero__slider-dots {
    bottom: 4px;
  }

  .hero__features {
    order: 2;
    display: block;
    width: min(100%, 540px);
    max-width: 540px;
    margin: 18px auto 0;
  }

  .hero__feature {
    display: none;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    filter: none;
    text-align: center;
    pointer-events: none;
  }

  .hero__feature.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: hero-feature-entry 0.45s ease both;
  }

  .hero__feature:hover,
  .hero__feature:focus-visible {
    transform: none;
  }

  .hero__feature-icon {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--color-gold);
    border-radius: 50%;
    font-size: 1.5rem;
  }

  .hero__feature.is-active .hero__feature-icon {
    transform: none;
  }

  .hero__feature > div:last-child {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero__feature h3 {
    max-width: 100%;
    margin: 0 0 8px;
    font-size: 1.16rem;
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .hero__feature p {
    max-width: 420px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: center;
    text-wrap: pretty;
    overflow-wrap: anywhere;
  }
}

/* =========================================================
   MÓVILES
========================================================= */

@media (max-width: 620px) {
  .hero {
    padding: 38px 0 60px;
  }

  .hero__content {
    width: min(100% - 28px, var(--container));
  }

  .hero__slider {
    padding-bottom: 34px;
  }

  .hero__slider-frame {
    border-radius: 22px;
  }

  .hero__slider-dots {
    bottom: 3px;
  }

  .hero__features {
    width: 100%;
    margin-top: 16px;
  }

  .hero__feature.is-active {
    gap: 14px;
  }

  .hero__feature-icon {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
    font-size: 1.35rem;
  }

  .hero__feature h3 {
    font-size: 1.08rem;
  }

  .hero__feature p {
    max-width: 350px;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 420px) {
  .hero {
    padding: 32px 0 54px;
  }

  .hero__content {
    width: min(100% - 22px, var(--container));
  }

  .hero__slider {
    padding-bottom: 32px;
  }

  .hero__slider-frame {
    border-radius: 18px;
  }

  .hero__slider-dots {
    gap: 8px;
  }

  .hero__feature-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    font-size: 1.28rem;
  }

  .hero__feature h3 {
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .hero__feature p {
    max-width: 310px;
    font-size: 0.86rem;
    line-height: 1.48;
  }
}

/* =========================================================
   ANIMACIÓN DE ENTRADA
========================================================= */

@keyframes hero-feature-entry {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__feature.is-active {
    animation: none;
  }
}

/* =========================================================
   ÁMBITOS PRINCIPALES
========================================================= */

@media (max-width: 980px) {
  .areas {
    padding: 74px 0 70px;
  }

  .areas__container {
    width: min(100% - 40px, var(--container));
  }

  .areas__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .areas__item {
    min-height: auto;
    padding: 28px;
  }
}

@media (max-width: 680px) {
  .areas {
    padding: 62px 0;
  }

  .areas__container {
    width: min(100% - 28px, var(--container));
  }

  .areas__header {
    margin-bottom: 34px;
    text-align: center;
  }

  .areas__header .section-line {
    margin-left: auto;
    margin-right: auto;
  }

  .areas__title {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .areas__description {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.96rem;
  }

  .areas__item {
    padding: 26px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 24px;
    text-align: center;
  }

  .areas__icon {
    width: 56px;
    height: 56px;
  }

  .areas__item h3 {
    font-size: 1.35rem;
  }
}

/* =========================================================
   NUESTRO VALOR + ALIANZA MAGI IT
========================================================= */

.value {
  padding: 88px 0;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(202, 151, 65, 0.08),
      transparent 28%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
}

.value__container {
  width: min(100% - 64px, var(--container));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-areas:
    "intro cards"
    "alliance alliance";
  gap: 34px;

  align-items: stretch;
}

.value__intro {
  grid-area: intro;

  position: relative;
  top: auto;

  min-height: 100%;
  padding: 38px;

  border-radius: 30px;

  background:
    radial-gradient(
      circle at top right,
      rgba(202, 151, 65, 0.12),
      transparent 36%
    ),
    linear-gradient(145deg, #031226, #09264a);

  box-shadow: 0 28px 70px rgba(3, 18, 38, 0.16);
}

.value__cards {
  grid-area: cards;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.value-card {
  min-height: 230px;
  padding: 30px 26px;

  border: 1px solid rgba(3, 18, 38, 0.08);
  border-radius: 28px;

  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  box-shadow: 0 20px 50px rgba(3, 18, 38, 0.07);
}

.value-card__icon {
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 1.38rem;
}

.value-card p {
  max-width: 260px;
  margin: 0 auto;

  font-family: var(--font-body);
  font-size: 0.95rem;
}

.alliance-card {
  grid-area: alliance;

  margin-top: 10px;
  padding: 34px;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;

  border-radius: 30px;
}

.alliance-card__content {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 28px;
}

.alliance-card__logo-box {
  width: 130px;
  height: 130px;
  padding: 18px;

  display: grid;
  place-items: center;

  border-radius: 26px;
}

.alliance-card__logo {
  width: 100%;
  height: 100%;
  margin: 0 auto;

  display: block;

  object-fit: contain;
  object-position: center;
}

.alliance-card__text h3 {
  font-size: 2.1rem;
}

.alliance-card__text p {
  max-width: 760px;
}

.alliance-card__button {
  min-width: 170px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .value__container {
    grid-template-columns: 340px 1fr;
    gap: 28px;
  }

  .value-card {
    min-height: 220px;
  }
}

@media (max-width: 1100px) {
  .value__container {
    width: min(100% - 48px, var(--container));

    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "cards"
      "alliance";
  }

  .value__intro {
    min-height: auto;
  }

  .alliance-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .value {
    padding: 64px 0;
  }

  .value__container {
    width: min(100% - 28px, var(--container));
    gap: 24px;
  }

  .value__intro {
    padding: 28px;

    border-radius: 24px;
    text-align: center;
  }

  .value__intro .section-line {
    margin-left: auto;
    margin-right: auto;
  }

  .value__intro h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .value__intro p {
    margin-left: auto;
    margin-right: auto;
  }

  .value__cards {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: auto;
    text-align: center;
  }

  .value-card__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .alliance-card {
    width: 100%;
    padding: 26px;

    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    align-items: center;

    border-radius: 24px;
    text-align: center;
  }

  .alliance-card__content {
    width: 100%;

    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 20px;

    text-align: center;
  }

  .alliance-card__logo-box {
    width: 124px;
    height: 124px;

    margin: 0 auto;
    padding: 18px;

    display: grid;
    place-items: center;

    border-radius: 26px;
  }

  .alliance-card__logo {
    width: 100%;
    height: 100%;
    margin: 0 auto;

    object-fit: contain;
    object-position: center;
  }

  .alliance-card__text {
    width: 100%;
    text-align: center;
  }

  .alliance-card__text h3 {
    font-size: 2rem;
  }

  .alliance-card__text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .alliance-card__button {
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 520px) {
  .alliance-card {
    padding: 24px 20px;
  }

  .alliance-card__logo-box {
    width: 116px;
    height: 116px;
  }

  .alliance-card__text h3 {
    font-size: 1.9rem;
  }
}

/* =========================================================
   CLIENTES QUE CONFÍAN EN NOSOTROS
========================================================= */

@media (max-width: 1100px) {
  .trusted-clients__container {
    width: min(100% - 48px, var(--container));
  }
}

@media (max-width: 760px) {
  .trusted-clients {
    padding: 0 0 72px;
  }

  .trusted-clients__container {
    width: min(100% - 28px, var(--container));
  }

  .trusted-clients__header {
    max-width: 100%;
    margin: 0 auto 26px;
    text-align: center;
  }

  .trusted-clients__header .section-line {
    margin-left: auto;
    margin-right: auto;
  }

  .trusted-clients__header p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .trusted-clients__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .trusted-clients__card {
    min-height: 180px;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .trusted-clients__logo--aiep {
    max-width: 300px;
  }

  .trusted-clients__logo--unab {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .trusted-clients {
    padding-bottom: 64px;
  }

  .trusted-clients__container {
    width: min(100% - 24px, var(--container));
  }

  .trusted-clients__card {
    min-height: 164px;
    padding: 24px 18px;
  }

  .trusted-clients__logo--aiep {
    max-width: 240px;
  }

  .trusted-clients__logo--unab {
    max-width: 220px;
  }
}

/* =========================================================
   PÁGINAS INTERNAS
========================================================= */

@media (max-width: 1100px) {
  .page-hero__container--split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .page-hero__logo-card {
    width: min(100%, 520px);
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 62px 0;
    text-align: center;
  }

  .page-hero__container {
    width: min(100% - 28px, var(--container));
  }

  .page-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .page-hero__logo-card {
    min-height: 220px;
    padding: 20px;

    justify-self: center;

    border-radius: 22px;
  }
}

/* =========================================================
   CONTENIDO GENERAL
========================================================= */

@media (max-width: 980px) {
  .content-section__container {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .content-section,
  .services-section,
  .methodology-section,
  .experience-section,
  .contact-section {
    padding: 64px 0;
  }
}

@media (max-width: 760px) {
  .container,
  .hero__content,
  .areas__container,
  .value__container,
  .page-hero__container,
  .content-section__container,
  .services-section__container,
  .methodology-section__container,
  .experience-section__container,
  .contact-section__container {
    width: min(100% - 28px, var(--container));

    margin-left: auto;
    margin-right: auto;
  }

  .content-section__text,
  .content-section__box,
  .contact-info {
    text-align: center;
  }

  .content-section__text .section-line,
  .contact-info .section-line {
    margin-left: auto;
    margin-right: auto;
  }

  .content-section__text h2,
  .contact-info h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

@media (max-width: 680px) {
  .content-section__container,
  .services-section__container,
  .methodology-section__container,
  .experience-section__container,
  .contact-section__container {
    width: min(100% - 28px, var(--container));
  }

  .content-section__box {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .container,
  .hero__content,
  .areas__container,
  .value__container,
  .page-hero__container,
  .content-section__container,
  .services-section__container,
  .methodology-section__container,
  .experience-section__container,
  .contact-section__container {
    width: min(100% - 24px, var(--container));
  }
}

/* =========================================================
   SERVICIOS / EXPERIENCIA / METODOLOGÍA
========================================================= */

@media (max-width: 1100px) {
  .services-section__container,
  .experience-section__container {
    grid-template-columns: 1fr;
  }

  .methodology-section__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .services-section__container,
  .experience-section__container,
  .methodology-section__container {
    justify-items: center;
  }

  .service-card,
  .experience-card,
  .method-step {
    text-align: center;
  }
}

@media (max-width: 680px) {
  .methodology-section__container {
    grid-template-columns: 1fr;
  }

  .service-card,
  .experience-card,
  .method-step {
    padding: 28px;
  }
}

/* =========================================================
   SERVICIOS ANIMADOS
========================================================= */

@media (max-width: 1280px) {
  .services-animation__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .animated-service-card {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .services-animation {
    min-height: auto;
    padding: 64px 0;
  }

  .services-animation__container {
    width: min(100% - 32px, 1500px);
    min-height: auto;
  }

  .services-animation__grid {
    grid-template-columns: 1fr;
  }

  .animated-service-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .services-animation__container {
    width: min(100% - 28px, 1500px);
  }

  .animated-service-card {
    text-align: center;
  }
}

/* =========================================================
   CONTACTO
========================================================= */

@media (max-width: 980px) {
  .contact-section__container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .contact-form {
    padding: 28px;
  }

  .form-button {
    width: 100%;
  }
}

/* =========================================================
   PREVENCIÓN DE DESBORDES
========================================================= */

@media (max-width: 760px) {
  img,
  video,
  canvas,
  svg,
  iframe {
    max-width: 100%;
  }

  section,
  main,
  footer,
  header {
    max-width: 100%;
  }

  p,
  h1,
  h2,
  h3,
  h4,
  a,
  span {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}
/* =========================================================
   AJUSTES MÓVILES CON CLASES REALES
   Servicios, Instalaciones, Especialidades y Contacto
========================================================= */

@media (max-width: 760px) {
  /* =======================================================
     SERVICIOS
     Títulos centrados y listas con viñetas a la izquierda
  ======================================================= */

  .animated-service-card {
    text-align: center;
  }

  .animated-service-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: auto;
    margin-bottom: 26px;
    text-align: center;
  }

  .animated-service-card__number {
    flex: 0 0 auto;
    text-align: center;
  }

  .animated-service-card__title {
    flex: 0 1 auto;
    width: auto;
    max-width: 280px;
    margin: 0;
    text-align: center;
  }

  .animated-service-card__list {
    display: grid;
    gap: 15px;
    width: 100%;
    margin: 0;
    padding-left: 24px;
    list-style: disc;
    text-align: left;
  }

  .animated-service-card__list li {
    margin: 0;
    padding: 0 0 0 2px;
    text-align: left;
    line-height: 1.45;
  }

  .animated-service-card__list li::after {
    content: none !important;
    display: none !important;
  }

  .animated-service-card__footer {
    text-align: center;
  }

  /* =======================================================
     INSTALACIONES
  ======================================================= */

  .installations-hero {
    justify-items: center;
    text-align: center;
  }

  .installations-hero__content {
    width: 100%;
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .installations-hero__label {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .installations-hero h1,
  .installations-hero p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .installations-hero__brand,
  .installations-hero__brand--logo {
    width: min(100%, 460px);
    margin-right: auto;
    margin-left: auto;
    justify-self: center;
  }

  .installations-hero__logo {
    margin-right: auto;
    margin-left: auto;
  }

  .installation-card h2,
  .installations-visual-block__text h2,
  .installations-visual-block__text > span {
    text-align: center;
  }

  .installations-visual-block__text > span {
    display: block;
  }

  .installation-card ul {
    text-align: left;
  }

  /* =======================================================
     ESPECIALIDADES
  ======================================================= */

  .specialties-hero {
    justify-items: center;
    text-align: center;
  }

  .specialties-hero__content {
    width: 100%;
    max-width: 840px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .specialties-hero__label {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .specialties-hero h1,
  .specialties-hero p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .specialties-hero__logo-card {
    width: min(100%, 460px);
    margin-right: auto;
    margin-left: auto;
    justify-self: center;
  }

  .specialties-hero__logo {
    margin-right: auto;
    margin-left: auto;
  }

  .specialty-card h2,
  .specialties-feature__text h2,
  .specialties-feature__text > span {
    text-align: center;
  }

  .specialties-feature__text > span {
    display: block;
  }

  .specialty-card ul {
    text-align: left;
  }

  /* =======================================================
     CONTACTO
     Todo el contenido centrado
  ======================================================= */

  .contact-hero {
    justify-items: center;
    text-align: center;
  }

  .contact-hero__content {
    width: 100%;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .contact-hero__label {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .contact-hero h1,
  .contact-hero p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .contact-hero__logo-card {
    width: min(100%, 460px);
    margin-right: auto;
    margin-left: auto;
    justify-self: center;
  }

  .contact-hero__logo {
    margin-right: auto;
    margin-left: auto;
  }

  .contact-layout {
    justify-items: center;
  }

  .contact-panel,
  .contact-form-card {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .contact-panel__label,
  .contact-panel h2,
  .contact-panel > p,
  .contact-panel__note,
  .contact-panel__note span,
  .contact-panel__note p,
  .contact-form-card__header,
  .contact-form-card__header span,
  .contact-form-card__header h2,
  .contact-form-card__header p,
  .modern-contact-form__footer,
  .modern-contact-form__footer p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .contact-panel__item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .contact-panel__item strong,
  .contact-panel__item p {
    text-align: center;
  }

  .contact-panel__note {
    border-left: 0;
    border-top: 3px solid var(--color-gold);
  }

  .contact-form-card__header p {
    max-width: 620px;
  }

  .modern-contact-form,
  .form-field,
  .form-field label {
    text-align: center;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    text-align: center;
  }

  .modern-contact-form__button {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .animated-service-card__title {
    max-width: 230px;
  }

  .animated-service-card__list {
    padding-left: 22px;
  }
}
