/* ============================================================
   CORPORACIÓN | MR — tema de bloques
   Estilos que theme.json no puede expresar (layout, efectos).
   ============================================================ */

:root {
  --ink: #2E1E4D;
  --ink-deep: #1F1235;
  --violet: #7046D9;
  --violet-deep: #5A33B8;
  --lilac: #F4F1FA;
  --muted: #5B5468;
  --amber: #FFC42E;
  --line: rgba(46, 30, 77, .14);
  --line-soft: rgba(46, 30, 77, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-md: 0 10px 30px rgba(46, 30, 77, .10), 0 2px 8px rgba(46, 30, 77, .06);
  --shadow-lg: 0 30px 60px -20px rgba(46, 30, 77, .28);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { min-height: 72px; gap: 14px; }
.header-inner .wp-block-site-title { margin: 0; }
.header-inner .wp-block-site-title a {
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .06em;
}
.header-inner .wp-block-site-title a:hover { color: var(--violet); }

.site-header .primary-nav { display: none; flex: 1 1 auto; }
@media (min-width: 960px) { .site-header .primary-nav { display: flex; } }
.primary-nav .wp-block-navigation__container { gap: 4px; }
.primary-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  transition: background-color .18s var(--ease);
}
.primary-nav a:hover { background: var(--lilac); }
.header-cta { margin: 0; }
.header-cta .wp-block-button__link { min-height: 44px; padding: .7rem 1.25rem; font-size: .88rem; }
@media (max-width: 359px) { .header-cta { display: none; } }

/* ---------- Botones ---------- */
.wp-block-button__link { transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease); }
.wp-block-button__link:hover { transform: translateY(-2px); }

.btn-ghost .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost .wp-block-button__link:hover { border-color: var(--ink); background: rgba(46,30,77,.04); }

.btn-amber .wp-block-button__link {
  background: var(--amber);
  color: var(--ink-deep);
  box-shadow: 0 14px 30px -12px rgba(255,196,46,.7);
}
.btn-amber .wp-block-button__link:hover { background: #FFD05C; }

.btn-light .wp-block-button__link { background: #fff; color: var(--ink); }
.btn-light .wp-block-button__link:hover { background: var(--lilac); }

.btn-sm .wp-block-button__link { padding: .7rem 1.25rem; font-size: .88rem; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 10vw, 132px); }
.section-tint { background: var(--lilac); }
.section-ink {
  background:
    radial-gradient(900px 460px at 80% 0%, rgba(112,70,217,.35), transparent 60%),
    var(--ink);
  color: rgba(255,255,255,.78);
}
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: var(--amber); }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 62px); margin-inline: 0 auto; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.9rem); }
.section-sub { margin-top: 18px; max-width: 56ch; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}
.eyebrow .dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 9px;
  position: relative; top: -1px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255,196,46,.22);
  vertical-align: middle;
}

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 76px) clamp(34px, 4vw, 52px);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(112,70,217,.16), transparent 62%),
    radial-gradient(800px 420px at 8% 8%, rgba(255,196,46,.14), transparent 60%),
    linear-gradient(180deg, var(--lilac) 0%, rgba(244,241,250,.35) 58%, transparent 100%);
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: clamp(44px, 7vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.hero-copy .eyebrow { margin-top: 0; }
.hero-copy h1 {
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  letter-spacing: -.035em;
  line-height: 1.04;
  margin-block: 0 0;
}
.lead { margin-top: 24px; max-width: 54ch; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.75; }
.hero-copy .wp-block-buttons { margin-top: 32px; gap: 12px; }
.hero-facts {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  gap: 14px 34px;
}
.hero-facts p { margin: 0; }
.hero-facts strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 600; }
.hero-facts span { font-size: .82rem; color: var(--muted); }

/* Consola */
.hero-art { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
@media (min-width: 900px) { .hero-art { max-width: none; min-height: 440px; } }
.console {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #241636, var(--ink-deep));
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .console { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); } }
.console-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--wp--preset--font-family--mono, monospace);
  font-size: .72rem;
  color: rgba(255,255,255,.55);
}
.tl { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.tl:first-child { background: #FF7A6B; }
.tl:nth-child(2) { background: var(--amber); }
.tl:nth-child(3) { background: #6EE7A8; }
.filename { margin-left: 8px; }
.state { margin-left: auto; color: #6EE7A8; }
.code {
  margin: 0;
  padding: 20px 18px 8px;
  font-family: monospace;
  font-size: clamp(.72rem, 1.1vw, .82rem);
  line-height: 1.85;
  color: #D9D2EA;
  overflow-x: auto;
  background: transparent;
}
.code .ln { display: inline-block; width: 1.6em; color: rgba(255,255,255,.22); user-select: none; }
.code .kw { color: #C9A6FF; }
.code .fn { color: #7EE0C6; }
.code .str { color: var(--amber); }
.code .caret {
  display: inline-block; width: 7px; height: 1.05em;
  margin-left: 2px; vertical-align: -.15em;
  background: var(--amber);
  animation: blink 1.1s steps(1) infinite;
}
.console-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.chip {
  font-size: .68rem; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px;
  color: #CFC6E6;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}
.bar { margin-left: auto; width: 92px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.bar span { display: block; height: 100%; width: 60%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--amber)); animation: grow 2.6s var(--ease) infinite alternate; }

.float-card {
  display: none;
  position: absolute; z-index: 3; right: -6px; bottom: 12%;
  gap: 2px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite alternate;
}
@media (min-width: 900px) { .float-card { display: grid; } }
.float-k { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--violet); font-weight: 600; }
.float-v { font-size: .9rem; color: var(--ink); font-weight: 600; }

/* ---------- Servicios ---------- */
.cards { gap: 18px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--violet), var(--amber));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card .card-num {
  position: absolute; top: 22px; right: 22px;
  margin: 0;
  font-family: monospace; font-size: .72rem;
  color: rgba(46,30,77,.35); letter-spacing: .06em;
}
.card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--violet);
  background: var(--lilac);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.card .icon svg { width: 24px; height: 24px; }
.card:hover .icon { background: var(--ink); color: var(--amber); transform: rotate(-6deg) scale(1.05); }
.card h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.card p { font-size: .92rem; line-height: 1.65; margin: 0; }
.card .more { margin-top: auto; padding-top: 6px; font-size: .85rem; font-weight: 600; }
.card .more a { color: var(--violet); text-decoration: none; }
.card .more a:hover { color: var(--violet-deep); }

/* ---------- Proceso ---------- */
.steps { gap: 26px; position: relative; }
.step { position: relative; padding-top: 44px; }
.step::before {
  content: "";
  position: absolute; top: 9px; left: 0;
  width: 100%; height: 2px;
  background: var(--line);
}
.step::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 5px var(--lilac);
  z-index: 2;
}
.step .step-num { margin: 0 0 4px; font-family: monospace; font-size: .74rem; letter-spacing: .1em; color: var(--violet); }
.step h3 { font-size: 1.05rem; margin: 0 0 6px; }
.step p { font-size: .92rem; margin: 0; }
@media (max-width: 719px) {
  .step { padding: 0 0 34px 46px; }
  .step::before { top: 8px; bottom: -8px; left: 9px; width: 2px; height: auto; }
  .step::after { top: 6px; left: 0; }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
}

/* ---------- Proyectos ---------- */
.projects { gap: 22px; }
.project { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-thumb {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: rgba(255,255,255,.9);
  font-family: monospace; font-size: 2.6rem;
  position: relative;
}
.project-thumb p { margin: 0; }
.project-thumb::after {
  content: "Caso en preparación";
  position: absolute; bottom: 14px;
  font-family: inherit; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; opacity: .8;
}
.project-a .project-thumb { background: linear-gradient(135deg, var(--ink), var(--violet)); }
.project-b .project-thumb { background: linear-gradient(135deg, var(--violet), #B79DFF); color: var(--ink-deep); }
.project-c .project-thumb { background: linear-gradient(135deg, #4A3A6B, var(--ink)); }
.project-body { padding: 22px 22px 26px; display: grid; gap: 8px; }
.project-body p, .project-body h3 { margin: 0; }
.project-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--violet); }
.project h3 { font-size: 1.05rem; line-height: 1.35; }
.project p { font-size: .9rem; }

/* ---------- Cifras ---------- */
.stats { gap: 20px; }
.stat { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.16); }
.stat-label { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6); }
.stat .ph {
  margin: 0;
  font-family: monospace; font-size: 1.1rem; font-weight: 600;
  display: inline-block; padding: 3px 12px;
  border: 1px dashed rgba(255,196,46,.5);
  border-radius: 999px;
  color: var(--amber);
}
.logos { margin-top: 56px; gap: 12px; }
.logo-slot {
  margin: 0;
  display: grid; place-items: center;
  min-height: 84px;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 12px;
  font-family: monospace; font-size: .72rem;
  color: rgba(255,255,255,.45);
}

/* ---------- Testimonios ---------- */
.quotes { gap: 18px; }
.quote { margin: 0; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 22px; }
.quote-text { position: relative; margin: 0; flex: 1; font-size: .95rem; }
.quote-text::before {
  content: "“"; display: block;
  font-size: 3rem; line-height: .6;
  color: var(--violet); opacity: .35;
  margin-bottom: 8px; font-family: Georgia, serif;
}
.quote-author { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--violet); }

/* ---------- CTA ---------- */
.cta {
  padding-block: clamp(64px, 8vw, 104px);
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(255,196,46,.22), transparent 60%),
    linear-gradient(120deg, var(--ink) 0%, #3A2566 55%, var(--violet-deep) 100%);
  color: rgba(255,255,255,.82);
}
.cta-inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.2fr .8fr; gap: 60px; } }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { margin-top: 16px; max-width: 46ch; }
.cta .eyebrow { color: var(--amber); }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-actions .wp-block-buttons { margin: 0; }
.cta-actions .wp-block-button__link { width: 100%; max-width: 320px; }
.cta-hours { margin: 4px 0 0; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,.66); padding-block: 64px 28px; font-size: .9rem; }
.footer-grid { display: grid; gap: 38px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; } }
.footer-brand .wp-block-site-title a { color: #fff; text-decoration: none; font-size: 1.05rem; letter-spacing: .08em; }
.footer-brand p { max-width: 32ch; }
.footer-col h2 { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin: 0 0 6px; font-weight: 600; }
.footer-col a, .footer-col p { color: rgba(255,255,255,.66); text-decoration: none; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Blog ---------- */
.site-main { padding-block: clamp(48px, 7vw, 96px); }
.page-head, .page-title { margin-bottom: 40px; }
.post-list .wp-block-post-template { gap: 20px; }
.post-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.post-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--violet); }
.entry-main { padding-block: clamp(48px, 7vw, 96px); }
.entry-meta { font-size: .85rem; color: var(--muted); }

/* ---------- Animaciones ---------- */
@keyframes blink { 0%,45% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes grow { from { width: 34%; } to { width: 92%; } }
@keyframes float { from { transform: translateY(-8px); } to { transform: translateY(8px); } }

/* Contenedor de sección: 1160px de contenido + 40px de aire a los lados */
.wp-block-group.section-inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px) !important;
}

/* El núcleo centra los hijos con !important; el encabezado va al borde izquierdo */
.section-inner > .section-head {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 720px !important;
}

/* ============================================================
   Blog
   ============================================================ */
.site-main { padding-block: clamp(48px, 7vw, 96px); }
.page-head { margin-bottom: clamp(32px, 4vw, 52px); }
.post-list .wp-block-post-template { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.post-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb { margin: 0; }
.post-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.post-cat { margin: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.post-cat a { color: var(--violet); text-decoration: none; }
.post-card h2 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--violet); }
.post-card p { margin: 0; font-size: .92rem; }
.post-date { font-size: .78rem; color: var(--muted); margin: 0; }
.wp-block-query-pagination { margin-top: 40px; font-size: .9rem; }

.entry-main .entry-thumb { margin: 0 0 28px; }
.entry-main .entry-thumb img { border-radius: 18px; aspect-ratio: 21/9; object-fit: cover; width: 100%; }
.entry-main h1 { margin-bottom: 18px; }
.entry-meta { font-size: .85rem; color: var(--muted); margin-bottom: 32px; }
.entry-meta p { margin: 0; }
.entry-main .wp-block-post-content p { margin-bottom: 1.2em; }
.entry-nav { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-weight: 600; }
.entry-nav a { text-decoration: none; }

/* ============================================================
   Portafolio
   ============================================================ */
.wp-block-query.projects .wp-block-post-template {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.wp-block-query.projects .wp-block-post-template > li { margin: 0; }
.wp-block-query.projects .wp-block-post-template .project { height: 100%; }
.project-thumb-img { margin: 0; }
.project-thumb-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.project-body h2 { font-size: 1.1rem; line-height: 1.35; margin: 0; }
.project-body h2 a { color: var(--ink); text-decoration: none; }
.project-body h2 a:hover { color: var(--violet); }

/* ============================================================
   Contacto y formulario
   ============================================================ */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.contact-copy h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.contact-data {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.contact-data p { margin: 0; font-size: .9rem; }
.contact-data strong {
  display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--violet); margin-bottom: 4px;
}
.contact-data a { text-decoration: none; }

.contact-form {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow-md);
}
.contact-form form { margin: 0; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: 6px; margin: 0 0 16px; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.form-field label span { color: var(--violet); }
.form-field input,
.form-field textarea {
  font: inherit; font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(112, 70, 217, .18);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-legal { font-size: .78rem; color: var(--muted); margin: 4px 0 18px; }
.btn-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.btn-submit:hover { background: var(--violet-deep); transform: translateY(-2px); }
.form-notice { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .9rem; }
.form-notice--ok { background: rgba(30, 160, 110, .12); color: #17664a; }
.form-notice--error { background: rgba(200, 50, 50, .10); color: #9d2b24; }

/* ============================================================
   Páginas internas (migración)
   ============================================================ */
.page-hero { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 18px; }
.page-hero--narrow { max-width: 640px; }
.section-head--spaced { margin-top: clamp(48px, 7vw, 88px); }

.service-list { display: grid; gap: 0; }
.service-area { padding: clamp(28px, 4vw, 46px) 0; border-top: 1px solid var(--line); }
.service-area:last-child { border-bottom: 1px solid var(--line); }
.service-area h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 10px; }
.service-num { font-family: monospace; color: var(--violet); font-size: .78rem; letter-spacing: .12em; margin: 0 0 8px; }
.service-intro { max-width: 62ch; margin: 0 0 24px; }
.service-items { gap: 24px; }
.service-items h3 { font-size: 1.02rem; margin: 0 0 6px; }
.service-items p { font-size: .92rem; margin: 0; }

.split { gap: clamp(24px, 4vw, 48px); }
.split h2 { font-size: 1.3rem; margin-bottom: 10px; }
.split p { font-size: .95rem; }

.pillars, .values { gap: 18px; }
.pillar { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.pillar h3 { font-size: 1.05rem; margin: 0 0 8px; }
.pillar p { font-size: .92rem; margin: 0; }
.values > .wp-block-group { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.values h3 { font-size: 1rem; margin: 0 0 6px; }
.values p { font-size: .9rem; margin: 0; }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--violet);
  transition: transform .18s var(--ease);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 6px; }
.faq-item summary:hover { color: var(--violet); }
.faq-item[open] summary { color: var(--violet); }
.faq-item p { margin: 10px 0 0; font-size: .94rem; }
.cta-inline { margin-top: clamp(40px, 6vw, 64px); padding: clamp(24px, 4vw, 36px); background: var(--lilac); border-radius: 20px; }
.cta-inline h2 { font-size: 1.4rem; margin-bottom: 8px; }
.cta-inline p { margin-bottom: 18px; }

.steps-inline { display: grid; gap: 20px; margin-top: 32px; }
.steps-inline h3 { font-size: 1rem; margin: 4px 0; }
.steps-inline p { font-size: .9rem; margin: 0; }
@media (min-width: 700px) { .steps-inline { grid-template-columns: repeat(3, 1fr); } }


/* ============================================================
   Menú móvil: dock flotante + panel lateral derecho
   ============================================================ */
.mobile-dock, .mobile-dock *,
.mnav-panel, .mnav-panel * { box-sizing: border-box; }
.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(46, 30, 77, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  box-shadow: 0 18px 44px -14px rgba(46, 30, 77, .65);
  backdrop-filter: blur(12px) saturate(160%);
}
.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.dock-btn:hover { background: rgba(255, 255, 255, .1); }
.dock-icon { display: grid; gap: 4px; width: 18px; }
.dock-icon span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.mnav-open .dock-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mnav-open .dock-icon span:nth-child(2) { opacity: 0; }
.mnav-open .dock-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.dock-wa {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink-deep);
  box-shadow: 0 8px 20px -8px rgba(255, 196, 46, .8);
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.dock-wa:hover { transform: translateY(-2px) scale(1.04); background: #FFD05C; }
.dock-wa svg { width: 22px; height: 22px; }

.mnav-overlay {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgba(20, 10, 35, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.mnav-overlay[hidden] { display: none; }
.mnav-open .mnav-overlay { opacity: 1; }

.mnav-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 90;
  width: min(86vw, 380px);
  display: flex;
  flex-direction: column;
  padding: 22px 22px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(112, 70, 217, .35), transparent 60%),
    linear-gradient(180deg, #241636, #2E1E4D 55%, #3A2566);
  color: #fff;
  border-radius: 24px 0 0 24px;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .35);
  transform: translateX(101%);
  transition: transform .38s cubic-bezier(.22, .61, .36, 1);
}
.mnav-panel[hidden] { display: none; }
.mnav-open .mnav-panel { transform: translateX(0); }

.mnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mnav-brand { color: #fff; font-size: 1rem; }
.mnav-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.mnav-close:hover { background: rgba(255, 255, 255, .1); transform: rotate(90deg); }

.mnav-links { display: grid; gap: 2px; }
.mnav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), color .18s;
}
.mnav-links a::after { content: "→"; font-size: 1rem; opacity: .45; transition: transform .2s var(--ease), opacity .2s; }
.mnav-links a:hover { color: var(--amber); }
.mnav-links a:hover::after { transform: translateX(4px); opacity: .9; }
.mnav-open .mnav-links a { opacity: 1; transform: none; }
.mnav-open .mnav-links a:nth-child(1) { transition-delay: .08s; }
.mnav-open .mnav-links a:nth-child(2) { transition-delay: .13s; }
.mnav-open .mnav-links a:nth-child(3) { transition-delay: .18s; }
.mnav-open .mnav-links a:nth-child(4) { transition-delay: .23s; }
.mnav-open .mnav-links a:nth-child(5) { transition-delay: .28s; }

.mnav-contact {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 6px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
}
.mnav-contact a { color: #fff; text-decoration: none; }
.mnav-contact a:hover { color: var(--amber); }

.mnav-cta {
  margin-top: 16px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink-deep);
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.mnav-cta:hover { transform: translateY(-2px); background: #FFD05C; }

@media (min-width: 960px) {
  .mobile-dock, .mnav-panel, .mnav-overlay { display: none !important; }
}
@media (max-width: 959px) {
  /* El pie llega hasta el borde de la pantalla; el dock flota encima */
  body { padding-bottom: 0; }
  .site-footer {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  .footer-bottom { margin-top: 40px; }
}

/* ============================================================
   Compartir en redes
   ============================================================ */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 44px 0 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.share-label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.share-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease);
}
.share-btn svg { width: 20px; height: 20px; }
.share-btn:hover { transform: translateY(-2px); background: var(--ink); color: #fff; border-color: var(--ink); }
.share-wa:hover { background: #25D366; border-color: #25D366; }
.share-fb:hover { background: #1877F2; border-color: #1877F2; }
.share-x:hover  { background: #111; border-color: #111; }
.share-li:hover { background: #0A66C2; border-color: #0A66C2; }
.share-copy { font: inherit; }
.share-status { font-size: .78rem; font-weight: 600; color: var(--violet); }

/* ============================================================
   Entrada individual en móvil
   ============================================================ */
@media (max-width: 599px) {
  .site-main.entry-main { padding-block: 30px 72px; }
  .entry-main .entry-thumb { margin-bottom: 22px; }
  .entry-main .entry-thumb img {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 16px;
    object-fit: cover;
    width: 100%;
  }
  .entry-main .eyebrow {
    margin-bottom: 10px;
    font-size: .72rem;
  }
  .entry-main h1 {
    font-size: clamp(1.95rem, 7.6vw, 2.6rem);
    line-height: 1.08;
    margin-bottom: 14px;
  }
  .entry-main .entry-meta {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
  }
  .entry-main .wp-block-post-content { font-size: 1rem; }
  .entry-main .wp-block-post-content img {
    width: 100%;
    border-radius: 14px;
  }
  .entry-main .wp-block-post-content figure { margin-inline: 0; }
  .entry-main .wp-block-post-content figcaption {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 8px;
  }
  .entry-main .share { margin-top: 34px; }
}

/* Ajustes finos de la entrada en móvil */
@media (max-width: 599px) {
  .entry-main .share {
    gap: 8px;
  }
  .entry-main .share-label {
    flex: 0 0 100%;
    margin: 0 0 4px;
  }
  .entry-main .share-btn {
    width: 42px;
    height: 42px;
  }
  .entry-main .share-btn svg { width: 19px; height: 19px; }
  .entry-main .wp-block-post-content code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ============================================================
   Contenido de entradas: nada debe desbordar el ancho (móvil)
   ============================================================ */
.wp-block-post-content { min-width: 0; }

.wp-block-post-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px;
  background: var(--lilac);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: .8rem;
  line-height: 1.6;
}
.wp-block-post-content pre code {
  white-space: pre;
  display: block;
  min-width: max-content;
}
.wp-block-post-content p,
.wp-block-post-content li,
.wp-block-post-content blockquote {
  overflow-wrap: break-word;
}
.wp-block-post-content code:not(pre code) {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wp-block-post-content img,
.wp-block-post-content iframe,
.wp-block-post-content video,
.wp-block-post-content table {
  max-width: 100%;
}
.wp-block-post-content table { display: block; overflow-x: auto; }

/* En móvil, el código se parte en vez de obligar a hacer scroll horizontal */
@media (max-width: 599px) {
  .wp-block-post-content pre {
    overflow-x: hidden;
    white-space: pre-wrap;
  }
  .wp-block-post-content pre code {
    white-space: pre-wrap;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ============================================================
   Noticias: cabecera editorial + filtros + destacada
   ============================================================ */
.news-main { padding-block: 0 clamp(56px, 8vw, 110px); }

.news-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(30px, 4vw, 46px);
  background:
    radial-gradient(900px 420px at 82% -20%, rgba(112, 70, 217, .18), transparent 62%),
    radial-gradient(700px 360px at 4% 0%, rgba(255, 196, 46, .14), transparent 60%),
    linear-gradient(180deg, var(--lilac) 0%, rgba(244, 241, 250, .3) 70%, transparent 100%);
  overflow: hidden;
}
.news-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 40% 0%, #000 20%, transparent 80%);
  pointer-events: none;
}
.news-hero__inner { position: relative; max-width: 780px; }
.news-hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.news-hero .section-sub { margin-top: 0; }

.news-filters-wrap { padding-top: 4px; }
.news-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: clamp(26px, 4vw, 40px);
}
.news-filters__all { margin: 0; }
.news-filters__all a,
.cat-pills a {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.news-filters__all a:hover,
.cat-pills a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-pills { margin: 0; }
.cat-pills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-pills li { margin: 0; }

.news-list .wp-block-post-template {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list .wp-block-post-template > li { margin: 0; }

.news-list .post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.news-list .post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(112, 70, 217, .35);
}
.news-list .post-thumb { margin: 0; overflow: hidden; }
.news-list .post-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  transition: transform .5s var(--ease);
}
.news-list .post-card:hover .post-thumb img { transform: scale(1.045); }
.news-list .post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
}
.news-list .post-cat { margin: 0; font-size: .68rem; letter-spacing: .12em; }
.news-list .post-cat a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--violet);
  text-decoration: none;
}
.news-list .post-body h2 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.news-list .post-body h2 a { color: var(--ink); text-decoration: none; }
.news-list .post-body h2 a:hover { color: var(--violet); }
.news-list .post-body p { margin: 0; font-size: .92rem; }
.news-list .post-foot {
  margin-top: auto;
  padding-top: 10px;
  font-size: .78rem;
  color: var(--muted);
}
.news-list .post-arrow { color: var(--violet); font-weight: 700; }

/* Destacada: primera entrada a todo el ancho */
@media (min-width: 900px) {
  .news-list .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
  .news-list .wp-block-post-template > li:first-child .post-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
    position: relative;
  }
  .news-list .wp-block-post-template > li:first-child .post-card::before {
    content: "Destacado";
    position: absolute;
    top: 18px; left: 18px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink-deep);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .news-list .wp-block-post-template > li:first-child .post-thumb { height: 100%; }
  .news-list .wp-block-post-template > li:first-child .post-thumb img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 340px;
  }
  .news-list .wp-block-post-template > li:first-child .post-body {
    padding: clamp(26px, 3.2vw, 44px);
    justify-content: center;
  }
  .news-list .wp-block-post-template > li:first-child h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
    line-height: 1.15;
  }
  .news-list .wp-block-post-template > li:first-child .post-body p { font-size: 1rem; }
}

.news-pagination { margin-top: 40px; font-size: .9rem; }

/* Alineación y pills del listado */
.news-hero__inner {
  margin-left: max(0px, calc((100% - 1160px) / 2)) !important;
  margin-right: auto !important;
}
.news-filters {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 0;
}
.cat-pills,
.cat-pills ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-pills li { margin: 0; }

/* La destacada: evitar que la imagen imponga su ancho intrínseco en el grid */
.news-list .wp-block-post-template > li:first-child .post-card > * {
  min-width: 0;
}
.news-list .wp-block-post-template > li:first-child .post-thumb,
.news-list .wp-block-post-template > li:first-child .post-thumb img {
  max-width: 100%;
}

/* Destacada: mostrar la imagen completa (sin recortar textos incrustados) */
@media (min-width: 900px) {
  .news-list .wp-block-post-template > li:first-child .post-thumb {
    background: var(--ink);
  }
  .news-list .wp-block-post-template > li:first-child .post-thumb img {
    object-fit: contain !important;
    background: var(--ink);
  }
}

/* En el blog principal sí es la última nota */
body.blog .news-list .wp-block-post-template > li:first-child .post-card::before {
  content: "Última nota";
}

/* Proyectos: todas las tarjetas iguales (sin destacada gigante) */
.proj-grid .wp-block-post-template > li:first-child { grid-column: auto; }
.proj-grid .wp-block-post-template > li:first-child .post-card { display: flex; flex-direction: column; }
.proj-grid .wp-block-post-template > li:first-child .post-card::before { display: none; }
.proj-grid .wp-block-post-template > li:first-child .post-thumb { height: auto; background: transparent; }
.proj-grid .post-thumb img {
  aspect-ratio: auto !important;
  height: 100% !important;
  width: 100%;
  object-fit: cover !important;
  min-height: 0 !important;
}
.proj-grid .post-thumb { height: auto; }
.proj-grid .wp-block-post-template > li:first-child .post-body { padding: 20px 20px 22px; }
.proj-grid .wp-block-post-template > li:first-child h2 { font-size: 1.12rem; }
.proj-grid .wp-block-post-template > li:first-child .post-body p { font-size: .92rem; }

/* WordPress aplica contain:size a imágenes con sizes="auto"; en tarjetas sobra */
.news-list .post-thumb img {
  contain: none !important;
}

/* Proyectos (primera tarjeta): misma presentación que el resto */
.proj-grid .wp-block-post-template > li:first-child .post-thumb {
  background: transparent;
}
.proj-grid .wp-block-post-template > li:first-child .post-thumb img {
  object-fit: cover !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  contain: none !important;
  background: transparent;
}

/* ============================================================
   Contacto
   ============================================================ */
.contact-section { padding-block: clamp(34px, 5vw, 60px) clamp(48px, 7vw, 96px); }
.contact-kicker {
  margin: 0 0 16px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
}
.contact-grid { align-items: start; gap: clamp(32px, 4vw, 56px); }
.contact-side { min-width: 0; }
.channels { display: grid; gap: 10px; margin-bottom: 26px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.channel:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 70, 217, .4);
  box-shadow: var(--shadow-md);
}
.channel-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lilac);
  color: var(--violet);
}
.channel-icon svg { width: 21px; height: 21px; }
.channel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel-text strong { font-size: .95rem; font-weight: 600; }
.channel-text span { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.channel-arrow {
  margin-left: auto;
  color: var(--violet);
  font-weight: 700;
  transition: transform .2s var(--ease);
}
.channel:hover .channel-arrow { transform: translateX(4px); }
.channel-wa .channel-icon { background: rgba(37, 211, 102, .13); color: #1a9e54; }

.contact-facts {
  display: grid;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.fact { display: grid; gap: 2px; }
.fact-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-value { font-size: .92rem; color: var(--ink); }

.contact-form-wrap .contact-kicker { margin-bottom: 14px; }
.form-field select {
  font: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%237046d9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-field select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(112, 70, 217, .18);
}

.contact-faq .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.contact-faq-list { max-width: 900px; margin-bottom: 26px; }

@media (max-width: 899px) {
  .contact-grid { gap: 34px; }
  .contact-side .channels { margin-bottom: 22px; }
}

/* Campos del formulario: el padding debe ir DENTRO del 100% */
.contact-form,
.contact-form * {
  box-sizing: border-box;
}
.form-field,
.form-row {
  min-width: 0;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   Nosotros
   ============================================================ */
.about-section { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.about-split { gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .about-split { grid-template-columns: 1fr 1fr !important; }
}
.about-media { position: relative; margin: 0; padding-bottom: 42px; }
.about-media .main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.about-media .small {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 899px) {
  .about-media { padding-bottom: 34px; max-width: 520px; }
  .about-media .small { right: 0; width: 46%; }
}
.about-points { min-width: 0; }
.about-points h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0 0 16px; }
.about-points h3 { font-size: 1.12rem; margin: 26px 0 6px; }
.about-points p { font-size: .96rem; margin: 0; }

.pillar-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lilac);
  color: var(--violet);
  margin-bottom: 14px;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.05rem; margin: 0 0 8px; }
.pillar p { font-size: .92rem; margin: 0; }

.values-grid { gap: 0; border-top: 1px solid var(--line); }
.value-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.value-num {
  margin: 0 0 8px;
  font-family: monospace;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--violet);
}
.value-item h3 { font-size: 1.12rem; margin: 0 0 6px; }
.value-item p { font-size: .94rem; margin: 0; max-width: 42ch; }
@media (min-width: 700px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
}

.manifesto {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(30px, 5vw, 64px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 196, 46, .18), transparent 60%),
    linear-gradient(120deg, var(--ink) 0%, #3A2566 60%, var(--violet-deep) 100%);
  color: rgba(255, 255, 255, .85);
}
.manifesto .eyebrow { color: var(--amber); }
.manifesto-quote {
  margin: 0 0 18px;
  max-width: 24ch;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 600;
  color: #fff;
}
.manifesto-note { max-width: 48ch; margin: 0 0 26px; }
.manifesto .wp-block-buttons { margin: 0; }

/* ============================================================
   Servicios
   ============================================================ */
.svc-section { padding-block: clamp(30px, 4vw, 52px) clamp(48px, 7vw, 96px); }
.svc-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: clamp(26px, 4vw, 40px);
}
.svc-index a {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.svc-index a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.svc-grid { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

.svc-card {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(112, 70, 217, .35);
  box-shadow: var(--shadow-md);
}
.svc-card[id] { scroll-margin-top: 96px; }
.svc-num {
  position: absolute;
  top: 26px;
  right: 26px;
  margin: 0;
  font-family: monospace;
  font-size: .75rem;
  letter-spacing: .08em;
  color: rgba(46, 30, 77, .35);
}
.svc-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lilac);
  color: var(--violet);
  margin-bottom: 16px;
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-card h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); margin: 0 0 8px; }
.svc-intro { font-size: .95rem; margin: 0 0 20px; max-width: 54ch; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.svc-list li { position: relative; padding-left: 30px; margin: 0; font-size: .92rem; }
.svc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--violet);
  font-size: .68rem;
  font-weight: 700;
}
.svc-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }


/* Tarjetas de servicio (Inicio y Servicios) */
.svc-more { margin: 18px 0 0; font-size: .86rem; font-weight: 600; }
.svc-more a { color: var(--violet); text-decoration: none; }
.svc-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.svc-all { margin-top: 32px; }
.svc-grid--home .svc-card { display: flex; flex-direction: column; }
.svc-grid--home .svc-more { margin-top: auto; padding-top: 16px; }

/* Inicio: 3 tarjetas de servicio en una fila en escritorio */
@media (min-width: 900px) {
  .svc-grid--home { grid-template-columns: repeat(3, 1fr); }
}
/* Servicios: con 5 áreas, la última ocupa todo el ancho y reparte sus puntos */
@media (min-width: 900px) {
  .svc-grid--page .svc-card:last-child { grid-column: 1 / -1; }
  .svc-grid--page .svc-card:last-child .svc-list { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* Iconos de servicio: al pasar el mouse giran, crecen y el recuadro se vuelve púrpura */
.svc-icon {
  transition:
    background-color .28s var(--ease),
    color .28s var(--ease),
    transform .28s var(--ease);
}
.svc-card:hover .svc-icon,
.svc-card:focus-within .svc-icon {
  background: var(--ink);
  color: var(--amber);
  transform: rotate(-6deg) scale(1.08);
}
.pillar:hover .pillar-icon {
  background: var(--ink);
  color: var(--amber);
  transform: rotate(-6deg) scale(1.06);
}
.pillar-icon {
  transition:
    background-color .28s var(--ease),
    color .28s var(--ease),
    transform .28s var(--ease);
}

/* ============================================================
   Caso de proyecto (landing)
   ============================================================ */
.proj-hero { padding-block: clamp(40px, 6vw, 76px) clamp(24px, 3vw, 36px); }
.proj-hero .eyebrow a { color: inherit; text-decoration: none; }
.proj-hero .eyebrow a:hover { text-decoration: underline; }
.proj-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 20ch;
  margin: 0 0 16px;
}
.proj-hero .section-sub { max-width: 62ch; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.proj-tags a,
.proj-tags .wp-block-post-terms__separator { display: inline-block; }
.proj-tags a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
}
.proj-tags .wp-block-post-terms__separator { display: none; }

.proj-cover { margin-bottom: clamp(28px, 4vw, 48px); }
.proj-cover-img img,
.proj-cover figure img {
  width: 100%;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.proj-body { padding-block: clamp(20px, 3vw, 34px) clamp(48px, 6vw, 80px); }
.proj-body h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: clamp(30px, 4vw, 44px) 0 12px;
  letter-spacing: -.02em;
}
.proj-body h2:first-child { margin-top: 0; }
.proj-body h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.proj-body p, .proj-body li { font-size: 1rem; line-height: 1.7; }
.proj-body ul { padding-left: 20px; display: grid; gap: 6px; }
.proj-body a { color: var(--violet); }
.proj-body .proj-ficha {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0 0 30px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 241, 250, .5);
}
.proj-ficha .dato { display: grid; gap: 3px; }
.proj-ficha .dato span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-ficha .dato strong { font-size: .95rem; font-weight: 600; color: var(--ink); }
.proj-body .proj-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.proj-body .proj-live:hover { background: var(--violet); }

/* Proyectos: forzar tarjetas 4:3 (el bloque a veces pierde la proporción) */
.proj-grid .post-card { display: flex !important; flex-direction: column; }
.proj-grid .post-card::before { display: none; }
.proj-grid .post-thumb,
.proj-grid .wp-block-post-template > li:first-child .post-thumb {
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  background: transparent;
  overflow: hidden;
}
.proj-grid .post-thumb img,
.proj-grid .wp-block-post-template > li:first-child .post-thumb img {
  aspect-ratio: auto !important;
  height: 100% !important;
  width: 100%;
  object-fit: cover !important;
  min-height: 0 !important;
  contain: none !important;
  background: transparent;
}

/* ============================================================
   Proyectos en la home (dinámico)
   ============================================================ */
.hp-query { margin: 0; }
.hp-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .hp-grid { grid-template-columns: repeat(3, 1fr); } }

.hp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.hp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(112, 70, 217, .35);
  box-shadow: var(--shadow-md);
}
.hp-thumb { margin: 0; position: relative; overflow: hidden; }
.hp-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s var(--ease);
}
.hp-card:hover .hp-thumb img { transform: scale(1.04); }
.hp-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hp-cat { margin: 0; }
.hp-cat a,
.hp-cat .wp-block-post-terms__separator {
  display: inline-block;
}
.hp-cat a {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--lilac);
  border-radius: 999px;
  padding: 5px 11px;
  text-decoration: none;
}
.hp-cat .wp-block-post-terms__separator { display: none; }
.hp-title { font-size: 1.05rem; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.hp-title a { color: var(--ink); text-decoration: none; }
.hp-title a:hover { color: var(--violet); }
.hp-excerpt { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.hp-more { margin: auto 0 0; padding-top: 6px; font-size: .82rem; font-weight: 600; color: var(--violet); }
.hp-all { margin-top: 32px; }

/* Tarjetas de proyecto en la home: altura uniforme por fila */
.hp-grid > li { display: flex; }
.hp-grid > li > .wp-block-group { width: 100%; }
.hp-card { height: 100%; }

/* ============================================================
   Páginas legales
   ============================================================ */
.legal-hero { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 30px); }
.legal-updated { color: var(--muted); font-size: .9rem; }
.legal-section { padding-block: clamp(20px, 3vw, 32px) clamp(48px, 7vw, 88px); }
.legal-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--pad-x, 24px);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}
@media (min-width: 900px) {
  .legal-inner { grid-template-columns: 260px minmax(0, 760px); }
  .legal-toc { position: sticky; top: 96px; align-self: start; }
}
.legal-toc__title {
  margin: 0 0 12px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-toc__list a {
  display: block;
  font-size: .86rem;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.legal-toc__list a:hover { color: var(--ink); }
.legal-toc__list a.is-active { color: var(--violet); border-left-color: var(--violet); font-weight: 600; }

.legal-content { max-width: 760px; }
.legal-content > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.legal-content h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -.02em;
  margin: 2.2em 0 .6em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.legal-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin: 1.6em 0 .4em; }
.legal-content p, .legal-content li { font-size: .96rem; line-height: 1.75; color: #3F3A4A; }
.legal-content ul, .legal-content ol { padding-left: 22px; display: grid; gap: 6px; margin: .6em 0 1em; }
.legal-content a { color: var(--violet); }
.legal-content strong { color: var(--ink); }
.legal-note {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 196, 46, .1);
  border-radius: 0 10px 10px 0;
  font-size: .92rem;
}
.legal-note p { margin: 0; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9rem; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-content th { color: var(--ink); font-weight: 600; background: var(--lilac); }

/* ============================================================
   Banner de cookies
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: 980px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(46, 30, 77, .22);
  padding: 20px 22px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .cookie-banner__inner { grid-template-columns: 1fr auto; align-items: center; }
  .cookie-config { grid-column: 1 / -1; }
}
.cookie-banner__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
}
.cookie-banner__text p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.cookie-banner__more { margin-top: 6px !important; }
.cookie-banner__more a { color: var(--violet); font-weight: 600; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btn {
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.cookie-btn:hover { border-color: var(--violet); color: var(--violet); }
.cookie-btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.cookie-btn--primary:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.cookie-config {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cookie-config[hidden] { display: none; }
.cookie-row { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.cookie-row input { margin-top: 3px; }
.cookie-config .cookie-btn { justify-self: start; }
/* El aviso NO bloquea el scroll de la página en ningún tamaño */

/* Casilla de privacidad del formulario */
.form-consent { margin: 18px 0 0; }
.form-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.form-consent input { margin-top: 3px; flex: none; }
.form-consent a { color: var(--violet); font-weight: 600; }

/* Enlaces legales del pie */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.footer-consent {
  font: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-consent:hover { color: var(--amber); }

/* Tablas legales: se ajustan al ancho, sin desbordes */
.legal-content table { table-layout: fixed; }
.legal-content th,
.legal-content td { overflow-wrap: anywhere; word-break: break-word; }
.legal-content code { word-break: break-word; }

/* Banner de cookies en móvil: cabe en pantalla y no bloquea la página */
@media (max-width: 859px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
  }
  .cookie-banner__inner { gap: 12px; }
  .cookie-banner__title { font-size: .92rem; }
  .cookie-banner__text p { font-size: .83rem; line-height: 1.5; }
  .cookie-banner__actions { gap: 8px; }
  .cookie-banner__actions .cookie-btn {
    flex: 1 1 calc(50% - 8px);
    padding: 11px 10px;
    font-size: .8rem;
  }
  .cookie-banner__actions .cookie-btn--primary { flex-basis: 100%; }
  .cookie-config { gap: 8px; padding-top: 10px; }
  .cookie-row { font-size: .8rem; gap: 8px; }
  .cookie-config .cookie-btn { justify-self: stretch; width: 100%; padding: 11px; }
}
