/* =========================================
   HAMBURGER BUTTON (hidden on desktop)
   ========================================= */

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 220;
}

.burger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger--open .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger--open .burger__line:nth-child(2) {
  opacity: 0;
}

.header__burger--open .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   1700px — ya existente, mantenido
   ========================================= */

@media (max-width: 1700px) {
  .container {
    max-width: 1600px;
    padding: 0 5%;
  }
  .contact__inner {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* =========================================
   1580px — ya existente, mantenido
   ========================================= */

@media (max-width: 1580px) {
  .group__text-subgroup {
    min-height: 28rem;
  }
  .vigilancia-group__tittle {
    padding-top: 2rem;
  }
  .group-content-item-arquitectura,
  .middle {
    justify-content: flex-start;
  }
  .solution__container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
}

/* =========================================
   1280px — desktop pequeño
   ========================================= */

@media (max-width: 1280px) {
  .header__menu {
    gap: 2rem;
    font-size: 1rem;
  }

  .hero__tittle {
    width: 100%;
    font-size: 2.8rem;
    line-height: 3.4rem;
  }

  .arkony__container {
    grid-template-columns: 1fr 1.5fr;
  }

  .solution__item-tittle__tittle {
    width: 100%;
  }

  .noticias {
    grid-template-columns: 1fr 1.5fr;
  }

  .informacionLegal__hero-title {
    width: 100%;
    font-size: 2.8rem;
  }

  .gep {
    width: 100%;
  }

  .productos-grid {
    gap: 1.5rem;
  }

  .group-item-title {
    font-size: 2.4rem;
    width: 80%;
  }

  .seccion-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-hero {
    grid-template-columns: repeat(2, 1fr);
  }

  .gray-fipas-imgs-grid {
    gap: 4rem;
  }

  .vertical-white-content {
    gap: 3rem;
  }

  .content-group {
    width: 100%;
  }
}

/* =========================================
   1024px — TABLET
   ========================================= */

@media (max-width: 1024px) {

  /* --- HEADER / HAMBURGER --- */
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75vw;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-gris-oscuro);
    flex-direction: column;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    transition: right 0.35s ease;
    overflow-y: auto;
    z-index: 210;
  }

  .header__nav--open {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    gap: 0;
    height: auto;
    font-size: 1.1rem;
  }

  .menu__item {
    padding: 1rem 0.5rem;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .activo {
    box-shadow: inset 3px 0 0 0 #00e3fc;
  }

  .menu__item-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown {
    position: static;
    display: none;
    background-color: transparent;
    backdrop-filter: none;
    padding: 0 0 0 1rem;
    min-width: unset;
  }

  .dropdown--open {
    display: block;
  }

  /* --- HERO --- */
  .body__hero {
    height: 35rem;
  }

  .hero__tittle {
    font-size: 2.4rem;
    line-height: 3rem;
  }

  .hero__text-container {
    margin-bottom: 5rem;
  }

  /* --- ARKONY HOME --- */
  .arkony__container {
    grid-template-columns: 1fr;
  }

  .arkony__section-img {
    height: 20rem;
  }

  /* --- SOLUTIONS GRID --- */
  .solution__container {
    grid-template-columns: 1fr 1fr;
  }

  .solution__item-tittle__tittle {
    font-size: 1.6rem;
  }

  .solutiom__item-tittle,
  .solutiom__item {
    height: 10rem;
  }

  /* --- ABOUT US ICONS --- */
  .about-us_icons {
    flex-direction: column;
  }

  .icons__item.center {
    border-left: none;
    border-right: none;
    border-top: 2px solid var(--color-gray-3);
    border-bottom: 2px solid var(--color-gray-3);
  }

  .icons__item {
    padding: 2rem;
  }

  /* --- NEWS --- */
  .noticias {
    grid-template-columns: 1fr;
  }

  .noticias__tittle {
    height: 20rem;
  }

  .noticias_tittle-tittle {
    margin-top: 5rem;
  }

  /* --- FOOTER --- */
  .footer__container {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
  }

  .footer__item {
    width: 45%;
  }

  /* --- CONTACT --- */
  .contact__inner {
    flex-direction: column;
    gap: 3rem;
    padding: 5rem 1rem;
  }

  .contact__inner-left,
  .contact__inner-rigth {
    width: 100%;
  }

  .contact__inner-details {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  /* --- ABOUT US PAGE --- */
  .about-us__title {
    font-size: 2.6rem;
    line-height: 3.4rem;
  }

  .about-us__group {
    flex-direction: column;
    gap: 2rem;
  }

  .about-us-ods {
    right: 2rem;
    top: 28rem;
  }

  /* --- NEWS PAGE --- */
  .container.news {
    flex-direction: column;
    height: auto;
  }

  .body__news {
    width: 100%;
    height: 20rem;
    overflow-y: auto;
  }

  .new__last {
    width: 100%;
  }

  /* --- SECOND HEADER (soluciones) --- */
  .second__header {
    top: 5rem;
  }

  .header-b__nav {
    overflow-x: auto;
  }

  .menu-b__item {
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  /* --- SOLUCIONES SECTIONS --- */
  .contenido__capacidades {
    grid-template-columns: 1fr;
  }

  .bg__capacidades {
    grid-template-columns: 1fr;
  }

  .group__text {
    grid-template-columns: 1fr;
    margin: 1.5rem 0;
  }

  .group__text-subgroup {
    min-height: auto;
    padding: 2rem;
  }

  .vigilancia-group__text {
    grid-template-columns: repeat(2, 1fr);
  }

  .arquitectura__group-content {
    flex-direction: column;
  }

  .kpi__group-text {
    flex-direction: column;
  }

  .usos__subgroup-text {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- PRODUCTOS --- */
  .productos-grid {
    grid-template-columns: 1fr;
  }

  .group-item-title {
    font-size: 2rem;
    width: 100%;
  }

  .single-item-text.arkony {
    width: 60%;
  }

  /* --- PRODUCT PAGES --- */
  .hero-secciones {
    flex-direction: column;
    height: auto;
  }

  .izquierda-hero,
  .derecha-hero {
    padding-top: 4rem;
    width: 100%;
  }

  .producto-secciones {
    flex-direction: column;
  }

  .seccion-dividida {
    flex-direction: column;
    gap: 2rem;
  }

  .dividida-imagen {
    width: 100%;
    max-width: 28rem;
  }

  .seccion-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .seccion-horizontal-content {
    flex-direction: column;
  }

  .seccion-horizontal-item {
    width: 100%;
    padding: 2rem;
  }

  .vertical-white-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .seccion-photos-content,
  .seccion-photos-content.izq {
    width: 80%;
    margin-left: 10%;
  }

  /* --- GNSS --- */
  .content-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .content-hero-group.center {
    border: none;
    border-top: 1px solid var(--color-gray-4);
    border-bottom: 1px solid var(--color-gray-4);
    padding: 1.5rem 0;
  }

  .section-gnss-dark-text {
    flex-direction: column;
    gap: 1rem;
  }

  .text-parragraph.gray.gnssText {
    width: 100%;
  }

  /* --- FIPAS --- */
  .gray-fipas-imgs-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* --- COPEO --- */
  .content-hero.copeo-p {
    flex-direction: column;
  }

  .content-hero-group.copeo-p {
    width: 100%;
  }

  .content-hero-group.copeo-p.borders {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--color-gray-2);
    border-bottom: 1px solid var(--color-gray-2);
    padding: 1rem 0;
  }

  /* --- GEP TABLES --- */
  .tabla__group {
    flex-direction: column;
  }

  .tabla__tittle,
  .tabla__text {
    width: 100%;
  }

  .subtabla__group-title,
  .subtabla__group {
    grid-template-columns: repeat(3, 1fr);
    font-size: 0.85rem;
  }
}

/* =========================================
   768px — MÓVIL
   ========================================= */

@media (max-width: 768px) {

  .container {
    padding: 0 1.2rem;
  }

  /* --- HEADER --- */
  .header__logo-text {
    font-size: 0.65rem;
  }

  .header__logo-img {
    height: 1.2rem;
  }

  /* --- HERO --- */
  .body__hero {
    height: 28rem;
  }

  .hero__tittle {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .hero__text {
    font-size: 1.1rem;
  }

  .hero__text-container {
    margin-bottom: 3rem;
  }

  /* --- ARKONY --- */
  .arkony__tittle {
    font-size: 1.5rem;
  }

  .arkony__section-img {
    height: 14rem;
  }

  /* --- SOLUTIONS --- */
  .solution__container {
    grid-template-columns: 1fr;
  }

  .solution__item-tittle__tittle {
    font-size: 1.4rem;
  }

  .solutiom__item-tittle,
  .solutiom__item {
    height: 9rem;
    padding: 1.5rem;
  }

  /* --- ABOUT US SECTION --- */
  .about-us_tittle {
    font-size: 1.6rem;
  }

  .about-us_text {
    font-size: 1.1rem;
  }

  .us__item-icon {
    height: 5rem;
    width: 5rem;
  }

  /* --- NEWS HOME --- */
  .noticias__tittle {
    height: 14rem;
    padding: 1.5rem;
  }

  .noticias_tittle-tittle {
    margin-top: 3rem;
    font-size: 1.2rem;
  }

  .noticias_item {
    padding: 0.8rem;
  }

  /* --- FOOTER --- */
  .footer__container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__item {
    width: 100%;
  }

  /* --- CONTACT --- */
  .contact__title {
    font-size: 1.8rem;
  }

  .form__row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact__form {
    padding-left: 0;
    padding-right: 0;
  }

  .contact__item {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 3rem;
  }

  /* --- ABOUT US PAGE --- */
  .about-us__hero {
    height: 22rem;
    padding: 4rem 0;
  }

  .about-us__title {
    font-size: 2rem;
    line-height: 2.6rem;
  }

  .about-us-ods {
    position: static;
    margin-top: 2rem;
  }

  .img-ods-ab {
    width: 8rem;
  }

  /* --- NEWS PAGE --- */
  .body__news {
    height: 15rem;
  }

  .titulo__noticia {
    font-size: 1rem;
  }

  /* --- SOLUCIONES --- */
  .vigilancia-group__text {
    grid-template-columns: 1fr;
  }

  .usos__subgroup-text {
    grid-template-columns: 1fr;
  }

  .group__title-title {
    font-size: 2rem;
  }

  /* --- PRODUCTOS --- */
  .productos-group-title {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .single-item-text.arkony {
    width: 100%;
  }

  /* --- PRODUCT PAGES --- */
  .producto__hero {
    height: 28rem;
    padding: 3rem 0;
  }

  .productoHero__title {
    font-size: 2.2rem;
  }

  .izquierda-hero,
  .derecha-hero {
    padding-top: 2rem;
  }

  .bg_primero,
  .bg_segundo,
  .bg_tercero,
  .bg_cuarto {
    height: 24rem;
  }

  .seccion-photos-content,
  .seccion-photos-content.izq {
    width: 90%;
    margin-left: 5%;
    padding: 1.5rem 0;
    height: auto;
  }

  .seccion-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .img-satcomCard {
    width: 8rem;
  }

  .seccion-horizontal-item {
    padding: 1.5rem;
  }

  .content-title {
    font-size: 1.6rem;
  }

  /* --- GNSS --- */
  .producto__hero.gnss-page {
    background-size: cover;
  }

  .strong-gnss-kpi {
    font-size: 2rem;
  }

  .seccion-btn-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-contacto-gnss {
    width: 100%;
    text-align: center;
  }

  /* --- GNSS MODAL --- */
  .modal-videos[open] {
    width: 90vw;
    height: auto;
    max-height: 80vh;
  }

  /* --- FIPAS --- */
  .bck-grid-img-fipas-item {
    height: 18rem;
  }

  /* --- COPEO --- */
  .productoHero__img-copeoLogo {
    width: 60%;
  }

  /* --- LEGAL / GEP --- */
  .informacionLegal__hero {
    height: 22rem;
    padding: 3rem 0;
  }

  .informacionLegal__hero-title {
    font-size: 2rem;
    line-height: 2.6rem;
  }

  .hero__informacionLegal {
    margin-top: 6rem;
  }

  .subtabla__group-title,
  .subtabla__group {
    grid-template-columns: 1fr;
  }

  .subtabla__text {
    padding: 1rem;
    font-size: 1rem;
  }
}
