/* Solo móvil: escritorio conserva sus reglas originales. */
@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
    .simple-page { height: auto; min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column; }
    .simple-header { position: relative; inset: auto; margin: max(24px, env(safe-area-inset-top)) 8vw 0; display: flex; align-items: center; justify-content: space-between; }
    .simple-wordmark { gap: 14px; }
    .simple-wordmark img { width: 30px; }
    .simple-wordmark span { font-size: 19px; }
    .simple-page .simple-layout { display: flex; flex: 1 0 auto; flex-direction: column; gap: 0; margin: 0; }
    .simple-nav { font-size: 12px; gap: .25em; }
    .simple-left { display: block; min-height: 0; padding: 56px 8vw 44px; }
    .simple-copy { align-self: center; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
    .simple-copy p + p { margin-top: 1.4em; }
    /* Dos zonas flexibles iguales mantienen el contacto en el centro de la pantalla. */
    .simple-page.contact-page { display: grid; grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr); }
    .contact-page .simple-header { align-self: start; }
    .contact-page .simple-layout { flex: none; width: 100%; }
    .contact-page .simple-left { padding-block: 24px; }
    .simple-page.contact-page .home-page-footer { align-self: end; }
    .contact-page .simple-copy { text-align: left; font-size: 18px; line-height: 1.8; }
    .contact-page .simple-gallery { display: none; }
    .contact-page .simple-copy p + p { margin-top: 1.4em; }
    .contact-page .simple-copy a { display: inline-block; padding-block: 5px; }
    .simple-gallery { width: 100%; height: auto; margin: 0; aspect-ratio: var(--gallery-ratio, 1402 / 1122); }
    .simple-gallery .simple-slide { position: absolute; inset: 0; overflow: hidden; }
    .simple-gallery .simple-slide picture { display: block; width: 100%; height: 100%; }
    .simple-gallery .simple-slide img { width: 100%; height: 100%; object-fit: contain; }
    .simple-page .home-page-footer { flex-shrink: 0; margin: auto 0 0; padding: 24px 8vw max(24px, env(safe-area-inset-bottom)); font-size: 13px; }
    .simple-page .home-page-footer .home-legal { justify-content: flex-start; gap: 4px 16px; }
    .home-page-footer .home-legal a { display: inline-flex; align-items: center; min-height: 44px; }
    .simple-header .simple-nav { margin: 0; }
    .simple-header .simple-nav.is-enhanced .simple-nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 10px; border: 0; background: none; color: #474741; cursor: pointer; }
    .simple-nav-toggle span { display: block; width: 26px; height: 1px; background: currentColor; }
    .simple-left .simple-nav:not(.is-enhanced) { margin-top: 28px; }
    .simple-left .simple-nav:not(.is-enhanced) a { padding: 14px; }
    body.mobile-menu-open { overflow: hidden; }
    .mobile-menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: max(24px, env(safe-area-inset-top)) 8vw max(24px, env(safe-area-inset-bottom)); border: 0; background: transparent; color: inherit; font: inherit; }
    .mobile-menu::backdrop { background: rgba(246, 245, 241, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
    .mobile-menu[open] { display: flex; flex-direction: column; animation: mobile-menu-in 280ms ease both; }
    .mobile-menu[open]::backdrop { animation: mobile-menu-in 280ms ease both; }
    .mobile-menu-close { align-self: flex-end; flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
    .mobile-menu-close::before, .mobile-menu-close::after { content: ''; grid-area: 1 / 1; width: 26px; height: 1px; background: currentColor; transform: rotate(45deg); }
    .mobile-menu-close::after { transform: rotate(-45deg); }
    .mobile-menu .simple-nav-links { position: static; transform: none; width: 100%; min-width: 0; margin-block: 12px 0; padding: 0 9px 0 0; border: 0; background: transparent; align-items: flex-end; gap: 2px; text-align: right; }
    .mobile-menu .simple-nav-links::before { content: none; }
    .mobile-menu .simple-nav-links a { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; padding: 10px 0 10px 16px; border: 0; font-family: 'Afacad Flux', sans-serif; font-style: normal; font-weight: 400; font-size: 16px; line-height: 1.6; text-decoration: none; }
    .mobile-menu .simple-nav-links a[aria-current] { font-weight: 400; text-decoration: underline; text-underline-offset: .3em; }
    .mobile-menu .simple-nav-links a::after { content: none; }
    .mobile-menu a:focus-visible, .mobile-menu button:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
    .legal-index-page .home-sidebar { padding: 28px 8vw 32px; }
    .legal-index-page .home-copy { width: auto; margin: 32px 0 0; font-size: 16px; line-height: 1.6; }
    .legal-menu a { display: inline-flex; align-items: center; min-height: 44px; }
    .legal-index-page .legal-document { width: auto; margin: 0 8vw; padding: 0 0 32px; font-size: 16px; line-height: 1.6; }
    .project-detail-copy { position: static; width: auto; max-height: none; overflow: visible; margin: 84px 8vw 36px; font-size: 16px; line-height: 1.6; }
    .project-detail-gallery { width: 100%; margin: 0; padding: 0; gap: 28px; }
    .project-detail-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
}
@keyframes mobile-menu-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .mobile-menu[open], .mobile-menu[open]::backdrop { animation: none; }
}
