/* Ajustes para montar el diseño por secciones en Elementor (lo que la maqueta no necesitaba). */
body .d321 { background: transparent; }
body .d321 .section-tight { padding-top: 20px; }
body .d321 .others { margin-top: 0; }
body .d321 .others-link { display: grid; gap: 6px; color: inherit; text-decoration: none; }
body .d321 .resources-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .d321 .guides { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
body .d321 .guides .guide { text-decoration: none; transition: transform .45s var(--ease); }
body .d321 .guides .guide:hover { transform: translateY(-4px); }
body .d321 .guides .guide .sp { position: absolute; left: 50%; top: 24%; width: 56px; height: 56px; transform: translateX(-50%); }
body .d321 .web-real { display: block; color: inherit; text-decoration: none; background: #fff; }
body .d321 .web-real .slot-img { display: block; width: calc(100% - 24px); aspect-ratio: 16 / 10; margin: 12px; object-fit: cover; object-position: top center; border-radius: 12px; }
body .d321 .web-real .work-label { position: static; padding: 0 16px 16px; background: none; }
body .d321 .lib-empty { margin-top: 32px; }
body .d321 .legal-body { display: block; }
body .d321 .legal-body h2 { margin: 36px 0 12px; font-size: clamp(calc(1.4 * var(--d321-rem, 16px)), calc(1.1 * var(--d321-rem, 16px)) + .9vw, calc(1.75 * var(--d321-rem, 16px))); scroll-margin-top: 96px; }
body .d321 .legal-body h2:first-child { margin-top: 0; }
body .d321 .legal-body h3 { margin: 24px 0 8px; font-size: calc(1.25 * var(--d321-rem, 16px)); }
body .d321 .legal-body p, body .d321 .legal-body li { color: var(--text-soft); }
body .d321 .legal-body p + p { margin-top: 12px; }
body .d321 .legal-body ul, body .d321 .legal-body ol { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
body .d321 .legal-body a { color: var(--navy); }
body .d321 .legal-body table { width: 100%; border-collapse: collapse; font-size: calc(.9375 * var(--d321-rem, 16px)); }
body .d321 .legal-body th { text-align: left; font-weight: 500; padding: 10px 12px; background: var(--sand); }
body .d321 .legal-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
/* La conversación de la Home ya trae su propio escenario. */
body .d321 .d321-conversacion .hero, body .d321.d321-conversacion .hero { padding-top: 8px; }
/* En el editor de Elementor, los elementos animados al aparecer se ven siempre. */
body.elementor-editor-active .d321 .reveal { opacity: 1; transform: none; }
@media (max-width: 1000px) { body .d321 .resources-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { body .d321 .resources-3 { grid-template-columns: 1fr; } }
body .d321 .res .contact-data { align-self: flex-start; }
body .d321 .menu-btn, body .d321 .tabs button, body .d321 .pill { white-space: nowrap; }
/* Sin hueco entre secciones, también en webs con secciones y columnas clásicas de Elementor. */
body .elementor-widget[class*="elementor-widget-d321-"]:not(:last-child) { margin-bottom: 0 !important; margin-block-end: 0 !important; }
/* Webs reales: filas centradas (7 webs = 3 + 3 + 1 centrada) y carrusel deslizable en móvil. */
body .d321 .webs:has(.web-real) { display: flex; flex-wrap: wrap; justify-content: center; }
body .d321 .webs .web-real { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; transition: transform .45s var(--ease); }
body .d321 .webs .web-real:hover { transform: translateY(-4px); }
@media (max-width: 1000px) { body .d321 .webs .web-real { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  body .d321 .webs:has(.web-real) { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  body .d321 .webs .web-slot.web-real:nth-child(n) { display: block; flex: 0 0 84%; scroll-snap-align: start; }
}
body .elementor-widget[class*="elementor-widget-d321-"] { min-width: 0; max-width: 100%; }
/* Imágenes de presentación (portátil y móvil): sin barra de navegador, la imagen ocupa la tarjeta. */
body .d321 .web-mock { background: #F7F1EA; box-shadow: none; }
body .d321 .web-mock .slot-img { width: 100%; margin: 0; border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
body .d321 .web-mock .work-label { padding: 4px 18px 18px; }
/* Páginas legales: índice encima del texto en tablet y móvil (regla de la maqueta) y tablas deslizables. */
@media (max-width: 900px) {
  body .d321 .legal-layout { grid-template-columns: minmax(0, 1fr); }
  body .d321 .legal-toc { position: static; }
}
@media (max-width: 640px) {
  body .d321 .legal-body table { display: block; overflow-x: auto; }
  body .d321 .legal-body th, body .d321 .legal-body td { min-width: 120px; }
}

/* ---------- 0.5.0 · Configurador de web ---------- */
body .d321 .cfg .calc-options { gap: 28px; }
body .d321 .cfg-group { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
body .d321 .cfg-q { margin: 0 0 6px; padding: 0; font-size: calc(1.125 * var(--d321-rem, 16px)); font-weight: 500; color: var(--navy); }
body .d321 .cfg .calc-base, body .d321 .cfg .calc-opt { grid-template-columns: 28px minmax(0, 1fr); }
body .d321 .cfg-radio .calc-check { border-radius: 50%; }
body .d321 .cfg-start li span { color: #fff; }
body .d321 .cfg-hint { margin: 0; color: #C9D2EE; font-size: calc(.9375 * var(--d321-rem, 16px)); }
body .d321 .cfg-result { display: grid; gap: 12px; }
body .d321 .cfg-name { margin: 0; font-size: calc(1.375 * var(--d321-rem, 16px)); font-weight: 500; }
body .d321 .cfg-text { margin: 0; color: #E4E9F7; }
body .d321 .cfg-inc, body .d321 .cfg-notes { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: calc(.9375 * var(--d321-rem, 16px)); }
body .d321 .cfg-inc li { position: relative; padding-left: 22px; }
body .d321 .cfg-inc li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg); }
body .d321 .cfg-notes li { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
@media (max-width: 640px) { body .d321 .cfg .calc-opt { grid-template-columns: 26px minmax(0, 1fr); } }
body .d321 .foot nav { flex-wrap: wrap; column-gap: 18px; row-gap: 0; }
body .d321 .foot .foot-mail { font-weight: 500; color: var(--navy); }
@media (max-width: 1000px) { body .d321 .cfg .calc-total { position: static; box-shadow: none; } }

/* Conversación de portada a ancho completo */
body .d321.d321-conversacion .hero { max-width: none; padding: 0; }
body .d321.d321-conversacion .dsp-stage { border-radius: 0; }
