/* ── Header sticky ── */
#site-header>header,
header {
  position: sticky !important;
  top: 0;
  z-index: 200 !important;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.qf-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px);
  overflow: hidden;
  background: #272022;
}

.qf-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.qf-hero-overlay {
  display: none;
}

.qf-hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--page-margin, 180px);
}

.qf-hero-title {
  font-family: 'Cocogoose', 'Poppins', sans-serif;
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 28px 0;
}

.qf-hero-title span {
  color: #EC690D;
}

.qf-hero-sub {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(16px, 1.4vw, 24px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin: 0 0 40px 0;
  max-width: 480px;
}

/* ══════════════════════════════════════════
   SECCIÓN SCROLL-LINKED "¿POR QUÉ?"
══════════════════════════════════════════ */

/* Wrapper alto — el stage sticky vive DENTRO de él */
.qf-wrapper {
  position: relative;
  height: 500vh;
}

.qf-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* ── Stage viewport: oculta lo que sale de pantalla ── */
.qf-stage-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Track: los 3 paneles completos en fila horizontal */
.qf-panels-track {
  display: flex;
  width: 300%;
  height: 100%;
  will-change: transform;
  /* Sin transition CSS — el JS actualiza directo en cada frame */
}

/* Cada panel = 1 pantalla completa (33.333% del track = 100% del viewport) */
.qf-panel {
  width: 33.333%;
  flex-shrink: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: #fff;
}

/* Título sticky visible en todos los paneles */
.qf-section-label {
  font-family: 'Cocogoose', 'Poppins', sans-serif;
  font-size: clamp(20px, 2.4vw, 38px) !important;
  font-weight: 700;
  color: #272022;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.2;
  position: absolute;
  top: clamp(90px, 11vh, 130px);
  left: clamp(120px, 19vw, 340px);
  z-index: 2;
  text-align: left !important;
}

/* ── Mobile: Experiencia interactiva de scroll en #qf-why-wrapper ── */
@media (max-width: 779px) {

  /* Prevenir overflow horizontal sin romper el anclaje sticky/fixed */
  html,
  body {
    overflow-x: clip !important;
  }

  /* Wrapper alto para crear la distancia de scroll vertical en móvil */
  #qf-why-wrapper.qf-wrapper {
    position: relative !important;
    height: 360vh !important;
    display: block !important;
  }

  /* Stage fijo en pantalla debajo del header durante mobile */
  #qf-why-wrapper .qf-stage {
    position: sticky !important;
    top: var(--hh, 52px) !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - var(--hh, 52px)) !important;
    height: calc(100dvh - var(--hh, 52px)) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    z-index: 25 !important;
  }

  /* Sticky: entra con el scroll, nunca se oculta (evita el hueco en blanco) */
  #qf-why-wrapper .qf-stage.qf-hidden {
    display: block !important;
  }

  #qf-why-wrapper .qf-stage-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  /* Título fijo en la parte superior del escenario */
  #qf-why-wrapper .qf-section-label {
    position: absolute !important;
    top: 14px !important;
    left: 40px !important;
    right: 28px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Cocogoose', 'Poppins', sans-serif !important;
    font-size: 4.4vw !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #272022 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
    z-index: 40 !important;
    pointer-events: none !important;
  }

  /* Contenedor track en móvil: capas superpuestas sin carrusel horizontal */
  #qf-why-wrapper .qf-panels-track {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    transform: none !important;
    will-change: auto !important;
  }

  /* Cada panel ocupa el 100% del espacio visible superpuesto */
  #qf-why-wrapper .qf-panel {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: none;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: none !important;
  }

  #qf-why-wrapper .qf-panel.qf-active {
    pointer-events: auto;
  }

  /* Mitad superior: Textos con jerarquía visual cuidada */
  #qf-why-wrapper .qf-text-half {
    flex: 0 0 auto !important;
    width: 100% !important;
    padding: 110px 28px 8px 40px !important;
    box-sizing: border-box !important;
    z-index: 20 !important;
    position: relative !important;
    background: transparent !important;
    will-change: transform, opacity !important;
    transition: none !important;
  }

  #qf-why-wrapper .qf-item-wrap {
    margin-top: 0 !important;
    max-width: 100% !important;
  }

  #qf-why-wrapper .qf-number-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 6px 0 !important;
  }

  #qf-why-wrapper .qf-number {
    font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: clamp(38px, 10vw, 48px) !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #EC690D !important;
    letter-spacing: 0.05em !important;
  }

  #qf-why-wrapper .qf-number-line {
    flex: 1 !important;
    max-width: 60px !important;
    height: 2px !important;
    background: #EC690D !important;
  }

  #qf-why-wrapper .qf-item-title {
    font-family: 'Cocogoose', 'Poppins', sans-serif !important;
    font-size: clamp(14.5px, 4.1vw, 18px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 4px 0 !important;
    color: #272022 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
  }

  #qf-why-wrapper .qf-item-desc {
    font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: clamp(12.5px, 3.4vw, 14px) !important;
    line-height: 1.35 !important;
    color: #272022 !important;
    margin: 0 0 8px 0 !important;
    max-width: 320px !important;
  }

  #qf-why-wrapper .qf-panel .d-btn {
    padding: 9px 20px !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    display: inline-flex !important;
  }

  /* Mitad inferior: Imagen de cada bloque */
  #qf-why-wrapper .qf-img-half {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 8px 10px 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    transition: none !important;
  }

  #qf-why-wrapper .qf-img-half img {
    width: auto !important;
    max-width: 98% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: bottom right !important;
    align-self: flex-end !important;
    margin: 0 0 52px 0 !important;
    transform-origin: bottom right !important;
    will-change: transform, opacity !important;
    transition: none !important;
    filter: none !important;
    box-shadow: none !important;
  }

  /* Panel 01 específico: imagen más grande */
  #qf-why-wrapper .qf-img-half.qf-img-half--p1 {
    overflow: visible !important;
  }

  #qf-why-wrapper .qf-img-half.qf-img-half--p1 img {
    max-width: 116% !important;
    max-height: 116% !important;
  }

  /* Dots de progreso en móvil */
  #qf-why-wrapper .qf-progress-dots {
    display: flex !important;
    position: absolute !important;
    left: 28px !important;
    bottom: 16px !important;
    z-index: 35 !important;
    gap: 8px !important;
  }

  #qf-why-wrapper .qf-pdot {
    width: 7px !important;
    height: 7px !important;
  }

  #qf-why-wrapper .qf-pdot.active {
    transform: scale(1.35) !important;
  }
}

@media (max-width: 779px) and (prefers-reduced-motion: reduce) {

  #qf-why-wrapper .qf-text-half,
  #qf-why-wrapper .qf-img-half img {
    transform: none !important;
  }
}

/* Mitad izquierda: texto */
.qf-text-half {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(300px, 36vh, 380px) clamp(60px, 8vw, 140px) clamp(80px, 10vh, 130px) clamp(120px, 19vw, 340px);
  position: relative;
  z-index: 2;
}

.qf-item-wrap {
  margin-top: 32px;
}

.qf-number-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px 0;
}

.qf-number {
  font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(60px, 6.2vw, 100px);
  font-weight: 900;
  color: #EC690D;
  line-height: 1;
  letter-spacing: 0.07em;
  margin: 0;
}

.qf-number-line {
  flex: 1;
  max-width: 120px;
  height: 2px;
  background: #EC690D;
}

.qf-item-title {
  font-family: 'Cocogoose', 'Poppins', sans-serif;
  font-size: clamp(16px, 1.55vw, 26px);
  font-weight: 700;
  color: #272022;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 6px 0;
}

.qf-item-desc {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(16px, 1.5vw, 25px);
  color: #000000;
  line-height: 1.10;
  margin: -4px 0 15px 0;
  max-width: 450px;
}


/* Mitad derecha: imagen */
.qf-img-half {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: #fff;
  overflow: visible;
  padding-left: 0;
  position: relative;
}

.qf-img-half img {
  width: auto;
  max-width: 100%;
  height: 88%;
  max-height: 88%;
  object-fit: contain;
  align-self: flex-end;
  margin-left: -20%;
  margin-right: clamp(20px, 4vw, 60px);
}

/* Panel 1: sin overrides extra — hereda el estilo general */

/* Paneles 2 y 3: imagen arranca desde abajo-derecha y sube con el scroll */
@media (min-width: 940px) {
  #qf-why-wrapper .qf-panel:nth-child(3) .qf-img-half img {
    margin-bottom: -40px;
    /* tenedor con pesto: tamaño y altura ajustados */
    scale: 0.95;
    /* se mueve con el margen (no con translate) para que no lo anule el parallax */
    margin-left: auto !important;
    margin-right: 20vw !important;
  }
}

.qf-img-half img[data-parallax] {
  will-change: transform;
  transform-origin: bottom right;
}

/* ── Dots de progreso (fijos sobre el stage) ── */
.qf-progress-dots {
  position: absolute;
  left: clamp(120px, 19vw, 340px);
  bottom: 48px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 10;
}

.qf-pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.qf-pdot.active {
  background: #EC690D;
  transform: scale(1.3);
}

/* ══════════════════════════════════════════
   NOS ADAPTAMOS A CUALQUIER ESPACIO
══════════════════════════════════════════ */
.na-wrapper {
  position: relative;
  height: auto;
  background: #fff;
}

/* Ya no es "sticky" con scroll largo: la sección mide una pantalla y la animación es automática */
.na-stage {
  position: relative;
  top: 0;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.na-vline {
  display: none;
}

.na-hline {
  display: none;
}

.na-title {
  position: absolute;
  left: clamp(60px, 9vw, 150px);
  top: clamp(48px, 12vh, 100px);
  z-index: 5;

  font-family: 'Cocogoose', 'Poppins', sans-serif;
  font-size: clamp(20px, 2.4vw, 38px);
  font-weight: 700;
  color: #272022;
  line-height: 1.20;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin: 0;
}

.na-quad {
  position: absolute;
  background: #EC690D;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 3vh, 40px) clamp(18px, 3vw, 48px);
  opacity: 0;
  z-index: 12;
  pointer-events: none;
  transition: opacity .5s ease;
  will-change: opacity;
}

.na-quad.is-active {
  opacity: 1;
}

/* El texto del formato sube suavemente al aparecer */
.na-quad > * {
  transform: translateY(14px);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.na-quad.is-active > * {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .na-quad,
  .na-quad > * {
    transition: none;
  }
}

.na-quad--tr {
  right: 0;
  top: 0;
  width: 50%;
  height: 50%;
}

.na-quad--br {
  right: 0;
  bottom: 0;
  width: 50%;
  height: 50%;
  background: var(--color-dark, #272022);
}

.na-quad--bl {
  left: 0;
  bottom: 0;
  width: 50%;
  height: 50%;
}

.na-format-title {
  font-family: 'Cocogoose', 'Poppins', sans-serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.na-format-desc {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(19px, 1.7vw, 26px);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.na-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-52% - 6px), calc(-49% - 9px));
  width: clamp(320px, 82vmin, 860px);
  height: clamp(320px, 82vmin, 860px);
  border-radius: 50%;
  overflow: hidden;
  z-index: 5;
}

.na-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* MacBook/laptops: separa el título de la imagen central sin alterar desktop amplio. */
@media (min-width: 780px) and (max-width: 1600px) {
  .na-title {
    left: clamp(36px, 5.5vw, 88px);
    font-size: clamp(19.6px, 2.352vw, 37.24px);
  }
}

/* ══════════════════════════════════════════
   SECCIÓN FORMULARIO
══════════════════════════════════════════ */
#quiero-franquiciar-form {
  background: #EC690D;
  padding: 72px calc(var(--page-margin, 180px) + 60px);
}

/* POSICIÓN DE LOS FORMATOS */

.na-quad--tr {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 110px 0 0 58px;
}

.na-quad--br {
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 35px 58px;
}

.na-quad--bl {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 58px 0 0 58px;
}

.qf-progress-dots {
  display: none !important;
}

/* ¿Por qué franquiciar? (móvil): bloque de número y texto más abajo; imagen más grande y más arriba */
@media (max-width: 779px) {
  #qf-why-wrapper .qf-text-half {
    padding-top: 140px !important;
  }

  #qf-why-wrapper .qf-img-half {
    overflow: visible !important;
  }

  #qf-why-wrapper .qf-img-half img {
    max-width: 156% !important;
    max-height: 158% !important;
    margin-bottom: 84px !important;
  }

  #qf-why-wrapper .qf-img-half.qf-img-half--p1 img {
    max-width: 170% !important;
    max-height: 170% !important;
  }
}

/* Panel 03 (móvil): imagen más pequeña */
@media (max-width: 779px) {
  #qf-why-wrapper .qf-panel:nth-child(3) .qf-img-half img {
    max-width: 118% !important;
    max-height: 118% !important;
    position: relative !important;
    left: 8% !important;
    top: 0 !important;
    margin-bottom: 64px !important;
  }
}

/* Panel 02 (móvil): imagen centrada */
@media (max-width: 779px) {
  #qf-why-wrapper .qf-panel:nth-child(2) .qf-img-half {
    justify-content: center !important;
    padding: 0 !important;
  }

  #qf-why-wrapper .qf-panel:nth-child(2) .qf-img-half img {
    max-width: 128% !important;
    margin-bottom: 84px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-position: center bottom !important;
    transform-origin: center bottom !important;
  }
}

/* ¿Por qué franquiciar? (móvil): título más abajo y con más margen, bloque del número más abajo y puntos centrados */
@media (max-width: 779px) {
  #qf-why-wrapper #qf-stage .qf-section-label {
    top: 38px !important;
    left: 40px !important;
    right: 28px !important;
    width: auto !important;
  }

  #qf-why-wrapper #qf-stage .qf-panel .qf-text-half {
    padding-top: 132px !important;
    padding-left: 40px !important;
    padding-right: 28px !important;
  }

  #qf-why-wrapper #qf-stage .qf-progress-dots {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    justify-content: center !important;
  }
}

/* Móvil: panel 1 más a la derecha y bloque de texto un 5% más grande */
@media (max-width: 779px) {
  #qf-why-wrapper .qf-panel:nth-child(1) .qf-img-half img {
    position: relative !important;
    left: 7% !important;
  }

  #qf-why-wrapper #qf-stage .qf-number {
    font-size: clamp(40px, 10.5vw, 50.4px) !important;
  }

  #qf-why-wrapper #qf-stage .qf-number-line {
    max-width: 63px !important;
  }

  #qf-why-wrapper #qf-stage .qf-item-title {
    font-size: clamp(15.2px, 4.3vw, 18.9px) !important;
  }

  #qf-why-wrapper #qf-stage .qf-item-desc {
    font-size: clamp(13.1px, 3.57vw, 14.7px) !important;
    max-width: 336px !important;
  }
}

/* Móvil: mismo margen lateral que Sobre nosotros (44px) */
@media (max-width: 779px) {
  #qf-why-wrapper #qf-stage .qf-section-label {
    left: 44px !important;
    right: 44px !important;
  }

  #qf-why-wrapper #qf-stage .qf-panel .qf-text-half {
    padding-left: 44px !important;
    padding-right: 44px !important;
  }
}

/* ══ ¿Por qué elegir franquiciar? (móvil): scroll normal hacia abajo, un panel debajo del otro ══
   (antes los paneles se movían de lado mientras se bajaba y el scroll se sentía trabado) */
@media (max-width: 779px) {
  #qf-why-wrapper {
    height: auto !important;
    min-height: 0 !important;
  }

  #qf-why-wrapper #qf-stage {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: block !important;
  }

  #qf-why-wrapper #qf-stage .qf-section-label {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 40px 44px 0 !important;
  }

  #qf-why-wrapper #qf-stage .qf-panel {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip-path: none !important;
  }

  #qf-why-wrapper #qf-stage .qf-panel .qf-text-half {
    padding-top: 36px !important;
    padding-bottom: 8px !important;
    height: auto !important;
  }

  #qf-why-wrapper #qf-stage .qf-panel .qf-img-half {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
  }

  #qf-why-wrapper #qf-stage .qf-panel .qf-img-half img {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 320px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto 8px !important;
    transform: none !important;
  }

  #qf-why-wrapper #qf-stage .qf-panel .qf-text-half,
  #qf-why-wrapper #qf-stage .qf-panel .qf-text-half > *,
  #qf-why-wrapper #qf-stage .qf-panel .qf-item-wrap > * {
    opacity: 1 !important;
    transform: none !important;
  }

  #qf-why-wrapper .qf-progress-dots {
    display: none !important;
  }
}

@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper {
    height: auto !important;
  }

  #qf-why-wrapper.qf-wrapper .qf-stage,
  #qf-why-wrapper.qf-wrapper .qf-stage.qf-hidden {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  #qf-why-wrapper.qf-wrapper .qf-stage-inner {
    height: auto !important;
    overflow: visible !important;
  }

  #qf-why-wrapper.qf-wrapper .qf-section-label {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
}

@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-panels-track {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    transform: none !important;
  }
}

@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-section-label {
    display: block !important;
    padding: 40px 44px 0 !important;
    text-indent: 0 !important;
    transform: none !important;
  }
}

/* ══ ¿Por qué elegir franquiciar? (móvil) — composición con ritmo (scroll normal hacia abajo)
   Cada plato descansa sobre un bloque gris que sale de un borde, alternando lados;
   el plato sobresale del bloque y entra deslizándose una sola vez al aparecer. ══ */
@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel {
    padding-bottom: 56px !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-text-half {
    padding-top: 40px !important;
    padding-bottom: 0 !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-img-half {
    position: relative !important;
    width: 86% !important;
    height: 250px !important;
    margin-top: 72px !important;
    background: #F2F2F3 !important;
    overflow: visible !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(odd) .qf-img-half {
    margin-left: auto !important;
    border-radius: 125px 0 0 125px !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(even) .qf-img-half {
    margin-right: auto !important;
    border-radius: 0 125px 125px 0 !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-img-half img {
    width: auto !important;
    max-width: 92% !important;
    height: 300px !important;
    max-height: none !important;
    margin: 0 auto -6px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 18px 22px rgba(39, 32, 34, 0.18));
    transition: transform 0.9s cubic-bezier(.22, 1, .36, 1), opacity 0.9s cubic-bezier(.22, 1, .36, 1) !important;
  }

  /* Entrada: el plato llega desde el lado de su bloque */
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(odd):not(.qf-seen) .qf-img-half img {
    transform: translateX(18%) !important;
    opacity: 0 !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(even):not(.qf-seen) .qf-img-half img {
    transform: translateX(-18%) !important;
    opacity: 0 !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-number {
    font-size: 52px !important;
  }
}

@media (max-width: 779px) and (prefers-reduced-motion: reduce) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-img-half img {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

@media (max-width: 779px) {
  /* Las fotos traen fondo blanco: se funden con el bloque gris */
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-img-half img {
    mix-blend-mode: multiply;
    filter: none !important;
    max-width: 100% !important;
    height: 310px !important;
  }
}

@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-img-half {
    height: 230px !important;
    margin-top: 120px !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-img-half img {
    height: 380px !important;
    max-width: 118% !important;
    margin-bottom: -10px !important;
  }
}

@media (max-width: 779px) {
  /* Panel 01: la foto del siu mai trae mucho aire alrededor; se agranda el plato */
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(1).qf-seen .qf-img-half img {
    transform: scale(1.4) !important;
    transform-origin: 50% 88% !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(1):not(.qf-seen) .qf-img-half img {
    transform: translateX(18%) scale(1.4) !important;
    transform-origin: 50% 88% !important;
  }
}

@media (max-width: 779px) {
  /* Sin bloque gris: el plato queda sobre blanco, alternando lado, con su entrada deslizada */
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-img-half {
    background: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 28px !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel .qf-img-half img {
    mix-blend-mode: normal;
    height: 320px !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(odd) .qf-img-half {
    justify-content: flex-end !important;
  }

  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(even) .qf-img-half {
    justify-content: flex-start !important;
  }
}

@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(1) .qf-img-half {
    margin-top: 110px !important;
  }
}

/* ¿Por qué elegir franquiciar?: título en naranja + negro (todas las pantallas) */
.qf-section-label .qf-label-accent {
  color: #EC690D;
}

/* Desktop y Mac: textos de los paneles un poco más grandes */
@media (min-width: 780px) {
  #qf-why-wrapper .qf-item-title {
    font-size: clamp(18px, 1.75vw, 30px) !important;
  }

  #qf-why-wrapper .qf-item-desc {
    font-size: clamp(17px, 1.65vw, 28px) !important;
    line-height: 1.2 !important;
    max-width: 500px !important;
  }
}

@media (min-width: 780px) {
  /* Columna de texto más ancha: los títulos respetan sus saltos de línea */
  #qf-why-wrapper .qf-item-wrap {
    width: auto !important;
    max-width: 560px !important;
  }

  #qf-why-wrapper .qf-item-title {
    white-space: nowrap;
  }
}

/* Panel 03 (móvil): tenedor con pesto más grande y pegado a la derecha */
@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(3) .qf-img-half img {
    height: 380px !important;
    max-width: none !important;
    margin-right: -24px !important;
    margin-left: auto !important;
  }
}
@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(3) .qf-img-half {
    margin-top: 0 !important;
  }
}


/* Desktop: las cajas naranjas se cuadran exacto con la cruz de la foto (--na-qx / --na-qy los calcula el JS) */
@media (min-width: 780px) {
  /* 1px de solape sobre la cruz: tapa cualquier línea fina de la foto en la unión */
  #na-wrapper .na-quad--tr { left: calc(var(--na-qx, 50%) - 1px); right: 0; top: 0; width: auto; height: calc(var(--na-qy, 50%) + 1px); }
  #na-wrapper .na-quad--br { left: calc(var(--na-qx, 50%) - 1px); right: 0; top: calc(var(--na-qy, 50%) - 1px); bottom: 0; width: auto; height: auto; }
  #na-wrapper .na-quad--bl { left: 0; right: calc(100% - var(--na-qx, 50%) - 1px); top: calc(var(--na-qy, 50%) - 1px); bottom: 0; width: auto; height: auto; }
}

/* Panel 01 (móvil): la bolsa Chinawok no trae aire alrededor como el siu mai → sin el zoom extra */
@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(1).qf-seen .qf-img-half img[src*="chinawok-bolsa"] {
    transform: none !important;
  }
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(1):not(.qf-seen) .qf-img-half img[src*="chinawok-bolsa"] {
    transform: translateX(18%) !important;
  }
}

/* Panel 01: bolsa Chinawok un poco más pequeña (desktop y móvil) */
#qf-why-wrapper .qf-img-half img[src*="chinawok-bolsa"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-caja-apertura"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-intranet-movil"] {
  scale: 0.92;
  transform-origin: center bottom;
}
@media (max-width: 779px) {
  #qf-why-wrapper .qf-img-half img[src*="chinawok-bolsa"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-caja-apertura"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-intranet-movil"] {
    scale: 0.82;
  }
}
@media (min-width: 780px) {
  #qf-why-wrapper .qf-img-half img[src*="chinawok-bolsa"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-caja-apertura"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-intranet-movil"] {
    scale: 0.72;
  }
}

/* Desktop: bloque de número y texto un poco más abajo; bolsa Chinawok más arriba y sin recuadro de fondo */
@media (min-width: 780px) {
  #qf-why-wrapper .qf-item-wrap {
    margin-top: 0;
  }
  #qf-why-wrapper .qf-img-half img[src*="chinawok-bolsa"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-caja-apertura"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-intranet-movil"] {
    translate: 0 -14%;
    mix-blend-mode: multiply;   /* el fondo casi blanco de la foto se funde con el blanco de la página */
  }
}

/* ══════════════════════════════════════════════════════════════════════
   "¿Por qué elegir franquiciar?" (DESKTOP): composición FIJA en cualquier pantalla
   (MacBook, iMac, monitores…). Se diseñó sobre una ventana de 1903 × 912 px (header 59 px);
   todas las medidas se escalan con --qfu y el conjunto se centra en la pantalla,
   así título, número, textos y foto mantienen siempre el mismo tamaño y posición relativos.
══════════════════════════════════════════════════════════════════════ */
@media (min-width: 780px) {
  #qf-why-wrapper {
    --qf-h: calc(100vh - var(--hh, 59px));
    --qfu: min(calc(100vw / 1903), calc(var(--qf-h) / 853));
    --qf-ox: calc((100vw - 1903 * var(--qfu)) / 2);   /* margen lateral para centrar el diseño */
    --qf-oy: calc((var(--qf-h) - 853 * var(--qfu)) / 2); /* margen vertical para centrar el diseño */
  }

  /* Título "¿Por qué elegir franquiciar con nosotros?" */
  #qf-why-wrapper .qf-section-label {
    top: calc(var(--qf-oy) + 100.32 * var(--qfu)) !important;
    left: calc(var(--qf-ox) + 340 * var(--qfu)) !important;
    font-size: calc(38 * var(--qfu)) !important;
    line-height: 1.2 !important;
  }

  /* Bloque de número + textos (los 3 paneles) */
  #qf-why-wrapper .qf-text-half {
    padding: calc(var(--qf-oy) + 328.32 * var(--qfu)) calc(140 * var(--qfu)) 0 calc(var(--qf-ox) + 340 * var(--qfu)) !important;
  }
  #qf-why-wrapper .qf-item-wrap {
    margin-top: 0 !important;
    max-width: calc(760 * var(--qfu)) !important;   /* margen extra: en Safari/Mac la tipografía es algo más ancha */
  }
  #qf-why-wrapper .qf-number-row {
    gap: calc(20 * var(--qfu)) !important;
    margin: 0 0 calc(20 * var(--qfu)) 0 !important;
  }
  #qf-why-wrapper .qf-number {
    font-size: calc(100 * var(--qfu)) !important;
  }
  #qf-why-wrapper .qf-number-row > :not(.qf-number) {
    width: calc(120 * var(--qfu)) !important;
  }
  #qf-why-wrapper .qf-item-title {
    font-size: calc(30 * var(--qfu)) !important;
    line-height: calc(36 * var(--qfu)) !important;
    margin: 0 0 calc(6 * var(--qfu)) 0 !important;
  }
  #qf-why-wrapper .qf-item-desc {
    font-size: calc(28 * var(--qfu)) !important;
    line-height: calc(33.6 * var(--qfu)) !important;
    margin: calc(-4 * var(--qfu)) 0 calc(15 * var(--qfu)) 0 !important;
  }

  /* Panel 01: bolsa Chinawok con posición y tamaño fijos dentro del diseño */
  #qf-why-wrapper .qf-panel:has(img[src*="chinawok-bolsa"]) .qf-img-half,
#qf-why-wrapper .qf-panel:has(img[src*="chinawok-caja-apertura"]) .qf-img-half,
#qf-why-wrapper .qf-panel:has(img[src*="chinawok-intranet-movil"]) .qf-img-half {
    position: static !important;
  }
  #qf-why-wrapper .qf-img-half img[src*="chinawok-bolsa"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-caja-apertura"],
#qf-why-wrapper .qf-img-half img[src*="chinawok-intranet-movil"] {
    position: absolute !important;
    left: calc(var(--qf-ox) + 863.3 * var(--qfu)) !important;
    top: calc(var(--qf-oy) + 102.4 * var(--qfu)) !important;
    width: calc(813.5 * var(--qfu)) !important;
    height: calc(750.6 * var(--qfu)) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
  }
}
/* Panel 01 (desktop): bolsa Chinawok un poco más a la derecha */
@media (min-width: 780px) {
  #qf-why-wrapper .qf-img-half img[src*="chinawok-bolsa"] {
    left: calc(var(--qf-ox) + 943.3 * var(--qfu)) !important;
  }
}

/* Panel 03: móvil con la intranet Chinawok — mismo tamaño que la bolsa y la caja */
@media (min-width: 780px) {
  #qf-why-wrapper .qf-panel:nth-child(3) .qf-img-half img[src*="chinawok-intranet-movil"] {
    scale: 0.72;
    margin: 0 !important;
  }
}
@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(3) .qf-img-half img[src*="chinawok-intranet-movil"] {
    height: 326px !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    scale: 1;
  }
}
@media (max-width: 779px) {
  /* Panel 03 (móvil): el teléfono un poco más abajo, separado del botón */
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel:nth-child(3) .qf-img-half:has(img[src*="chinawok-intranet-movil"]) {
    margin-top: 44px !important;
  }
}
