/* ==========================================================
   Muryqel, taller de costura - inputs.css
   One file, sections marked below. Prefix: mq-
   ========================================================== */

/* ---------- fonts (block from assets.py, paths point up from css/) ---------- */
@font-face {
  font-display:swap;
  font-family:'Instrument Serif';
  font-style:normal;
  font-weight:400;
  src:url('../fonts/instrument-serif-400.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family:'Instrument Serif Fallback';
  src:local('Georgia');
  ascent-override:131.9%;
  descent-override:41.3%;
  size-adjust:75.0%;
}
@font-face {
  font-display:swap;
  font-family:'Geist';
  font-style:normal;
  font-weight:100 900;
  src:url('../fonts/geist-var.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family:'Geist Fallback';
  src:local('Arial');
  ascent-override:98.6%;
  descent-override:29.3%;
  size-adjust:102.4%;
}

/* ---------- tokens: named after the cutting table ---------- */
:root {
  --retal-blanco: #FFFFFF;
  --retal-gris: #F6F7FA;
  --entretela: #E8EBF0;
  --costura: #D3D8E0;
  --hilvan: #5F6673;
  --forro: #14161D;
  --azul-marcar: #2E30D6;
  --hilo-verde: #0B7570;
  --azul-marcar-noche: #9C9EFF;
  --hilo-verde-noche: #5FD3CB;
  --pespunte-sombra: 0 1px 2px #14161D14, 0 14px 34px -10px #14161D2E;
  --dobladillo: 10px;
  --puntada-serif: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;
  --puntada-sans: 'Geist', 'Geist Fallback', Arial, sans-serif;
  --alto-cabecera: 76px;
  --margen-costura: clamp(18px, 4vw, 48px);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--alto-cabecera) + 20px); /* anchors land below the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--retal-blanco);
  color: var(--forro);
  font-family: var(--puntada-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

body.menu-live {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: var(--azul-marcar);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--azul-marcar);
  outline-offset: 3px;
}

/* ---------- layout helpers ---------- */
.mq-wrap {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margen-costura);
  padding-right: var(--margen-costura);
}

.mq-sec {
  position: relative;
  border-top: 1px solid var(--costura);
}

/* rhythm grows toward the footer */
.mq-air-1 {
  padding-top: clamp(56px, 7vw, 80px);
  padding-bottom: clamp(56px, 7vw, 80px);
}

.mq-air-2 {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.mq-air-3 {
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(72px, 9vw, 112px);
}

.mq-air-4 {
  padding-top: clamp(80px, 10vw, 128px);
  padding-bottom: clamp(80px, 10vw, 128px);
}

/* contact: form starts high so the corner cookie card never sits on it */
.mq-air-form {
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(56px, 7vw, 80px);
}

.mq-air-5 {
  padding-top: clamp(88px, 12vw, 152px);
  padding-bottom: clamp(88px, 12vw, 152px);
}

.mq-sec-dark {
  border-top-color: var(--forro);
  background: var(--forro);
  color: var(--retal-blanco);
}

.mq-sec-soft {
  background: var(--retal-gris);
}

/* ---------- type ---------- */
.mq-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--hilo-verde);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mq-eyebrow::after {
  content: "";
  flex: 0 0 52px;
  height: 1px;
  background: currentColor;
}

.mq-sec-dark .mq-eyebrow,
.mq-cta .mq-eyebrow {
  color: var(--hilo-verde-noche);
}

.mq-h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.mq-h2-sm {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* outline words inside big headings */
.mq-hueco {
  font-family: var(--puntada-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

@supports (-webkit-text-stroke: 1px) {
  .mq-hueco {
    color: transparent;
    -webkit-text-stroke: 1.4px var(--forro);
  }

  .mq-sec-dark .mq-hueco,
  .mq-cta .mq-hueco {
    -webkit-text-stroke-color: var(--azul-marcar-noche);
  }
}

.mq-sec-lead {
  max-width: 40rem;
  margin-top: 22px;
  color: var(--hilvan);
  font-size: 1.12rem;
}

.mq-sec-dark .mq-sec-lead {
  color: var(--costura);
}

/* ---------- buttons ---------- */
.mq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid var(--azul-marcar);
  border-radius: 0;
  background: var(--azul-marcar);
  color: var(--retal-blanco);
  font-weight: 650;
  text-decoration: none;
  box-shadow: var(--pespunte-sombra);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mq-btn:hover {
  border-color: var(--forro);
  background: var(--forro);
}

.mq-cta .mq-btn {
  border-color: var(--azul-marcar-noche);
  background: var(--azul-marcar-noche);
  color: var(--forro);
}

.mq-cta .mq-btn:hover {
  border-color: var(--retal-blanco);
  background: var(--retal-blanco);
}

.mq-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--forro);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--azul-marcar);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.mq-arrow span {
  transition: transform 0.2s ease;
}

.mq-arrow:hover span {
  transform: translateX(4px);
}

.mq-cta .mq-arrow {
  color: var(--retal-blanco);
  text-decoration-color: var(--azul-marcar-noche);
}

/* ---------- header ---------- */
.mq-head {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--costura);
  background: var(--retal-blanco);
}

.mq-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--alto-cabecera);
}

.mq-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--forro);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mq-logo svg {
  width: 34px;
  height: 34px;
}

.mq-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.mq-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--forro);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.mq-nav a:hover {
  color: var(--azul-marcar);
}

.mq-nav .mq-nav-cta {
  margin-left: 12px;
  padding: 0 20px;
  background: var(--azul-marcar);
  color: var(--retal-blanco);
  font-weight: 650;
}

.mq-nav .mq-nav-cta:hover {
  background: var(--forro);
  color: var(--retal-blanco);
}

.mq-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--forro);
  border-radius: 0;
  background: var(--retal-blanco);
  cursor: pointer;
}

.mq-burger-bars,
.mq-burger-bars::before,
.mq-burger-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forro);
}

.mq-burger-bars {
  position: relative;
}

.mq-burger-bars::before,
.mq-burger-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.mq-burger-bars::before {
  top: -7px;
}

.mq-burger-bars::after {
  top: 7px;
}

/* ---------- mobile drawer (closed = visibility, never opacity) ---------- */
.mq-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  flex-direction: column;
  padding: 16px var(--margen-costura) 32px;
  overflow-y: auto;
  background: var(--forro);
  color: var(--retal-blanco);
  visibility: hidden;
  transform: translateY(-14px);
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

.mq-drawer.menu-live {
  visibility: visible;
  transform: none;
  transition: transform 0.25s ease;
}

.mq-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hilvan);
}

.mq-drawer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mq-drawer-close {
  width: 48px;
  height: 48px;
  border: 1px solid var(--hilvan);
  border-radius: 0;
  background: var(--forro);
  color: var(--retal-blanco);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.mq-drawer-list {
  margin-top: 12px;
  list-style: none;
}

.mq-drawer-list a {
  display: flex;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--hilvan);
  color: var(--retal-blanco);
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mq-drawer-tel {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 28px;
  color: var(--azul-marcar-noche);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ---------- photos: film grain + soft vignette, square corners ---------- */
.mq-photo {
  position: relative;
}

.mq-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, #14161D00 58%, #14161D47 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.mq-photo img {
  width: 100%;
}

.mq-figcap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--hilvan);
  font-size: 0.92rem;
}

.mq-figcap::before {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: var(--hilo-verde);
}

/* ---------- hero: split, photo bleeds to the right edge ---------- */
.mq-hero {
  display: grid;
  grid-template-columns: minmax(0, min(620px, 52%)) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding-left: max(var(--margen-costura), calc(50% - 620px + var(--margen-costura)));
  padding-bottom: 64px;
  border-bottom: 1px solid var(--costura);
}

.mq-hero-copy {
  align-self: center;
  padding-top: 72px;
  padding-bottom: 24px;
}

.mq-hero-title {
  margin-top: 22px;
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.mq-hero-lead {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--hilvan);
  font-size: 1.12rem;
}

.mq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 32px;
}

.mq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  list-style: none;
}

.mq-chip {
  padding: 7px 14px;
  border: 1px solid var(--costura);
  border-radius: 999px;
  background: var(--retal-gris);
  font-size: 0.9rem;
  font-weight: 550;
}

.mq-hero-photo {
  position: relative;
  margin-top: 40px; /* offset from the copy: the asymmetric shift */
  will-change: transform;
}

.mq-hero-photo img {
  height: clamp(420px, 62vh, 640px);
  object-fit: cover;
}

.mq-hero-tag {
  position: absolute;
  left: -1px;
  bottom: 0;
  padding: 10px 16px;
  background: var(--retal-blanco);
  color: var(--forro);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- services rail ---------- */
.mq-rail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 44px;
}

.mq-rail-ctrl {
  display: flex;
  gap: 8px;
}

.mq-rail-btn {
  width: 54px;
  height: 54px;
  border: 1px solid var(--costura);
  border-radius: 0;
  background: var(--forro);
  color: var(--retal-blanco);
  font-size: 1.3rem;
  cursor: pointer;
}

.mq-rail-btn:hover {
  border-color: var(--azul-marcar-noche);
  color: var(--azul-marcar-noche);
}

.mq-rail-btn:disabled {
  border-color: var(--hilvan);
  border-style: dashed; /* dimmed by the line, the arrow keeps readable contrast */
  color: var(--costura);
  cursor: default;
}

.mq-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(268px, 318px);
  gap: 18px;
  min-width: 0;
  padding-bottom: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--hilvan) transparent;
  list-style: none;
}

.mq-panel {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border-top: 4px solid var(--azul-marcar);
  border-radius: var(--dobladillo);
  background: var(--retal-blanco);
  color: var(--forro); /* light card inside a dark band */
  box-shadow: var(--pespunte-sombra);
  scroll-snap-align: start;
}

.mq-panel-num {
  color: var(--azul-marcar);
  font-family: var(--puntada-serif);
  font-size: 2.6rem;
  line-height: 1;
}

.mq-panel h3 {
  margin-top: 18px;
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.mq-panel p {
  flex: 1;
  margin-top: 10px;
  color: var(--hilvan);
  font-size: 0.98rem;
}

.mq-panel-data {
  margin-top: 22px;
  border-top: 1px solid var(--costura);
}

.mq-panel-data div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--entretela);
}

.mq-panel-data dt {
  color: var(--hilvan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mq-panel-data dd {
  font-weight: 600;
  text-align: right;
}

.mq-panel-data .mq-panel-price {
  color: var(--azul-marcar);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mq-rail-note {
  max-width: 44rem;
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--hilo-verde-noche);
  color: var(--costura);
}

/* ---------- path of a garment (svg basting line) ---------- */
.mq-path-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
}

.mq-path-photo {
  max-width: 560px;
}

.mq-steps-wrap {
  position: relative;
  margin-top: 64px;
}

.mq-steps-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
}

.mq-steps-line path {
  fill: none;
  stroke: var(--azul-marcar);
  stroke-width: 2;
  stroke-dasharray: 10 8;
}

.mq-steps-wrap.landed .mq-steps-line path {
  animation: mq-hilvanar 2.4s ease-out;
}

@keyframes mq-hilvanar {
  from {
    stroke-dashoffset: 216;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.mq-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.mq-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px; /* no grid gap: node centers stay at 1/8, 3/8, 5/8, 7/8 */
}

.mq-step-node {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--azul-marcar);
  border-radius: 50%;
  background: var(--retal-blanco);
  color: var(--azul-marcar);
  font-family: var(--puntada-serif);
  font-size: 1.9rem;
}

.mq-step-card {
  flex: 1;
  width: 100%;
  margin-top: 22px;
  padding: 24px 22px;
  border: 1px solid var(--costura);
  border-radius: var(--dobladillo);
  background: var(--retal-blanco);
  box-shadow: var(--pespunte-sombra);
}

.mq-step-card h3 {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.mq-step-card p {
  margin-top: 8px;
  color: var(--hilvan);
  font-size: 0.98rem;
}

/* ---------- who works here ---------- */
.mq-team {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.mq-team-photo {
  max-width: 600px;
}

.mq-team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.mq-card {
  padding: 24px;
  border-left: 3px solid var(--hilo-verde);
  border-radius: var(--dobladillo);
  background: var(--retal-blanco);
  box-shadow: var(--pespunte-sombra);
}

.mq-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mq-card-role {
  margin-top: 2px;
  color: var(--hilo-verde);
  font-size: 0.92rem;
  font-weight: 650;
}

.mq-card p + p {
  margin-top: 10px;
}

.mq-hours {
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--costura);
  background: var(--retal-blanco);
}

.mq-hours strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- faq accordion ---------- */
.mq-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
}

.mq-faq-side {
  position: sticky;
  top: calc(var(--alto-cabecera) + 32px);
  align-self: start;
}

.mq-faq-side .mq-photo {
  margin-top: 36px;
}

.mq-faq-list {
  border-top: 2px solid var(--forro);
}

.mq-faq-item {
  border-bottom: 1px solid var(--costura);
}

.mq-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 18px 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.mq-faq-item summary::-webkit-details-marker {
  display: none;
}

.mq-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--azul-marcar);
  font-family: var(--puntada-serif);
  font-size: 2rem;
  line-height: 1;
}

.mq-faq-item[open] summary::after {
  content: "\2212";
}

.mq-faq-item p {
  max-width: 40rem;
  padding: 0 48px 24px 0;
  color: var(--hilvan);
}

/* ---------- cta band ---------- */
.mq-cta {
  background: var(--forro);
  color: var(--retal-blanco);
}

.mq-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
}

.mq-cta-box {
  padding: 28px;
  border: 1px solid var(--hilvan);
  border-top: 3px solid var(--azul-marcar-noche);
}

.mq-cta-box p {
  color: var(--costura);
}

.mq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
}

/* ---------- inner page head ---------- */
.mq-pagehead {
  padding-top: 64px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--costura);
  background: var(--retal-gris);
}

.mq-pagehead h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.mq-pagehead-lead {
  max-width: 46rem;
  margin-top: 18px;
  color: var(--hilvan);
  font-size: 1.12rem;
}

/* ---------- contact page ---------- */
.mq-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.mq-form {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--costura);
  border-top: 4px solid var(--azul-marcar);
  border-radius: var(--dobladillo);
  background: var(--retal-blanco);
  box-shadow: var(--pespunte-sombra);
}

.mq-form-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mq-field {
  margin-top: 22px;
}

.mq-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}

.mq-field input,
.mq-field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--hilvan);
  border-radius: 8px;
  background: var(--retal-blanco);
}

.mq-field textarea {
  resize: vertical;
}

.mq-field input:focus,
.mq-field textarea:focus {
  border-color: var(--azul-marcar);
  outline: 2px solid var(--azul-marcar);
  outline-offset: 0;
}

.mq-field [aria-invalid="true"],
.mq-consent [aria-invalid="true"] {
  border: 2px solid var(--azul-marcar);
}

.mq-field-error {
  margin-top: 6px;
  color: var(--azul-marcar);
  font-size: 0.95rem;
  font-weight: 600;
}

.mq-field-error:empty {
  display: none;
}

/* honeypot: off-screen, not display:none */
.mq-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mq-consent {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-top: 24px;
}

.mq-consent input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--azul-marcar);
}

.mq-consent-note {
  margin-top: 10px;
  color: var(--hilvan);
  font-size: 0.95rem;
}

.mq-form .mq-btn {
  margin-top: 24px;
}

.mq-form-status {
  margin-top: 12px;
  font-weight: 600;
}

.mq-form-status:empty {
  display: none;
}

.mq-contact-side {
  display: grid;
  gap: 18px;
}

.mq-desk {
  padding: 28px;
  border-radius: var(--dobladillo);
  background: var(--forro);
  color: var(--retal-blanco);
  box-shadow: var(--pespunte-sombra);
}

.mq-desk-title {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hilvan);
  font-size: 1.2rem;
  font-weight: 750;
}

.mq-desk-tel,
.mq-desk-mail {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--azul-marcar-noche);
  font-weight: 750;
}

.mq-desk-tel {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.mq-desk p {
  margin-top: 6px;
  color: var(--costura);
}

.mq-after {
  margin-top: 28px;
  padding-left: 22px;
  border-left: 2px solid var(--costura);
  counter-reset: paso;
  list-style: none;
}

.mq-after li {
  position: relative;
  padding: 6px 0 6px 34px;
  color: var(--hilvan);
  counter-increment: paso;
}

.mq-after li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--azul-marcar);
  font-family: var(--puntada-serif);
  font-size: 1.4rem;
  line-height: 1.1;
}

/* ---------- tables ---------- */
.mq-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--costura);
  background: var(--retal-blanco);
}

.mq-table caption {
  padding: 14px 18px;
  border: 1px solid var(--costura);
  border-bottom: 0;
  background: var(--entretela);
  font-weight: 750;
  text-align: left;
}

.mq-table th,
.mq-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--costura);
  text-align: left;
  vertical-align: top;
}

.mq-table th {
  width: 36%;
  color: var(--hilvan);
  font-weight: 600;
}

.mq-table thead th {
  width: auto;
  background: var(--retal-gris);
  color: var(--forro);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mq-table a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* two-column fact tables may break long strings */
.mq-req td {
  overflow-wrap: anywhere;
}

.mq-scroll {
  min-width: 0;
  overflow-x: auto;
}

.mq-scroll .mq-table {
  min-width: 640px;
}

/* ---------- legal pages ---------- */
.mq-legal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.mq-toc {
  position: sticky;
  top: calc(var(--alto-cabecera) + 24px);
  padding: 20px 22px;
  border: 1px solid var(--costura);
  border-top: 3px solid var(--forro);
  background: var(--retal-blanco);
}

.mq-toc-title {
  color: var(--hilvan);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mq-toc ol {
  margin-top: 8px;
  list-style: none;
}

.mq-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--entretela);
  color: var(--forro);
  font-size: 0.97rem;
  text-decoration: none;
}

.mq-toc a:hover {
  color: var(--azul-marcar);
}

.mq-legal-sec + .mq-legal-sec {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--costura);
}

.mq-legal-sec > p {
  max-width: 46rem;
  margin-top: 14px;
}

.mq-legal-sec > .mq-table,
.mq-legal-sec > .mq-scroll,
.mq-legal-sec > .mq-tiles,
.mq-legal-sec > .mq-card {
  margin-top: 22px;
}

.mq-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
}

.mq-tile {
  padding: 22px;
  border: 1px solid var(--costura);
  border-radius: var(--dobladillo);
  background: var(--retal-blanco);
  box-shadow: var(--pespunte-sombra);
}

.mq-tile-num {
  color: var(--azul-marcar);
  font-family: var(--puntada-serif);
  font-size: 1.8rem;
  line-height: 1;
}

.mq-tile h3 {
  margin-top: 8px;
  font-size: 1.08rem;
  font-weight: 750;
}

.mq-tile p {
  margin-top: 8px;
  color: var(--hilvan);
  font-size: 0.97rem;
}

.mq-tile-base {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--entretela);
  color: var(--forro);
  font-size: 0.85rem;
  font-weight: 600;
}

.mq-card > p + .mq-btn {
  margin-top: 18px;
}

/* ---------- next steps (thanks, 404) ---------- */
.mq-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 36px;
}

.mq-tile-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 650;
}

/* ---------- footer ---------- */
.mq-foot {
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: 36px;
  border-top: 1px solid var(--costura);
  background: var(--retal-gris);
}

.mq-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}

.mq-foot-legal {
  max-width: 34rem;
  margin-top: 18px;
  color: var(--hilvan);
  font-size: 0.95rem;
}

.mq-foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mq-foot-title {
  color: var(--hilvan);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mq-foot-links ul {
  margin-top: 8px;
  list-style: none;
}

.mq-foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--forro);
  text-decoration: none;
}

.mq-foot-links a:hover {
  color: var(--azul-marcar);
  text-decoration: underline;
}

.mq-foot-base {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--costura);
  color: var(--hilvan);
  font-size: 0.9rem;
}

/* ---------- cookie bar: corner card, pinned ---------- */
.barra-cookies {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 130;
  display: grid;
  gap: 14px;
  width: min(380px, calc(100% - 24px));
  padding: 20px 22px;
  border: 1px solid var(--costura);
  border-top: 3px solid var(--azul-marcar);
  background: var(--retal-blanco);
  color: var(--forro);
  font-size: 0.94rem;
  line-height: 1.5;
  box-shadow: var(--pespunte-sombra);
}

.barra-cookies[hidden] {
  display: none;
}

.barra-cookies-acciones {
  display: flex;
  gap: 10px;
}

.barra-cookies-acciones button {
  flex: 1;
  min-height: 46px;
  border: 2px solid var(--forro);
  border-radius: 0;
  background: var(--retal-blanco);
  color: var(--forro);
  font-weight: 650;
  cursor: pointer;
}

.barra-cookies-acciones .barra-cookies-si {
  background: var(--forro);
  color: var(--retal-blanco);
}

/* ---------- reveal (class added by the head script only when JS runs) ---------- */
.mq-anim .mq-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mq-anim .mq-reveal.landed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .mq-anim .mq-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mq-steps-wrap.landed .mq-steps-line path {
    animation: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .mq-legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .mq-toc {
    position: static;
  }

  .mq-toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    column-gap: 20px;
  }
}

@media (max-width: 1023px) {
  .mq-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-right: var(--margen-costura);
  }

  .mq-hero-copy {
    padding-top: 44px;
    padding-bottom: 0;
  }

  .mq-hero-photo {
    margin-top: 0;
  }

  .mq-hero-photo img {
    height: auto;
    max-height: 52vh;
  }
}

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

  .mq-burger {
    display: inline-flex;
  }

  .mq-path-head,
  .mq-team,
  .mq-faq,
  .mq-cta-grid,
  .mq-contact,
  .mq-foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mq-faq-side {
    position: static;
  }

  .mq-steps-line {
    display: none;
  }

  .mq-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  /* vertical basting line through the nodes */
  .mq-steps::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 31px;
    border-left: 2px dashed var(--azul-marcar);
  }

  .mq-step {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    padding: 0;
  }

  .mq-step-node {
    flex: 0 0 64px;
  }

  .mq-step-card {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --alto-cabecera: 64px;
  }

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

  .mq-team-cards,
  .mq-foot-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .mq-faq-item p {
    padding-right: 0;
  }

  .mq-pagehead {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .mq-pagehead-lead {
    font-size: 1rem;
  }

  .mq-form {
    padding: 20px 18px;
  }

  .mq-field {
    margin-top: 16px;
  }

  /* phone card goes last on phones: keeps it clear of the cookie card on first load */
  .mq-desk {
    order: 3;
  }

  .mq-table th,
  .mq-table td {
    padding: 10px 12px;
  }

  .barra-cookies {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 16px;
  }
}
