/* =========================================================
   Ajustes exclusivos para teléfonos
   ========================================================= */

/* La navegación móvil no interviene en escritorio. */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  /* Base y encabezado */
  html {
    scroll-padding-top: 76px;
  }

  body {
    overflow-x: hidden;
  }

  .header {
    height: 76px;
    padding: 0 20px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .original-brand {
    font-size: 19px;
    letter-spacing: -.6px;
  }

  .header > #navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 13px;
    place-content: center;
    gap: 5px;
    border: 1px solid #d9e3ed;
    border-radius: 7px;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
  }

  .mobile-menu {
    position: fixed;
    top: 88px;
    right: 20px;
    left: 20px;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px;
    border: 1px solid #d9e3ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px #001b3530;
  }

  .mobile-menu:target {
    display: flex;
  }

  .mobile-menu > a:not(.mobile-menu-close) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .mobile-menu > a:last-child {
    border-bottom: 0;
  }

  .mobile-menu-close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 28px;
    height: 28px;
  }

  .mobile-menu-close::before,
  .mobile-menu-close::after {
    position: absolute;
    top: 13px;
    left: 3px;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    content: '';
  }

  .mobile-menu-close::before {
    transform: rotate(45deg);
  }

  .mobile-menu-close::after {
    transform: rotate(-45deg);
  }

  /* Hero */
  .hero {
    min-height: 710px;
  }

  .hero-copy {
    max-width: none;
    padding: 70px 24px 118px;
  }

  .hero-media video {
    object-position: 65% center;
  }

  .hero-copy .eyebrow {
    gap: 10px;
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 1.2px;
  }

  h1 {
    font-size: clamp(44px, 12.5vw, 44px);
    letter-spacing: -2.8px;
    line-height: 1.02;
    margin-bottom: 24px;
  }

  .hero-description {
    max-width: 320px;
    font-size: 19px;
  }

  .hero-detail {
    max-width: 335px;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-secondary {
    padding: 12px 0;
  }

  .hero-actions .button,
  .hero-secondary,
  .scroll-cue {
    font-size: 16px;
  }

  .scroll-cue {
    letter-spacing: .6px;
  }

  .hero-side {
    display: none;
  }

  .hero-bottom {
    right: 24px;
    bottom: 22px;
    left: 24px;
  }

  /* Presencia y secciones */
  .presence {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 26px 20px;
  }

  .presence .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 1.2px;
  }

  .presence > span:not(.eyebrow) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 4px 7px;
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
  }

  .presence > span:nth-child(3),
  .presence > span:nth-child(4) {
    border-left: 1px solid #cdddeb;
  }

  .presence i {
    flex: 0 0 auto;
    margin-left: 5px;
  }

  .section {
    padding: 68px 24px;
  }

  .section-heading {
    display: block;
    margin-bottom: 34px;
  }

  .section-heading > .eyebrow {
    padding-top: 0;
  }

  .section .eyebrow,
  .about .eyebrow,
  .approach .eyebrow {
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 1.2px;
  }

  h2,
  .about h2,
  .approach h2,
  .project h2 {
    font-size: clamp(32px, 9vw, 40px);
    letter-spacing: -1.8px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .solution {
    min-height: 320px;
    padding: 26px;
  }

  .solution p,
  .card-footer,
  .stats p,
  .contact-details,
  .footer-top > a:last-child,
  .art-caption {
    font-size: 16px;
  }

  .card-footer,
  .art-caption {
    letter-spacing: .4px;
  }

  .art-caption {
    max-width: calc(100% - 48px);
    line-height: 1.4;
  }

  .is-cinematic .art-caption {
    font-size: 13px;
    letter-spacing: .4px;
  }

  .card-top {
    margin-bottom: 26px;
  }

  /* Perfil, experiencia y contacto */
  .about,
  .approach-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-story > p:not(.eyebrow) {
    max-width: none;
    font-size: 19px;
  }

  .section-heading p:not(.eyebrow),
  .alliances-heading p:not(.eyebrow),
  .stats h3,
  .principles p,
  .is-cinematic .principles p,
  .project p:not(.eyebrow),
  .project .button,
  .footer-top > p {
    font-size: 16px;
  }

  .stats strong {
    font-size: 55px;
  }

  .alliances-heading {
    display: block;
    margin-bottom: 30px;
  }

  .alliances-heading > .eyebrow {
    padding-top: 0;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .partner-card {
    min-height: 0;
    padding: 14px;
  }

  .partner-logo {
    min-height: 96px;
    margin-bottom: 14px;
  }

  .partner-logo img {
    max-height: 96px;
  }

  .partner-card h3,
  .partner-card p,
  .partner-banner p {
    font-size: 16px;
  }

  .partner-card p {
    line-height: 1.45;
  }

  .partner-banners {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .partner-banner {
    padding: 14px;
  }

  .partner-banner img {
    height: 112px;
  }

  .approach-visual {
    position: static;
  }

  .infrastructure-art {
    height: 260px;
    margin-top: 24px;
  }

  .rack-back {
    left: 11%;
  }

  .rack-front {
    left: 42%;
  }

  .principles > div,
  .principles > div:first-child {
    min-height: 0;
    padding: 32px 0;
  }

  .project {
    display: block;
  }

  .project-arrow {
    display: none;
  }

  .contact-details {
    align-items: flex-start;
    flex-direction: column;
  }

  /* Pie de página */
  footer {
    padding: 38px 24px 20px;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-top {
    padding-bottom: 30px;
  }

  .footer-bottom {
    gap: 12px;
    padding-top: 18px;
  }
}
