/* Loaded after the shared language styles so mobile controls stay in flow. */
.work-swipe-hint { display: none; }

@media (max-width: 767px) {
  .work-horizontal-section { scroll-margin-top: 90px; }
  .work-horizontal-section > .work-intro-card {
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 36px var(--gutter) 20px;
    border: 0;
    gap: 18px;
    justify-content: flex-start;
  }
  .work-intro-title { font-size: clamp(36px, 10vw, 50px); line-height: .98; }
  .work-intro-desc { max-width: 34rem; font-size: 13px; line-height: 1.65; }
  .work-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    color: var(--dune-ink);
  }
  .work-swipe-label { font: 600 10px/1.5 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
  .work-swipe-arrow { font: 400 30px/1 var(--font-serif); animation: work-swipe-nudge 2.2s ease-in-out infinite; }
  .work-horizontal-wrapper {
    height: auto;
    padding: 12px 0 32px;
    scroll-padding-left: var(--gutter);
    overscroll-behavior-x: contain;
  }
  .work-horizontal-track { align-items: stretch; gap: 16px; }
  .work-card,
  .work-card.aspect-tall,
  .work-card.aspect-wide,
  .work-card.aspect-square {
    width: min(84vw, 360px);
    height: clamp(350px, 64vh, 470px);
    padding: 16px;
    scroll-snap-align: start;
  }
  .work-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .work-card-title { font-size: 24px; }
  .work-card-concept { max-width: none; font-size: 11px; line-height: 1.5; }
  .work-card-09 .work-card-title { flex: none; }
  .work-visual-stage { min-height: 0; }
}

@keyframes work-swipe-nudge { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .work-swipe-arrow { animation: none; } }
@media (max-width: 767px) {
  .hero-scene {
    gap: 3rem;
    padding-top: clamp(9rem, 20vh, 12rem);
    padding-top: clamp(9rem, 20svh, 12rem);
    padding-bottom: clamp(3rem, 5vh, 4rem);
    padding-bottom: clamp(3rem, 5svh, 4rem);
  }
  .hero-monument-wrap {
    margin: 0 auto;
    padding: 0;
  }
  .hero-monument { gap: 0; }
  .hero-letter { height: clamp(4.5rem, 17vw, 7rem); }
  .hero-bottom-grid { gap: 1.5rem; padding-top: 1.5rem; }
  .hero-tagline {
    max-width: 28rem;
    margin: 0 0 .7rem;
    font-size: clamp(1.7rem, 5.6vw, 2.5rem);
    line-height: 1.08;
  }
  .hero-subcopy {
    max-width: 30rem;
    margin: 0;
    font-size: .88rem;
    line-height: 1.6;
  }
  .hero-center-badge { display: none; }
  .hero-cta-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    margin-top: .25rem;
  }
  .hero-primary-cta { min-height: 50px; padding: .9rem 1.2rem; }
  .hero-secondary-link { min-height: 44px; }
}

@media (max-width: 767px) {
  .booking-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 10px;
    height: auto;
    min-height: 76px;
    padding: 12px 16px;
  }
  .booking-header .booking-brand { grid-column: 1; grid-row: 1; margin: 0; }
  .booking-header .booking-brand img { width: 64px; }
  .booking-header .header-center { display: none; }
  .booking-header .dune-language-switcher {
    position: static;
    grid-column: 3;
    grid-row: 1;
    gap: 2px;
    margin: 0;
    transform: none;
  }
  .booking-header .dune-language-switcher > span { display: none; }
  .booking-header .dune-language-switcher button {
    min-width: 32px;
    min-height: 40px;
    padding: 8px 5px;
    font-size: 10px;
  }
  .booking-header .header-exit {
    position: static;
    grid-column: 2;
    grid-row: 1;
    min-height: 40px;
    gap: 5px;
    padding: 6px 8px;
    white-space: nowrap;
  }
  .booking-header .header-exit-label { font-size: 8px; letter-spacing: .06em; }
  .booking-step { padding: 28px 20px; }
  .step-intro { gap: 16px; margin-bottom: 28px; }
  .step-intro .step-kicker { margin-bottom: 0; }
  .step-intro h1, .step-intro h2 { font-size: clamp(40px, 11.5vw, 60px); line-height: .98; }
  .step-intro p { font-size: 13px; line-height: 1.65; }
  .form-actions { padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); }
  .action-status:empty { display: none; }
  .site-footer { padding: 36px 20px calc(24px + env(safe-area-inset-bottom)); }
  .site-footer .footer-top-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 24px;
    gap: 24px;
  }
  .site-footer .footer-identity, .site-footer .footer-social-section {
    width: 100%;
    align-items: center;
    gap: 12px;
  }
  .site-footer .footer-official-logo { height: 48px; }
  .site-footer .footer-brand-loc, .site-footer .footer-social-heading {
    font-size: 10px;
    letter-spacing: .12em;
    line-height: 1.6;
    text-align: center;
  }
  .site-footer .footer-social-row { justify-content: center; gap: 12px; }
  .site-footer .footer-social-btn { width: 44px; height: 44px; }
  .site-footer .footer-bottom-meta { padding: 20px 0 0; gap: 14px; }
  .site-footer .footer-copyright { font-size: 9px; line-height: 1.6; letter-spacing: .12em; }
  .site-footer .footer-legal-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(2px, .9vw, 8px);
    width: 100%;
  }
  .site-footer .footer-legal-sep { display: inline; flex: 0 0 auto; }
  .site-footer .footer-legal-link {
    display: inline-block;
    flex: 0 0 auto;
    padding: 8px 1px;
    font-size: clamp(8px, 2.1vw, 10px);
    line-height: 1.5;
    letter-spacing: .05em;
    white-space: nowrap;
  }
}

/* Main-site navigation: compact editorial rows with a reachable bottom action. */
@media (max-width: 767px) {
  .site-header.menu-open,
  .site-header.menu-open.is-scrolled {
    background: var(--dune-ivory);
    border-bottom: 1px solid rgba(23, 21, 19, .12);
    color: var(--dune-ink);
    transform: none;
  }

  .site-header.menu-open .brand-official-logo { filter: none; }
  .site-header.menu-open .site-brand { position: relative; z-index: 50; }
  .site-header-inner > .dune-language-switcher { z-index: 51; }
  .site-header-inner > .dune-language-switcher button { min-height: 40px; }
  .site-header.menu-open .menu-toggle { color: var(--dune-ink); }
  .site-header.menu-open .menu-toggle-lines span { background-color: var(--dune-ink); }

  .site-header .menu-toggle { min-height: 48px; gap: .7rem; }
  .site-header .menu-toggle > span:first-child {
    min-width: 4.1rem;
    text-align: right;
  }

  .site-header .menu-toggle-lines {
    position: relative;
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    isolation: isolate;
  }

  .site-header .menu-toggle-lines::before {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(195, 144, 70, .52);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.55) rotate(-90deg);
    transition: opacity .5s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
  }

  .site-header .menu-toggle-lines span {
    position: absolute;
    left: 3px;
    width: 26px;
    height: 1.5px;
    transform-origin: center;
    transition: transform .72s cubic-bezier(.2, 1.25, .3, 1), background-color .35s ease;
  }

  .site-header .menu-toggle-lines span:first-child { top: 11px; }
  .site-header .menu-toggle-lines span:last-child { top: 20px; }

  .site-header.menu-open .menu-toggle-lines::before {
    opacity: 1;
    transform: scale(1) rotate(0);
  }

  .site-header.menu-open .site-nav.is-open ~ .menu-toggle .menu-toggle-lines span:first-child {
    transform: translateY(4.5px) rotate(225deg);
  }

  .site-header.menu-open .site-nav.is-open ~ .menu-toggle .menu-toggle-lines span:last-child {
    transform: translateY(-4.5px) rotate(-225deg);
  }

  .site-header.menu-open .menu-toggle > span:first-child {
    animation: menu-label-arrive .55s var(--ease-editorial) both;
  }

  .site-nav {
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(6.5rem + env(safe-area-inset-top)) clamp(1.25rem, 6vw, 2.25rem)
      calc(1.5rem + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--dune-ivory);
    color: var(--dune-ink);
    visibility: hidden;
    transform: translateX(102%);
    transition: transform .45s var(--ease-editorial), visibility .45s;
  }

  .site-nav.is-open {
    visibility: visible;
    transform: translateX(0);
  }

  .site-nav .dune-language-switcher {
    align-self: flex-start;
    gap: .4rem;
    margin: 0 0 clamp(.9rem, 2.5vh, 1.6rem);
  }

  .site-nav .dune-language-switcher button {
    min-width: 44px;
    min-height: 44px;
    font-size: .7rem;
  }

  .site-nav .nav-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.5rem;
    align-items: center;
    column-gap: .65rem;
    width: 100%;
    min-height: clamp(4rem, 10vh, 5rem);
    border-bottom: 1px solid rgba(23, 21, 19, .18);
    color: var(--dune-ink);
    font-size: clamp(2rem, 7.2vw, 2.75rem);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: 1;
    opacity: 1;
  }

  .site-nav .nav-link::before {
    content: none;
    display: none;
  }

  .site-nav .nav-link::after {
    content: "↗";
    position: static;
    width: auto;
    height: auto;
    background: none;
    color: var(--dune-taupe);
    font: 400 1.1rem/1 var(--font-sans);
    text-align: right;
    transform: none;
    transition: none;
  }

  .site-nav .nav-link[href="#proceso"] { margin-bottom: 0; }

  .site-nav .nav-cta {
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    margin-top: 0;
    margin-bottom: clamp(2rem, 5vh, 3rem);
    padding: .95rem 1.15rem;
    border-color: var(--dune-ink);
    background: var(--dune-ink);
    color: var(--dune-ivory);
    font-size: .75rem;
  }

  .site-nav .nav-cta-bg { display: none; }
  .site-nav .nav-cta:hover { opacity: .86; }
  .site-header.menu-open .menu-toggle { min-width: 44px; min-height: 44px; }
}

@media (max-width: 767px) and (max-height: 620px) and (orientation: landscape) {
  .site-nav {
    padding-top: calc(4.7rem + env(safe-area-inset-top));
    padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
  }
  .site-nav .dune-language-switcher { margin-bottom: .5rem; }
  .site-nav .dune-language-switcher button { min-height: 36px; min-width: 38px; }
  .site-nav .nav-link { min-height: 2.55rem; font-size: clamp(1.6rem, 4.5vw, 2.15rem); }
  .site-nav .nav-cta { min-height: 48px; margin-bottom: .8rem; }
}

@keyframes menu-label-arrive {
  from { opacity: .35; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Let contact content shrink within the grid instead of clipping the whole column. */
.location-contact-col,
.location-map-col,
.location-contact-cards,
.contact-card-info,
.location-detail-block { min-width: 0; }
.contact-card-value,
.detail-text { overflow-wrap: break-word; overflow-wrap: anywhere; }
.contact-card-arrow { flex-shrink: 0; }

@media (max-width: 1024px) {
  .location-main-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .contact-card { gap: 8px; padding: 12px 10px; min-height: 72px; }
  .contact-card-icon { width: clamp(26px,8vw,40px); height: clamp(26px,8vw,40px); }
  .contact-card-icon svg { width: clamp(16px,5vw,20px); height: clamp(16px,5vw,20px); }
  .contact-card-label { font-size: clamp(8px,2.3vw,10px); letter-spacing: .1em; }
  .contact-card-value {
    font-size: clamp(10px,3.3vw,15.2px);
    line-height: 1.6;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .contact-card-arrow { font-size: clamp(12px,3.7vw,17.6px); }
}

/* Ordinary media queries also support mobile browsers without container queries. */
@media (max-width: 600px) {
  .zone-grid { grid-template-columns: minmax(0, 1fr); }
  .zone-grid button { min-width: 0; }
  .zone-grid button > span:first-child { min-width: 0; overflow-wrap: break-word; }
  .button-next { white-space: nowrap; padding: .9rem .75rem; }
  .button-next span { margin-left: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
  .site-header .menu-toggle-lines::before,
  .site-header .menu-toggle-lines span { transition: none; }
  .site-header.menu-open .menu-toggle > span:first-child { animation: none; }
}

/* A quiet directional cue, only while the complete hero is at rest. */
.hero-scroll-cue{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);width:24px;height:28px;color:var(--dune-taupe,#9c8a73);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .4s ease,visibility 0s linear .4s}
.hero-scroll-cue.is-visible{opacity:.75;visibility:visible;transition:opacity .4s ease,visibility 0s}
.hero-scroll-cue svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
@media(prefers-reduced-motion:reduce){.hero-scroll-cue{transition:none}.hero-scroll-cue svg{animation:none}}
@media(max-width:767px){
  .hero-scene{padding-bottom:76px}
  .hero-scroll-cue{display:grid;place-items:center;width:38px;height:38px;border:1px solid #c6bbaa;border-radius:50%;background:#f3eee726;box-sizing:border-box}
  .hero-scroll-cue svg{width:19px;height:24px}
}
