/* Sora servida desde la propia web (sin llamar a Google: RGPD). Licencia en assets/fonts/OFL.txt */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/sora-latin.woff2') format('woff2');
}
/*
  MALDO WEB
  Estructura: columna izquierda fija + columna derecha con scroll de trabajos.
*/

:root {
  --bg: #e9e9e4;
  --paper: #f7f7f2;
  --text: #0b0b0b;
  --muted: #5c5c55;
  --line: #d7d7cf;
  --panel-gap: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Sora', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--text);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

/* ESTRUCTURA PRINCIPAL */
.site-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 32vw) 1fr;
  gap: var(--panel-gap);
  padding: var(--panel-gap);
  overflow: hidden;
}

.profile-panel,
.works-panel {
  background: var(--paper);
}

.profile-panel {
  height: calc(100vh - var(--panel-gap) * 2);
  min-height: 0;
  position: sticky;
  top: var(--panel-gap);
  overflow: hidden;
  perspective: 1200px;
}

.profile-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-panel.is-contact-open .profile-flip {
  transform: rotateY(180deg);
}

.profile-side {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 28px;
  background: var(--paper);
  backface-visibility: hidden;
  /* Ventanas bajas (portátil, zoom): si el contenido no cabe, la columna hace scroll en vez de cortarse */
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.profile-front {
  grid-template-rows: auto auto 1fr;
  gap: 28px;
}

.profile-back {
  grid-template-rows: auto 1fr;
  gap: 24px;
  transform: rotateY(180deg);
}

.panel-top {
  display: grid;
  gap: 18px;
  align-items: start;
}

.brand-logo {
  display: block;
  width: fit-content;
  text-decoration: none;
  line-height: 0;
}

.logo-maldo,
.brand-logo img {
  display: block;
  width: 240px;
  height: auto;
  max-width: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.main-nav a,
.nav-button {
  text-decoration: underline;
}

.nav-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.profile-photo {
  width: min(285px, 74%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1);
  background: var(--line);
}

.intro-copy {
  align-self: stretch;
  position: relative;
  min-height: 260px;
}

h1,
h2,
p {
  margin-top: 0;
}

.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.intro-copy h1 {
  margin: 0;
  font-weight: 400;
font-size: clamp(34px, 3.4vw, 54px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.intro-copy p:not(.kicker) {
  position: absolute;
  top: 125px;
  left: 0;
  max-width: 385px;
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

.contact-panel {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 42px;
  min-height: 0;
  padding-top: 42px;
}

.contact-heading {
  align-self: start;
}

.contact-panel h2 {
  margin: 0;
  font-size: clamp(46px, 4.8vw, 78px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.contact-quote {
  align-self: start;
  max-width: 340px;
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.contact-list {
  align-self: start;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: none;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.25;
}

/* WORKS */
.works-panel {
  height: calc(100vh - var(--panel-gap) * 2);
  min-height: 0;
  padding: 28px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.works-panel::-webkit-scrollbar {
  display: none;
}

.works-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.works-header h2 {
  margin: 0;
  font-size: clamp(36px, 3.2vw, 60px);
  font-weight: 500;
  line-height: 0.95;
}

.works-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 0;
}

.work-card,
.work-card--wide,
.work-card--large {
  grid-column: 1 / -1;
  grid-row: auto;
  position: relative;
  height: 420px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: var(--line);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease, filter 600ms ease;
}

.work-card:hover img {
  transform: scale(1.025);
  filter: grayscale(1) contrast(1.06);
}

.open-icon {
  display: none !important;
}

/* Hover de títulos: aparece en blanco y luego toma color personalizado */
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 1;
  pointer-events: none;
}

.work-card::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: white;
  font-size: clamp(26px, 4vw, 72px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    color 1.8s ease 0.25s;
  z-index: 2;
  pointer-events: none;
}

.work-card:hover::before,
.work-card:hover::after {
  opacity: 1;
}

.work-card:hover::after {
  transform: translateY(0);
}

/* Colores de títulos por proyecto */
.work-card[data-theme="proyecto-01"]:hover::after {
  color: #c44a24;
}

.work-card[data-theme="proyecto-02"]:hover::after {
  color: #ffffff;
}

.work-card[data-theme="proyecto-03"]:hover::after {
  color: #1f8f4d;
}

.work-card[data-theme="proyecto-04"]:hover::after {
  color: #0072ce;
}

.work-card[data-theme="proyecto-05"]:hover::after {
  color: #c62828;
}

.work-card[data-theme="proyecto-06"]:hover::after {
  color: #ffffff;
}

.work-card[data-theme="proyecto-07"]:hover::after {
  color: #4f8f3a;
}

.work-card[data-theme="proyecto-08"]:hover::after {
  color: #ff6a2a;
}

/* CONTACTO */
.contact-strip {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}

.contact-strip h2 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(42px, 5vw, 92px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  white-space: nowrap;
}

/* MODAL */
.project-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 20;
}

.project-modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.modal-card {
  position: relative;
  width: min(560px, calc(100vw - 48px));
  min-height: auto;
  background: var(--paper);
  padding: 42px;
  z-index: 1;
  overflow: hidden;
}

.modal-card > * {
  position: relative;
  z-index: 2;
}

.modal-close {
  display: none !important;
}

.modal-card h2 {
  max-width: 420px;
  margin: 0 0 46px;
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.project-details--clean {
  display: grid;
  gap: 8px;
  margin: 78px 0 0;
  padding: 0;
  border: 0;
}

.project-details--clean p {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.modal-has-image {
  color: white;
  background: #111;
}

.modal-has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.28),
      rgba(0, 0, 0, 0.62)
    ),
    var(--modal-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: grayscale(1) brightness(1.18);
  transform: scale(1.04);
  animation: modalImageReveal 8s ease forwards;
  z-index: 0;
}

.modal-has-image h2,
.modal-has-image p,
.modal-has-image span {
  color: white;
}

@keyframes modalImageReveal {
  from {
    opacity: 0;
    filter: grayscale(1) brightness(1.25);
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    filter: grayscale(0) brightness(0.9);
    transform: scale(1);
  }
}

/* PÁGINA LOGÍSTICA */
.van-specs p,
.service-list li {
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.van-photo {
  width: 100%;
  height: 640px;
  object-fit: cover;
  background: var(--line);
}

.van-specs {
  display: grid;
  gap: 12px;
}

.van-specs article,
.service-list {
  background: #ffffff55;
  border: 1px solid var(--line);
  padding: 26px;
}

.van-specs span {
  display: block;
  color: var(--muted);
  margin-bottom: 26px;
}

.service-list h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 400;
  line-height: 0.95;
}

.van-specs p {
  margin: 0;
  max-width: 520px;
  text-transform: none;
}

.service-list {
  margin-top: 12px;
}

.service-list ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.service-list li {
  text-transform: none;
}

.contact-strip--logistics {
  min-height: 220px;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  .site-shell {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .profile-panel {
    height: auto;
    min-height: 680px;
    position: relative;
    top: auto;
    overflow: hidden;
  }

  .works-panel {
    height: auto;
    overflow: visible;
  }

  .profile-photo {
    width: 260px;
  }

  .van-photo {
    height: auto;
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  :root {
    --panel-gap: 8px;
  }

  .site-shell {
    padding: 8px;
    margin: 0;
  }

  .works-panel {
    padding: 18px;
  }

  .profile-side {
    padding: 18px;
  }

  .logo-maldo,
  .brand-logo img {
    width: 190px;
  }

  .profile-photo {
    width: 100%;
  }

  .intro-copy h1 {
    font-size: clamp(42px, 13vw, 72px);
  }

  .works-grid,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card--wide,
  .work-card--large {
    height: 320px;
  }

  .contact-strip {
    align-items: start;
  }

  .contact-actions {
    white-space: normal;
  }

  .modal-card {
    padding: 28px 22px;
  }
}
/* SUBRAYADO UNIFICADO MENÚ IZQUIERDO */

.main-nav a,
.main-nav button {
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;

  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: auto;
}
/* AÑO EN TARJETA */

.modal-year {
  position: absolute;
  top: 34px;
  right: 34px;
  z-index: 3;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.02em;
}
/* BMWxALCARAZ — conservar x minúscula */

.work-card[data-theme="proyecto-04"]::after {
  text-transform: none;
}

.modal-theme-proyecto-04 h2 {
  text-transform: none;
  white-space: nowrap;
  max-width: none;
  font-size: clamp(26px, 2.8vw, 42px);
}
/* MODAL — MISMO TAMAÑO PARA TODAS LAS TARJETAS */

.project-modal.is-open .modal-card {
  width: min(560px, calc(100vw - 48px)) !important;
  height: 390px !important;
  min-height: 0 !important;
  max-height: calc(100vh - 64px) !important;
  padding: 34px !important;
  overflow: hidden !important;
}

/* Título principal */
.project-modal.is-open .modal-card h2 {
  margin: 0 90px 0 0 !important;
  font-size: clamp(32px, 3.2vw, 54px) !important;
  line-height: 0.92 !important;
}

/* Año arriba derecha */
.project-modal.is-open .modal-year {
  top: 34px !important;
  right: 34px !important;
  font-size: 14px !important;
}

/* Info secundaria abajo */
.project-modal.is-open .project-details--clean {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: grid;
  gap: 8px;
}

/* Texto secundario más pequeño */
.project-modal.is-open .project-details--clean p {
  margin: 0 !important;
  font-size: clamp(15px, 1.35vw, 20px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase;
}
/* SS26 CAMPAIGN — título en una sola línea */
.modal-theme-proyecto-02 h2 {
  white-space: nowrap;
  max-width: none;
  font-size: clamp(20px, 2.5vw, 38px) !important;
}
/* SS26 CAMPAIGN — ajustar tamaño para que no toque el año */

.project-modal.is-open .modal-card.modal-theme-proyecto-02 h2 {
  font-size: clamp(28px, 2.8vw, 46px) !important;
  margin-right: 120px !important;
  white-space: nowrap !important;
}
/* PROYECTOS 5–8 — AJUSTES DE TÍTULOS Y MODAL */

/* Hover: títulos largos en una sola línea */
.work-card[data-index="05"]::after,
.work-card[data-index="06"]::after,
.work-card[data-index="08"]::after {
  white-space: nowrap !important;
  font-size: clamp(16px, 2vw, 34px) !important;
}

/* Proyecto 7: verde más luminoso */
.work-card[data-index="07"]:hover::after {
  color: #7ed957 !important;
}

/* Modal: títulos largos en una sola línea */
.project-modal.is-open .modal-card.modal-theme-proyecto-05 h2,
.project-modal.is-open .modal-card.modal-theme-proyecto-06 h2,
.project-modal.is-open .modal-card.modal-theme-proyecto-07 h2,
.project-modal.is-open .modal-card.modal-theme-proyecto-08 h2 {
  white-space: nowrap !important;
  max-width: none !important;
  margin-right: 110px !important;
}

/* Tamaño específico por proyecto */
.project-modal.is-open .modal-card.modal-theme-proyecto-05 h2 {
  font-size: clamp(21px, 2vw, 36px) !important;
}

.project-modal.is-open .modal-card.modal-theme-proyecto-06 h2 {
  font-size: clamp(17px, 1.7vw, 30px) !important;
}

.project-modal.is-open .modal-card.modal-theme-proyecto-07 h2 {
  font-size: clamp(20px, 2vw, 34px) !important;
}

.project-modal.is-open .modal-card.modal-theme-proyecto-08 h2 {
  font-size: clamp(18px, 1.8vw, 32px) !important;
}

/* Texto largo del proyecto 7, más controlado */
.project-modal.is-open .modal-card.modal-theme-proyecto-07 .project-details--clean p {
  font-size: clamp(12px, 1.1vw, 16px) !important;
  line-height: 1.22 !important;
  max-width: 480px;
}

/* BMWxALCARAZ — mantener la x en minúscula */

/* Título al pasar el ratón por encima */
.work-card[data-index="04"]::after {
  text-transform: none !important;
}

/* Título dentro de la tarjeta */
.project-modal.is-open .modal-card.modal-theme-proyecto-04 h2 {
  text-transform: none !important;
}

/* Texto inferior dentro de la tarjeta, por si aparece BMWxALCARAZ ahí */
.project-modal.is-open .modal-card.modal-theme-proyecto-04 .project-details--clean p {
  text-transform: none !important;
}
/* PROYECTO 05 — título más pequeño dentro del modal */

.project-modal.is-open .modal-card.modal-theme-proyecto-05 h2 {
  font-size: clamp(18px, 1.8vw, 30px) !important;
  margin-right: 135px !important;
  white-space: nowrap !important;
}
/* PROYECTO 05 — TÍTULO MODAL */

#project-modal.is-open
.modal-card.modal-theme-proyecto-05
#modal-title {
  font-size: 27px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  max-width: 340px !important;
  margin-right: 150px !important;
}
/* PROYECTO 06 — SILOE */

/* Título: más pequeño para no chocar con el año */
#project-modal.is-open
.modal-card.modal-theme-proyecto-06
#modal-title {
  font-size: 21px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  max-width: 370px !important;
  margin-right: 150px !important;
}

/* PROYECTO 06 — TEXTO INFERIOR */

#project-modal.is-open
.modal-card.modal-theme-proyecto-06
#modal-format {
  width: 100% !important;
  max-width: none !important;
  font-size: 19px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
}

#project-modal.is-open
.modal-card.modal-theme-proyecto-06
#modal-cargo {
  width: 100% !important;
  max-width: none !important;
  font-size: 19px !important;
}
#project-modal.is-open
.modal-card.modal-theme-proyecto-07
#modal-format {
  font-size: 19px !important;
  line-height: 1.2 !important;
  width: 100% !important;
  max-width: none !important;
}
#project-modal.is-open
.modal-card.modal-theme-proyecto-07
#modal-cargo {
  width: 100% !important;
  max-width: none !important;
  font-size: 19px !important;
}
/* PROYECTO 08 — BREEZE */

#project-modal.is-open
.modal-card.modal-theme-proyecto-08
#modal-title {
  font-size: 24px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  max-width: 370px !important;
  margin-right: 150px !important;
}
/* HOVER — PROYECTOS 05, 06 Y 08 MÁS GRANDES */

.work-card[data-index="05"]::after,
.work-card[data-index="06"]::after,
.work-card[data-index="08"]::after {
  font-size: clamp(24px, 2.8vw, 46px) !important;
  white-space: nowrap !important;
}
.work-card[data-index="07"]::after {
  font-size: clamp(26px, 3vw, 48px) !important;
}

/* =========================================================
   AJUSTES 02-10-2026
   ========================================================= */

/* Texto para Google y lectores de pantalla; no se ve en pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Teclado: el trabajo enfocado muestra su título igual que con el ratón */
.work-card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.work-card:focus-visible::before,
.work-card:focus-visible::after {
  opacity: 1;
}

.work-card:focus-visible::after {
  transform: translateY(0);
}

.modal-card:focus {
  outline: none;
}

/* LOGÍSTICA — mismo esqueleto que la página de Producción */
.logistics-front {
  grid-template-rows: auto 1fr;
}

.logistics-intro {
  align-self: end;
  display: grid;
  gap: 24px;
}

.logistics-intro h1 {
  margin: 0;
  font-size: clamp(40px, 3.6vw, 60px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.logistics-intro p:not(.kicker) {
  margin: 0;
  max-width: 385px;
  font-size: 16px;
  line-height: 1.6;
}

.logistics-cta {
  display: grid;
  gap: 16px;
  justify-items: start;
  font-size: 14px;
}

.cta-primary {
  display: inline-block;
  padding: 14px 18px;
  background: var(--text);
  color: var(--paper);
  text-decoration: none;
}

.cta-primary:hover {
  background: #2a2a27;
}

.logistics-panel .van-photo {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 14 / 9;
}

.logistics-panel .van-specs {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.van-specs h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 400;
  line-height: 1;
}

.faq {
  margin-top: 12px;
  padding: 26px;
  background: #ffffff55;
  border: 1px solid var(--line);
}

.faq h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 400;
  line-height: 0.95;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 18px;
  max-width: 62ch;
  line-height: 1.6;
}

.logistics-panel .contact-strip {
  min-height: 200px;
}

/* TABLET Y MÓVIL — el panel izquierdo crece con su contenido (antes cortaba el texto) */
@media (max-width: 1050px) {
  .profile-panel {
    min-height: 0;
  }

  .profile-flip {
    display: grid;
  }

  .profile-side {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
  }

  .intro-copy {
    min-height: 0;
  }

  .intro-copy p:not(.kicker) {
    position: static;
    margin-top: 24px;
  }

  .logistics-intro {
    align-self: start;
    margin-top: 48px;
  }
}

@media (max-width: 720px) {
  .intro-copy h1 {
    font-size: clamp(38px, 11.5vw, 64px);
  }

  .logistics-panel .van-specs {
    grid-template-columns: 1fr;
  }

  .logistics-cta {
    justify-items: stretch;
  }

  .cta-primary {
    text-align: center;
  }

  /* Modal en móvil: el título salta de línea en vez de salirse y pisar el año */
  .project-modal.is-open .modal-card.modal-card {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 360px !important;
    padding: 24px !important;
  }

  #project-modal.is-open .modal-card.modal-card #modal-title {
    max-width: none !important;
    margin: 0 64px 0 0 !important;
    font-size: 26px !important;
    line-height: 1 !important;
    white-space: normal !important;
  }

  .project-modal.is-open .modal-card .modal-year {
    top: 28px !important;
    right: 24px !important;
  }

  .project-modal.is-open .modal-card.modal-card .project-details--clean {
    position: static;
    margin-top: auto !important;
    padding-top: 96px !important;
  }

  #project-modal.is-open .modal-card.modal-card #modal-format,
  #project-modal.is-open .modal-card.modal-card #modal-cargo {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }
}

/* Menú como botones visibles (antes eran enlaces subrayados de 13 px) */
.main-nav {
  gap: 8px;
  font-size: 14px;
}

.main-nav > span[aria-hidden="true"] {
  display: none;
}

.main-nav a,
.main-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--text);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.main-nav a:hover,
.main-nav button:hover,
.main-nav a:focus-visible,
.main-nav button:focus-visible {
  background: var(--text);
  color: var(--paper);
}

/* Pie con los enlaces legales */
.site-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
}

/* PÁGINA LEGAL */
.legal-page {
  max-width: 760px;
  margin: var(--panel-gap) auto;
  padding: 28px 28px 64px;
  background: var(--paper);
}

.legal-page h1 {
  margin: 64px 0 8px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin: 48px 0 16px;
  font-size: 24px;
  font-weight: 500;
}

.legal-page p,
.legal-page li {
  max-width: 65ch;
  font-size: 15px;
  line-height: 1.6;
}

.legal-page ul {
  padding-left: 20px;
}

/* Datos que faltan: imposible publicarlos sin verlos */
mark.pendiente {
  background: #ffe066;
  color: var(--text);
}

/* El alto lo marca el aspect-ratio, no el atributo height del <img> */
.profile-photo {
  height: auto;
}

/* Portátiles de poca altura (p. ej. 1280×720): foto más pequeña para que quepa la presentación */
@media (min-width: 1051px) and (max-height: 740px) {
  .profile-front {
    gap: 20px;
  }

  .profile-photo {
    width: min(210px, 60%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .profile-flip,
  .work-card img,
  .work-card::before,
  .work-card::after {
    transition: none;
  }

  .modal-has-image::before {
    animation-duration: 1ms;
  }
}
/* LOGÍSTICA · furgoneta real (13-oct-2026) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.logistics-intro .logistics-price {
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.logistics-intro .logistics-price strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.van-hero {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #1a1a18;
  aspect-ratio: 16 / 9;
}

.van-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.88);
}

.van-hero figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 48px 22px 20px;
  color: #f7f7f2;
  background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0));
}

.van-hero figcaption span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.van-hero figcaption strong {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.van-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.van-figure {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 150px;
  padding: 22px;
  background: #ffffff55;
  border: 1px solid var(--line);
}

.van-figure strong {
  white-space: nowrap;
  font-size: clamp(26px, 2.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.van-figure > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.van-gallery {
  margin-top: 12px;
}

.van-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 28px 0 16px;
}

.van-gallery-head h2,
.van-datasheet h2,
.van-rates h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 400;
  line-height: 0.95;
}

.van-gallery-hint {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.van-gallery-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.van-shot {
  position: relative;
  overflow: hidden;
  background: var(--line);
  aspect-ratio: 4 / 3;
}

.van-shot--wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

.van-shot--tall {
  aspect-ratio: 4 / 3;
}

.van-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.van-shot span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  background: var(--paper);
  font-size: 12px;
}

@media (hover: hover) {
  .van-shot:hover img {
    transform: scale(1.04);
  }
}

.van-quote {
  margin: 12px 0 0;
  padding: 34px 26px;
  background: var(--text);
  color: var(--paper);
}

.van-quote p {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.van-datasheet,
.van-rates {
  margin-top: 12px;
  padding: 26px;
  background: #ffffff55;
  border: 1px solid var(--line);
}

.van-datasheet dl {
  margin: 22px 0 0;
  display: grid;
}

.van-datasheet dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.van-datasheet dt {
  color: var(--muted);
  font-size: 14px;
}

.van-datasheet dd {
  margin: 0;
  font-size: 15px;
}

.van-rates-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.van-rates-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.van-rates table {
  width: 100%;
  border-collapse: collapse;
}

.van-rates th,
.van-rates td {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  font-size: 15px;
  vertical-align: baseline;
}

.van-rates td {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.van-rates small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.van-rates-main th,
.van-rates-main td {
  font-size: clamp(18px, 1.6vw, 22px);
}

.van-rates-main td {
  font-weight: 500;
}

/* Aparición al hacer scroll: solo con JS (sin JS todo se ve) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .van-figures .reveal:nth-child(3) { transition-delay: 0.08s; }
.js .van-figures .reveal:nth-child(4) { transition-delay: 0.16s; }
.js .van-figures .reveal:nth-child(5) { transition-delay: 0.24s; }

@media (max-width: 1050px) {
  .van-figures {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .van-hero {
    aspect-ratio: 4 / 3;
  }

  .van-figure {
    min-height: 120px;
    padding: 18px;
  }

  .van-gallery-hint {
    display: block;
  }

  /* Galería en móvil: carrusel con el dedo */
  .van-gallery-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -18px;
    padding: 0 18px 4px;
    scroll-padding: 0 18px;
    scrollbar-width: none;
  }

  .van-gallery-track::-webkit-scrollbar {
    display: none;
  }

  .van-shot,
  .van-shot--wide {
    flex: 0 0 85%;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
  }

  .van-shot--tall {
    flex-basis: 48%;
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .van-quote {
    padding: 26px 20px;
  }

  .van-datasheet,
  .van-rates {
    padding: 20px;
  }

  .van-datasheet dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .van-shot img {
    transition: none;
  }
}

/* Escritorio con poca altura: que la columna izquierda quepa sin cortarse */
@media (min-width: 1051px) and (max-height: 820px) {
  .profile-front {
    gap: 18px;
  }

  .profile-photo {
    width: min(200px, 55%);
  }

  .logistics-intro {
    gap: 16px;
  }

  .logistics-intro h1 {
    font-size: clamp(32px, 2.9vw, 46px);
  }

  .logistics-intro p:not(.kicker) {
    font-size: 15px;
    line-height: 1.5;
  }

  .logistics-cta {
    gap: 10px;
  }
}
