:root {
  --page-margin: clamp(60px, 11.25vw, 180px);
}

@media (max-width: 779px) {
  :root {
    --page-margin: 40px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  overflow-x: hidden;
}

/* ── VIDEO HERO ───────────────────────────────────────────────────────── */
.cw-video-hero {
  width: 100%;
  height: calc(100dvh - 52px);
  overflow: hidden;
}

.cw-video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── HEADER FIJO ─────────────────────────────────────────────────────── */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
}

/* ── SCROLL CONTAINER ─────────────────────────────────────────────────── */
/* Altura total = 3 paneles (1 inicial + 2 transiciones) × 100vh         */
#cw-outer {
  position: relative;
  height: 300vh;
}

/* Sticky viewport: queda fijo mientras el usuario scrollea */
#cw-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  /* El header fijo se superpone encima — z-index del header es 200 */
}

/* ── PANEL IZQUIERDO (info) ───────────────────────────────────────────── */
#cw-info {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vh, 80px) clamp(40px, 4vw, 72px) clamp(40px, 6vh, 80px) clamp(60px, 8vw, 120px);
  z-index: 1;
  background: #fff;
}

#cw-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  object-position: left;
  margin-bottom: 22px;
  flex-shrink: 0;
  align-self: flex-start;
}

#cw-title {
  font-family: 'Cocogoose', 'Poppins', sans-serif;
  font-size: clamp(15.2px, 1.8vw, 30px);
  font-weight: 700;
  color: #272022;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

#cw-desc {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(14.5px, 1.5vw, 23px);
  color: #272022;
  line-height: 1.20;
  letter-spacing: 0.03em;
  margin: 4px 0 10px;
  max-width: 580px;
}

#cw-link {
  display: none !important;
  cursor: default;
  pointer-events: none;
  font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(15px, 1.4vw, 20px);
  color: #e00;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EC690D;
  color: #fff;
  font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 12px 32px;
  border-radius: 999px;
  text-decoration: none;
  align-self: flex-start;
  white-space: nowrap;
  transition: background 0.2s;
}

#cw-btn:hover {
  background: #d45c0a;
}

/* ── PANEL DERECHO (fotos) ─────────────────────────────────────────────── */
#cw-photos-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  isolation: isolate;
  contain: paint;
}

#cw-photos-inner {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100vw;
  display: flex;
  will-change: transform;
  transform: translate3d(66.67vw, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cw-photo {
  flex-shrink: 0;
  width: 33.33vw;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cw-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ── SCROLL HINT ──────────────────────────────────────────────────────── */
#cw-hint {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 1;
  transition: opacity 0.4s;
}

#cw-hint span {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

#cw-hint svg {
  animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ── SECCIÓN STATS ────────────────────────────────────────────────────── */
#cw-stats {
  width: 100%;
}

/* Mitad blanca */
#cw-stats-top {
  padding-left: var(--page-margin, clamp(24px, 8vw, 120px));
  padding-right: var(--page-margin, clamp(24px, 8vw, 120px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 460px;
  max-height: 660px;
  height: 66vh;
  background: #fff;
  overflow: hidden;
}

#cw-stats-left {
  padding: clamp(32px, 4vh, 56px) clamp(24px, 3vw, 56px) clamp(32px, 4vh, 56px) clamp(60px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

#cw-count-wrap {
  font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(72px, 10vw, 160px);
  font-weight: 900;
  color: #EC690D;
  line-height: 0.9;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.cw-plus {
  color: #EC690D;
}

#cw-stats-subtitle {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 26px);
  font-weight: 700;
  color: #272022;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

#cw-stats-desc {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(15px, 1.5vw, 23px);
  color: #272022;
  line-height: 1.65;
  margin: 0 0 28px 0;
  max-width: none;
}

.cw-stats-btn {
  display: inline-block;
  background: #EC690D;
  color: #fff;
  font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}

.cw-stats-btn:hover {
  background: #d45c0a;
}

#cw-stats-img {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#cw-stats-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Mitad naranja */
#cw-formatos {
  background: #EC690D;
  padding: clamp(52px, 7vh, 90px) var(--page-margin, clamp(24px, 8vw, 120px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cw-formato-grid {
  display: grid;
  grid-template-columns: repeat(7, auto);
  justify-content: center;
  align-items: start;
  column-gap: clamp(36px, 4vw, 76px);
  width: 100%;
}

.cw-formato-col {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cw-formato-col h4 {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  white-space: nowrap;
}

.cw-formato-col p {
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(12px, 0.85vw, 16px);
  color: #fff;
  line-height: 1.75;
  margin: 0;
  white-space: nowrap;
}

.cw-formato-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.75);
  align-self: stretch;
  min-height: 80px;
}

.cw-formatos-btn {
  display: inline-flex;
  width: fit-content;
  background: #fff;
  color: #EC690D;
  font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.cw-formatos-btn:hover {
  background: #272022;
  color: #fff;
}

/* ── FADE-IN ON SCROLL ────────────────────────────────────────────────── */
.cw-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cw-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.cw-fade-in.cw-from-right {
  transform: translateX(120px);
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.cw-fade-in.cw-from-right.visible {
  transform: none;
}

/* ── Entrada de la página ── */
@keyframes cwFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cwFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#cw-info>* {
  animation: cwFadeUp 800ms cubic-bezier(.22, 1, .36, 1) both;
}

#cw-logo {
  animation-delay: 100ms !important;
}

#cw-title {
  animation-delay: 220ms !important;
}

#cw-desc {
  animation-delay: 340ms !important;
}

#cw-link {
  animation-delay: 460ms !important;
}

#cw-btn {
  animation-delay: 580ms !important;
}

#cw-photos-wrap {
  animation: cwFadeIn 1000ms ease 300ms both;
}

@media (prefers-reduced-motion: reduce) {

  #cw-info>*,
  #cw-photos-wrap {
    animation: none;
  }

  #cw-stats-img {
    animation: none;
  }
}

/* Entrada con fundido al llegar desde Nuestras Marcas */
@keyframes cw-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* (sin fundido propio: la transición entre páginas la hace styles.css) */

/* ══ MÓVIL: fotos en 4:3 y bloque naranja de formatos con entrada animada ══ */
@media (max-width: 779px) {
  /* Eleva un poco la imagen destacada, sin cambiar su tamaño. */
  #cw-stats-img {
    position: relative;
    top: -8px;
  }

  /* Carrusel de fotos en formato vertical (3:4) */
  #cw-photos-wrap,
  #cw-photos-inner {
    height: auto !important;
  }

  .cw-photo {
    width: 66vw !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    border-radius: 0 !important;
  }

  .cw-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  /* Bloque naranja: tarjetas 2×2 */
  /* El bloque naranja ocupa todo el ancho (sin márgenes laterales ni inferior) */
  #cw-stats {
    padding: 32px 0 0 !important;
  }

  #cw-stats-top {
    padding: 0 var(--page-margin);
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #cw-formatos {
    border-radius: 0 !important;
    padding: 34px var(--page-margin) 38px !important;
    gap: 22px !important;
    box-shadow: none;
  }

  #cw-formatos .cw-formato-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100%;
  }

  #cw-formatos .cw-formato-divider {
    display: none !important;
  }

  #cw-formatos .cw-formato-col {
    background: none;
    border: none;
    border-radius: 0;
    padding: 4px 0 8px;
    gap: 8px;
  }

  #cw-formatos .cw-formato-col h4 {
    font-size: 12.5px;
    letter-spacing: 0.12em;
    white-space: normal;
  }

  #cw-formatos .cw-formato-col h4::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    margin-top: 8px;
    background: #fff;
    border-radius: 2px;
  }

  #cw-formatos .cw-formato-col p {
    font-size: 13.5px;
    line-height: 1.5;
    white-space: normal;
  }

  #cw-formatos .cw-formatos-btn {
    width: fit-content !important;
    max-width: none;
    text-align: center;
    padding: 15px 24px;
    box-shadow: none;
  }

  /* Entrada animada (escalonada con los delays inline de cada elemento) */
  #cw-formatos .cw-fade-in {
    opacity: 0 !important;
    transform: translateY(30px) scale(0.96) !important;
    transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1), transform 0.7s cubic-bezier(.22, 1, .36, 1) !important;
  }

  #cw-formatos .cw-fade-in.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 779px) and (prefers-reduced-motion: reduce) {
  #cw-formatos .cw-fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Móvil: imagen del plato centrada y completa (sin recortes ni desplazamiento a la derecha) */
@media (max-width: 779px) {
  #cw-stats #cw-stats-img {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #cw-stats #cw-stats-img img {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 84% !important;
    max-width: 380px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
    transform: translateX(-16%) !important;
  }
}

/* Montao (móvil): su foto ya viene centrada, sin desplazamiento a la izquierda */
@media (max-width: 779px) {
  #cw-stats #cw-stats-img img[alt="Chimi Montao"] {
    transform: none !important;
  }
}

/* Wang (móvil): plato un poco más grande */
@media (max-width: 779px) {
  #cw-stats #cw-stats-img img[alt="Wang & Hnos plato"] {
    width: 100% !important;
    max-width: 460px !important;
  }
}

/* Wang (móvil): más grande y más abajo, sin invadir el bloque naranja */
@media (max-width: 779px) {
  #cw-stats #cw-stats-top #cw-stats-img:has(img[alt="Wang & Hnos plato"]) {
    padding-top: 28px !important;
    overflow: hidden !important;
    top: 0 !important; /* foto apoyada sobre el bloque naranja, sin franja blanca */
  }

  #cw-stats #cw-stats-img img[alt="Wang & Hnos plato"] {
    width: 126% !important;
    max-width: 590px !important;
    transform: translateX(2%) !important;
  }
}


/* Móvil: la imagen del bloque de cifras ocupa todo el ancho de la pantalla (de borde a borde) */
@media (max-width: 779px) {
  #cw-stats #cw-stats-top #cw-stats-img {
    margin-left: -48px !important;
    margin-right: -48px !important;
    width: calc(100% + 96px) !important;
  }

  #cw-stats #cw-stats-top #cw-stats-img img:not([alt="Wang & Hnos plato"]) {
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    margin: 0 !important;
  }
}

/* Móvil: el carrusel muestra cada foto centrada con la anterior y la siguiente asomando a los lados */
@media (max-width: 779px) {
  #cw-photos-wrap {
    scroll-snap-type: x mandatory;
    pointer-events: auto;
  }

  #cw-photos-inner {
    padding: 0 17vw !important;
    gap: 10px !important;
  }

  .cw-photo {
    scroll-snap-align: center;
    cursor: pointer;
  }

  .cw-photo:focus-visible {
    outline: 2px solid #EC690D;
    outline-offset: -3px;
  }

  /* Bloque de cifras: que no recorte la imagen por abajo */
  #cw-stats #cw-stats-top {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Chinawok: recorte cuadrado que quita el vacío blanco de la izquierda y deja el plato centrado */
  #cw-stats #cw-stats-top #cw-stats-img img[alt="Chinawok plato"] {
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* Móvil: fotos de los costados desenfocadas, la central nítida */
@media (max-width: 779px) {
  .cw-photo {
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
  }

  .cw-photo:not(.cw-active) {
    filter: blur(4px);
    opacity: 0.65;
    transform: scale(0.94);
  }

  /* Chinawok: imagen del bloque de cifras un poco más pequeña y centrada */
  #cw-stats #cw-stats-top #cw-stats-img img[alt="Chinawok plato"] {
    width: 104.3% !important;
    margin: 0 auto !important;
    transform: translate(-10%, calc(-3% + 9px)) !important;
  }
}

@media (max-width: 779px) and (prefers-reduced-motion: reduce) {
  .cw-photo:not(.cw-active) { transform: none; }
}

/* Arqons (móvil): logo más pequeño */
@media (max-width: 779px) {
  #cw-info #cw-logo[alt="Arqons"] {
    height: 18px !important;
    width: auto !important;
  }
}

/* Móvil: márgenes laterales más marcados en todas las páginas de marca */
@media (max-width: 779px) {
  #cw-info {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }

  #cw-stats #cw-stats-top {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }

  #cw-formatos {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }
}

/* Móvil: logos de marca centrados, un 10% más pequeños y más cerca de su título */
@media (max-width: 779px) {
  #cw-info #cw-logo {
    align-self: center !important;
    object-position: center !important;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
  }

  #cw-info #cw-logo[alt="Chinawok"],
  #cw-info #cw-logo[alt="Wang & Hnos"] {
    height: 81px !important;
    width: auto !important;
  }

  #cw-info #cw-logo[alt="Montao"] {
    height: 56px !important;
    width: auto !important;
  }
}

/* Chinawok (móvil): logo un poco más abajo, pegado a su título */
@media (max-width: 779px) {
  #cw-info #cw-logo[alt="Chinawok"] {
    margin-top: 26px !important;
    margin-bottom: 0 !important;
  }
}

/* Chinawok (móvil): logo más pequeño */
@media (max-width: 779px) {
  #cw-info #cw-logo[alt="Chinawok"] {
    height: 66px !important;
    width: auto !important;
  }
}

/* Chinawok (móvil): logo más arriba */
@media (max-width: 779px) {
  #cw-info #cw-logo[alt="Chinawok"] {
    margin-top: 6px !important;
  }
}

/* Chinawok (móvil): logo un poco más arriba */
@media (max-width: 779px) {
  #cw-info #cw-logo[alt="Chinawok"] {
    margin-top: -10px !important;
  }
}

/* Chinawok (móvil): título un poco más abajo */
@media (max-width: 779px) {
  #cw-info:has(#cw-logo[alt="Chinawok"]) #cw-title {
    margin-top: 14px !important;
  }
}

/* Wang (móvil): mismo ajuste que Chinawok (logo más pequeño y arriba, título más abajo) */
@media (max-width: 779px) {
  #cw-info #cw-logo[alt="Wang & Hnos"] {
    height: 66px !important;
    width: auto !important;
    margin-top: -10px !important;
    margin-bottom: 0 !important;
  }

  #cw-info:has(#cw-logo[alt="Wang & Hnos"]) #cw-title {
    margin-top: 14px !important;
  }
}

/* Montao (móvil): logo más pequeño */
@media (max-width: 779px) {
  #cw-info #cw-logo[alt="Montao"] {
    height: 44px !important;
    width: auto !important;
  }
}

/* Wang (móvil): logo más pequeño */
@media (max-width: 779px) {
  #cw-info #cw-logo[alt="Wang & Hnos"] {
    height: 54px !important;
    width: auto !important;
  }
}

/* Montao (móvil): bloque de logo, título, texto y botón un poco más arriba */
@media (max-width: 779px) {
  #cw-info:has(#cw-logo[alt="Montao"]) {
    padding-top: 12px !important;
  }
}

/* Il Fornaio (móvil): logo más pequeño y bloque más arriba (esta es la página que abre "Nuestras marcas") */
@media (max-width: 779px) {
  #cw-info #cw-logo[alt="Il Fornaio"] {
    height: 54px !important;
    width: auto !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }

  #cw-info:has(#cw-logo[alt="Il Fornaio"]) {
    padding-top: 12px !important;
  }
}

/* Il Fornaio (móvil): foto del desayuno centrada */
@media (max-width: 779px) {
  #cw-stats #cw-stats-top #cw-stats-img:has(img[alt="Il Fornaio desayuno"]) {
    overflow: visible !important;
  }

  #cw-stats #cw-stats-top #cw-stats-img img[alt="Il Fornaio desayuno"] {
    transform-origin: center center !important;
    transform: none !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
  }
}

/* Video de cierre: queda fijo "detrás de todo" y se ve a través de esta ventana antes del footer */
.cw-video-bg-final {
  width: 100%;
  height: 80vh;
  height: 80svh;
  position: relative;
  clip-path: inset(0);
  background: #272022;
}

.cw-video-bg-final video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  object-fit: cover;
}

@media (max-width: 779px) {
  .cw-video-bg-final { height: 60svh; }
}

/* Móvil: descripción compacta y legible, botón centrado */
@media (max-width: 779px) {
  #cw-info #cw-desc {
    margin: 8px 0 20px !important;
    font-size: clamp(11px, 3.4vw, 13px) !important;
    line-height: 1.22 !important;
    text-align: left;
    white-space: normal !important;
  }

  .cw-br-desktop {
    display: none !important;
  }

  #cw-info #cw-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    line-height: 1 !important;
    height: 38px !important;
    padding: 0 28px !important;
  }

  #cw-info:has(#cw-logo[alt="Chinawok"]) #cw-btn {
    margin-top: 18px !important;
  }
}

/* Montao: el botón QUIERO FRANQUICIAR vuelve a mostrarse (igual que Chinawok y Wang) */

/* Bloque naranja de formatos (móvil, todas las marcas): columnas pegadas a los márgenes y descripciones un tamaño más pequeñas */
@media (max-width: 779px) {
  #cw-formatos .cw-formato-grid {
    grid-template-columns: auto auto !important;
    justify-content: space-between !important;
    column-gap: 16px !important;
    width: 100% !important;
  }

  #cw-formatos .cw-formato-col p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }
}

/* Bloque naranja de formatos (móvil): márgenes laterales más amplios */
@media (max-width: 779px) {
  #cw-formatos {
    padding-left: 60px !important;
    padding-right: 60px !important;
  }
}

/* ══ Bloque naranja de formatos (móvil) — diseño nuevo: solo naranja y blanco ══
   Cuatro celdas con línea superior, número en contorno, título en mayúsculas y descripción.
   Botón blanco tipo píldora con flecha. */
@media (max-width: 779px) {
  #cw-formatos {
    padding: 44px 48px 46px !important;
    gap: 34px !important;
    align-items: stretch !important;
  }

  #cw-formatos .cw-formato-grid {
    counter-reset: fm;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    justify-content: stretch !important;
    column-gap: 26px !important;
    row-gap: 30px !important;
  }

  #cw-formatos .cw-formato-col {
    counter-increment: fm;
    position: relative;
    gap: 8px !important;
    padding: 16px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.4) !important;
  }

  #cw-formatos .cw-formato-col::before {
    content: counter(fm, decimal-leading-zero);
    display: block;
    margin-bottom: 4px;
    font-family: 'Helvetica Neue Roman', 'Helvetica Neue', Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
  }

  #cw-formatos .cw-formato-col h4 {
    font-size: 12.5px !important;
    letter-spacing: 0.12em !important;
    white-space: normal !important;
  }

  #cw-formatos .cw-formato-col h4::after {
    display: none !important;
  }

  #cw-formatos .cw-formato-col p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  #cw-formatos .cw-formatos-btn {
    align-self: center !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content !important;
    max-width: none !important;
    padding: 15px 24px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    letter-spacing: 0.08em;
  }

  #cw-formatos .cw-formatos-btn::after {
    content: '→';
    font-size: 16px;
    line-height: 1;
    transition: transform 0.25s ease;
  }

  #cw-formatos .cw-formatos-btn:active::after {
    transform: translateX(4px);
  }
}

/* Formatos (móvil): sin números ni flecha en el botón */
@media (max-width: 779px) {
  #cw-formatos .cw-formato-col::before {
    display: none !important;
  }

  #cw-formatos .cw-formatos-btn::after {
    display: none !important;
  }

  #cw-formatos .cw-formatos-btn {
    gap: 0 !important;
  }
}


/* Il Fornaio, bloque "All day": taza de café más chica y un poco a la derecha */
#cw-stats #cw-stats-img img[alt="Café Il Fornaio"] {
  scale: 0.78;
  translate: 8% 0;
}

/* Desktop (todas las marcas): más aire entre título, descripción y botón */
@media (min-width: 780px) {
  #cw-info #cw-title {
    line-height: 1.05 !important;
  }

  #cw-info #cw-desc {
    margin: 14px 0 28px !important;
    line-height: 1.38 !important;
  }
}

/* Desktop: sin líneas blancas entre las fotos del carrusel (redondeo de anchos en 33.33vw) */
@media (min-width: 780px) {
  #cw-photos-inner {
    gap: 0 !important;
  }

  .cw-photo {
    width: 33.333333vw !important;
    margin: 0 !important;
    overflow: visible;
  }

  .cw-photo img {
    display: block;
    /* Cubre los subpíxeles que aparecen mientras el carrusel se traslada. */
    width: calc(100% + 3px) !important;
    max-width: none;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* Wang (desktop): foto de cifras pegada al borde derecho sin depender de JS (el JS solo afina el ajuste) */
@media (min-width: 780px) {
  #cw-stats #cw-stats-top #cw-stats-img.cw-stats-img--bleed {
    margin-right: calc(-1 * var(--page-margin, clamp(24px, 8vw, 120px)));
  }
}

/* Montao: combo para llevar un poco más pequeño (desktop y móvil) */
#cw-stats #cw-stats-img img[alt="Combo Montao para llevar"] {
  scale: 0.85;
  transform-origin: right center;
}
@media (max-width: 779px) {
  #cw-stats #cw-stats-img img[alt="Combo Montao para llevar"] {
    transform-origin: center center !important;
    object-position: center center !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Bloque naranja con una sola frase (Montao) en lugar de las 4 columnas de formatos */
.cw-formatos-lead {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(20px, 2.1vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
@media (max-width: 779px) {
  .cw-formatos-lead {
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    padding: 0 4px;
  }
}
