/* ==========================================================================
   Danweb 2027 — estilos del tema
   Neumorfismo claro + secciones oscuras inmersivas + animaciones.
   Los estilos se activan con «Estilos» del bloque o con clases del tema.
   ========================================================================== */

:root {
	--dw-navy: #06111D; --dw-ink: #0B1B2B; --dw-panel: #0E2133; --dw-base: #E6ECEE;
	--dw-violet: #484A87; --dw-sky: #2AAAE2; --dw-lsky: #6CC8F0; --dw-lviolet: #9C9EE8;
	--dw-muted: #2B3F52; --dw-pale: #C4D7DD; --dw-line: #BCC9CE; --dw-card-line: #DCE3E6;
	--dw-neu: 12px 12px 28px #C3CDD1, -12px -12px 28px #FFFFFF;
	--dw-neu-s: 6px 6px 14px #C3CDD1, -6px -6px 14px #FFFFFF;
	--dw-neu-in: inset 6px 6px 14px #C3CDD1, inset -6px -6px 14px #FFFFFF;
	--dw-neu-d: 12px 12px 28px #050E17, -10px -10px 26px #173049;
	--dw-neu-din: inset 5px 5px 12px #050E17, inset -5px -5px 12px #173049;
	--dw-ease: cubic-bezier(.16, 1, .3, 1);
}

body { -webkit-font-smoothing: antialiased; }
.dw-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { height: auto; }
.wp-site-blocks { overflow-x: clip; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
main.dw-main { margin-block-start: 0; }

/* Secciones ------------------------------------------------------------- */
.dw-section { padding-block: clamp(64px, 9vw, 112px); }
.dw-section-tight { padding-block: clamp(48px, 6vw, 80px); }
.dw-pt-0 { padding-top: 0 !important; }
.dw-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; }

/* Secciones oscuras */
.is-style-dw-hero, .is-style-dw-dark, .is-style-dw-darkest {
	color: #E9F4F5; position: relative; overflow: hidden; isolation: isolate;
}
.is-style-dw-hero { background: var(--dw-navy); }
.is-style-dw-dark { background: var(--dw-ink); }
.is-style-dw-darkest { background: var(--dw-navy); }
.is-style-dw-hero::before, .is-style-dw-darkest::before {
	content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background: radial-gradient(45% 55% at 78% 45%, rgba(42,170,226,.26), transparent 70%), radial-gradient(40% 50% at 6% 92%, rgba(156,158,232,.26), transparent 70%);
}
.is-style-dw-hero::after {
	content: ""; position: absolute; left: -20%; right: -20%; bottom: -10%; height: 58%; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(108,200,240,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(108,200,240,.22) 1px, transparent 1px);
	background-size: 64px 64px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
	-webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%);
	animation: dwGrid 2.2s linear infinite;
}
@keyframes dwGrid { to { background-position: 0 64px; } }
:is(.is-style-dw-hero, .is-style-dw-dark, .is-style-dw-darkest, .is-style-dw-card-dark, .is-style-dw-glow, .is-style-dw-panel) :is(h1, h2, h3, h4, p, li, summary) { color: inherit; }
:is(.is-style-dw-hero, .is-style-dw-dark, .is-style-dw-darkest, .is-style-dw-card-dark, .is-style-dw-glow, .is-style-dw-panel) p:not(.has-text-color) { color: var(--dw-pale); }
:is(.is-style-dw-hero, .is-style-dw-dark, .is-style-dw-darkest, .is-style-dw-card-dark, .is-style-dw-glow, .is-style-dw-panel) a:not(.wp-element-button) { color: var(--dw-lsky); }
.is-style-dw-hero mark, .is-style-dw-darkest mark, .is-style-dw-dark mark { background: transparent; color: var(--dw-lsky); text-shadow: 0 0 34px rgba(108,200,240,.55); }
mark.has-inline-color { background: transparent; }

/* Tarjetas -------------------------------------------------------------- */
.is-style-dw-neu, .wp-block-columns.is-style-dw-neu { background: var(--dw-base); box-shadow: var(--dw-neu); border-radius: 22px; padding: clamp(24px, 3vw, 44px); }
.is-style-dw-neu-soft { background: var(--dw-base); box-shadow: var(--dw-neu-s); border-radius: 18px; padding: 24px; transition: box-shadow .35s var(--dw-ease), transform .35s var(--dw-ease); }
.is-style-dw-neu-soft:hover { box-shadow: 2px 2px 6px #C3CDD1, -2px -2px 6px #FFFFFF; }
.is-style-dw-neu-in { background: var(--dw-base); box-shadow: var(--dw-neu-in); border-radius: 18px; padding: 24px; }
.is-style-dw-card-dark { background: var(--dw-panel); box-shadow: var(--dw-neu-d); border-radius: 18px; padding: 28px; color: #E9F4F5; }
.is-style-dw-glow { background: var(--dw-panel); border-radius: 18px; padding: 28px; color: #E9F4F5; position: relative; isolation: isolate; box-shadow: 0 30px 60px -30px rgba(42,170,226,.35); }
.is-style-dw-panel { background: var(--dw-panel); color: #E9F4F5; border-radius: 26px; padding: clamp(28px, 5vw, 56px); position: relative; isolation: isolate; box-shadow: 14px 14px 32px #B9C4C9, -12px -12px 30px #FFFFFF; }
.is-style-dw-dark .is-style-dw-panel, .is-style-dw-darkest .is-style-dw-panel { box-shadow: var(--dw-neu-d); }
@property --dwa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.is-style-dw-glow::before, .is-style-dw-panel::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
	background: conic-gradient(from var(--dwa), transparent 0 55%, var(--dw-lsky) 75%, var(--dw-lviolet) 85%, transparent 95%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	animation: dwSpin 5s linear infinite;
}
@keyframes dwSpin { to { --dwa: 360deg; } }
.dw-card-link { transition: transform .45s var(--dw-ease), box-shadow .45s var(--dw-ease); }
.dw-card-link:hover { transform: translateY(-6px); }
.dw-tag { font-family: var(--wp--preset--font-family--mono); font-size: 13px !important; color: #2A7FB0; }
:is(.is-style-dw-hero, .is-style-dw-dark, .is-style-dw-darkest, .is-style-dw-card-dark, .is-style-dw-glow) .dw-tag { color: var(--dw-lsky) !important; }
.dw-quote { font-size: 21px !important; font-weight: 800; line-height: 1.3; color: inherit !important; }

/* Imágenes -------------------------------------------------------------- */
.wp-block-image img { border-radius: 14px; }
.is-style-dw-tilt, .is-style-dw-tilt-r, .is-style-dw-frame { background: var(--dw-ink); padding: 10px; border-radius: 16px; box-shadow: 22px 22px 44px #B9C4C9, -12px -12px 30px #FFFFFF; }
.is-style-dw-tilt img, .is-style-dw-tilt-r img, .is-style-dw-frame img { border-radius: 8px; display: block; }
.is-style-dw-tilt { transform: perspective(1300px) rotateY(-9deg) rotateX(4deg); transition: transform .6s var(--dw-ease); }
.is-style-dw-tilt-r { transform: perspective(1300px) rotateY(9deg) rotateX(4deg); transition: transform .6s var(--dw-ease); }
.is-style-dw-tilt:hover, .is-style-dw-tilt-r:hover { transform: none; }
:is(.is-style-dw-dark, .is-style-dw-darkest, .is-style-dw-hero) :is(.is-style-dw-tilt, .is-style-dw-tilt-r, .is-style-dw-frame) { background: var(--dw-panel); box-shadow: 0 0 0 1px #1D3850, 0 30px 80px -20px rgba(42,170,226,.35); }
.is-style-dw-frame-neu { background: var(--dw-base); padding: 14px; border-radius: 24px; box-shadow: var(--dw-neu); }
.is-style-dw-frame-neu img { border-radius: 16px; display: block; }
.dw-cover-img img { width: 100%; object-fit: cover; }

/* Listas ---------------------------------------------------------------- */
ul.is-style-dw-checks { list-style: none; padding-left: 0; }
ul.is-style-dw-checks li { position: relative; padding-left: 22px; margin: 10px 0; }
ul.is-style-dw-checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--dw-sky); box-shadow: 0 0 10px rgba(42,170,226,.7); }
.is-style-dw-rows { list-style: none; padding-left: 0; margin: 0; }
.is-style-dw-rows li { border-top: 1px solid var(--dw-line); padding: 20px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px 28px; align-items: baseline; font-size: 16px; color: var(--dw-muted); }
@media (max-width: 600px) { .is-style-dw-rows li { grid-template-columns: 1fr; } }
.is-style-dw-rows li:last-child { border-bottom: 1px solid var(--dw-line); }
.is-style-dw-rows li strong { font-size: 19px; line-height: 1.3; color: var(--dw-ink); }
:is(.is-style-dw-dark, .is-style-dw-darkest) .is-style-dw-rows li { border-color: #1D3850; color: var(--dw-pale); }
:is(.is-style-dw-dark, .is-style-dw-darkest) .is-style-dw-rows li strong { color: #E9F4F5; }
ol.is-style-dw-steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: dwstep; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
ol.is-style-dw-steps > li { counter-increment: dwstep; background: var(--dw-base); box-shadow: var(--dw-neu-s); border-radius: 18px; padding: 24px; font-size: 15px; line-height: 1.6; color: var(--dw-muted); }
ol.is-style-dw-steps > li::before {
	content: counter(dwstep); display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
	font-weight: 800; font-size: 18px; background: #D5DFE2; color: var(--dw-violet); box-shadow: inset 4px 4px 10px #C3CDD1, inset -4px -4px 10px #FFF;
	animation: dwLit 10s infinite both;
}
ol.is-style-dw-steps > li:nth-child(2)::before { animation-delay: 2.5s; }
ol.is-style-dw-steps > li:nth-child(3)::before { animation-delay: 5s; }
ol.is-style-dw-steps > li:nth-child(4)::before { animation-delay: 7.5s; }
ol.is-style-dw-steps > li strong { display: block; font-size: 19px; color: var(--dw-ink); margin-bottom: 6px; }
:is(.is-style-dw-dark, .is-style-dw-darkest) ol.is-style-dw-steps > li { background: var(--dw-panel); box-shadow: var(--dw-neu-d); color: var(--dw-pale); }
:is(.is-style-dw-dark, .is-style-dw-darkest) ol.is-style-dw-steps > li strong { color: #E9F4F5; }
:is(.is-style-dw-dark, .is-style-dw-darkest) ol.is-style-dw-steps > li::before { background: var(--dw-panel); box-shadow: var(--dw-neu-din); color: var(--dw-lsky); }
@keyframes dwLit {
	0%, 2% { background: #D5DFE2; color: var(--dw-violet); }
	6%, 24% { background: var(--dw-sky); box-shadow: 0 0 26px rgba(42,170,226,.75); color: var(--dw-navy); }
	30%, 100% { background: #D5DFE2; color: var(--dw-violet); }
}
.is-style-dw-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.is-style-dw-chips li { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--dw-base); box-shadow: var(--dw-neu-s); }
:is(.is-style-dw-dark, .is-style-dw-darkest, .is-style-dw-hero, .is-style-dw-glow, .is-style-dw-card-dark) .is-style-dw-chips li { background: var(--dw-panel); box-shadow: var(--dw-neu-din); color: #E9F4F5; }

/* Párrafos especiales ---------------------------------------------------- */
.is-style-dw-crumbs { font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: #9DBDC8 !important; }
.is-style-dw-crumbs a { color: #9DBDC8 !important; text-decoration: none; }
.is-style-dw-crumbs a:hover { color: var(--dw-lsky) !important; }
.is-style-dw-mono { font-family: var(--wp--preset--font-family--mono) !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0 !important; color: #2A7FB0; }
.is-style-dw-chip { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--dw-base); box-shadow: var(--dw-neu-s); }

/* Botones ---------------------------------------------------------------- */
.wp-block-button__link { border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; transition: background-color .3s var(--dw-ease), box-shadow .3s var(--dw-ease), transform .3s var(--dw-ease); }
:is(.is-style-dw-hero, .is-style-dw-dark, .is-style-dw-darkest, .is-style-dw-panel, .is-style-dw-glow) .wp-block-button:not(.is-style-dw-ghost):not(.is-style-dw-link) .wp-block-button__link { box-shadow: 0 0 44px rgba(108,200,240,.35); }
.is-style-dw-ghost .wp-block-button__link { background: rgba(6,17,29,.5); color: #E9F4F5; border: 1.5px solid #5C7C90; }
.is-style-dw-ghost .wp-block-button__link:hover { border-color: var(--dw-lsky); background: rgba(6,17,29,.8); color: #fff; }
.wp-block-button.is-style-dw-solid .wp-block-button__link { background: var(--dw-ink); color: var(--dw-base); }
.wp-block-button.is-style-dw-solid .wp-block-button__link:hover { background: var(--dw-violet); color: #fff; }
.is-style-dw-link .wp-block-button__link { background: transparent; padding: 0; color: var(--dw-violet); font-weight: 700; border-radius: 0; }
:is(.is-style-dw-hero, .is-style-dw-dark, .is-style-dw-darkest, .is-style-dw-panel, .is-style-dw-glow, .is-style-dw-card-dark) .is-style-dw-link .wp-block-button__link { color: var(--dw-lsky); }
.wp-block-button__link::after { content: ""; }
.is-style-dw-link .wp-block-button__link::after, .dw-arrow .wp-block-button__link::after { content: "→"; transition: transform .3s var(--dw-ease); }
.wp-block-button__link:hover::after { transform: translateX(6px); }

/* Preguntas frecuentes ---------------------------------------------------- */
.wp-block-details { background: var(--dw-base); box-shadow: var(--dw-neu-s); border-radius: 16px; padding: 0; transition: box-shadow .35s var(--dw-ease); }
.wp-block-details + .wp-block-details { margin-top: 16px; }
.wp-block-details summary { list-style: none; cursor: pointer; padding: 22px 26px; font-size: 18px; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 22px; color: var(--dw-violet); transition: transform .3s var(--dw-ease); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { padding: 0 26px; color: var(--dw-muted); margin: 0; }
.wp-block-details > :last-child:not(summary) { padding-bottom: 22px; }
:is(.is-style-dw-dark, .is-style-dw-darkest) .wp-block-details { background: var(--dw-panel); box-shadow: var(--dw-neu-d); }
:is(.is-style-dw-dark, .is-style-dw-darkest) .wp-block-details summary::after { color: var(--dw-lsky); }

/* Cintas en movimiento ---------------------------------------------------- */
.is-style-dw-band { background: rgba(6,17,29,.85); border-top: 1px solid #1D3850; overflow: hidden; padding: 18px 0 !important; color: #E9F4F5; }
.dw-marquee { overflow: hidden; }
.dw-marquee-track { display: flex; width: max-content; gap: 40px; animation: dwMarq 40s linear infinite; }
.dw-marquee-track > * { flex: none; margin: 0 !important; }
.is-style-dw-band .dw-marquee-track > p { font-size: 18px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; color: #E9F4F5 !important; }
.is-style-dw-band .dw-marquee-track > p::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dw-lviolet); display: inline-block; }
.dw-marquee:hover .dw-marquee-track { animation-play-state: paused; }
@keyframes dwMarq { to { transform: translateX(-50%); } }

/* Rueda de clientes ----------------------------------------------------------
   Los logos rotan en ola dentro de cada tarjeta (lo monta initLogoWheels).
   Sin JS (o en el editor) se ven todas las tarjetas en rejilla. */
.dw-logo-wheel { --dw-wheel-cols: 5; display: grid !important; grid-template-columns: repeat(var(--dw-wheel-cols), minmax(0, 1fr)); gap: 22px; padding: 8px 0; }
.dw-logo-wheel > * { margin: 0 !important; }
.dw-wheel-slot, .dw-logo-wheel > .wp-block-image { position: relative; height: 150px; box-sizing: border-box; background: #fff; border: 1px solid var(--dw-card-line); border-radius: 10px; overflow: hidden; }
.dw-logo-wheel .wp-block-image { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 18px; margin: 0; }
.dw-wheel-slot > .wp-block-image { position: absolute; inset: 0; transition: transform .75s var(--dw-ease), opacity .75s var(--dw-ease), filter .75s var(--dw-ease); }
.dw-wheel-slot > .is-entering, .dw-wheel-slot > .is-leaving { opacity: 0; filter: blur(6px); }
.dw-wheel-slot > .is-entering { transform: translateY(70%); }
.dw-wheel-slot > .is-leaving { transform: translateY(-70%); pointer-events: none; }
.dw-logo-wheel img { max-width: 118px; max-height: 52px; width: auto; object-fit: contain; border-radius: 0; filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s; }
.dw-logo-wheel .wp-block-image:hover img { filter: none; opacity: 1; }
.dw-logo-wheel figcaption { font-family: var(--wp--preset--font-family--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #1F2F3E; margin: 0; text-align: center; line-height: 1.4; }
@media (max-width: 1024px) { .dw-logo-wheel { --dw-wheel-cols: 4; } }
@media (max-width: 781px) { .dw-logo-wheel { --dw-wheel-cols: 3; gap: 14px; } }
@media (max-width: 520px) { .dw-logo-wheel { --dw-wheel-cols: 2; } .dw-wheel-slot, .dw-logo-wheel > .wp-block-image { height: 130px; } }

/* Portátil con webs ------------------------------------------------------- */
.wp-block-gallery.is-style-dw-laptop { display: block !important; position: relative; max-width: 620px; margin-inline: auto; padding: 14px 14px 0; background: var(--dw-ink); border-radius: 18px 18px 6px 6px; box-shadow: 0 30px 60px -20px rgba(6,17,29,.45); }
.wp-block-gallery.is-style-dw-laptop::before { content: ""; display: block; aspect-ratio: 16/9; }
.wp-block-gallery.is-style-dw-laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -18px; height: 18px; border-radius: 0 0 18px 18px; background: linear-gradient(#C9D3D7, #9AA8AE); }
.wp-block-gallery.is-style-dw-laptop > figure.wp-block-image { position: absolute !important; inset: 14px 14px 0 14px; width: auto !important; margin: 0 !important; opacity: 0; animation: dwSlide var(--dw-dur, 28s) infinite both; }
.wp-block-gallery.is-style-dw-laptop > figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 6px; }
.wp-block-gallery.is-style-dw-laptop > figure figcaption { position: absolute; left: 10px; bottom: 10px; right: auto; top: auto; width: auto; padding: 5px 9px; border-radius: 6px; background: rgba(6,17,29,.78); color: #E9F4F5; font-family: var(--wp--preset--font-family--mono); font-size: 11px; }
.wp-block-gallery.is-style-dw-laptop > figure.wp-block-image:first-of-type { opacity: 1; }
@keyframes dwSlide { 0% { opacity: 0; } 2%, 14% { opacity: 1; } 17%, 100% { opacity: 0; } }

/* Animaciones 3D (lienzo) -------------------------------------------------- */
.dw-anim { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1.05; margin-inline: auto; }
.dw-anim canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dw-anim > * { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); }
.dw-anim > canvas { width: 100% !important; height: 100% !important; clip: auto; overflow: visible; position: absolute !important; }
.dw-anim--sphere { position: absolute; left: 50%; bottom: -620px; width: 1300px; max-width: none; aspect-ratio: 1; transform: translateX(-50%); z-index: -1; pointer-events: none; }
.dw-anim--cards { position: absolute; right: 0; top: 0; width: 58%; height: 100%; max-width: none; aspect-ratio: auto; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }

/* Portada de inicio con foto */
.dw-home-hero { min-height: 92vh; }
.dw-home-hero.wp-block-cover { padding-bottom: 0; align-items: stretch; }
.dw-home-hero .wp-block-cover__inner-container { display: flex; flex-direction: column; justify-content: flex-end; text-align: center; padding-bottom: 0; }
.dw-home-hero .wp-block-cover__image-background { object-position: 0% 28%; filter: grayscale(.35) contrast(1.05); }
.dw-home-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(6,17,29,.84) 0%, rgba(6,17,29,.9) 45%, rgba(6,17,29,.97) 80%) !important; opacity: 1 !important; }
.dw-home-hero h1 { max-width: 13em; margin-inline: auto; }
.dw-home-hero .dw-lead { max-width: 34em; margin-inline: auto; }
.dw-kicker { font-family: var(--wp--preset--font-family--mono); font-size: 13px !important; color: var(--dw-lsky) !important; letter-spacing: .08em; }

/* Mockups editables -------------------------------------------------------- */
.dw-phone { max-width: 300px; margin-inline: auto; background: var(--dw-ink); border-radius: 38px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(6,17,29,.6), 0 0 0 1px #1D3850; color: #E9F4F5; transform: perspective(1200px) rotateY(-10deg) rotateX(4deg); }
.dw-phone > .wp-block-group { background: var(--dw-panel); border-radius: 26px; padding: 22px 18px; }
.dw-phone p { margin: 0; color: var(--dw-pale); font-size: 14px; }
.dw-phone .dw-phone-title { font-size: 22px !important; font-weight: 800; color: #E9F4F5 !important; }
.dw-phone .wp-block-button__link { width: 100%; justify-content: center; font-size: 15px; padding: 13px 16px; }
.dw-maps { background: #fff; border-radius: 18px; box-shadow: var(--dw-neu); padding: 18px; max-width: 420px; margin-inline: auto; }
.dw-maps .dw-search { background: var(--dw-base); border-radius: 999px; padding: 10px 18px; font-size: 14px; color: var(--dw-muted); }
.dw-maps .dw-result { border: 1px solid var(--dw-card-line); border-radius: 12px; padding: 14px; position: relative; }
.dw-maps .dw-result.is-first { border-color: var(--dw-sky); box-shadow: 0 0 0 3px rgba(42,170,226,.18); }
.dw-cal { background: var(--dw-base); box-shadow: var(--dw-neu); border-radius: 22px; padding: 22px; max-width: 460px; margin-inline: auto; }
.dw-cal .dw-days { display: grid !important; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.dw-cal .dw-days > * { margin: 0 !important; background: #fff; border-radius: 10px; padding: 10px 6px; text-align: center; font-size: 12px; line-height: 1.5; min-height: 84px; }
.dw-cal .dw-days strong { display: block; font-family: var(--wp--preset--font-family--mono); font-size: 11px; color: var(--dw-violet); }
.dw-chat > * { margin: 0 !important; }
.dw-chat .dw-msg { padding: 12px 16px; border-radius: 16px; font-size: 15px !important; max-width: 88%; opacity: 0; animation: dwMsg 9s infinite both; }
.dw-chat .dw-msg-user { background: #173049; color: #E9F4F5 !important; margin-left: auto !important; border-bottom-right-radius: 4px; }
.dw-chat .dw-msg-bot { background: rgba(108,200,240,.14); color: #E9F4F5 !important; border: 1px solid rgba(108,200,240,.35); border-bottom-left-radius: 4px; animation-delay: 1.4s; }
.dw-chat .dw-msg-bot + .dw-msg-bot { animation-delay: 2.8s; }
@keyframes dwMsg { 0% { opacity: 0; transform: translateY(10px); } 8%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.dw-pulse-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dw-lsky); margin-right: 10px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(108,200,240,.7); animation: dwPulse 2.4s var(--dw-ease) infinite; }
@keyframes dwPulse { 0% { box-shadow: 0 0 0 0 rgba(108,200,240,.7); } 70%, 100% { box-shadow: 0 0 0 12px rgba(108,200,240,0); } }

/* Bloque de embudo (Publicidad) */
.dw-funnel > .wp-block-group { margin-inline: auto !important; border-radius: 14px; padding: 16px 20px; color: #06111D; text-align: center; }
.dw-funnel > .wp-block-group p { margin: 0; color: #06111D !important; }
.dw-funnel > .wp-block-group:nth-child(1) { width: 100%; background: var(--dw-lviolet); }
.dw-funnel > .wp-block-group:nth-child(2) { width: 82%; background: var(--dw-lsky); }
.dw-funnel > .wp-block-group:nth-child(3) { width: 64%; background: var(--dw-sky); }
.dw-funnel > .wp-block-group:nth-child(4) { width: 46%; background: #E9F4F5; box-shadow: 0 0 30px rgba(108,200,240,.6); }

/* Portal con chips (Por qué Danweb) */
.dw-portal { position: relative; }
.dw-portal .wp-block-image img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.dw-portal .is-style-dw-chip { position: absolute; z-index: 2; background: rgba(6,17,29,.85); color: #E9F4F5; box-shadow: 0 0 24px rgba(108,200,240,.35); border: 1px solid rgba(108,200,240,.4); font-family: var(--wp--preset--font-family--mono); font-weight: 500; animation: dwFloat 6s ease-in-out infinite; }
.dw-portal .is-style-dw-chip:nth-of-type(1) { top: 12%; left: -14px; }
.dw-portal .is-style-dw-chip:nth-of-type(2) { top: 42%; right: -14px; animation-delay: 2s; }
.dw-portal .is-style-dw-chip:nth-of-type(3) { bottom: 14%; left: 8%; animation-delay: 4s; }
@keyframes dwFloat { 50% { transform: translateY(-10px); } }

/* Iframe de la oficina de agentes de IA */
.danweb-oficina-demo { display: block; width: 100%; height: clamp(680px, 88vh, 1000px); border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(28,33,60,.12); background: #F2F3F6; }
@media (max-width: 760px) { .danweb-oficina-demo { height: 880px; border-radius: 12px; } }

/* Cabecera ---------------------------------------------------------------- */
.dw-header { background: var(--dw-navy); color: #E9F4F5; position: relative; z-index: 20; }
.dw-header .wp-block-image img { border-radius: 0; }
.dw-header .dw-nav-pill { background: var(--dw-panel); box-shadow: var(--dw-neu-din); border-radius: 999px; padding: 6px 6px 6px 12px; }
.dw-header .wp-block-navigation, .dw-header .wp-block-navigation .wp-block-navigation-item, .dw-header .wp-block-navigation__container, .dw-header .wp-block-navigation__responsive-container:not(.is-menu-open) { background: transparent !important; box-shadow: none; }
.dw-header .wp-block-navigation .wp-block-navigation-item__content { color: #E9F4F5; padding: 10px 12px; }
.dw-header .wp-block-navigation .wp-block-navigation-item__content:hover, .dw-header .current-menu-item > .wp-block-navigation-item__content { color: var(--dw-lsky); }
.dw-header .wp-block-navigation__submenu-container { background: var(--dw-panel) !important; border: 1px solid #1D3850 !important; border-radius: 14px; padding: 8px !important; box-shadow: 0 24px 48px -12px rgba(0,0,0,.6); }
.dw-header .wp-block-button__link { padding: 11px 20px; font-size: 15px; }
.dw-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--dw-navy) !important; color: #E9F4F5 !important; padding: 32px; }
.dw-header .wp-block-navigation__responsive-container-open svg, .dw-header .wp-block-navigation__responsive-container-close svg { fill: #E9F4F5; }
@media (max-width: 600px) { .dw-header .dw-nav-pill { background: none; box-shadow: none; padding: 0; } }

/* Pie --------------------------------------------------------------------- */
.dw-footer { font-size: 15px; color: var(--dw-muted); }
.dw-footer h4 { font-family: var(--wp--preset--font-family--mono); font-size: 13px; font-weight: 500; color: #2A7FB0; letter-spacing: 0; }
.dw-footer ul { list-style: none; padding: 0; margin: 0; }
.dw-footer li { margin: 6px 0; }
.dw-footer a { color: var(--dw-ink); text-decoration: none; }
.dw-footer a:hover { color: var(--dw-violet); text-decoration: underline; }
.dw-footer .wp-block-image img { border-radius: 0; }
.dw-footer-bottom { border-top: 1px solid var(--dw-line); font-size: 14px; }

/* Blog --------------------------------------------------------------------- */
.dw-posts .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.dw-posts .wp-block-post { margin: 0; background: var(--dw-base); box-shadow: var(--dw-neu-s); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--dw-ease), box-shadow .45s var(--dw-ease); }
.dw-posts .wp-block-post:hover { transform: translateY(-6px); box-shadow: 16px 16px 34px #BFC9CD, -10px -10px 26px #FFFFFF; }
.dw-posts .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.dw-posts .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: 0; transition: transform .6s var(--dw-ease); }
.dw-posts .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.dw-posts .dw-post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dw-posts .wp-block-post-title { font-size: 20px; line-height: 1.3; margin: 0; }
.dw-posts .wp-block-post-title a { color: var(--dw-ink); text-decoration: none; }
.dw-posts .wp-block-post-excerpt { font-size: 15px; color: var(--dw-muted); margin: 0; }
.dw-posts .wp-block-post-excerpt__more-link { font-weight: 700; text-decoration: none; }
.dw-posts .wp-block-post-terms { font-family: var(--wp--preset--font-family--mono); font-size: 12.5px; }
.dw-posts .wp-block-post-terms a { color: #2A7FB0; text-decoration: none; }
body.blog:not(.paged) .dw-posts .wp-block-post:first-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; background: var(--dw-panel); box-shadow: var(--dw-neu-d); color: #E9F4F5; }
body.blog:not(.paged) .dw-posts .wp-block-post:first-child .wp-block-post-featured-image { flex: 1.2 1 440px; }
body.blog:not(.paged) .dw-posts .wp-block-post:first-child .wp-block-post-featured-image img { height: 100%; aspect-ratio: auto; min-height: 320px; }
body.blog:not(.paged) .dw-posts .wp-block-post:first-child .dw-post-body { flex: 1 1 380px; padding: 40px; justify-content: center; }
body.blog:not(.paged) .dw-posts .wp-block-post:first-child .wp-block-post-title { font-size: clamp(26px, 2.6vw, 34px); }
body.blog:not(.paged) .dw-posts .wp-block-post:first-child .wp-block-post-title a { color: #E9F4F5; }
body.blog:not(.paged) .dw-posts .wp-block-post:first-child .wp-block-post-excerpt { color: var(--dw-pale); font-size: 17px; }
body.blog:not(.paged) .dw-posts .wp-block-post:first-child .wp-block-post-terms a { color: var(--dw-lsky); }
.dw-cats .wp-block-categories, .wp-block-categories.dw-cats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-categories.dw-cats li a { display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--dw-ink); background: var(--dw-base); box-shadow: var(--dw-neu-s); }
.wp-block-categories.dw-cats li.current-cat a { background: var(--dw-ink); color: var(--dw-lsky); box-shadow: none; }
.wp-block-query-pagination { gap: 10px; font-weight: 800; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-flex; min-width: 46px; height: 46px; padding: 0 16px; align-items: center; justify-content: center; border-radius: 999px; background: var(--dw-base); box-shadow: var(--dw-neu-s); text-decoration: none; color: var(--dw-ink); box-sizing: border-box; }
.wp-block-query-pagination .page-numbers.current { background: var(--dw-ink); color: var(--dw-lsky); box-shadow: none; }

/* Artículo */
.dw-article-cover { position: relative; z-index: 2; }
.dw-main:has(.dw-article-cover img) .dw-article-hero { padding-bottom: 200px !important; }
.dw-article-cover:has(img) { margin-top: -160px !important; }
.dw-article-cover:not(:has(img)) { display: none; }
.dw-article-cover .wp-block-post-featured-image { background: var(--dw-base); box-shadow: var(--dw-neu); border-radius: 22px; padding: 12px; }
.dw-article-cover .wp-block-post-featured-image img { aspect-ratio: 21/9; object-fit: cover; border-radius: 14px; }
.dw-article-meta { font-size: 15px; color: var(--dw-pale); }
.dw-article-meta .wp-block-avatar img { border-radius: 50%; box-shadow: 0 0 0 2px var(--dw-lsky); }
.dw-article-meta .wp-block-post-author-name { color: #E9F4F5; font-weight: 700; }
.dw-article-meta .wp-block-post-date, .dw-article-meta .dw-reading { font-family: var(--wp--preset--font-family--mono); font-size: 13px; }
.dw-toc { position: sticky; top: 24px; }
.dw-toc ol { list-style: none; margin: 0; padding: 0; }
.dw-toc a { display: block; padding: 9px 0 9px 14px; border-left: 2px solid #C3CDD1; color: var(--dw-muted); text-decoration: none; font-size: 15px; font-weight: 600; transition: border-color .3s, color .3s; }
.dw-toc a:hover, .dw-toc a.is-active { border-color: var(--dw-sky); color: var(--dw-ink); }
.dw-prose { max-width: 68ch; }
.dw-prose > * + * { margin-top: 1.1em; }
.dw-prose p, .dw-prose li { font-size: 18px; line-height: 1.75; color: #22364A; }
.dw-prose h2 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; margin-top: 52px; scroll-margin-top: 24px; }
.dw-prose h3 { font-size: 21px; margin-top: 32px; }
.dw-prose a { text-decoration: underline; text-underline-offset: 3px; }
.dw-author-box { background: var(--dw-base); box-shadow: var(--dw-neu); border-radius: 20px; padding: 26px; }
.dw-author-box .wp-block-avatar img { border-radius: 50%; }
.dw-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: var(--dw-sky); box-shadow: 0 0 12px rgba(108,200,240,.8); pointer-events: none; }
@supports (animation-timeline: scroll()) { .dw-progress { animation: dwProg linear both; animation-timeline: scroll(root); } }
@keyframes dwProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Contact Form 7 ------------------------------------------------------------ */
.wpcf7 form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.wpcf7 form > p, .wpcf7 form > .dw-full, .wpcf7 .wpcf7-response-output { grid-column: 1 / -1; margin: 0; }
.wpcf7 form .dw-half { grid-column: span 1; margin: 0; }
.wpcf7 label { display: block; font-size: 14px; font-weight: 700; color: var(--dw-ink); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; box-sizing: border-box; margin-top: 6px; border: 0; border-radius: 12px; padding: 13px 16px; font: inherit; font-size: 16px;
	background: var(--dw-base); box-shadow: var(--dw-neu-in); color: var(--dw-ink);
}
.wpcf7 textarea { min-height: 96px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--dw-sky); outline-offset: 2px; }
.wpcf7 input[type="submit"] { width: 100%; border: 0; cursor: pointer; border-radius: 999px; padding: 16px 28px; font: inherit; font-weight: 800; font-size: 16px; background: var(--dw-ink); color: var(--dw-base); }
.wpcf7 input[type="submit"]:hover { background: var(--dw-violet); }
.wpcf7 .wpcf7-acceptance { font-size: 13px; color: var(--dw-muted); }
@media (max-width: 600px) { .wpcf7 form { grid-template-columns: minmax(0, 1fr); } .wpcf7 form .dw-half { grid-column: 1 / -1; } }

/* Aparición al hacer scroll (solo mejora: el contenido es visible sin ella) --- */
@keyframes dwRv { from { opacity: 0; transform: translateY(48px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@supports (animation-timeline: view()) {
	.dw-reveal > *, .dw-rv { animation: dwRv linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}

/* Editor: que todo se vea y se pueda tocar --------------------------------- */
.editor-styles-wrapper .dw-anim { min-height: 220px; outline: 1px dashed rgba(108,200,240,.5); }
.editor-styles-wrapper .dw-anim > * { position: static !important; width: auto !important; height: auto !important; clip: auto; overflow: visible; }
.editor-styles-wrapper .dw-anim--sphere { position: relative; left: auto; bottom: auto; width: 100%; transform: none; aspect-ratio: auto; z-index: 0; }
.editor-styles-wrapper .wp-block-gallery.is-style-dw-laptop > figure.wp-block-image { position: static !important; opacity: 1; animation: none; margin-bottom: 8px !important; }
.editor-styles-wrapper .wp-block-gallery.is-style-dw-laptop::before { display: none; }
.editor-styles-wrapper .dw-marquee-track, .editor-styles-wrapper .dw-chat .dw-msg { animation: none; opacity: 1; }
.editor-styles-wrapper .dw-marquee { display: flex; flex-wrap: wrap; }
.editor-styles-wrapper .dw-logo-wheel { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.editor-styles-wrapper .dw-portal .is-style-dw-chip { position: static; }

/* Movimiento reducido -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.dw-reveal > *, .dw-rv { animation: none !important; }
	.dw-marquee { overflow-x: auto; }
	.dw-marquee-track { animation: none !important; }
	.dw-marquee-track > [aria-hidden="true"] { display: none !important; }
	.wp-block-gallery.is-style-dw-laptop > figure.wp-block-image { animation: none !important; }
	.dw-chat .dw-msg { opacity: 1; animation: none !important; }
	.is-style-dw-tilt, .is-style-dw-tilt-r, .dw-phone { transform: none; }
}

/* Móvil ----------------------------------------------------------------------- */
@media (max-width: 600px) {
	.is-style-dw-neu, .wp-block-columns.is-style-dw-neu { padding: 18px; border-radius: 18px; }
	.is-style-dw-panel { padding: 24px 20px; }
	.is-style-dw-glow, .is-style-dw-card-dark { padding: 22px; }
	.wp-block-buttons.is-vertical > .wp-block-button, .wp-block-buttons.is-vertical .wp-block-button__link { width: 100%; justify-content: center; text-align: center; }
	.wpcf7 input[type="submit"] { padding: 15px 14px; font-size: 15px; }
	.wp-block-button__link { padding: 14px 22px; }
	.dw-section { padding-block: 56px; }
}
@media (max-width: 781px) {
	.dw-anim--sphere { width: 900px; bottom: -480px; }
	.dw-anim--cards { width: 100%; opacity: .45; }
	.is-style-dw-tilt, .is-style-dw-tilt-r { transform: none; }
	.dw-portal .is-style-dw-chip:nth-of-type(1) { left: 6px; }
	.dw-portal .is-style-dw-chip:nth-of-type(2) { right: 6px; }
}

/* Esfera de la portada: por encima de la foto, por debajo del texto */
.dw-home-hero .dw-anim--sphere { z-index: 1; opacity: .9; bottom: -860px; }
.dw-home-hero .wp-block-cover__inner-container { position: static; }
.dw-home-hero .wp-block-cover__inner-container > :not(.dw-anim) { position: relative; z-index: 2; }
.is-style-dw-hero.dw-hero, .is-style-dw-hero.dw-blog-hero { padding-bottom: 0; }
.dw-hero-cols { margin-bottom: clamp(48px, 7vw, 96px) !important; }
.dw-blog-hero { padding-bottom: clamp(64px, 8vw, 104px) !important; }
.dw-home-hero .is-style-dw-band { margin-top: 40px; margin-inline: calc(-1 * var(--wp--style--root--padding-left, 32px)); }

/* Menú: elementos más juntos dentro de la píldora y cabecera compacta en móvil */
.dw-header .wp-block-navigation__container { gap: 2px; }
.dw-header .wp-block-navigation .wp-block-navigation-item__content { padding: 10px 14px; }
@media (max-width: 600px) {
	.dw-header > .wp-block-group { flex-wrap: nowrap !important; }
	.dw-header .wp-block-image { max-width: 118px; }
	.dw-header .dw-nav-pill { flex-direction: row-reverse; gap: 14px !important; }
	.dw-header .wp-block-button__link { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
	.dw-header .wp-block-image { max-width: 104px; }
}

/* Índice del artículo: fijo al bajar (la columna ocupa todo el alto) */
.wp-block-column:has(> .dw-toc) { align-self: stretch !important; }
.dw-toc { top: calc(24px + var(--wp-admin--admin-bar--height, 0px)); }


/* Oficina de agentes: pantalla completa */
.dw-fs-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: 15px; }
.dw-fs-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; color: var(--dw-navy, #06111D); background: #fff; border: 1px solid var(--wp--preset--color--line, #BCC9CE); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.dw-fs-btn::before { content: "⤢"; font-size: 17px; line-height: 1; }
.dw-fs-btn:hover { border-color: var(--dw-sky, #2AAAE2); }
.dw-fs-btn:focus-visible { outline: 2px solid var(--dw-sky, #2AAAE2); outline-offset: 3px; }
.dw-fs-link { color: inherit; }
.danweb-oficina-demo:fullscreen { border-radius: 0; height: 100%; }

/* Columnas con imagen inclinada: separación y texto por encima de la sombra */
.wp-block-columns:has(.is-style-dw-tilt, .is-style-dw-tilt-r) { column-gap: clamp(32px, 5vw, 88px); align-items: center; }
.wp-block-columns:has(.is-style-dw-tilt, .is-style-dw-tilt-r) > .wp-block-column { position: relative; }
.wp-block-columns:has(.is-style-dw-tilt, .is-style-dw-tilt-r) > .wp-block-column:not(:has(.is-style-dw-tilt, .is-style-dw-tilt-r)) { z-index: 2; }
