/* Adaptación móvil. La composición de escritorio se conserva. */
.menu-toggle, .header nav .mobile-contact, .concept-photo { display: none; }
.text-link .icon-arrow { display: none; }
button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
@media (max-width: 768px) {
  html { scroll-padding-top: calc(104px + env(safe-area-inset-top)); }
  .wrap { width: calc(100% - 48px); }
  .header { display: flex; height: auto; min-height: 84px; gap: 20px; padding: calc(12px + env(safe-area-inset-top)) 24px 12px; border-bottom: 1px solid #1818180a; }
  .header .brand { width: 140px; height: 58px; margin: 0; transform: none; }
  .header .brand img { width: 208px; height: 208px; max-width: none; left: -34px; top: -77px; }
  .header > .button.small { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
  .menu-toggle span { width: 22px; height: 1.5px; background: currentColor; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .header nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--paper); padding: 18px 24px 28px; border-bottom: 1px solid #18181816; max-height: calc(100dvh - 100px - env(safe-area-inset-top)); overflow-y: auto; }
  .header nav.is-open { display: grid; gap: 4px; }
  .header nav a, .header nav a:last-child { display: block; padding: 12px 0; min-height: 48px; font-size: 24px; }
  .hero, .services, .about { min-height: 0; display: block; background-image: none; padding-bottom: 0; }
  .section { padding-top: 72px; }
  .hero-layout { padding: 34px 0 30px; background: none; }
  .hero-copy, .about-copy, .service-list, .services .section-heading { width: 100%; max-width: none; min-width: 0; }
  .hero h1 { font-size: clamp(42px, 11.2vw, 52px); line-height: 1.04; margin-bottom: 24px; text-wrap: balance; }
  .hero .intro, .section-heading > p, .about-copy > p:not(.eyebrow) { font-size: 18px; line-height: 1.55; max-width: 38em; }
  .eyebrow, .hero .eyebrow { font-size: 14px; margin-bottom: 24px; }
  h2, .about h2 { font-size: clamp(40px, 10.7vw, 52px); line-height: 1.08; margin-bottom: 24px; text-wrap: balance; overflow-wrap: normal; }
  h2 br { display: none; }
  .actions { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 26px; }
  .button { max-width: 100%; min-height: 48px; padding: 17px 20px; gap: 16px; }
  .actions .button { padding: 17px 20px; }
  .text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; background: none; font-size: 15px; padding: 10px 0; }
  .text-link .icon-arrow { display: block; width: 17px; height: 17px; }
  .hero::after, .services::after, .about::after { content: ''; display: block; width: 100%; margin-top: 0; background-repeat: no-repeat; background-position: right bottom; }
  .hero::after { height: auto; aspect-ratio: 1.4; background-image: url('../assets/portada-geometria-cairo.png'); background-size: auto 125%; }
  .services::after { height: auto; aspect-ratio: 1.5; background-image: url('../assets/servicios-geometria-cairo.png'); background-size: auto 130%; margin-top: 36px; }
  .section-heading { display: block; }
  .section-heading > p { margin: 0; }
  .service-list { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .service-list article { max-width: none; }
  .service-list h3 { font-size: 23px; margin-bottom: 10px; }
  .service-list p, .steps p { max-width: 38em; font-size: 16px; line-height: 1.55; }
  .vision { padding-bottom: 64px; }
  .portfolio-image { display: none; }
  .portfolio-labels { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .portfolio-labels > span { display: block; font-size: 22px; }
  .concept-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 18px; }
  .portfolio-labels small { font-size: 16px; line-height: 1.5; margin-top: 6px; }
  .concept-note { font-size: 13px; line-height: 1.5; margin-top: 30px; }
  .about::after { height: auto; aspect-ratio: 1.4; background-image: url('../assets/05-estudio.png'); background-size: auto 115%; margin-top: 34px; }
  .signature { margin-top: 26px; font-size: 14px; }
  .process { padding-top: 72px; padding-bottom: 72px; }
  .steps { grid-template-columns: 1fr; gap: 30px; margin-top: 32px; }
  .steps article, .steps article + article { padding: 0; border: 0; }
  .steps article::before { width: 38px; height: 1px; margin-bottom: 16px; }
  .steps h3 { font-size: 26px; margin-bottom: 10px; }
  .contact { padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--clay); }
  .contact h2 { font-size: clamp(38px, 10.2vw, 50px); line-height: 1.1; }
  .contact h2 span { display: block; }
  .contact .email { font-size: 16px; max-width: 100%; min-height: 44px; padding: 12px 0; margin-top: 14px; }
  .contact-channels { gap: 8px 24px; margin-top: 4px; }
  .contact footer { display: grid; grid-template-columns: 1fr; height: auto; min-height: 0; gap: 22px; margin-top: 28px; padding: 0; align-items: start; }
  .contact footer::before { content: ''; display: block; width: 100%; height: auto; aspect-ratio: 1.6; background: url('../assets/06-contacto.png') right bottom / auto 135% no-repeat; }
  .footer-logo { width: 172px; height: 69px; margin: 4px 0; transform: none; }
  .footer-logo img { width: 260px; height: 260px; left: -44px; top: -97px; }
  .contact footer p { font-size: 14px; max-width: none; }
  .contact footer > a:last-child { justify-self: start; text-align: left; min-height: 44px; padding: 12px 0; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 40px); }
  .header { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 39px; }
  h2, .about h2 { font-size: 38px; }
}
/* Texto pequeño con contraste suficiente sobre terracota. */
@media (max-width: 768px) {
  .contact .eyebrow, .contact > .wrap > p:not(.eyebrow), .contact .email,
  .contact-channels, .contact footer p, .contact footer > a:last-child { color: var(--ink); }
}
.skip { z-index: 30; }
