/* =====================================================================
   SORAIN – móvil y tablet
   Se carga en TODAS las páginas, después de los demás CSS.

   Índice
     1. Menú hamburguesa (≤1000px)
     2. Tablet y móvil (≤1000px): sin grulla 3D, logo fijo en el CTA, loop escalado
     3. Táctil: tarjetas activas (.in-focus / .is-revealed) en lugar del hover
     4. Móvil (≤760px): una sola columna, textos centrados
     5. Footer en móvil (acordeón)
     6. Diálogo "Book a call" (css/booking.css): una columna ≤1000px, pantalla completa ≤760px
   ===================================================================== */

/* 1. Menú hamburguesa
   site.js agrega el botón .burger y el panel .mnav con los mismos enlaces de la barra.
   --------------------------------------------------------------------- */
.burger,
.mnav {
  display: none;
}

@media (max-width: 1000px) {
  .nav-right {
    display: none;
  }

  .burger {
    position: relative;
    display: grid;
    justify-self: end;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .burger span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform 0.35s cubic-bezier(0.22, 0.7, 0.18, 1),
      opacity 0.2s ease,
      top 0.35s cubic-bezier(0.22, 0.7, 0.18, 1);
  }
  .burger span:nth-child(1) {
    top: 15px;
  }
  .burger span:nth-child(2) {
    top: 21px;
  }
  .burger span:nth-child(3) {
    top: 27px;
  }
  .menu-open .burger span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }
  .menu-open .burger span:nth-child(2) {
    opacity: 0;
  }
  .menu-open .burger span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  /* Panel: ocupa la pantalla debajo de la barra (la barra tiene backdrop-filter,
     por eso el panel es absolute dentro de ella y no fixed). */
  .mnav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    padding: 28px max(20px, env(safe-area-inset-left, 0px)) max(32px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background:
      radial-gradient(70% 45% at 100% 0%, rgba(123, 66, 210, 0.35), transparent 70%),
      radial-gradient(60% 40% at 0% 100%, rgba(71, 95, 210, 0.22), transparent 70%), #060822;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.3s ease,
      transform 0.4s cubic-bezier(0.22, 0.7, 0.18, 1),
      visibility 0s 0.4s;
  }
  .menu-open .mnav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.3s ease,
      transform 0.4s cubic-bezier(0.22, 0.7, 0.18, 1),
      visibility 0s;
  }
  /* Bloqueo del scroll con el menú abierto: SOLO en <html>. Si <body> también tiene overflow
     (hidden / overflow-x), se vuelve su propio contenedor de scroll y la barra sticky (con el panel)
     salta al inicio de la página, fuera de la pantalla. */
  .menu-open {
    overflow: hidden;
  }
  .menu-open body {
    overflow: visible;
  }
  .mnav {
    overscroll-behavior: contain;
  }

  .mnav-links {
    display: grid;
  }
  .mnav-links a,
  .mnav-foot {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.35s ease,
      transform 0.45s cubic-bezier(0.22, 0.7, 0.18, 1),
      color 0.2s ease;
  }
  .menu-open .mnav-links a,
  .menu-open .mnav-foot {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 55ms + 80ms);
  }
  .mnav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    color: #fff;
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .mnav-links a .material-symbols-outlined {
    color: var(--lilac);
    font-size: 22px;
    opacity: 0.55;
  }
  .mnav-links a.on {
    color: var(--lilac);
  }
  .mnav-links a.on .material-symbols-outlined {
    opacity: 1;
  }
  .mnav-links a:active {
    color: var(--lilac);
  }

  .mnav-foot {
    display: grid;
    gap: 22px;
    justify-items: center;
    padding-top: 32px;
  }
  .mnav-foot .btn.mnav-cta {
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #8b3dd9, #466bdb);
    box-shadow: 0 8px 18px rgba(123, 66, 210, 0.45);
    font-size: 16px;
  }
  .mnav-foot .lang {
    display: flex;
    gap: 12px;
    font-size: 15px;
  }
  .mnav-foot .lang b,
  .mnav-foot .lang a {
    padding: 6px 10px;
  }
}

@media (max-width: 1000px) and (prefers-reduced-motion: reduce) {
  .mnav,
  .mnav-links a,
  .mnav-foot,
  .burger span {
    transition: none !important;
  }
}

/* 2. Tablet y móvil (≤1000px)
   --------------------------------------------------------------------- */
@media (max-width: 1000px) {
  /* Sin grulla 3D: se oculta el canvas y las anclas, y se quita el espacio que se reservaba para ella */
  #crane,
  .sec > .anchor {
    display: none !important;
  }
  .sec:not(.ct-main) {
    padding-top: 72px;
  }
  .sec.hero,
  .sec.pg-hero {
    min-height: 0;
    padding-top: 56px;
  }

  /* CTA: el logo de SORAIN queda fijo y centrado, entre el texto y el botón */
  .cta .wrap {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    text-align: center;
  }
  .cta .wrap > div:first-child {
    display: contents;
  }
  .cta .lead {
    margin-inline: auto;
  }
  .cta .btn,
  .ct-cta .btns {
    order: 2;
  }
  .cta .lead + .btn,
  .ct-cta .btns {
    margin-top: 0;
  }
  .ct-cta .btns {
    justify-content: center;
  }
  .cta-act {
    position: relative;
    order: 1;
    justify-self: center;
    width: min(230px, 62vw);
    height: auto;
    margin: 36px auto 32px;
  }
  .cta-act .anchor {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    visibility: visible;
  }
  .anchor .endwrap {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
  }
  .anchor .endwrap .endlogo {
    opacity: 1;
  }

  /* Loop del infinito: se escala completo para caber en el ancho (sin scroll).
     main.js calcula --ls = ancho disponible / 860. El diseño mide 880×360; se recorta la franja x 100–960. */
  .loopwrap,
  .loop-sec .loopwrap {
    width: 100%;
    height: calc(480px * var(--ls, 0.4));
    margin: 40px 0 24px;
    padding: 0;
    overflow: hidden;
  }
  .loop {
    width: 880px;
    min-width: 0;
    max-width: none;
    height: 360px;
    margin: 0 0 0 calc((100% - 860px * var(--ls, 0.4)) / 2);
    aspect-ratio: auto;
    transform: scale(var(--ls, 0.4)) translate(-100px, 70px);
    transform-origin: 0 0;
  }

  .entries {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 3. Táctil: tarjetas activas en lugar del hover
   site.js marca con .in-focus la tarjeta que pasa por el centro de la pantalla y con
   .is-revealed las que ya pasaron (su texto extra queda abierto).
   --------------------------------------------------------------------- */

/* En pantallas táctiles el :hover se queda "pegado" al tocar: se anula */
@media (hover: none) {
  .card:hover,
  .cap:hover,
  .person:hover,
  .ecard:hover,
  .inits li:hover {
    transform: none;
  }
  .cap:hover {
    border-color: color-mix(in srgb, var(--acc) 28%, transparent);
    box-shadow: none;
  }
  .mv article:hover:not(.in-focus) {
    transform: none;
    border-color: #3b2fa0;
    box-shadow: none;
  }
  .mv article:hover:not(.in-focus) .ic {
    transform: none;
    background: rgba(255, 255, 255, 0.14);
  }
}

/* Tarjetas "What we do" (Home): ícono y título centrados; descripción y enlace aparecen al activarse */
@media (max-width: 1000px), (hover: none) {
  .card {
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 0;
    padding: 30px 22px 28px;
    text-align: center;
    transition:
      transform 0.5s cubic-bezier(0.22, 0.7, 0.18, 1),
      box-shadow 0.5s ease,
      border-color 0.5s ease,
      opacity 0.8s ease;
  }
  .card .ic {
    position: static;
    margin: 0 auto 16px;
    transition: transform 0.5s cubic-bezier(0.22, 0.7, 0.18, 1);
  }
  .card h3 {
    width: auto;
    font-size: 22px;
    line-height: 1.2;
  }
  /* Apertura: la descripción (.dw) y el enlace (.go) crecen de 0 a su alto REAL (--dh / --gh, los mide
     js/accordion.js) con la misma duración y curva, así la tarjeta se abre en un solo movimiento continuo.
     Antes se usaba max-height: 4em (más alto que el contenido: la animación "terminaba" antes de tiempo y
     se cortaba) y el padding-top de la descripción entraba de golpe. Ahora el espaciado va DENTRO de la
     parte recortada y el texto entra con un fundido + leve deslizamiento cuando ya hay espacio. */
  .card {
    --t-open: 0.75s;
    --ease-open: cubic-bezier(0.25, 1, 0.5, 1);
  }
  .card .dw,
  .card .go {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      height var(--t-open) var(--ease-open),
      margin-top var(--t-open) var(--ease-open),
      opacity 0.3s ease;
  }
  .card .dw > .desc {
    padding-top: 10px;
    font-size: 15px;
    transform: translateY(8px);
    transition: transform var(--t-open) var(--ease-open);
  }
  .card .go {
    justify-content: center;
    margin-top: 0;
    white-space: normal;
  }
  .card.is-revealed .dw {
    height: var(--dh, auto);
  }
  .card.is-revealed .go {
    height: var(--gh, auto);
    margin-top: 14px;
  }
  .card.is-revealed .dw,
  .card.is-revealed .go {
    opacity: 1;
    transition:
      height var(--t-open) var(--ease-open),
      margin-top var(--t-open) var(--ease-open),
      opacity 0.55s ease 0.15s;
  }
  .card.is-revealed .dw > .desc {
    transform: none;
  }
  .card.in-focus {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow:
      0 0 14px rgba(165, 43, 235, 0.5),
      0 26px 50px -22px rgba(70, 40, 160, 0.9);
    transform: scale(1.02);
  }
  .card.in-focus .ic {
    transform: scale(1.1) rotate(-6deg);
  }

  /* Tiles "Engineering experience": la descripción siempre visible; al activarse, borde y brillo */
  .tile {
    min-height: 0;
    padding: 76px 20px 22px;
    background:
      radial-gradient(90% 80% at 100% 0%, rgba(123, 66, 210, 0.3), transparent 60%),
      linear-gradient(180deg, rgba(3, 11, 27, 0.07), #030b1b);
    transition:
      border-color 0.5s ease,
      box-shadow 0.5s ease,
      opacity 0.8s ease,
      transform 0.8s ease;
  }
  .tile h3 {
    width: auto;
    font-size: 17px;
  }
  .tile .desc {
    font-size: 14.5px;
  }
  .tile.in-focus {
    border-color: rgba(185, 150, 245, 0.55);
    box-shadow: 0 0 22px -6px rgba(165, 43, 235, 0.6);
  }
  .tile .go .material-symbols-outlined {
    transition: transform 0.4s ease;
  }
  .tile.in-focus .go .material-symbols-outlined {
    transform: translateX(6px);
  }
}

/* Activación suave: en táctil todas las tarjetas (y sus piezas) entran y salen del foco con la misma
   curva lenta, para que el cambio al pasar por el centro no se sienta brusco. */
@media (max-width: 1000px), (hover: none) {
  .card,
  .card .ic,
  .tile,
  .tile .go .material-symbols-outlined,
  .entry,
  .entry .ic,
  .entry .ic .material-symbols-outlined,
  .entry small,
  .entry h3,
  .entry p,
  .cap,
  .cap .ib,
  .ecard,
  .person,
  .inits li,
  .mv article,
  .value .ring {
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* texto extra de "Enter at": se abre hasta su alto REAL (--mh, lo mide js/accordion.js) en vez de
     max-height: 12em, que era mucho más alto que el texto y hacía que la apertura se cortara de golpe */
  .entry .more-info {
    transition:
      max-height 0.75s cubic-bezier(0.25, 1, 0.5, 1),
      margin-top 0.75s cubic-bezier(0.25, 1, 0.5, 1),
      opacity 0.3s ease,
      color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .entry:hover .more-info,
  .entry.is-revealed .more-info,
  .entry:focus-within .more-info {
    max-height: var(--mh, 12em);
    transition:
      max-height 0.75s cubic-bezier(0.25, 1, 0.5, 1),
      margin-top 0.75s cubic-bezier(0.25, 1, 0.5, 1),
      opacity 0.55s ease 0.15s,
      color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .card,
  .tile,
  .entry,
  .cap,
  .ecard,
  .person,
  .inits li,
  .mv article {
    transition-property: transform, box-shadow, border-color, background-color, opacity;
  }
}

/* Estados activos (solo los pone site.js en táctil / pantallas angostas) */
.cap.in-focus {
  border-color: color-mix(in srgb, var(--acc) 60%, transparent);
  box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--acc) 70%, transparent);
  transform: translateY(-4px);
}
.cap .ib {
  transition:
    background-color 0.4s ease,
    transform 0.4s ease;
}
.cap.in-focus .ib {
  background: color-mix(in srgb, var(--acc) 30%, transparent);
  transform: scale(1.08);
}
.ecard.in-focus {
  border-color: rgba(169, 70, 219, 0.55);
  box-shadow: 0 0 18px -6px rgba(169, 70, 219, 0.6);
}
.person.in-focus {
  border-color: rgba(167, 139, 250, 0.6);
  transform: translateY(-4px);
}
.inits li.in-focus {
  border-color: rgba(167, 139, 250, 0.45);
  transform: translateY(-3px);
}
.value .ring {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.value.in-focus .ring {
  box-shadow: 0 0 20px rgba(185, 150, 245, 0.55);
  transform: scale(1.08);
}

/* 4. Móvil (≤760px): una sola columna y textos centrados
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
  .sec:not(.ct-main) {
    padding-block: 64px;
  }
  .sec.hero,
  .sec.pg-hero {
    padding-top: 52px;
    padding-bottom: 64px;
  }
  h2 {
    font-size: clamp(28px, 7.6vw, 36px);
  }
  .page.page-legal {
    padding-block: 110px 40px;
  }
  .legal {
    padding-block: 40px 80px;
  }
  .lead,
  .pg .lead {
    font-size: 16px;
  }
  .btn {
    justify-content: center;
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }
  .eyebrow {
    letter-spacing: 0.14em;
  }

  /* --- Hero (todas las páginas) --- */
  .hero .wrap {
    text-align: center;
  }
  .hero h1 {
    font-size: clamp(31px, 8.6vw, 42px);
  }
  .hero h1,
  .hero .lead,
  .pg-hero h1 {
    margin-inline: auto;
  }
  .hero .lead,
  .pg-hero .lead {
    font-size: 16.5px;
  }
  .cta-row {
    flex-direction: column;
    gap: 20px;
  }
  .hero .loc,
  .pg-hero .loc {
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    text-align: left;
  }

  /* --- Home: Who we are --- */
  .who .wrap {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    min-height: 0;
    text-align: center;
  }
  .who .wrap > div:first-child {
    display: contents;
  }
  .who h2,
  .what h2,
  .appr h2 {
    margin-inline: auto;
  }
  .who .more {
    order: 3;
    margin-top: 36px;
  }
  .pillars {
    order: 2;
    justify-items: center;
    gap: 32px;
    margin-top: 44px;
  }
  .pillar {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
  }
  .pillar h3 {
    color: #fff;
    font-size: 17px;
  }
  .pillar p {
    margin-inline: auto;
    color: var(--muted);
    font-size: 15px;
  }
  .pillar .material-symbols-outlined {
    font-size: 36px;
  }

  /* --- Home: What we do --- */
  .what .wrap,
  .appr .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .what .lead,
  .appr .lead {
    margin-inline: auto;
  }
  .cards {
    order: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 40px;
  }
  .what .more {
    order: 2;
    margin-top: 32px;
  }

  /* --- Home: Our philosophy (5 valores en fila; en español o pantallas muy angostas, 3 + 2) --- */
  .sec.phil {
    padding-block: 72px 64px;
  }
  .values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 24px;
    margin-top: 40px;
  }
  .value {
    flex: 0 0 20%;
    gap: 10px;
    min-width: 0;
    padding: 4px 2px;
    font-size: 12.5px;
    line-height: 1.2;
  }
  .value + .value {
    border-left: 0;
  }
  .value .ring {
    width: 50px;
    height: 50px;
  }
  .value .material-symbols-outlined {
    font-size: 24px;
  }
  html[lang='es'] .value {
    flex-basis: 33.333%;
    font-size: 14px;
  }
  .phil .btn {
    margin-top: 36px;
  }

  /* --- Home y How We Work: loop. Textos más grandes en el diseño escalado para que se lean --- */
  .loop .step {
    width: 240px;
    margin-left: -120px !important;
    font-size: 18px;
  }
  .loop .step[data-dy='-76'] {
    margin-top: -36px !important;
    transform: translateY(-100%);
  }
  .loop .step[data-dy='30'] {
    margin-top: 34px !important;
  }
  .loop .step[data-dx='44'] {
    width: 170px;
    margin-top: -32px !important;
    margin-left: 40px !important;
    transform: none;
  }
  .loop .step b {
    font-size: 27px;
    line-height: 1.15;
  }
  .loop .step i {
    font-size: 19px;
  }
  /* THINK / BUILD & RUN (y PENSAR / CONSTRUIR Y OPERAR) se ocultan en tablet y móvil */
  .loop .tag {
    display: none;
  }
  .loop .join {
    gap: 6px;
    padding: 9px 18px 9px 13px;
    font-size: 16px;
  }
  .loop .join .material-symbols-outlined {
    font-size: 21px;
  }
  .loop .node {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
  }
  .loop .node .material-symbols-outlined {
    font-size: 27px;
  }
  .loop .dot {
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
  }

  /* --- Home: Our approach --- */
  .loopwrap {
    order: 1;
  }
  .entries {
    order: 2;
    gap: 16px;
    width: 100%;
    margin-top: 0;
    text-align: left;
  }
  .appr .more {
    order: 3;
    margin-top: 32px;
  }
  .entry {
    padding: 20px;
  }

  /* --- Home: Engineering experience --- */
  .exp .wrap {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    text-align: center;
  }
  .exp .wrap > div:first-child {
    display: contents;
  }
  .exp .lead {
    margin-inline: auto;
  }
  .tiles {
    order: 2;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-top: 40px;
    text-align: left;
  }
  .exp .more {
    order: 3;
    margin-top: 32px;
  }

  /* --- CTA --- */
  .sec.cta {
    padding-block: 72px;
  }
  .cta h2 {
    font-size: clamp(30px, 8vw, 38px);
  }
  .cta .btn,
  .ct-cta .btns .btn {
    min-width: 200px;
  }

  /* --- Páginas internas --- */
  .pg-sec {
    padding-block: 64px;
  }
  .split > div:first-child,
  .team > div:first-child,
  .case-head {
    text-align: center;
  }
  .split h2,
  .team h2,
  .case-head h2 {
    font-size: clamp(28px, 7.6vw, 36px);
  }
  .split .lead,
  .team .lead {
    margin-inline: auto;
  }
  .who3 .lead {
    text-align: center;
  }
  .bestfor {
    justify-items: center;
  }
  /* la lista queda centrada como bloque, pero con los checks alineados entre sí */
  .bestfor ul {
    justify-self: center;
    justify-items: start;
    width: fit-content;
    max-width: 100%;
  }
  .bestfor li {
    text-align: left;
  }
  .chips {
    justify-content: center;
  }
  .cap {
    align-items: center;
    text-align: center;
  }
  .vals .cap,
  .who3 .cap,
  .conv .cap {
    min-height: 0;
  }
  .mv {
    margin-top: 44px;
  }
  .mv article {
    justify-items: center;
    padding: 30px 24px;
    text-align: center;
  }
  .mv h3 {
    font-size: 22px;
  }
  .mv p {
    font-size: 15.5px;
  }
  .ecard {
    gap: 16px;
    padding: 22px 20px;
  }
  .ecard h3 {
    font-size: 18px;
  }
  .case-head > p {
    font-size: 15.5px;
    line-height: 25px;
  }
  .story h3 {
    font-size: 20px;
  }
  .person .info {
    text-align: center;
  }

  /* --- Contacto --- */
  .ct-intro h2 {
    font-size: clamp(28px, 7.6vw, 36px);
  }
}

/* 5. Footer en móvil: todo centrado; "Explore", "Services" y "Get in touch" como acordeón
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
  .foot {
    padding-block: 56px 28px;
    text-align: center;
  }
  .foot .top {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .foot .top > div:first-child {
    padding-bottom: 32px;
  }
  .foot .small {
    margin-inline: auto;
  }
  .foot .top > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .foot .top > div:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .foot h4 {
    position: relative;
    margin: 0;
    padding: 20px 36px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .foot h4::after {
    content: 'expand_more';
    position: absolute;
    top: 50%;
    right: 4px;
    margin-top: -11px;
    color: var(--purple);
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    transition: transform 0.3s ease;
  }
  .foot .is-open h4::after {
    transform: rotate(180deg);
  }
  .foot ul {
    justify-items: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.45s cubic-bezier(0.22, 0.7, 0.18, 1),
      opacity 0.3s ease,
      padding 0.45s ease;
  }
  .foot .is-open ul {
    max-height: 420px;
    padding-bottom: 24px;
    opacity: 1;
  }
  .foot ul a {
    display: inline-block;
    padding: 4px 0;
    font-size: 15px;
  }
  .foot li.row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
  }
  .foot li.row a {
    color: var(--muted);
    font-size: 17px;
  }
  .foot li.row .material-symbols-outlined {
    font-size: 24px;
  }

  .foot .bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
    padding-top: 0;
    border-top: 0;
  }
  /* redes (iconos) en una fila y enlaces legales en otra, separados por "|" */
  .foot .bottom nav {
    justify-content: center;
    gap: 14px 0;
  }
  .foot .bottom nav.social {
    gap: 14px;
  }
  .foot .bottom nav.social a {
    width: 42px;
    height: 42px;
    color: #fff;
  }
  .foot .bottom nav:not(.social) a {
    color: var(--muted);
    font-size: 12.5px;
    text-decoration: none;
  }
  .foot .bottom nav:not(.social) a:not(:first-child)::before {
    content: '|';
    display: inline-block;
    margin: 0 14px;
    color: var(--mute);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card .dw,
  .card .dw > .desc,
  .card .go,
  .tile,
  .cap .ib,
  .value .ring,
  .foot ul {
    transition: none !important;
  }
}

/* 6. Diálogo "Book a call" (css/booking.css)
   ≤1000px: calendario arriba y horarios abajo, objetivos táctiles más grandes, acciones fijas abajo.
   ≤760px: ocupa toda la pantalla, una sola columna en el formulario.
   --------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .bk {
    width: min(640px, calc(100vw - 32px));
  }
  .bk-panel {
    padding: 28px 24px;
  }
  .bk-head {
    flex-wrap: wrap;
  }
  .bk-progress {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }
  .bk-pick {
    grid-template-columns: minmax(0, 1fr);
  }
  .bk-date {
    width: 46px;
    height: 46px;
  }
  .bk-times {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    max-height: none;
    overflow: visible;
  }
  .bk-time {
    min-height: 48px;
  }
  .bk-actions {
    position: sticky;
    bottom: -28px;
    margin: 8px -24px -28px;
    padding: 16px 24px 28px;
    background: linear-gradient(to top, var(--ct-card, #121132) 70%, transparent);
  }
  .bk-x {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 760px) {
  .bk {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }
  .bk-panel {
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  }
  .bk-head {
    padding-right: 52px;
  }
  .bk-head .ct-ic,
  .bk-head p {
    display: none;
  }
  .bk-head h2 {
    font-size: 22px;
  }
  .bk-x {
    top: 14px;
    right: 14px;
  }
  .bk-pick {
    margin-inline: -18px;
    border-radius: 0;
    border-inline: 0;
  }
  .bk-cal {
    padding: 18px 12px 14px;
  }
  .bk-date {
    width: 100%;
    max-width: 44px;
    height: 44px;
  }
  .bk-side {
    padding: 20px 18px;
  }
  .bk-times {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
  .bk .ct-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .bk-actions {
    bottom: calc(-20px - env(safe-area-inset-bottom));
    margin: 8px -18px calc(-20px - env(safe-area-inset-bottom));
    padding: 14px 18px calc(20px + env(safe-area-inset-bottom));
  }
  .bk-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .bk-note {
    text-align: center;
    margin-inline: auto;
  }
  .bk-picked {
    flex-wrap: wrap;
  }
}
