/* assets/css/mobile.css */

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

@media (min-width: 901px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 74px;
    overflow-x: hidden;
  }

  header {
    min-height: 68px;
  }

  .nav {
    position: relative;
    min-height: 68px;
    padding: .55rem 1rem;
    gap: 1rem;
  }

  .brand img {
    height: 50px;
    max-width: min(62vw, 260px);
    image-rendering: auto;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(15, 25, 38, .88);
    color: #fff;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--acc2);
    outline-offset: 2px;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    left: 1rem;
    z-index: 10000;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    background: rgba(8, 14, 24, .96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-menu.is-open {
    display: grid;
    gap: 10px;
  }

  .mobile-menu a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .04);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    color: #6ffcff;
    background: rgba(0, 245, 255, .12);
    outline: 0;
  }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15.5px;
    line-height: 1.6;
  }

  main,
  section,
  .wrap,
  .wrap-contact,
  .partners-section,
  .site-footer {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.4rem 1.25rem 2.25rem;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9vw, 3.15rem);
    line-height: 1.08;
    margin-top: .45rem;
    text-wrap: balance;
  }

  .kicker {
    display: inline-block;
    max-width: 100%;
    font-size: .74rem;
    line-height: 1.45;
    letter-spacing: .1em;
  }

  .hero p {
    font-size: .98rem;
    line-height: 1.65;
    text-align: left !important;
  }

  .cta {
    gap: .7rem;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    width: min(100%, 280px);
    min-height: 46px;
    padding: .75rem 1rem;
    font-size: .92rem;
  }

  .hero-visual {
    min-height: 220px;
    padding: .75rem;
    border-radius: .85rem;
  }

  .hero-img {
    max-height: 240px;
    min-height: 190px;
    object-position: center;
  }

  .wrap,
  .wrap-contact {
    padding: 2.4rem 1.25rem;
  }

  .retro-title {
    display: block;
    max-width: 100%;
    font-size: clamp(1.05rem, 5.7vw, 1.75rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
    line-height: 1.12;
  }

  .section-sub,
  .wrap-contact .contact-desc {
    max-width: 100%;
    margin-top: .35rem;
    margin-bottom: 1.35rem;
    font-size: .96rem;
    line-height: 1.62;
  }

  .grid,
  .grid.cols-2,
  .grid.cols-3,
  .soluciones-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card,
  .soluciones-card,
  .blog-card,
  .program-tabs,
  .tab__content,
  .map-card {
    border-radius: 14px;
  }

  .soluciones-card {
    box-shadow: 0 18px 42px rgba(0, 0, 0, .62);
  }

  .soluciones-card .card__img {
    height: 155px;
  }

  .soluciones-card .card__content {
    padding: 1rem 1rem 1.15rem;
    row-gap: .85rem;
  }

  .soluciones-card .card__header {
    font-size: 1rem;
    line-height: 1.35;
  }

  .soluciones-card .card__text,
  .soluciones-card .card__text-wrapper {
    font-size: .91rem;
    line-height: 1.58;
  }

  .cap-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 2rem 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  }

  .cap-stack input {
    display: none;
  }

  .cap-stack article {
    grid-area: auto;
    order: initial !important;
    translate: 0 0 !important;
    scale: 1 !important;
    opacity: 1 !important;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .62);
  }

  .cap-stack article::before {
    display: none;
  }

  .cap-stack article > header {
    padding: .85rem 1rem;
  }

  .cap-stack article > header > h2 {
    max-width: 100%;
    opacity: 1 !important;
    font-size: 1rem;
  }

  .cap-stack article > header > label {
    display: none;
  }

  .cap-stack article > div {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 1rem 1.15rem;
  }

  .cap-stack article img {
    height: 170px;
    opacity: 1 !important;
  }

  .cap-stack article p {
    opacity: 1 !important;
    font-size: .92rem;
    line-height: 1.6;
  }

  .ia-ciber-cards {
    gap: 1.25rem;
    margin: 1.5rem 0 2.2rem;
  }

  .blog-card {
    box-shadow: 0 18px 42px rgba(0, 0, 0, .62);
  }

  .blog-card:hover {
    transform: none;
  }

  .blog-card .meta {
    min-height: 180px;
  }

  .blog-card:hover .photo {
    transform: none;
  }

  .blog-card .description {
    padding: 1.1rem 1.1rem 1.25rem;
    row-gap: .75rem;
  }

  .blog-card .description h1 {
    font-size: 1.16rem;
    line-height: 1.25;
  }

  .blog-card .description h2 {
    font-size: .74rem;
    line-height: 1.45;
  }

  .blog-card .description p,
  .tab-body,
  .tab-list {
    font-size: .92rem;
    line-height: 1.62;
  }

  .map-card {
    padding: 1rem;
  }

  .forti-embed iframe {
    height: 360px;
  }

  .map-guard {
    display: none;
  }

  .program-tabs {
    margin-top: 1.5rem;
  }

  .tabs {
    padding: .85rem;
    gap: .65rem;
  }

  .tab-label {
    flex: 1 1 100%;
    min-width: 100%;
    padding: .72rem;
    gap: .65rem;
    border-right: 0;
    border-bottom: 0;
  }

  .tab-icon {
    width: 36px;
    height: 36px;
  }

  .tab-text {
    font-size: .86rem;
  }

  .tab__content {
    padding: 1rem;
  }

  .tab-headline {
    font-size: .98rem;
    line-height: 1.45;
  }

  .tab-list {
    padding-left: 1.05rem;
  }

  .presentation {
    min-height: auto;
    padding-top: .25rem;
  }

  .id-card {
    max-width: 100%;
    padding: 1.25rem;
  }

  .id-card-layout {
    gap: 1.15rem;
  }

  .card-left img {
    width: min(170px, 70vw);
    margin-top: 0;
  }

  .contact-name {
    font-size: 1.45rem;
  }

  .partners-section {
    width: 100%;
    max-width: 100%;
    padding: 2.3rem 0 1.8rem;
    gap: 1.2rem;
  }

  .partners-header {
    padding-inline: 1.25rem;
  }

  .eyebrow {
    max-width: calc(100vw - 2.5rem);
    font-size: .72rem;
    line-height: 1.35;
    padding: .5rem .75rem;
  }

  .logo-marquee {
    width: 100%;
    max-width: 100%;
  }

  .marquee-track {
    gap: 28px !important;
    animation-duration: 34s !important;
  }

  .logo-item {
    min-width: 128px;
    padding: .75rem .9rem;
  }

  .logo-item img {
    max-width: 118px;
    max-height: 52px;
    object-fit: contain;
  }

  .site-footer {
    padding: 2.4rem 1.25rem 3rem;
  }

  .footer-logo {
    height: 72px;
  }

  .footer-nav {
    display: none;
  }

  .footer-nav ul {
    gap: .75rem 1rem;
  }

  .footer-nav a {
    font-size: .75rem;
    letter-spacing: .06em;
  }

  .footer-legal {
    font-size: .76rem;
    line-height: 1.58;
  }

  .recon-cursor,
  .laser-line {
    display: none !important;
  }

  .no-cursor,
  a,
  button,
  [role="button"],
  input,
  select,
  textarea {
    cursor: auto;
  }
}

@media (max-width: 520px) {
  body {
    padding-top: 66px;
  }

  .nav {
    position: relative;
    min-height: 64px;
    padding: .45rem .75rem;
  }

  .brand img {
    height: 42px;
    max-width: calc(100vw - 102px);
  }

  .mobile-menu {
    left: .75rem;
    right: .75rem;
    top: calc(100% + 6px);
    padding: 12px;
  }

  .mobile-menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .mobile-menu a {
    padding: 13px 14px;
    font-size: .8rem;
  }

  .hero {
    padding: 2rem 1rem 2rem;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 10vw, 2.65rem);
  }

  .cta .btn {
    width: 100%;
  }

  .wrap,
  .wrap-contact {
    padding-inline: 1rem;
  }

  .retro-title {
    font-size: clamp(.96rem, 5.5vw, 1.28rem);
  }

  .hero-visual {
    min-height: 190px;
  }

  .hero-img {
    min-height: 165px;
  }

  .forti-embed iframe {
    height: 300px;
  }

  .contact-name {
    font-size: 1.18rem;
  }

  .cargo,
  .contacto-block {
    font-size: .88rem;
  }

  .footer-logo {
    height: 58px;
  }
}
