/* Diseño web (servicios/diseno-web): escenas propias de cada tipo de web. Todas las clases llevan el prefijo dw-. */

/* ── Portada: computador y celular con webs reales sobre el mosaico claro ── */
.dw-hero { position: relative; z-index: 2; display: flex; justify-content: center; width: 100%; }
html:not(.ph-oscura) .ph-stage.dw-stage { padding-inline: clamp(20px, 2.6vw, 44px); }
.dw-stage #devices { width: 80%; }
.dw-stage .dv-label { color: #1d2a3d; }
.dw-stage .dv-label svg { color: #5f6800; }
.dw-stage .dv-badge { background: #ffffff; color: #1d2a3d; box-shadow: 0 12px 30px rgba(29, 42, 61, .16); }
.dw-stage .dv-1 { left: -17%; top: 40%; }
.dw-stage .dv-2 { right: -13%; top: 6%; }
.dw-stage .dv-3 { left: -12%; top: 64%; }
html.dark .dw-stage .laptop-base { background: #c3cad4; }
html.dark .dw-stage .laptop-base::before { background: #a4adba; }
.dw-hero-3d { width: clamp(84px, 8vw, 124px); left: clamp(12px, 1.6vw, 26px); top: clamp(10px, 1.4vw, 22px); }
.dw-cap { position: absolute; z-index: 4; right: clamp(14px, 2vw, 30px); top: clamp(16px, 1.8vw, 28px); display: inline-flex; align-items: center; gap: .45em; padding: 6px 14px 6px 10px; border-radius: 999px; background: #ffffff; color: #1d2a3d; font-size: .875rem; font-weight: 600; box-shadow: 0 8px 22px rgba(29, 42, 61, .12); }
.dw-cap svg { color: #5f6800; }

/* ── Elige lo que necesitas: cuatro tarjetas con su precio ── */
.dw-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.dw-pick { padding: clamp(22px, 2.2vw, 32px); transition: translate .18s var(--ease-out), background-color .25s ease; }
.dw-pick:hover { translate: 0 -4px; }
.dw-pick .ico-box { width: 48px; height: 48px; background: var(--navy); color: var(--lime); }
.dw-pick .ico-box svg { width: 23px; height: 23px; }
.dw-pick-tag { margin-top: 18px; font-size: .875rem; font-weight: 600; line-height: 1.25; color: var(--brand); }
.t-lime .dw-pick-tag { color: var(--on-lime); }
.dw-pick-h { margin-top: 4px; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.1; }
.dw-pick-p { flex: 1; margin-top: 8px; line-height: 1.35; color: var(--soft); }
.t-lime .dw-pick-p { color: var(--on-lime); }
.dw-pick-price { margin-top: 18px; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dw-pick-price small { display: block; margin-bottom: 4px; font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.dw-pick-go { display: inline-flex; align-items: center; gap: .4em; min-height: 32px; margin-top: 12px; font-weight: 500; color: var(--brand); }
.t-lime .dw-pick-go { color: var(--on-lime); }
.dw-pick-go svg { transition: translate .18s var(--ease-out); }
.dw-pick:hover .dw-pick-go svg { translate: 0 3px; }
#elige .fine { margin-top: 16px; }

/* ── Cada tipo de web: texto y su mini pantalla animada ── */
.dw-mod { gap: clamp(28px, 4vw, 64px); }
.dw-rev { grid-template-columns: 7fr 5fr; }
.dw-rev .tile-art { order: -1; }
.dw-art { margin-top: 0; min-height: 420px; }
.dw-mod .h-tile { margin-top: 8px; }

.dw-list { display: grid; margin-top: 18px; }
.dw-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); line-height: 1.35; }
.dw-list svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--lime); color: var(--on-lime); stroke-width: 2.6; }

.dw-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.dw-benefits li { display: grid; align-content: start; gap: 10px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: var(--t-small); line-height: 1.3; }
.dw-benefits svg { width: 24px; height: 24px; color: var(--lime); }

.dw-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dw-facts li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 14px; background: var(--surface); }
.dw-facts svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--navy); color: var(--lime); }
.dw-facts span { display: grid; font-weight: 600; line-height: 1.15; }
.dw-facts small { font-size: .8125rem; font-weight: 500; color: var(--soft); }
.t-navy .dw-facts li { background: rgba(255, 255, 255, .08); }
.t-navy .dw-facts svg { background: var(--lime); color: var(--on-lime); }
.t-navy .dw-facts small { color: #c8d1dc; }
.dw-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 24px; }

/* Piezas comunes de las mini pantallas */
.dw-mod-3d { width: clamp(78px, 7.2vw, 116px); }
.dw-eg { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--ui-line); color: var(--ui-soft); font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.dw-field { display: grid; gap: 1px; margin-top: 8px; padding: 7px 12px; border-radius: 10px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--ui-line); transition: box-shadow .2s ease; }
.dw-field small { font-size: .8125rem; color: var(--ui-soft); }
.dw-field-v { min-height: 1.3em; overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: clip; }
.dw-field.is-focus { box-shadow: inset 0 0 0 2px var(--lime); }
.dw-toast { position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; white-space: nowrap; color: var(--ui-soft); box-shadow: 0 18px 44px rgba(29, 42, 61, .24); }
.dw-toast b { display: block; font-size: 1rem; font-weight: 600; color: var(--ui-ink); }
.dw-lp-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #eef1ee; color: #4f5c70; font-size: .8125rem; white-space: nowrap; overflow: hidden; }
.dw-lp-bar .dv-dots { position: static; gap: 4px; }
.dw-lp-bar .dv-dots b { width: 8px; }
html.dark .t-white .dw-lp-bar { background: #212f44; color: #b0bbca; }

/* 01 · Sitio corporativo: la web real y un formulario que se completa solo */
.dw-corp { position: relative; width: min(100%, 620px); padding: 34px 0 78px; }
.dw-corp .dw-mod-3d { right: -8px; top: -12px; }
.dw-win { position: relative; padding: 0 8px 8px; border-radius: 16px; box-shadow: 0 26px 60px rgba(29, 42, 61, .2); }
.dw-win .dv-bar { height: 32px; }
.dw-wa { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #25d366; color: #0b2a16; box-shadow: 0 10px 24px rgba(0, 0, 0, .28); }
.dw-wa svg { width: 25px; height: 25px; }
.dw-form { position: absolute; z-index: 4; left: -14px; bottom: 0; width: min(60%, 320px); padding: 16px 18px 18px; border-radius: 18px; box-shadow: 0 22px 54px rgba(29, 42, 61, .26); }
.dw-form-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1.0625rem; }
.dw-form-h b { font-weight: 600; }
.dw-send { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 18px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-weight: 600; }
.dw-send svg { width: 16px; height: 16px; }
.dw-corp-toast { right: -12px; top: 70px; }

/* 02 · Landing: del anuncio a la página y de la página a WhatsApp */
.dw-land { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) 34px minmax(0, 1fr); align-items: center; width: min(100%, 640px); padding: 34px 0 84px; }
.dw-land .dw-mod-3d { left: -12px; top: -24px; }
.dw-ad { position: relative; z-index: 2; padding: 16px 18px 18px; border-radius: 16px; box-shadow: 0 22px 50px rgba(0, 0, 0, .3); }
.dw-ad strong { display: block; margin-top: 2px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.dw-ad-d { display: block; margin-top: 4px; color: var(--ui-soft); }
.dw-ad-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--navy); color: #ffffff; font-weight: 600; }
.dw-ad-btn svg { width: 15px; height: 15px; }
.dw-land-link { position: relative; height: 2px; margin-inline: 4px; border-radius: 2px; background: var(--lime); transform-origin: left center; }
.dw-land-link::after { content: ''; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.dw-lp { padding: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 26px 60px rgba(0, 0, 0, .38); }
.dw-lp-in { display: grid; gap: 8px; padding: 14px 16px 16px; }
.dw-lp-hero { display: grid; place-items: center; height: 68px; border-radius: 12px; background: var(--lime); color: var(--on-lime); }
.dw-lp-hero svg { width: 28px; height: 28px; }
.dw-lp-h { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.dw-lp-row { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ui-soft); }
.dw-lp-row svg { width: 15px; height: 15px; color: #178a45; }
.dw-lp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 11px 12px; border-radius: 999px; background: #25d366; color: #0b2a16; font-size: .9375rem; font-weight: 600; text-align: center; }
.dw-lp-btn svg { width: 17px; height: 17px; }
.dw-land-toast { right: -10px; bottom: 6px; }
.dw-cursor { position: absolute; z-index: 6; left: 0; top: 0; opacity: 0; pointer-events: none; }
.dw-cursor svg { width: 28px; height: 28px; fill: #1d2a3d; color: #ffffff; stroke-width: 1.6; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }

/* 03 · Tienda: la tienda real en el celular y una venta que llega con pago y despacho */
.dw-shop { position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.2vw, 30px); width: min(100%, 600px); padding: 26px 0 8px; }
.dw-shop .dw-mod-3d { right: -10px; top: -18px; }
.dw-shop-phone { position: relative; justify-self: center; width: 100%; max-width: 230px; padding: 8px; border-radius: 30px; box-shadow: 0 28px 60px rgba(29, 42, 61, .3); }
.dw-shop-phone img { border-radius: 23px; }
.dw-cart { position: absolute; z-index: 4; left: 18%; top: 30%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 34px rgba(29, 42, 61, .24); }
.dw-cart svg { width: 18px; height: 18px; color: #178a45; }
html.dark .dw-cart svg { color: #7fe3ae; }
.dw-order { padding: 16px 18px 8px; border-radius: 18px; font-size: .9375rem; box-shadow: 0 22px 54px rgba(29, 42, 61, .18); }
.dw-order-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--ui-line); line-height: 1.25; color: var(--ui-soft); }
.dw-order-h b { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--ui-ink); }
.dw-order-h .dw-eg { margin-left: auto; align-self: flex-start; }
.dw-order-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
.dw-order-row + .dw-order-row { border-top: 1px solid var(--ui-line); }
.dw-order-row > svg:first-child { width: 20px; height: 20px; color: var(--ui-soft); }
.dw-order-row b { font-weight: 600; }
.dw-order-row .ok { width: 20px; height: 20px; margin-left: auto; color: #178a45; }
html.dark .dw-order-row .ok { color: #7fe3ae; }
.dw-pays { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.dw-pays li { padding: 6px 14px; border-radius: 999px; background: var(--surface); font-size: .875rem; font-weight: 600; transition: background-color .3s ease, color .3s ease; }
.dw-pays li.is-on { background: var(--lime); color: var(--on-lime); }

/* 04 · WordPress: cambias el título en el panel y se publica en tu web */
.dw-wp { position: relative; width: min(100%, 640px); padding: 34px 0 96px; }
.dw-wp .dw-mod-3d { right: -10px; top: -14px; }
.dw-wp-panel { padding: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 26px 60px rgba(0, 0, 0, .3); }
.dw-wp-bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: #1d2327; color: #c3c4c7; font-size: .8125rem; white-space: nowrap; overflow: hidden; }
.dw-wp-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #ffffff; }
.dw-wp-logo svg { width: 14px; height: 14px; }
.dw-wp-body { display: grid; grid-template-columns: 50px minmax(0, 1fr); min-height: 252px; }
.dw-wp-side { display: grid; align-content: start; gap: 4px; padding: 10px 7px; background: #2c3338; }
.dw-wp-side span { display: grid; place-items: center; height: 36px; border-radius: 8px; color: #a7aaad; transition: background-color .3s ease, color .3s ease; }
.dw-wp-side span.is-on { background: var(--lime); color: var(--on-lime); }
.dw-wp-side svg { width: 18px; height: 18px; }
.dw-wp-main { display: grid; align-content: start; gap: 10px; padding: 16px 18px 18px; }
.dw-wp-k { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; }
.dw-wp-main .dw-field { margin-top: 0; }
.dw-wp-img { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 10px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--ui-line); }
.dw-wp-img > span:last-child { display: grid; font-weight: 500; line-height: 1.2; }
.dw-wp-img small { font-size: .8125rem; font-weight: 400; color: var(--ui-soft); }
.dw-wp-thumb { display: grid; place-items: center; flex: none; width: 52px; height: 40px; border-radius: 8px; background: var(--lime); color: var(--on-lime); }
.dw-wp-thumb svg { width: 20px; height: 20px; }
.dw-wp-save { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px; background: var(--navy); color: #ffffff; font-weight: 600; }
.dw-wp-save svg { width: 16px; height: 16px; color: var(--lime); }
.dw-wp-prev { position: absolute; z-index: 4; right: -14px; bottom: 0; width: min(50%, 290px); padding: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 22px 54px rgba(0, 0, 0, .32); }
.dw-wp-prev-in { display: grid; gap: 6px; padding: 12px 16px 16px; }
.dw-wp-prev-k { font-size: .8125rem; font-weight: 600; color: var(--ui-soft); }
.dw-wp-prev-t { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.dw-wp-prev-l { height: 8px; border-radius: 8px; background: var(--ui-line); }
.dw-wp-prev-l.is-short { width: 60%; }
.dw-wp-toast { left: -14px; bottom: 30px; }

/* Velocidad real de nuestra web, bajo el mosaico de WordPress */
.dw-speed { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 32px); max-width: 820px; margin: clamp(22px, 2.6vw, 36px) auto 0; padding-inline: clamp(8px, 2vw, 28px); color: #c8d1dc; line-height: 1.4; }
.dw-speed p { max-width: 30em; }
.dw-speed p b { display: block; font-size: var(--t-kicker); font-weight: 600; color: #ffffff; }
.dw-speed .rings { flex: none; }
.dw-speed .ring-bg { stroke: rgba(255, 255, 255, .14); }
.dw-speed .ring-n { color: #ffffff; }
.dw-speed .ring-item small { color: #c8d1dc; }

/* Proyectos dentro de una sección */
#casos .rail-head { align-items: flex-end; }
#casos .rail-head .h-section { margin: 0; }

@media (max-width: 1023px) {
  .dw-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-rev { grid-template-columns: minmax(0, 1fr); }
  .dw-rev .tile-art { order: 0; }
  .dw-art { min-height: 0; }
}
@media (max-width: 720px) {
  .dw-stage .dw-hero-3d { width: 58px; left: 10px; top: 8px; }
  .dw-stage #devices { width: 76%; translate: -7% 0; }
  .dw-cap { right: 10px; top: 12px; padding: 4px 10px 4px 8px; font-size: .8125rem; }
  .dw-corp { padding-bottom: 96px; }
  .dw-form { left: 0; width: 76%; }
  .dw-corp-toast { right: 0; top: 18px; }
  .dw-land { grid-template-columns: minmax(0, 1fr); padding-bottom: 76px; }
  .dw-land-link { justify-self: center; width: 2px; height: 26px; margin: 0; }
  .dw-land-link::after { right: -3px; top: auto; bottom: -3px; }
  .dw-land-toast { right: 0; bottom: 0; }
  .dw-wp-bar span:nth-child(n+4) { display: none; }
  .dw-wp-body { grid-template-columns: 40px minmax(0, 1fr); }
  .dw-wp-prev { right: 0; width: 62%; }
  .dw-wp-toast { left: 0; bottom: 104px; }
  .dw-wp { padding-bottom: 120px; }
  .dw-speed { flex-direction: column; text-align: center; }
  .dw-toast { padding: 10px 14px 10px 10px; font-size: .875rem; }
  .dw-toast .jr-app { width: 36px; height: 36px; }
}
@media (max-width: 560px) {
  .dw-picks { grid-template-columns: minmax(0, 1fr); }
  .dw-benefits { grid-template-columns: minmax(0, 1fr); }
  .dw-benefits li { grid-template-columns: 24px minmax(0, 1fr); align-items: start; padding: 12px 14px; }
  .dw-shop { grid-template-columns: minmax(0, 1fr); }
  .dw-shop-phone { max-width: 168px; }
  .dw-cart { left: 6%; top: 18%; }
}
