/* Adaptación por espacio disponible. La dirección de arte de escritorio permanece. */
:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
body {
  overflow-wrap: break-word;
}
.contact-form input:not([type="checkbox"]):focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.contact-page-shell .contact-field input::placeholder,
.contact-page-shell .contact-field textarea::placeholder {
  color: var(--muted);
}
.contact-consent input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.contact-page-shell .contact-consent {
  align-items: center;
  min-height: 44px;
}
.contact-page-shell .contact-submit-row button {
  min-height: 44px;
}
.contact-page-shell .contact-panel-form {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  overscroll-behavior: contain;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.about-instant-media {
  max-width: 100%;
}
.contact-photo-stage img {
  display: block;
}
.login-panel {
  width: min(480px, calc(100% - 40px));
  margin: auto;
}
.login-panel input {
  min-height: 48px;
  font-size: 16px;
}
.login-panel button {
  min-height: 48px;
  width: 100%;
}
.login-panel h1 {
  font-size: clamp(40px, 7vw, 64px);
}
.login-panel label {
  display: grid;
  gap: 8px;
}
.login-page {
  padding: 32px 0;
  min-height: 100dvh;
}
.editor-photo-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 24px;
  font-size: 12px;
}
.editor-photo-search input {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #bcbfb2;
  background: #fbfaf7;
}
.hero-picker:has(.editor-photo-search)[open] {
  display: flex;
  flex-direction: column;
}
.hero-picker:has(.editor-photo-search) .hero-picker-scroll {
  height: auto;
  flex: 1;
  min-height: 0;
}
.hero-picker .hero-picker-heading {
  flex-shrink: 0;
}
.hero-picker button[hidden] {
  display: none !important;
}
.hero-picker-heading button {
  min-width: 44px;
  min-height: 44px;
}
.editor-tools-toggle {
  display: none;
}
.editor-empty {
  padding: 20px 24px;
}
@media (min-width: 901px) and (max-width: 1200px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    padding-inline: 32px;
  }
  .about-instant-media {
    width: 100%;
  }
  .about-instant {
    width: 100%;
  }
  .about-copy-panel {
    transform: translateY(-12px);
  }
  .about-layout h1 {
    font-size: clamp(44px, 5vw, 58px);
    margin-bottom: 28px;
  }
  .about-layout p.lead {
    font-size: 15px;
  }
  .contact-page-shell .contact-layout {
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  }
  .contact-page-shell .contact-form-panel {
    padding-inline: 34px;
  }
  .contact-shared-title {
    left: 34px;
    right: 34px;
  }
  .contact-shared-title h2 {
    font-size: 40px;
  }
  .contact-panel-nav {
    right: 34px;
  }
  .contact-page-shell .contact-form {
    gap: 0 20px;
  }
  .contact-page-shell .contact-lead {
    font-size: 14px;
  }
}
@media (max-width: 1100px) {
  .hero-editor-toolbar {
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .hero-editor-toolbar > div:last-child {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
  }
  .hero-editor-toolbar a,
  .hero-editor-toolbar button {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 40px;
  }
  .hero-editor-actions {
    flex-wrap: wrap;
  }
  .contact-editor-toolbar,
  .about-editor-toolbar {
    gap: 12px;
  }
  .contact-editor-toolbar > div:last-child,
  .about-editor-toolbar > div:last-child {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
  .contact-photo-controls {
    flex-wrap: wrap;
  }
  .contact-variant-tabs {
    flex-basis: 100%;
  }
  .contact-variant-tabs button {
    flex: 1;
  }
}
/* Tablet vertical y móvil: lectura nativa dentro de cada pantalla,
   conservando la transición lateral entre secciones. */
@media (max-width: 900px) {
  .journey-screen {
    height: 100dvh;
  }
  .journey-screen-about,
  .journey-screen-contact {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }
  .journey-away {
    height: 100dvh;
  }
  .journey-screen .site-header {
    position: sticky;
    top: 0;
    z-index: 8;
    background: var(--paper);
  }
  .site-header,
  .about-page-shell > .site-header {
    height: 96px;
    padding: 14px 24px;
    gap: 10px;
  }
  .site-header .brand img {
    width: 185px;
  }
  .site-header nav {
    gap: 22px;
  }
  .site-header nav a {
    font-size: 12px;
    min-height: 40px;
  }
  .about-page-shell,
  .about-edit-mode .about-page-shell,
  .contact-page-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }
  .about-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 32px clamp(24px, 7vw, 64px) 46px;
    gap: 38px;
    flex: 1;
  }
  .about-visual,
  .about-copy-panel {
    transform: none;
  }
  .about-visual {
    width: 100%;
  }
  .about-instant {
    width: min(100%, 580px);
    padding: 12px 12px 38px;
  }
  .about-instant-media {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
  }
  .about-instant figcaption {
    font-size: 10px;
    margin-top: 10px;
  }
  .about-copy-panel {
    height: auto;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    display: block;
    padding: 0;
  }
  .about-layout h1 {
    font-size: clamp(44px, 7.5vw, 64px);
    line-height: 1.02;
    padding: 0;
    margin: 0 0 28px;
  }
  .about-copy-scroll {
    overflow: visible;
    height: auto;
    padding: 0;
  }
  .about-layout p {
    font-size: 15px;
    line-height: 1.85;
  }
  .about-layout p.lead {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 28px;
  }
  .about-layout .text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
  }
  .about-page-admin {
    left: auto;
    right: 12px;
    bottom: 8px;
  }
  body.journey-about-active > .page-scrollbar,
  .about-edit-mode > .page-scrollbar {
    display: none;
  }
  .contact-page-shell .contact-layout {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .contact-visual {
    height: clamp(300px, 51vw, 460px);
    min-height: 0;
    flex-shrink: 0;
  }
  .contact-photo-stage {
    height: 100%;
  }
  .contact-page-shell .contact-form-panel {
    width: 100%;
    max-width: 720px;
    min-height: 0;
    max-height: none;
    height: auto;
    padding: 42px clamp(24px, 6vw, 56px) 52px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .contact-panel-track {
    display: contents;
  }
  .contact-panel {
    position: static;
    inset: auto;
    min-height: 0;
    padding: 0;
    display: block;
    transform: none !important;
    transition: none;
  }
  .contact-panel-intro {
    order: 1;
  }
  .contact-shared-title {
    position: static;
    order: 2;
    margin: 42px 0 22px;
    pointer-events: auto;
  }
  .contact-shared-title h2,
  .contact-form-panel[data-contact-panel-index="1"] .contact-shared-title h2 {
    font-size: clamp(34px, 5.8vw, 48px);
    line-height: 1.08;
    max-width: 500px;
    margin: 8px 0 0;
  }
  .contact-panel-form {
    order: 3;
    border: 0;
    padding: 0;
    overflow: visible !important;
  }
  .contact-panel-nav {
    display: none;
  }
  .contact-page-shell .contact-form-panel h1 {
    font-size: clamp(52px, 8vw, 72px);
    margin: 8px 0 18px;
  }
  .contact-page-shell .contact-lead {
    font-size: 16px;
    line-height: 1.75;
  }
  .contact-page-shell .contact-details {
    font-size: 14px;
    margin-top: 22px;
    padding-bottom: 24px;
    gap: 10px 20px;
  }
  .contact-page-shell .contact-details a,
  .contact-page-shell .contact-details address {
    font-size: 14px;
  }
  .contact-page-shell .contact-form {
    gap: 12px 22px;
  }
  .contact-page-shell .contact-field input,
  .contact-page-shell .contact-field textarea {
    font-size: 17px;
    min-height: 52px;
    padding: 12px 0;
  }
  .contact-page-shell .contact-field textarea {
    min-height: 150px;
    max-height: none;
    padding: 18px;
    resize: vertical;
  }
  .contact-page-shell .contact-consent {
    justify-self: stretch;
    max-width: none;
    font-size: 12px;
    margin-top: 6px;
  }
  .contact-page-shell .contact-submit-row {
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
  }
  .contact-page-shell .contact-submit-row button {
    font-size: 13px;
    padding: 13px 24px;
  }
  .contact-page-shell .contact-submit-row span {
    font-size: 10px;
  }
  .contact-page-shell .local-notice {
    font-size: 11px !important;
    line-height: 1.6;
    margin-top: 8px !important;
  }
  .contact-edit-mode [data-contact-panel="1"] {
    visibility: visible;
  }
  .site-footer {
    padding: 14px 24px max(14px, var(--safe-bottom));
    gap: 12px 20px;
    font-size: 10px;
  }
  .site-footer-signature,
  .site-footer-contact,
  .pure-limitless-credit {
    min-height: 32px;
  }
  .site-footer-signature {
    display: flex;
    align-items: center;
  }
  .about-page-footer .site-footer-signature strong {
    font-size: 11px;
  }
  .home-note-footer {
    padding: 12px 24px max(12px, var(--safe-bottom));
  }
  .about-edit-mode {
    overflow: auto;
  }
  .about-editor-toolbar,
  .contact-editor-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    min-height: 0;
    gap: 8px;
    background: var(--paper);
  }
  .about-editor-toolbar > div:first-child,
  .contact-editor-toolbar > div:first-child {
    width: 100%;
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
  }
  .about-editor-toolbar .eyebrow,
  .contact-editor-toolbar .eyebrow {
    font-size: 9px;
  }
  .about-editor-toolbar strong,
  .contact-editor-toolbar strong {
    font-size: 11px;
    font-weight: 400;
  }
  .about-editor-toolbar > div:last-child,
  .contact-editor-toolbar > div:last-child {
    width: 100%;
    display: grid;
    grid-template-columns: 0.7fr 1fr 1fr 1fr;
    gap: 5px;
  }
  .about-editor-toolbar a,
  .about-editor-toolbar button,
  .contact-editor-toolbar a,
  .contact-editor-toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    font-size: 11px;
    min-height: 44px;
    line-height: 1.4;
  }
  .about-editor-toolbar a[target],
  .contact-editor-toolbar a[target] {
    display: none;
  }
  .contact-editor-toolbar a[href="/admin"],
  .about-editor-toolbar a[href="/admin"] {
    display: flex !important;
  }
  .about-photo-dock {
    position: static;
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    width: 100%;
  }
  .about-selected-photos {
    max-width: none;
    width: 100%;
  }
  .about-photo-dock small {
    max-width: none;
    margin: 0;
    font-size: 11px;
  }
  .about-photo-dock > button {
    font-size: 12px;
    min-height: 44px;
  }
  .contact-edit-mode .contact-visual {
    height: clamp(450px, 75vh, 650px);
  }
  .contact-photo-controls {
    gap: 8px;
    padding: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .contact-photo-controls button {
    min-height: 44px;
    font-size: 12px;
  }
  .contact-photo-controls label {
    flex: 1;
    font-size: 11px;
  }
  .contact-photo-controls input {
    flex: 1;
    min-width: 60px;
  }
  .hero-editor-toolbar {
    left: 0;
    right: 0;
    top: 0;
    padding: 12px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
    background: #f6f3eef5;
  }
  .hero-editor-toolbar > div:first-child {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .hero-editor-toolbar .eyebrow {
    font-size: 9px;
  }
  .hero-editor-toolbar > div:last-child {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .hero-editor-toolbar .editor-screen-switch {
    width: 100%;
    display: flex;
    order: -1;
    margin-bottom: 3px;
  }
  .hero-editor-toolbar .editor-screen-switch button {
    flex: 1;
    min-height: 38px;
  }
  .hero-editor-toolbar a,
  .hero-editor-toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 42px;
    padding: 8px 6px;
    font-size: 11px;
    line-height: 1.4;
  }
  .hero-editor-toolbar a[target] {
    display: none;
  }
  .hero-editor-toolbar a:not([target]) {
    display: flex;
  }
  .hero-editor-hint {
    top: 190px;
    left: 16px;
    transform: none;
    font-size: 10px;
    max-width: 80%;
    text-align: left;
    padding: 7px 10px;
    background: #16161666;
  }
  .hero-editor-dock {
    left: 12px !important;
    right: 12px !important;
    bottom: max(12px, var(--safe-bottom)) !important;
    top: auto !important;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    max-height: 50dvh;
    overflow-y: auto;
  }
  .hero-dock-handle {
    display: none;
  }
  .hero-slide-tabs {
    min-width: 0;
    max-width: calc(100% - 112px);
    width: calc(100% - 112px);
    flex: 1;
  }
  .hero-slide-tabs button {
    width: 60px;
    flex-basis: 60px;
    height: 48px;
  }
  .editor-tools-toggle {
    display: block;
    font-size: 11px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #ffffff55;
    width: 100px;
  }
  .hero-editor-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-editor-dock.is-tools-collapsed .hero-editor-actions {
    display: none;
  }
  .hero-editor-actions button {
    font-size: 11px;
    min-height: 44px;
    flex: 1;
    padding: 8px;
  }
  .hero-editor-actions label {
    min-height: 44px;
    font-size: 11px;
  }
  .hero-logo-scale {
    flex-basis: 100%;
  }
  .menu-editor-dock {
    width: calc(100vw - 24px);
    bottom: max(12px, var(--safe-bottom));
    flex-wrap: wrap;
    padding: 12px;
    max-height: 40dvh;
    overflow-y: auto;
  }
  .menu-editor-dock button {
    min-height: 44px;
    font-size: 11px;
    padding: 8px;
  }
  .menu-photo-scale {
    grid-template-columns: auto minmax(70px, 1fr) 36px;
    flex: 1;
    font-size: 11px;
  }
  .menu-photo-scale input {
    width: 100%;
  }
  .menu-slot-tabs {
    flex-basis: 100%;
  }
  .menu-slot-tabs button {
    flex: 1;
  }
  .menu-editor-dock > span:last-child {
    display: none;
  }
  .hero-picker {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
  }
  .hero-picker-heading {
    padding: 18px;
    gap: 16px;
  }
  .hero-picker-heading h2 {
    font-size: 28px;
  }
  .hero-picker-heading p:not(.eyebrow) {
    font-size: 12px;
  }
  .hero-picker-scroll {
    padding: 18px;
  }
  .hero-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .editor-photo-search {
    padding: 12px 18px;
  }
  .about-editor-feedback {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .site-header,
  .about-page-shell > .site-header {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    min-height: 106px;
    padding: 14px 22px 8px;
    gap: 8px;
  }
  .site-header .brand img {
    width: 180px;
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .site-header nav a {
    font-size: 12px;
    min-height: 36px;
  }
  .about-layout {
    padding: 28px 22px 42px;
    gap: 34px;
  }
  .about-instant {
    padding: 10px 10px 30px;
  }
  .about-layout h1 {
    font-size: 46px;
    margin-bottom: 24px;
  }
  .about-layout p.lead {
    font-size: 16px;
  }
  .contact-visual {
    height: 64vw;
    min-height: 250px;
  }
  .contact-page-shell .contact-form-panel {
    padding: 32px 22px 42px;
  }
  .contact-page-shell .contact-form-panel h1 {
    font-size: 58px;
  }
  .contact-page-shell .contact-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .contact-page-shell .contact-form > .contact-field {
    grid-column: 1/-1;
  }
  .contact-shared-title {
    margin-top: 32px;
  }
  .contact-page-shell .contact-details {
    display: grid;
    gap: 10px;
  }
  .contact-page-shell .contact-details address {
    grid-column: 1 / -1;
  }
  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    padding-inline: 22px;
  }
  .site-footer-contact {
    grid-column: 1/-1;
    grid-row: 1;
    font-size: 10px;
    text-align: center;
  }
  .site-footer-actions {
    gap: 6px;
  }
  .pure-limitless-credit {
    width: 104px;
  }
  .site-footer-signature span,
  .site-footer-signature strong {
    font-size: 10px;
  }
  .hero-image .photo {
    object-fit: cover;
    background: transparent;
  }
  .hero-meta {
    top: 24px;
    left: 22px;
    font-size: 10px;
  }
  .hero-brand {
    top: auto;
    bottom: 148px;
    left: 22px;
    width: min(56vw, 240px);
    transform: scale(var(--hero-logo-scale, 1));
    transform-origin: left center;
  }
  .hero-brand img {
    width: 100%;
  }
  .hero.is-editing .hero-brand {
    --logo-half: calc(min(56vw, 240px) * var(--hero-logo-scale, 1) / 2);
    left: clamp(
      calc(12px + var(--logo-half)),
      var(--hero-logo-x),
      calc(100% - 12px - var(--logo-half))
    );
    top: clamp(210px, var(--hero-logo-y), calc(100% - 145px));
    bottom: auto;
    transform: translate(-50%, -50%) scale(var(--hero-logo-scale, 1));
    transform-origin: center;
  }
  .hero-nav {
    bottom: 74px;
    width: calc(100% - 44px);
    gap: 24px;
    justify-content: center;
  }
  .hero-nav a {
    font-size: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .hero-nav::before {
    height: 40px;
  }
  .hero-playback {
    bottom: calc(14px + var(--safe-bottom));
    right: 22px;
  }
  .hero-icon-button {
    width: 36px;
    height: 40px;
    min-width: 36px;
  }
  .hero-counter,
  .hero-total {
    width: 22px;
    font-size: 10px;
  }
  .menu-links a {
    font-size: clamp(34px, 8.2vw, 48px);
  }
  .home-note-content {
    padding: 44px 22px 160px;
  }
  .home-note h2 {
    font-size: clamp(40px, 10vw, 60px);
  }
  .home-note p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.8;
  }
  .home-note-footer {
    padding-inline: 22px;
  }
  .story-index-header h1 {
    font-size: clamp(64px, 16vw, 92px);
  }
  .story-index-link {
    column-gap: 14px;
  }
  .story-index-link h2 {
    font-size: clamp(30px, 8.2vw, 42px);
  }
  .story-index-thumb {
    width: 110px;
  }
  .story-index-thumb img {
    object-fit: cover;
  }
  .story-header > a,
  .story-header > button {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 11px;
  }
  .story-controls button {
    min-height: 44px;
  }
  .hero-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero-logo-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 600px) and (min-width: 901px) {
  .about-page-shell,
  .contact-page-shell {
    min-height: 0;
    height: 100dvh;
    grid-template-rows: 76px minmax(0, 1fr) auto;
  }
  .about-page-shell > .site-header {
    height: 76px;
  }
  .about-copy-panel {
    transform: none;
    padding-top: 0;
  }
  .about-layout h1 {
    font-size: 42px;
    margin-bottom: 20px;
  }
  .about-instant-media {
    width: 100%;
  }
  .about-instant {
    max-width: 420px;
  }
  .contact-panel-intro {
    padding-bottom: 110px;
  }
  .contact-shared-title {
    top: calc(100% - 110px);
  }
  .contact-shared-title h2 {
    font-size: 32px;
  }
  .contact-panel-form {
    padding-top: 120px;
    justify-content: flex-start;
  }
  .contact-panel-nav {
    bottom: 0;
    background: var(--paper);
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey-screen {
    scroll-behavior: auto;
  }
}
