@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin.woff2) format("woff2-variations");
}

/* MYPO: azul noche, naranja del logo, blanco */
:root {
  --bg: #151922;
  --bg-2: #1b202b;
  --bg-3: #0f1218;
  --card: rgba(255, 255, 255, .04);
  --text: #ffffff;
  --muted: #a3acba;
  --orange: #ff5a24;
  --orange-2: #ff7a45;
  --grad: linear-gradient(135deg, #ff5a24, #ff7a45);
  --line: rgba(255, 255, 255, .12);
  --wrap: 76rem;
  --radius: 1.2rem;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 4.5rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; overflow-x: clip; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4, p, ul, ol, li, figure) { margin: 0; padding: 0; font-family: inherit; color: inherit; }
:where(h1, h2, h3, h4) { line-height: 1.12; font-weight: 750; text-wrap: balance; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
main p a, main li a, .post-content a { color: var(--orange-2); text-underline-offset: 3px; }
main p a:hover, main li a:hover { color: #fff; }
.main-nav a, .footer-grid a, .footer-legal a, .related-links a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }
.wp-block-group__inner-container { display: contents; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }
.center { text-align: center; }

/* Transiciones entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s cubic-bezier(.7, 0, .3, 1) both; }
::view-transition-new(root) { animation: vt-in .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.97); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(24px); clip-path: inset(100% 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.site-header { view-transition-name: cabecera; }

/* Escena 3D */
.scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; }
.scene.is-ready { opacity: var(--scene-o, 0); }
.scene-veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(90% 70% at 80% 10%, rgba(255, 90, 36, .09), transparent 60%), radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(15, 18, 24, .75) 100%); }
main, .site-footer { position: relative; z-index: 1; }

/* Cursor personalizado (solo ratón) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2147483647; border-radius: 50%; opacity: 0; transition: opacity .3s, width .25s, height .25s, background-color .25s, border-color .25s; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--orange); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(255, 255, 255, .55); }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { opacity: 1; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }
.cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--orange-2); background: rgba(255, 90, 36, .12); }
.cursor-ring.is-drag { width: 84px; height: 84px; margin: -42px 0 0 -42px; border-color: #fff; }
.cursor-ring.is-drag::after { content: "Arrastra"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; }

/* Botones */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem; }
.wp-block-button__link, .btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 3.1rem; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; transition: background-color .25s, border-color .25s, box-shadow .25s, color .25s; will-change: transform; }
.is-style-fill .wp-block-button__link, .btn { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(255, 90, 36, .7); }
.is-style-fill .wp-block-button__link:hover, .btn:hover { box-shadow: 0 18px 40px -12px rgba(255, 90, 36, .9); }
.is-style-ghost .wp-block-button__link, .btn-ghost { background: transparent; color: #fff; border-color: var(--line); box-shadow: none; }
.is-style-ghost .wp-block-button__link:hover, .btn-ghost:hover { border-color: #fff; }
.btn-small { min-height: 2.6rem; padding: .45rem 1.15rem; font-size: .95rem; }
.text-link { font-weight: 700; color: var(--orange-2); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: #fff; }

/* Cabecera */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.site-header.is-solid, .site-header.menu-open { background: rgba(21, 25, 34, .9); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand-logo { width: 2.9rem; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark { font-weight: 900; font-size: 1.15rem; font-stretch: 115%; letter-spacing: .01em; }
.brand-name { font-size: .76rem; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav > ul { list-style: none; display: flex; gap: 1.4rem; }
.main-nav a { text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange-2); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -1rem; min-width: 17rem; list-style: none; padding: .8rem; margin-top: .6rem; background: rgba(21, 25, 34, .97); border: 1px solid var(--line); border-radius: 1rem; display: grid; gap: .1rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.sub::before { content: ""; position: absolute; inset: -.8rem 0 auto; height: .8rem; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .5rem .7rem; border-radius: .6rem; }
.sub a:hover { background: rgba(255, 255, 255, .06); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; border-radius: 999px; width: 2.9rem; height: 2.9rem; padding: 0; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; transition: transform .25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Migas, chips, textos auxiliares */
.crumbs-wrap { margin-bottom: 1.4rem; }
.crumbs { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .5; }
.eyebrow { color: var(--orange-2); font-weight: 700; margin-bottom: 1.1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.chips li { padding: .42rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(21, 25, 34, .5); font-size: .9rem; font-weight: 600; color: #dfe3ea; }
.checks { list-style: none; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.9rem; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--grad); }
.checks li::after { content: ""; position: absolute; left: .38rem; top: .55em; width: .38rem; height: .62rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Aparición al hacer scroll (solo con JavaScript) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .hero .reveal { animation: rv-in .9s .4s cubic-bezier(.2,.8,.2,1) both; opacity: 1; transform: none; }
@keyframes rv-in { from { opacity: 0; transform: translateY(24px); } }

/* Texto partido */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .wi { display: inline-block; transform-origin: 50% 100%; }

/* Hero */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: grid; align-items: center; padding-block: calc(var(--header-h) + 3rem) 4rem; }
.hero-home { min-height: 100vh; min-height: 100svh; }
.hero-small { min-height: 0; padding-bottom: 2rem; }
.hero-inner { max-width: var(--wrap); }
.hero-title { max-width: 16ch; font-size: clamp(2.3rem, 5.2vw, 4.7rem); line-height: .98; letter-spacing: -.03em; font-weight: 850; font-stretch: 108%; margin-bottom: 1.4rem; perspective: 600px; }
.hero-lead { max-width: 38rem; font-size: clamp(1.05rem, 1.45vw, 1.22rem); color: var(--muted); margin-bottom: 2rem; }
.hero:not(.hero-small) .hero-inner > * { max-width: min(44rem, 58%); }
@media (max-width: 860px) { .hero:not(.hero-small) .hero-inner > * { max-width: none; } }

/* Secciones */
.section { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }
.section-head { margin-bottom: 2.6rem; max-width: 46rem; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; font-stretch: 106%; perspective: 600px; }
.lead { margin-top: 1.1rem; font-size: 1.13rem; color: var(--muted); max-width: 42rem; }
.section-head .lead { margin-top: 1.1rem; }
.section:nth-of-type(even):not(.section-cta):not(.section-audit) { background: linear-gradient(180deg, rgba(27, 32, 43, .0), rgba(27, 32, 43, .75) 12%, rgba(27, 32, 43, .75) 88%, rgba(27, 32, 43, 0)); }

/* Tarjetas */
.cards { display: grid; gap: 1.1rem; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.7rem; border-radius: var(--radius); background: rgba(21, 25, 34, .72); border: 1px solid var(--line); backdrop-filter: blur(6px); transition: border-color .3s, transform .3s; }
.card:hover { border-color: rgba(255, 122, 69, .55); }
/* Táctil: la tarjeta que pasa por el centro de la pantalla se ilumina */
.card::after { content: ""; position: absolute; left: 1.7rem; right: 1.7rem; top: -1px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card.is-center { border-color: rgba(255, 122, 69, .6); box-shadow: 0 24px 60px -30px rgba(255, 90, 36, .55); }
.card.is-center::after { transform: scaleX(1); }
.card-tag { color: var(--orange-2); font-weight: 700; font-size: .9rem; }
.card-title { font-size: 1.3rem; line-height: 1.2; font-stretch: 104%; }
.card p:not(.card-tag):not(.card-link) { color: var(--muted); }
.card-link { margin-top: auto; padding-top: .4rem; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; counter-reset: s; }
.step { padding: 1.7rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.step-n { font-size: 3.6rem; font-weight: 900; font-stretch: 125%; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--orange-2); margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.step p:not(.step-n) { color: var(--muted); }
.step, .plan { transition: border-color .4s, box-shadow .4s, background-color .4s; }
.step.is-center, .plan.is-center:not(.is-featured) { border-color: rgba(255, 122, 69, .6); box-shadow: 0 24px 60px -30px rgba(255, 90, 36, .55); }
.step.is-center .step-n { color: var(--orange-2); transition: color .4s; }

/* Dos columnas */
.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: start; }
.two-col .split-a p + p { margin-top: 1rem; }
.two-col .split-a .wp-block-buttons { margin-top: 1.6rem; }
.two-col .split-b { padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(21, 25, 34, .7); backdrop-filter: blur(6px); }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 2rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(21, 25, 34, .8); }
.plan.is-featured { border-color: var(--orange-2); background: linear-gradient(170deg, rgba(255, 90, 36, .16), rgba(21, 25, 34, .9) 45%); }
.plan-badge { position: absolute; top: -.8rem; left: 1.8rem; padding: .2rem .8rem; border-radius: 999px; background: var(--grad); font-size: .8rem; font-weight: 700; }
.plan-name { font-size: 1.35rem; }
.plan-price { font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 850; font-stretch: 110%; letter-spacing: -.02em; }
.plan-unit { color: var(--muted); font-size: .92rem; }
.plan-desc { color: var(--muted); }
.plan-feats { list-style: none; display: grid; gap: .45rem; padding-top: .8rem; border-top: 1px solid var(--line); margin-bottom: 1rem; }
.plan-feats li { padding-left: 1.4rem; position: relative; }
.plan-feats li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); }
.plan-cta { margin-top: auto; }
.plan-cta .wp-block-button, .plan-cta .wp-block-button__link { width: 100%; }
.plans-note { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; max-width: 50rem; }

/* FAQ */
.faq { display: grid; gap: .7rem; max-width: 52rem; }
.wp-block-details { border: 1px solid var(--line); border-radius: 1rem; background: rgba(21, 25, 34, .7); overflow: hidden; }
.wp-block-details summary { list-style: none; cursor: pointer; padding: 1.15rem 3.2rem 1.15rem 1.4rem; font-weight: 700; font-size: 1.06rem; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 1.4rem; top: 50%; width: .7rem; height: .7rem; margin-top: -.5rem; border-right: 2px solid var(--orange-2); border-bottom: 2px solid var(--orange-2); transform: rotate(45deg); transition: transform .25s; }
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -.2rem; }
.wp-block-details > p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* CTA */
.section-cta { padding-block: 3rem 6rem; }
.cta-box { text-align: center; padding: clamp(2rem, 5vw, 4rem); border-radius: 1.6rem; background: radial-gradient(120% 140% at 50% 0%, rgba(255, 90, 36, .28), rgba(21, 25, 34, .92) 60%); border: 1px solid rgba(255, 122, 69, .35); }
.cta-title { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.02em; font-stretch: 106%; max-width: 22ch; margin: 0 auto 1rem; }
.cta-text { color: #d4d9e1; max-width: 38rem; margin: 0 auto 1.8rem; }
.cta-actions { justify-content: center; }
.cta-direct { margin-top: 1.6rem; color: var(--muted); font-size: .95rem; }
.cta-direct a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--line); }

/* Relacionados */
.related-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .7rem; }
.related-links a { display: block; padding: 1rem 1.2rem; border-radius: .9rem; border: 1px solid var(--line); color: #fff; text-decoration: none; font-weight: 600; transition: border-color .25s, background-color .25s; }
.related-links a:hover { border-color: var(--orange-2); background: rgba(255, 90, 36, .08); }

/* Nota pendiente */
.todo-note { padding: 1.3rem 1.5rem; border-radius: 1rem; border: 1px dashed var(--orange-2); color: #ffd8c8; max-width: 46rem; }

/* Carrusel 3D de proyectos */
.carousel { position: relative; height: clamp(22rem, 46vw, 31rem); perspective: 1600px; touch-action: pan-y; user-select: none; outline: none; }
.carousel-ring { position: absolute; left: 50%; top: 50%; width: var(--cw); height: calc(var(--cw) * .58); margin: calc(var(--cw) * -.29) 0 0 calc(var(--cw) / -2); transform-style: preserve-3d; will-change: transform; }
.carousel-card { position: absolute; inset: 0; border-radius: 1rem; overflow: hidden; background: #0b0d12; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); backface-visibility: hidden; text-decoration: none; color: #fff; }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.carousel-card .cc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem .9rem; background: linear-gradient(180deg, transparent, rgba(10, 12, 17, .95) 55%); }
.cc-name { display: block; font-weight: 800; font-size: 1.1rem; font-stretch: 106%; }
.cc-sector { display: block; font-size: .85rem; color: var(--muted); }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.carousel-btn { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--line); background: rgba(21, 25, 34, .8); color: #fff; display: grid; place-items: center; transition: border-color .25s; }
.carousel-btn:hover { border-color: var(--orange-2); }
.carousel-btn svg { width: 1.1rem; height: 1.1rem; }
.carousel-status { min-width: 12rem; text-align: center; color: var(--muted); font-size: .95rem; }
.carousel-status strong { color: #fff; }
.carousel.is-flat { height: auto; perspective: none; }
.carousel.is-flat .carousel-ring { position: static; width: auto; height: auto; margin: 0; transform: none !important; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.carousel.is-flat .carousel-card { position: relative; inset: auto; flex: 0 0 min(80vw, 22rem); aspect-ratio: 16 / 9.5; transform: none !important; scroll-snap-align: start; }

/* Construcción de una web con el scroll: 5 estados acumulativos (st-design, st-content, st-seo, st-live) */
.build { display: grid; grid-template-columns: 1fr 1.35fr; gap: 3rem; align-items: center; }
.build-steps { list-style: none; display: grid; gap: .6rem; }
.build-steps li { position: relative; padding: 1rem 1.2rem; border-radius: 1rem; border: 1px solid var(--line); color: var(--muted); background: rgba(21, 25, 34, .85); transition: border-color .3s, color .3s, background-color .3s; }
.build-steps li strong { display: block; color: #fff; font-size: 1.05rem; }
.build-steps li.is-on { border-color: var(--orange-2); background: rgba(52, 30, 26, .95); color: #e7eaf0; }
.build-steps li.is-done strong::after { content: " ✓"; color: #19c08a; }
.browser { border-radius: 1rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); background: #0f1218; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); transition: box-shadow .6s, border-color .6s; }
.browser.is-live { border-color: rgba(25, 192, 138, .7); box-shadow: 0 0 0 4px rgba(25, 192, 138, .15), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: #1d222d; border-bottom: 1px solid var(--line); }
.browser-bar > i { width: .65rem; height: .65rem; border-radius: 50%; background: #3a4150; }
.browser-bar .url { margin-left: .8rem; flex: 1; min-width: 0; height: 1.5rem; border-radius: 999px; background: #10141b; color: var(--muted); font-size: .75rem; display: flex; align-items: center; gap: .4rem; padding-inline: .8rem; white-space: nowrap; overflow: hidden; }
.lock { width: .55rem; height: .45rem; border-radius: 2px; background: #59627a; position: relative; margin-top: .2rem; flex: none; transition: background .4s; }
.lock::before { content: ""; position: absolute; left: .1rem; right: .1rem; top: -.3rem; height: .35rem; border: 2px solid currentColor; border-bottom: 0; border-radius: .3rem .3rem 0 0; color: #59627a; transition: color .4s; }
.browser.is-live .lock { background: #19c08a; } .browser.is-live .lock::before { color: #19c08a; } .browser.is-live .url { color: #dfe3ea; }
.live { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800; color: #fff; background: #0e9f6e; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.live i { width: .45rem; height: .45rem; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.browser.is-live .live { opacity: 1; transform: none; }
@keyframes pulse { 50% { opacity: .3; } }
.site-mock { position: relative; container-type: inline-size; aspect-ratio: 16 / 10.5; padding: 5% 6%; overflow: hidden; background: #e9edf2; color: #1a1f29; transition: background-color .6s; }
.site-mock em { font-style: normal; display: block; white-space: nowrap; overflow: hidden; opacity: 0; transform: translateY(40%); transition: opacity .5s, transform .5s; }
.sm-nav { display: flex; align-items: center; gap: 6%; height: 7%; }
.sm-logo { width: 14%; height: 70%; border-radius: 4px; background: #b9c0cb; transition: background .6s; display: flex; align-items: center; }
.sm-logo em { font-size: 2.6cqw; font-weight: 900; color: var(--orange); }
.sm-links { flex: 1; display: flex; justify-content: flex-end; gap: 4%; }
.sm-links i { width: 9%; height: .45rem; border-radius: 4px; background: #b9c0cb; }
.sm-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; margin-top: 7%; height: 50%; }
.sm-copy { display: flex; flex-direction: column; justify-content: center; gap: 7%; }
.sm-h { height: 13%; border-radius: 5px; background: #b9c0cb; transition: background .6s; display: flex; align-items: center; }
.sm-h em { font-size: 3.9cqw; font-weight: 900; letter-spacing: -.02em; line-height: 1; color: #fff; }
.sm-h.short { width: 70%; } .sm-h.short em { color: #ff7a45; }
.sm-p { height: 5%; border-radius: 4px; background: #cfd5dd; display: flex; align-items: center; }
.sm-p em { font-size: 2.2cqw; color: #b8c0d0; }
.sm-btn { width: 45%; height: 14%; border-radius: 999px; background: #b9c0cb; transition: background .6s, box-shadow .6s; display: grid; place-items: center; }
.sm-btn em { font-size: 1.9cqw; font-weight: 800; color: #fff; }
.sm-img { border-radius: 10px; background: #cfd5dd; position: relative; overflow: hidden; }
.sm-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #ff5a24, #ffb27a 60%, #151922); opacity: 0; transition: opacity .6s; }
.sm-score { position: absolute; z-index: 1; right: 7%; top: 9%; width: 30%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 18, 24, .88); color: #fff; opacity: 0; transform: scale(.4); transition: opacity .4s, transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.sm-score svg { position: absolute; inset: 8%; width: 84%; height: 84%; transform: rotate(-90deg); }
.sm-score circle { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 3.5; }
.sm-score .ring { stroke: #19c08a; stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
.sm-score b { font-size: 4.4cqw; line-height: 1; margin-top: -10%; }
.sm-score small { position: absolute; bottom: 20%; font-size: 1.5cqw; color: #b8c0d0; }
.sm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; margin-top: 6%; height: 22%; }
.sm-cards i { border-radius: 8px; background: #d6dbe2; transition: background .6s; display: flex; align-items: flex-end; padding: 6%; }
.sm-cards em { font-size: 2cqw; font-weight: 700; color: #dfe3ea; }
.sm-badge { position: absolute; right: 8%; bottom: 31%; display: flex; gap: .4rem; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.sm-badge span { padding: .3rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; background: #0e9f6e; color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.sm-toasts { position: absolute; right: 4%; top: 14%; width: 44%; display: grid; gap: .45rem; }
.sm-toast { display: flex; align-items: center; gap: .5rem; padding: .55rem .65rem; border-radius: .7rem; background: #fff; color: #1a1f29; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7); opacity: 0; transform: translateX(120%); transition: opacity .4s, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.sm-toast:nth-child(2) { transition-delay: .5s; }
.sm-toast > i { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--grad); position: relative; }
.sm-toast > i::after { content: ""; position: absolute; left: 32%; top: 22%; width: 28%; height: 44%; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sm-toast > i.call { background: #0e9f6e; }
.sm-toast b { display: block; font-size: clamp(.62rem, 1.9cqw, .82rem); line-height: 1.2; }
.sm-toast small { display: block; font-size: clamp(.55rem, 1.5cqw, .7rem); color: #5b6474; line-height: 1.2; }
.site-mock.st-design { background: #151922; }
.site-mock.st-design .sm-logo, .site-mock.st-design .sm-h { background: #fff; }
.site-mock.st-design .sm-p, .site-mock.st-design .sm-links i { background: #59627a; }
.site-mock.st-design .sm-btn { background: linear-gradient(135deg, #ff5a24, #ff7a45); box-shadow: 0 8px 20px -6px rgba(255, 90, 36, .7); }
.site-mock.st-design .sm-img::after { opacity: 1; }
.site-mock.st-design .sm-cards i { background: #232a38; }
.site-mock.st-content em { opacity: 1; transform: none; }
.site-mock.st-content .sm-logo, .site-mock.st-content .sm-h, .site-mock.st-content .sm-h.short + .sm-p { background: transparent; }
.site-mock.st-content .sm-p + .sm-p { opacity: 0; }
.site-mock.st-content .sm-h.short { width: 100%; }
.site-mock.st-seo .sm-score { opacity: 1; transform: none; }
.site-mock.st-seo .sm-score .ring { stroke-dashoffset: 2; }
.site-mock.st-seo .sm-badge { opacity: 1; transform: none; }
.site-mock.st-live .sm-score { opacity: 0; transform: scale(.6); }
.site-mock.st-live .sm-toast { opacity: 1; transform: none; }

/* Auditoría en directo */
.audit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.4rem; align-items: stretch; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 1.6rem; border: 1px solid rgba(255, 122, 69, .35); background: linear-gradient(150deg, rgba(255, 90, 36, .12), rgba(21, 25, 34, .92) 45%); }
.audit-form label { display: block; font-weight: 700; margin-bottom: .6rem; }
.audit-row { display: flex; gap: .6rem; }
.audit-row input { flex: 1; min-width: 0; }
.field, .audit-row input, .mypo-form input, .mypo-form select, .mypo-form textarea { width: 100%; font: inherit; font-size: 16px; color: #fff; background: rgba(15, 18, 24, .85); border: 1px solid rgba(255, 255, 255, .2); border-radius: .8rem; padding: .85rem 1rem; }
.audit-row input:focus, .mypo-form :is(input, select, textarea):focus { border-color: var(--orange-2); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 69, .25); }
.audit-hint { margin-top: .8rem; color: var(--muted); font-size: .9rem; }
.audit-scan { display: none; margin-top: 1.4rem; }
.audit.is-scanning .audit-scan { display: block; }
.scan-line { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.scan-line span { display: block; height: 100%; width: 30%; background: var(--grad); animation: scan 1.3s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.scan-steps { list-style: none; margin-top: 1rem; display: grid; gap: .35rem; color: var(--muted); font-size: .92rem; }
.scan-steps li.done { color: #fff; }
.scan-steps li.done::before { content: "✓ "; color: var(--orange-2); }
.audit-results { display: grid; grid-template-rows: auto 1fr; gap: 1.2rem; }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.gauge { text-align: center; }
.gauge-ring { position: relative; width: 100%; max-width: 6.5rem; margin: 0 auto .4rem; }
.gauge svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 9; }
.gauge .g-bg { stroke: rgba(255, 255, 255, .08); }
.gauge .g-val { stroke: #3a4150; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1), stroke .4s; }
.gauge-num { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 1.7rem; font-weight: 850; font-stretch: 110%; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-label { font-size: .85rem; color: var(--muted); }
.audit-list { list-style: none; display: grid; gap: .5rem; align-content: start; }
.audit-list li { padding: .75rem 1rem; border-radius: .8rem; background: rgba(15, 18, 24, .7); border: 1px solid var(--line); font-size: .95rem; }
.audit-list li b { color: var(--orange-2); }
.audit-empty { color: var(--muted); align-self: center; text-align: center; padding: 2rem 1rem; border: 1px dashed var(--line); border-radius: 1rem; }
.audit-lead { display: none; margin-top: 1rem; }
.audit.has-results .audit-lead { display: block; }
.audit-note { font-size: .82rem; color: var(--muted); margin-top: .6rem; }

/* Formularios */
.mypo-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; max-width: 52rem; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 1.4rem; border: 1px solid var(--line); background: rgba(21, 25, 34, .8); }
.mypo-form .full { grid-column: 1 / -1; }
.mypo-form label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.mypo-form textarea { min-height: 8rem; resize: vertical; }
.mypo-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.mypo-form .check input { width: auto; margin-top: .3rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { grid-column: 1 / -1; padding: .9rem 1rem; border-radius: .8rem; display: none; }
.form-msg.ok { display: block; background: rgba(14, 159, 110, .15); border: 1px solid rgba(14, 159, 110, .5); }
.form-msg.err { display: block; background: rgba(255, 90, 36, .12); border: 1px solid rgba(255, 90, 36, .5); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.post-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(21, 25, 34, .75); text-decoration: none; transition: border-color .25s, transform .25s; min-height: 12rem; }
.post-card:hover { border-color: var(--orange-2); transform: translateY(-4px); }
.post-cat { color: var(--orange-2); font-weight: 700; font-size: .88rem; }
.post-card h3 { font-size: 1.22rem; line-height: 1.25; }
.post-meta { margin-top: auto; color: var(--muted); font-size: .88rem; }
.blog-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.blog-filter button, .blog-filter a { font: inherit; font-size: .92rem; font-weight: 600; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: #fff; text-decoration: none; }
.blog-filter .is-on { background: var(--grad); border-color: transparent; }

/* Entrada del blog */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; padding-bottom: 4rem; }
.post-content { font-size: 1.1rem; line-height: 1.75; color: #e3e7ee; max-width: 44rem; }
.post-content > * + * { margin-top: 1.2rem; }
.post-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2.6rem; color: #fff; scroll-margin-top: 6rem; }
.post-content h3 { font-size: 1.35rem; margin-top: 2rem; color: #fff; }
.post-content ul, .post-content ol { padding-left: 1.3rem; }
.post-content img { border-radius: 1rem; }
.post-content a { color: var(--orange-2); }
.post-aside { position: sticky; top: 6rem; align-self: start; display: grid; gap: 1rem; }
.toc { padding: 1.2rem; border-radius: 1rem; border: 1px solid var(--line); background: rgba(21, 25, 34, .8); font-size: .92rem; }
.toc p { font-weight: 700; margin-bottom: .6rem; }
.toc ol { padding-left: 1.1rem; display: grid; gap: .35rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: #fff; }
.author-box { display: flex; gap: 1rem; align-items: center; padding: 1.4rem; border-radius: 1rem; border: 1px solid var(--line); margin-top: 3rem; max-width: 44rem; }
.author-box img { width: 3.5rem; }
.reading { color: var(--muted); font-size: .95rem; margin-top: 1rem; }

/* Pie */
.site-footer { background: var(--bg-3); color: var(--muted); border-top: 1px solid var(--line); padding-top: 4rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .9fr 1fr; gap: 2rem; }
.footer-grid .f-child { padding-left: .9rem; font-size: .92em; opacity: .85; }
.sub-child { list-style: none; margin: 0 0 .2rem; padding: 0 0 0 .9rem; display: grid; }
.sub-child a { font-size: .93em; padding-top: .35rem; padding-bottom: .35rem; opacity: .85; }
.footer-grid nav, .footer-grid .f-col { display: flex; flex-direction: column; gap: .45rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--orange-2); }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { max-width: 19rem; }
.footer-h { color: #fff; font-weight: 700; margin-bottom: .4rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; margin-top: 3rem; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-legal a { text-decoration: none; }

.scroll-cue { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2.2rem; color: var(--muted); font-size: .88rem; text-decoration: none; }
.scroll-cue span { width: 1.3rem; height: 2.05rem; border: 2px solid var(--muted); border-radius: 1rem; position: relative; flex: none; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: .3rem; width: 4px; height: 7px; margin-left: -2px; background: var(--orange); border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(.7rem); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 640px), (max-width: 860px) { .scroll-cue { display: none; } }

/* Llamada flotante en móvil */
.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; display: block; padding: 1.2rem 1.25rem 2rem; background: rgba(21, 25, 34, .98); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); overflow-y: auto; transform: translateY(-110%); visibility: hidden; transition: transform .35s, visibility .35s; }
  .menu-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: .2rem; }
  .main-nav > ul > li > a { display: block; padding: .8rem 0; font-size: 1.15rem; font-weight: 700; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0 0 .5rem .8rem; margin: 0; min-width: 0; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .cards.cols-3, .plans, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
}
@media (max-width: 860px) {
  .two-col, .build, .audit { grid-template-columns: 1fr; }
  .build { align-items: start; gap: 1.2rem; }
  .build .browser { order: -1; position: sticky; top: calc(var(--header-h) + .6rem); z-index: 2; }
  .build-steps { gap: 34vh; padding: 30vh 0 12vh; }
  .sm-badge span { font-size: .58rem; padding: .2rem .45rem; }
  .cards.cols-2 { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 2rem); }
  .hero-home { min-height: 100svh; align-items: end; padding-top: 30vh; padding-bottom: 2.2rem; }
  .carousel { height: 17rem; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .cards.cols-3, .plans, .posts { grid-template-columns: 1fr; }
  .mypo-form { grid-template-columns: 1fr; }
  .brand-name { display: none; }
  .hero .wp-block-buttons, .cta-actions { flex-direction: column; }
  .hero .wp-block-button, .hero .wp-block-button__link, .cta-actions .wp-block-button, .cta-actions .wp-block-button__link { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .audit-row { flex-direction: column; }
  .mobile-cta { display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 90; gap: .5rem; padding: .5rem; border-radius: 999px; background: rgba(21, 25, 34, .92); border: 1px solid var(--line); backdrop-filter: blur(10px); transform: translateY(150%); transition: transform .35s; }
  .mobile-cta.is-on { transform: none; }
  .mobile-cta a { flex: 1; min-height: 2.8rem; display: grid; place-items: center; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .95rem; }
  .mobile-cta a:first-child { background: var(--grad); }
  .mobile-cta a:last-child { border: 1px solid var(--line); }
  .site-footer { padding-bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Tabla comparativa */
.wp-block-table.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21, 25, 34, .8); }
.compare table { width: 100%; border-collapse: collapse; min-width: 44rem; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--orange-2); font-weight: 700; }
.compare td:first-child { font-weight: 700; white-space: nowrap; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child) { color: #d4d9e1; }
.pagination ul { list-style: none; display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--grad); border-color: transparent; }

/* Enlace al servicio en artículos del blog */
.post-service { margin: 0 0 2rem; padding: 1.1rem 1.3rem; border-radius: 1rem; border: 1px solid rgba(255, 122, 69, .45); background: rgba(255, 90, 36, .08); }
.post-service p { margin: 0; }
.post-service a { color: var(--orange-2); font-weight: 700; }

/* Servicios en la portada: una fila por servicio, texto a un lado y partículas al contrario */
.svc-rows { display: grid; }
.svc-row { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.svc-text { width: min(34rem, 46%); }
.svc-row.is-right .svc-text { margin-left: auto; }
.svc-title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; font-stretch: 112%; margin: .4rem 0 1.1rem; }
.svc-text > p:not(.card-tag) { color: var(--muted); font-size: 1.12rem; margin-bottom: 1.2rem; }
.svc-text .checks { margin-bottom: 1.6rem; }
@media (max-width: 860px) {
  .svc-row { min-height: 0; padding: 52vh 0 5rem; }
  .svc-row:first-child { padding-top: 38vh; }
  .svc-text { width: auto; }
}

@media (min-width: 861px) {
  .build { align-items: center; }
  .build .browser { width: min(100%, calc((100vh - var(--header-h) - 7rem) * 1.5)); justify-self: end; }
  .build-steps li { padding: .8rem 1.1rem; }
}

/* Portada: contacto en la primera pantalla */
.hero-trust { margin-top: 1.3rem; color: var(--muted); font-size: .95rem; }
.hero-trust a { color: #fff; text-underline-offset: 3px; }
.wp-block-button__link[href^="https://wa.me"]::before, .wp-block-button__link[href^="tel:"]::before, .wp-block-button__link[href^="mailto:"]::before { content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .5em; vertical-align: -.15em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.wp-block-button__link[href^="https://wa.me"]::before { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.4 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .1-3.3-.8-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1.1c.2-.3.4-.2.7-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E"); }
.wp-block-button__link[href^="tel:"]::before { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
@media (max-width: 620px) {
  .hero-home .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .hero-home .hero-actions .wp-block-button__link { padding-inline: .8rem; }
  .hero-home .hero-actions .wp-block-button:first-child { grid-column: 1 / -1; }
  .hero-home .hero-actions .wp-block-button { width: auto; }
  .hide-sm { display: none; }
}
@media (max-width: 620px) and (max-height: 800px) {
  .hero-home { padding-top: calc(var(--header-h) + 1.2rem); }
  .hero-home .hero-title { font-size: clamp(1.9rem, 8.6vw, 2.3rem); }
  .hero-home .eyebrow { margin-bottom: .6rem; font-size: .9rem; }
  .hero-home .hero-lead { font-size: 1rem; line-height: 1.55; }
}
.wp-block-button__link[href^="mailto:"]::before { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18c.6 0 1 .4 1 1v12c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V6c0-.6.4-1 1-1zm9 7.6L4 7.4V17h16V7.4l-8 5.2zM19.2 7H4.8l7.2 4.6L19.2 7z'/%3E%3C/svg%3E"); }

/* Servicios fijos como tarjetas mientras solo se mueve la figura de partículas (escritorio) */
.svc-text { background: rgba(21, 25, 34, .78); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2.4rem; backdrop-filter: blur(6px); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
@media (min-width: 861px) {
  .svc-row { display: block; min-height: 175vh; }
  .svc-stick { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .svc-row.is-right .svc-stick { justify-content: flex-end; }
  .svc-row.is-right .svc-text { margin-left: 0; }
}
@media (max-width: 860px) { .svc-text { padding: 1.6rem 1.4rem; } }

/* Carrusel: las tarjetas en 3D no deben ensanchar la página en el móvil */
@media (max-width: 860px) { .carousel-wrap { overflow-x: clip; } }
/* Servicios en PC: las tarjetas no se pegan al borde de la pantalla */
@media (min-width: 861px) {
  .svc-row.is-left .svc-stick { padding-left: clamp(0rem, 3vw, 3.5rem); }
  .svc-row.is-right .svc-stick { padding-right: clamp(0rem, 3vw, 3.5rem); }
}
@media (max-width: 860px) {
  .svc-row { display: block; }
  .svc-stick { width: 100%; }
  .svc-row.is-right .svc-text { margin-left: 0; }
}

/* Portada en PC: los botones de contacto siempre en la primera pantalla */
@media (min-width: 861px) {
  .hero-home { padding-block: calc(var(--header-h) + 1.5rem) 2.5rem; }
  .hero-home .hero-title { max-width: 18ch; font-size: clamp(2.2rem, min(5vw, 7.2vh), 4.7rem); margin-bottom: min(1.4rem, 2.2vh); }
  .hero-home .eyebrow { margin-bottom: min(1.1rem, 1.8vh); }
  .hero-home .hero-lead { margin-bottom: min(2rem, 3vh); }
  .hero-home .scroll-cue { margin-top: min(2.2rem, 3vh); }
}

/* Servicios: el título nunca se sale de la tarjeta */
.svc-title { font-size: clamp(1.7rem, 3vw, 2.9rem); font-stretch: 100%; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 860px) { .svc-title { font-size: clamp(1.5rem, 7vw, 2rem); } .svc-text { min-width: 0; } }

/* Tarjetas: toda la tarjeta es clicable cuando tiene un enlace */
.card-link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card:has(.card-link a) { cursor: pointer; }
.card:has(.card-link a):hover { border-color: rgba(255, 122, 69, .55); transform: translateY(-2px); }

/* Nosotros: fundador */
.founder { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 2.5rem; align-items: center; max-width: 52rem; }
.founder-photo { aspect-ratio: 1; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 30px 60px -30px rgba(255, 90, 36, .6); overflow: hidden; }
.founder-photo span { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; color: #fff; letter-spacing: -.03em; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .3rem 0 .8rem; }
.founder-text > p:not(.card-tag) { color: var(--muted); margin-bottom: 1.2rem; }
@media (max-width: 620px) { .founder { grid-template-columns: 1fr; justify-items: start; } .founder-photo { width: 9rem; } }

.author-box .author-photo { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; flex: none; }

/* Filtros del blog: los artículos ocultos no se muestran */
[hidden] { display: none !important; }
/* Bloques destacados dentro de los artículos (llamadas a la acción, preguntas desplegables) */
.post-content section { margin: 2.2rem 0; padding: 1.6rem 1.8rem; border-radius: var(--radius); border: 1px solid rgba(255, 122, 69, .45); background: rgba(255, 90, 36, .07); }
.post-content section > *:last-child { margin-bottom: 0; }
.post-content section a[class*="button"] { display: inline-block; margin-top: .6rem; padding: .7rem 1.3rem; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; text-decoration: none; }
.post-content details { border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.2rem; margin: .7rem 0; background: rgba(21, 25, 34, .6); }
.post-content details summary { cursor: pointer; font-weight: 700; }
.post-content details p { margin: .7rem 0 0; }

/* Con la barra de administración de WordPress (solo la ve quien ha iniciado sesión) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
/* Botón flotante del plugin Simple Chat Button: en el móvil ya está la barra fija con WhatsApp y tapaba el botón "Llamar" */
@media (max-width: 620px) { #simple-chat-button--container { display: none !important; } }

.blog-empty { color: var(--muted); margin-top: 1rem; }
