/* ==========================================================================
   OWH Cloud Technology — Sistema de diseño
   Paleta de marca: Lila #5E17EB + Blanco #FFFFFF
   Incluye: fade-in de secciones, reveal con scroll y transiciones de navegación
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap");

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --brand: #5E17EB;
  --brand-600: #4C12C4;
  --brand-700: #3B0F9E;
  --brand-400: #8B5CF6;
  --brand-200: #C4B5FD;
  --brand-100: #E4DCFD;
  --brand-50: #F5F1FE;

  /* Acentos de apoyo (concepto cloud / datos) */
  --cyan: #22D3EE;
  --cyan-600: #0E9BB5;
  --success: #10B981;
  --warning: #FBBF24;

  /* Neutros */
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --soft: #F7F5FD;
  --soft-2: #F1EDFC;
  --line: #E7E2F6;
  --line-strong: #D6CDF0;

  --ink: #0C0718;
  --ink-2: #150C2C;
  --ink-3: #1E1240;
  --ink-4: #2B1B57;
  --ink-line: rgba(199, 182, 255, 0.16);

  --text: #171126;
  --muted: #5C5570;
  --faint: #8B84A0;
  --text-on-dark: #EDE9FB;
  --muted-on-dark: #A99FC6;

  /* Tipografía */
  --font-display: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Espaciado y formas */
  --gutter: 24px;
  --maxw: 1180px;
  --maxw-narrow: 860px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(23, 17, 38, 0.05);
  --shadow-sm: 0 4px 14px -6px rgba(23, 17, 38, 0.14);
  --shadow: 0 18px 40px -22px rgba(23, 17, 38, 0.28);
  --shadow-lg: 0 34px 70px -32px rgba(76, 18, 196, 0.34);
  --shadow-brand: 0 14px 34px -14px rgba(94, 23, 235, 0.5);

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.18s;
  --dur: 0.32s;
  --dur-slow: 0.7s;
  --transition: all var(--dur) var(--ease);
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--brand-600); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

strong, b { font-weight: 600; color: var(--ink); }

hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }

::selection { background: var(--brand); color: var(--white); }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--soft); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--radius-pill); border: 3px solid var(--soft); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-200); }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow { max-width: var(--maxw-narrow); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--gutter);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gutter);
  align-items: start;
}

.section { position: relative; padding: 96px 0; }
.section-sm { position: relative; padding: 64px 0; }
.section-lg { position: relative; padding: 120px 0; }
.section-tight { padding: 56px 0; }

.section.bg-soft,
.bg-soft { background: var(--soft); }
.bg-white { background: var(--paper); }
.bg-dark { background: var(--ink); color: var(--text-on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark .text-muted, .bg-dark .lead { color: var(--muted-on-dark); }

.section + .section { border-top: 1px solid var(--line); }
.section.bg-soft + .section,
.section.bg-dark + .section { border-top: none; }

.stack > * + * { margin-top: 18px; }
.center { text-align: center; }
.center .section-head,
.center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Tipografía
   -------------------------------------------------------------------------- */
.title-xl {
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.55em;
}

.title-lg {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.5em;
}

.title-md {
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  font-weight: 700;
  margin-bottom: 0.45em;
}

.title-sm { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4em; }

.lead {
  font-size: 1.11rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.6em;
}

.text-muted { color: var(--muted); }
.text-sm { font-size: 0.92rem; }
.text-xs { font-size: 0.82rem; }
.mono { font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
}

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.lede-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 30px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Listas y notas
   -------------------------------------------------------------------------- */
.list-clean { display: grid; gap: 11px; }

.list-clean li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 0.97rem;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}

.list-clean li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 0.72em;
  width: 6px;
  height: 3px;
  border-left: 1.8px solid var(--brand);
  border-bottom: 1.8px solid var(--brand);
  transform: rotate(-45deg);
}

.bg-dark .list-clean li { color: var(--muted-on-dark); }
.bg-dark .list-clean li::before { background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.4); }
.bg-dark .list-clean li::after { border-color: var(--brand-200); }

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.13);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 3px;
  vertical-align: middle;
}

.notice {
  position: relative;
  padding: 16px 18px 16px 46px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 0.92rem;
  line-height: 1.55;
}

.notice::before {
  content: "i";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-popular {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--brand), var(--brand-400));
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.btn::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  flex-shrink: 0;
}

.btn:hover::after { opacity: 0.75; transform: translateX(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-600));
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover { color: var(--white); box-shadow: 0 20px 40px -16px rgba(94, 23, 235, 0.6); }

.btn-secondary {
  background: var(--white);
  color: var(--brand-700);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(199, 182, 255, 0.34);
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(139, 92, 246, 0.14);
  border-color: var(--brand-400);
}

.btn-link {
  padding: 0;
  color: var(--brand);
  font-weight: 600;
  border: none;
}

.btn-link::after { display: none; }
.btn-link span { transition: transform var(--dur) var(--ease); display: inline-block; }
.btn-link:hover { transform: none; }
.btn-link:hover span { transform: translateX(4px); }

.btn-lg { padding: 16px 30px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-row.center, .center .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   7. Header, navegación y menú móvil
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(12, 7, 24, 0.92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  animation: fadeDown 0.7s var(--ease) both;
}

.site-header.scrolled {
  background: rgba(12, 7, 24, 0.98);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.8);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  flex-shrink: 0;
}

.brand::before {
  content: "";
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  background:
    url("../img/logo-mark.svg") center / cover no-repeat,
    linear-gradient(135deg, var(--brand-400), var(--brand));
  box-shadow: 0 8px 20px -8px rgba(94, 23, 235, 0.85);
}

.brand:hover { color: var(--brand-200); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-400), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav a:hover { color: var(--white); background: rgba(139, 92, 246, 0.12); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--white); }

.nav a.btn {
  margin-left: 6px;
  color: var(--white);
  background: linear-gradient(120deg, var(--brand), var(--brand-600));
  padding: 11px 20px;
  box-shadow: var(--shadow-brand);
}

.nav a.btn::after { display: none; }
.nav a.btn:hover { color: var(--white); }

.header-wrap > .btn { flex-shrink: 0; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(199, 182, 255, 0.28);
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.menu-toggle::before {
  content: "";
  width: 15px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 1.8px no-repeat;
}

.menu-toggle:hover { border-color: var(--brand-400); background: rgba(139, 92, 246, 0.14); }

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  background: var(--ink-2);
  border-top: 1px solid transparent;
  transition: max-height 0.5s var(--ease), opacity 0.35s var(--ease), border-color var(--dur) var(--ease);
}

.mobile-menu.open {
  max-height: min(78vh, 780px);
  opacity: 1;
  border-top-color: var(--ink-line);
  /* Con servicios y productos el menú ya no cabe entero: se desplaza */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 18px var(--gutter) 26px;
}

.mobile-menu-inner a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  color: var(--muted-on-dark);
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.mobile-menu.open .mobile-menu-inner a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 34ms + 60ms);
}

.mobile-menu-inner a:hover {
  color: var(--white);
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.3);
}

/* --------------------------------------------------------------------------
   8. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 92px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 78% 8%, rgba(94, 23, 235, 0.4), transparent 70%),
    radial-gradient(700px 420px at 6% 92%, rgba(34, 211, 238, 0.16), transparent 72%),
    linear-gradient(180deg, #0C0718, #150C2C);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(199, 182, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 182, 255, 0.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 80%);
}

.hero > .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { color: var(--white); }
.hero .lead { color: var(--muted-on-dark); }

.hero-art {
  position: absolute;
  inset: 0 0 0 48%;
  z-index: 1;
  opacity: 0.34;
  background: url("../img/hero-network.svg") center right / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, #000 58%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 58%);
  pointer-events: none;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 10px; }

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(199, 182, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-on-dark);
}

.stat-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  flex-shrink: 0;
  animation: ledPulse 2.6s ease-in-out infinite;
}

/* Panel lateral del hero */
.hero-panel {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(30, 18, 64, 0.94), rgba(12, 7, 24, 0.94));
  border: 1px solid rgba(199, 182, 255, 0.2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-panel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ink-line);
}

.hero-panel-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(199, 182, 255, 0.2);
}

.hero-panel-bar i:nth-child(1) { background: #FF5F57; }
.hero-panel-bar i:nth-child(2) { background: #FEBC2E; }
.hero-panel-bar i:nth-child(3) { background: #28C840; }

.hero-panel-bar span {
  margin-left: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted-on-dark);
}

.hero-panel-body { padding: 22px 20px 24px; }

/* p en vez de h3: corrige el salto de encabezados que marcaba PageSpeed (accesibilidad) */
.hero-panel-body .hero-panel-title {
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(12, 7, 24, 0.85);
  border: 1px solid var(--ink-line);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.kpi:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateY(-2px); }

.kpi b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-200);
  margin-bottom: 5px;
}

.kpi span { font-size: 0.87rem; color: var(--muted-on-dark); }

.hero-panel-figure {
  margin: 18px -4px -4px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ink-line);
}

.hero-panel-figure img { width: 100%; }

/* --------------------------------------------------------------------------
   9. Page hero (páginas internas) — imagen por concepto
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 74px 0 84px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 400px at 84% 0%, rgba(94, 23, 235, 0.42), transparent 70%),
    radial-gradient(560px 340px at 0% 100%, rgba(34, 211, 238, 0.14), transparent 72%),
    linear-gradient(180deg, #0C0718, #150C2C);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -6%;
  right: -4%;
  width: 46%;
  height: 112%;
  background-image: var(--hero-art, none);
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  opacity: var(--art-o, 0.3);
  mask-image: linear-gradient(100deg, transparent 4%, #000 62%);
  -webkit-mask-image: linear-gradient(100deg, transparent 4%, #000 62%);
  pointer-events: none;
}

/* En páginas sin tarjeta lateral el arte es el único soporte visual */
body.page-legal .page-hero::after,
body.page-contacto .page-hero::after { --art-o: 0.5; opacity: var(--art-o); width: 54%; }

.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: var(--muted-on-dark); margin-bottom: 1.4em; }
.page-hero .tag { color: var(--brand-200); background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.34); }
.page-hero .list-clean li { color: var(--muted-on-dark); }

/* Arte por página — una imagen acorde al concepto de cada servicio */
body.page-hosting  .page-hero { --hero-art: url("../img/fig-hosting.svg"); }
body.page-vps      .page-hero { --hero-art: url("../img/fig-vps.svg"); }
body.page-dominios .page-hero { --hero-art: url("../img/fig-dominios.svg"); }
body.page-web      .page-hero { --hero-art: url("../img/fig-web.svg"); }
body.page-apps     .page-hero { --hero-art: url("../img/fig-apps.svg"); }
body.page-seo      .page-hero { --hero-art: url("../img/fig-seo.svg"); }
body.page-email    .page-hero { --hero-art: url("../img/fig-email.svg"); }
body.page-ia       .page-hero { --hero-art: url("../img/fig-ia.svg"); }
body.page-data     .page-hero { --hero-art: url("../img/fig-data.svg"); }
body.page-contacto .page-hero { --hero-art: url("../img/map-coverage.svg"); }
body.page-legal    .page-hero { --hero-art: url("../img/hero-network.svg"); }

/* Arte de las páginas de producto */
body.page-duende     .page-hero { --hero-art: url("../img/fig-duende.svg"); }
body.page-bio        .page-hero { --hero-art: url("../img/fig-bio.svg"); }
body.page-campanas   .page-hero { --hero-art: url("../img/fig-campanas.svg"); }
body.page-coc        .page-hero { --hero-art: url("../img/fig-coc.svg"); }
body.page-crm        .page-hero { --hero-art: url("../img/fig-crm.svg"); }
body.page-catalogo   .page-hero { --hero-art: url("../img/fig-catalogo.svg"); }
body.page-reputacion .page-hero { --hero-art: url("../img/fig-reputacion.svg"); }
body.page-loyalty    .page-hero { --hero-art: url("../img/fig-loyalty.svg"); }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-on-dark);
  margin-bottom: 26px;
  padding: 0;
}

.breadcrumbs a { color: var(--brand-200); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span { opacity: 0.55; }
.breadcrumbs span:last-child { opacity: 1; color: var(--text-on-dark); }

.hero-service {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.hero-service-card {
  padding: 26px 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(30, 18, 64, 0.9), rgba(12, 7, 24, 0.92));
  border: 1px solid rgba(199, 182, 255, 0.2);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(4px);
}

.hero-service-card .hero-art {
  position: static;
  margin: 0 0 20px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--ink-line);
  opacity: 1;
  background: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.hero-service-card .tag { margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   10. Tarjetas
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-400), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-100);
  box-shadow: var(--shadow);
}

.card:hover::before { transform: scaleX(1); }
.card > *:last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-bottom: 10px; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 18px;
  background: linear-gradient(140deg, var(--brand-50), var(--brand-100));
  border: 1px solid var(--brand-100);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.card-media {
  margin: -28px -26px 24px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink);
}

.card-media img {
  width: 100%;
  transition: transform 0.7s var(--ease);
}

.card:hover .card-media img { transform: scale(1.045); }

.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: none; border-color: var(--brand-100); }

.grid > .card, .grid-3 > .card, .grid-2 > .card { height: 100%; }

/* Índice numérico */
.card .idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--brand-400);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   11. Rejilla de servicios (home)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  background: var(--paper);
  transition: background-color var(--dur) var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}

.service-card:hover { background: var(--brand-50); }
.service-card:hover::after { transform: scaleY(1); }

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-400);
  margin-bottom: 14px;
}

.service-card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.service-card p { font-size: 0.94rem; color: var(--muted); margin-bottom: 20px; flex-grow: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand);
}

.service-link span { transition: transform var(--dur) var(--ease); }
.service-link:hover { color: var(--brand-600); }
.service-link:hover span { transform: translateX(5px); }

/* Filtro de servicios */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--dur-fast) var(--ease);
}

.filter-btn:hover { border-color: var(--brand-200); color: var(--brand-600); }

.filter-btn.active {
  background: linear-gradient(120deg, var(--brand), var(--brand-600));
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.is-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   12. Estadísticas / contadores
   -------------------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 28px 24px;
  background: var(--paper);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat span { font-size: 0.88rem; color: var(--muted); }

.bg-dark .stats-row { background: var(--ink-line); border-color: var(--ink-line); }
.bg-dark .stat { background: var(--ink-2); }
.bg-dark .stat b { color: var(--brand-200); }
.bg-dark .stat span { color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   13. Features en franja
   -------------------------------------------------------------------------- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.feature-strip .strip-item {
  padding: 6px 28px;
  border-left: 1px solid var(--line);
}

.feature-strip .strip-item:first-child { border-left: none; padding-left: 0; }

.strip-item .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 9px;
}

.strip-item p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   14. Tablas comparativas
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 0.94rem;
}

thead th {
  position: sticky;
  top: 0;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-200);
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-line);
  white-space: nowrap;
}

tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background-color var(--dur-fast) var(--ease); }
tbody tr:hover { background: var(--brand-50); }
tbody td:first-child { font-weight: 600; color: var(--ink); }

tbody tr.featured { background: linear-gradient(90deg, var(--brand-50), transparent); }
tbody tr.featured td:first-child { color: var(--brand-700); }
tbody tr.featured:hover { background: linear-gradient(90deg, var(--brand-100), var(--brand-50)); }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.faq-item:hover { border-color: var(--brand-100); }
.faq-item.active { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 19px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.faq-question:hover { color: var(--brand); }

.faq-question span {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.faq-item.active .faq-question span {
  background: var(--brand);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
}

.faq-item.active .faq-answer { opacity: 1; }

.faq-answer > div,
.faq-answer { padding: 0; }

.faq-answer p, .faq-answer div {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.faq-item.active .faq-answer { max-height: 420px; }

/* --------------------------------------------------------------------------
   16. Formularios
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 14px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.input, .select, .textarea {
  width: 100%;
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

.input::placeholder, .textarea::placeholder { color: var(--faint); }

.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(94, 23, 235, 0.12);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%235E17EB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
  background-size: 12px;
  padding-right: 44px;
  cursor: pointer;
}

.textarea { min-height: 140px; resize: vertical; }

/* Controles deslizantes (calculadora de ahorro) */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 14px 0 8px;
  border: none;
  padding: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-400), var(--cyan));
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--brand);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}

.range::-webkit-slider-thumb:hover { transform: scale(1.12); }

.range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--brand);
  cursor: pointer;
}

.range::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-400), var(--cyan));
}

.range:focus-visible { outline: 2.5px solid var(--brand-200); outline-offset: 4px; }

.input.error, .select.error, .textarea.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-note {
  font-size: 0.83rem;
  color: var(--faint);
  line-height: 1.55;
}

.inline-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.inline-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}

.form-status {
  display: none;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-status.show { display: flex; animation: fadeUp 0.5s var(--ease) both; }
.form-status::before { content: "✓"; font-weight: 700; }

.btn.loading { pointer-events: none; opacity: 0.72; }

.contact-box {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   17. Banner CTA
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 52px 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--ink-2), var(--ink-3) 55%, var(--brand-700));
  border: 1px solid rgba(199, 182, 255, 0.18);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--text-on-dark);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 88% 0%, rgba(139, 92, 246, 0.4), transparent 72%),
    radial-gradient(420px 240px at 4% 100%, rgba(34, 211, 238, 0.16), transparent 74%);
  pointer-events: none;
}

.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2, .cta-banner .title-lg { color: var(--white); margin-bottom: 10px; max-width: 34ch; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.cta-banner p { color: var(--muted-on-dark); max-width: 48ch; margin: 0; font-size: 0.98rem; }
.cta-banner .btn { flex-shrink: 0; }
.cta-banner .btn-row { flex-shrink: 0; }
.cta-banner .btn-secondary { background: var(--white); color: var(--brand-700); border-color: transparent; }

/* --------------------------------------------------------------------------
   18. Imágenes y figuras
   -------------------------------------------------------------------------- */
.img-fluid { width: 100%; }

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.media-frame img { width: 100%; }

.media-frame.tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(94, 23, 235, 0.22), transparent 65%);
  pointer-events: none;
}

.section-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  box-shadow: var(--shadow);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}

.section-figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.section-figure img { width: 100%; }

.section-figure figcaption {
  padding: 13px 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted-on-dark);
  background: var(--ink-2);
  border-top: 1px solid var(--ink-line);
}

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.media-split.reverse .section-figure { order: -1; }

/* Marco con zoom */
.zoom-frame { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.zoom-frame img { transition: transform 0.8s var(--ease); width: 100%; }
.zoom-frame:hover img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   19. Proceso / timeline
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  counter-reset: step;
}

.step { position: relative; padding-top: 46px; }

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 46px;
  right: -26px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--brand-100), transparent);
}

.step:last-child::after { display: none; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   20. Testimonios (carrusel)
   -------------------------------------------------------------------------- */
.carousel { position: relative; }

.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }

.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.carousel-slide { flex: 0 0 33.3333%; padding: 0 12px; }
.carousel-slide:first-child { padding-left: 0; }
.carousel-slide:last-child { padding-right: 0; }

.quote-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.quote-card .mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--brand-100);
  margin-bottom: 12px;
}

.quote-card .quote-text {
  font-size: 1rem;
  color: var(--text);
  flex-grow: 1;
  margin-bottom: 22px;
}

.quote-card .stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--warning);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.quote-card .who {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--faint);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--brand);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}

.carousel-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}

.carousel-dots { display: flex; gap: 8px; align-items: center; }

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all var(--dur) var(--ease);
}

.carousel-dot.active { width: 26px; border-radius: var(--radius-pill); background: var(--brand); }

.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-chip {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  transition: color var(--dur-fast) var(--ease);
}

.logo-chip:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--muted-on-dark);
  padding: 78px 0 30px;
  border-top: 1px solid var(--ink-line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 380px at 80% 0%, rgba(94, 23, 235, 0.24), transparent 70%);
  pointer-events: none;
}

.site-footer > * { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 46px;
}

.footer-grid h3 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.footer-grid > div:first-child h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-grid p { font-size: 0.92rem; margin: 0 0 10px; }
.footer-grid > div:first-child p { max-width: 38ch; }

.footer-grid a {
  font-size: 0.92rem;
  color: var(--muted-on-dark);
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  display: inline-block;
}

.footer-grid a:hover { color: var(--brand-200); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--faint);
  margin-top: 0;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted-on-dark);
  transition: all var(--dur-fast) var(--ease);
}

.footer-social a:hover {
  border-color: var(--brand-400);
  background: rgba(139, 92, 246, 0.16);
  color: var(--white);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   22. WhatsApp flotante, progreso, back to top
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-400), var(--cyan));
  transition: width 0.1s linear;
}

.float-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-end;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.float-btn.show { opacity: 1; transform: none; pointer-events: auto; }

.float-btn.whatsapp {
  background: #25D366;
  color: #05331A;
}

.float-btn.whatsapp::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.98 3 3 6.58 3 11c0 2.13.93 4.06 2.44 5.47L4 21l4.9-1.67c.98.27 2.03.42 3.1.42 5.02 0 9-3.58 9-8s-3.98-8-9-8Zm-4.2 10.4a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4Zm4.2 0a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4Zm4.2 0a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.98 3 3 6.58 3 11c0 2.13.93 4.06 2.44 5.47L4 21l4.9-1.67c.98.27 2.03.42 3.1.42 5.02 0 9-3.58 9-8s-3.98-8-9-8Zm-4.2 10.4a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4Zm4.2 0a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4Zm4.2 0a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.float-btn.whatsapp:hover { color: #05331A; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.float-btn.whatsapp.is-active { background: #1FBE5B; }

/* Selector de canales de WhatsApp: Ventas / Soporte / Administración */
.wa-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 302px;
  max-width: calc(100vw - 36px);
  padding: 16px 14px 12px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  /* visibility con retardo solo al cerrar, así el fade de salida es visible */
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility 0s linear var(--dur);
}

.wa-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}

.wa-panel-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 12px;
  padding: 0 6px;
}

.wa-panel-head strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text);
}

.wa-panel-head span { font-size: 0.8rem; color: var(--muted); }

.wa-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
}

.wa-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--text);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.wa-item:hover,
.wa-item:focus-visible {
  background: var(--soft);
  border-color: var(--line);
  color: var(--text);
  transform: translateX(2px);
}

.wa-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.wa-item.wa-ventas .wa-avatar { background: linear-gradient(140deg, var(--brand), var(--brand-400)); }
.wa-item.wa-soporte .wa-avatar { background: linear-gradient(140deg, var(--cyan-600), var(--cyan)); color: #04212A; }
.wa-item.wa-administracion .wa-avatar { background: var(--ink-3); }

.wa-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 1px;
}

.wa-info strong { font-family: var(--font-display); font-size: 0.9rem; }
.wa-info small { font-size: 0.81rem; color: var(--text); font-variant-numeric: tabular-nums; }
.wa-info em { font-size: 0.73rem; font-style: normal; color: var(--faint); }

.wa-chevron {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(-45deg);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.wa-item:hover .wa-chevron {
  border-color: var(--brand);
  transform: rotate(-45deg) translate(2px, -2px);
}

.wa-panel-foot {
  display: block;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-600);
}

.wa-panel-foot:hover { color: var(--brand-700); }

/* Lista de canales reutilizada en la página de contacto */
.wa-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.wa-channels .wa-item {
  background: var(--soft);
  border-color: var(--line);
}

.wa-channels .wa-item:hover {
  background: var(--paper);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.float-btn.top {
  background: var(--ink-2);
  color: var(--text-on-dark);
  border: 1px solid var(--ink-line);
  padding: 12px;
  width: 46px;
  height: 46px;
  justify-content: center;
}

.float-btn.top::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

.float-btn.top:hover { background: var(--brand); border-color: transparent; }

/* --------------------------------------------------------------------------
   23. Animaciones — FADE IN en secciones y navegación
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ledPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.24); }
  50% { box-shadow: 0 0 0 7px rgba(139, 92, 246, 0.06); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Reveal por scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s var(--ease) var(--reveal-delay, 0ms),
    transform 0.75s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.95); }
.reveal-fade { transform: none; }

.reveal.in.reveal-left,
.reveal.in.reveal-right,
.reveal.in.reveal-scale { transform: none; }

/* Entrada inmediata para lo que ya está sobre el pliegue (hero)
   No depende de JavaScript: se anima al pintar la página. */
.fade-in {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) var(--reveal-delay, 0ms) both;
}

.fade-in-1 { --reveal-delay: 90ms; }
.fade-in-2 { --reveal-delay: 180ms; }
.fade-in-3 { --reveal-delay: 280ms; }
.fade-in-4 { --reveal-delay: 380ms; }
.fade-in-5 { --reveal-delay: 480ms; }

.fade-in-scale { animation-name: fadeScale; }

/* Transición de página al navegar */
body.is-leaving {
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

body {
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}

.page-veil {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--ink);
  opacity: 1;
  pointer-events: none;
  animation: veilOut 0.6s var(--ease) forwards;
}

@keyframes veilOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

/* Barra de progreso de lectura */
.reveal-delay-1 { --reveal-delay: 90ms; }
.reveal-delay-2 { --reveal-delay: 180ms; }
.reveal-delay-3 { --reveal-delay: 270ms; }
.reveal-delay-4 { --reveal-delay: 360ms; }
.reveal-delay-5 { --reveal-delay: 450ms; }

.float { animation: floatY 6s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   24. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .hero-grid, .hero-service { grid-template-columns: 1fr; gap: 42px; }
  .hero-art {
    inset: auto 0 0 0;
    height: 58%;
    opacity: 0.3;
    background-position: center bottom;
    mask-image: linear-gradient(180deg, transparent 6%, #000 70%);
    -webkit-mask-image: linear-gradient(180deg, transparent 6%, #000 70%);
  }
  .page-hero::after { width: 62%; --art-o: 0.38; opacity: var(--art-o); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .stats-row, .feature-strip, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .feature-strip .strip-item { border-left: none; padding: 0; }
  .carousel-slide { flex: 0 0 50%; }
  .media-split { grid-template-columns: 1fr; gap: 34px; }
  .media-split.reverse .section-figure { order: 0; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .contact-box { grid-template-columns: 1fr; }
  .mobile-menu-inner a { --i: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .float-btn.whatsapp { padding: 13px; }
  .section { padding: 68px 0; }
  .section-lg { padding: 82px 0; }
  .section-sm { padding: 48px 0; }
  .hero { padding: 62px 0 66px; }
  .page-hero { padding: 54px 0 62px; }
  .page-hero::after { display: none; }
  .header-wrap { padding: 12px var(--gutter); gap: 12px; }
  .brand { font-size: 0.96rem; }
  .brand::before { width: 30px; height: 30px; border-radius: 9px; }
  .header-wrap > .btn { padding: 10px 15px; font-size: 0.86rem; }
  .grid-2, .grid-3, .grid-4, .stats-row, .feature-strip, .steps, .services-grid { grid-template-columns: 1fr; }
  .steps { gap: 34px; }
  .step::after { display: none; }
  .section-head { margin-bottom: 36px; }
  .card { padding: 24px 22px; }
  .card-media { margin: -24px -22px 22px; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .carousel-slide { flex: 0 0 100%; padding: 0; }
  .float-stack { right: 14px; bottom: 14px; }
  .float-btn.whatsapp span { display: none; }
  .wa-panel { width: min(88vw, 302px); padding: 14px 12px 10px; }
  .hero-ctas .btn, .btn-row .btn { flex: 1 1 auto; }
  .stat { padding: 22px 16px; }
  .mobile-menu-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  /* El logo pasa a marca gráfica para dejar espacio al CTA de conversión */
  .brand { font-size: 0; gap: 0; }
  .brand::before { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .title-xl { font-size: 1.85rem; }
  .header-wrap > .btn { padding: 10px 13px; font-size: 0.82rem; }
  .wa-info small { font-size: 0.78rem; }
  .wa-info em { display: none; }
}

/* --------------------------------------------------------------------------
   25. Accesibilidad / preferencias
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .fade-in,
  .mobile-menu-inner a,
  .float-btn {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .faq-answer { max-height: none; opacity: 1; }
  .mobile-menu.open { max-height: none; }
  .page-veil { display: none; }
}

@media print {
  .site-header, .float-stack, .scroll-progress, .carousel-controls { display: none !important; }
  .page-ambient, .hero-anim { display: none !important; }
  body { color: #000; }
  .reveal, .fade-in { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   26. Fondos animados de la página
   Capas: halos en movimiento, rejilla desplazándose y red de nodos en canvas.
   El JS (ensureBackground) las inyecta en todas las páginas.
   -------------------------------------------------------------------------- */
.page-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body > header,
body > main,
body > footer { position: relative; z-index: 1; }

.page-ambient .amb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
}

.amb-orb.orb-a {
  width: 44vmax;
  height: 44vmax;
  left: -12vmax;
  top: -14vmax;
  background: radial-gradient(circle, rgba(94, 23, 235, 0.26), transparent 68%);
  animation: orbDriftA 28s ease-in-out infinite alternate;
}

.amb-orb.orb-b {
  width: 36vmax;
  height: 36vmax;
  right: -13vmax;
  top: 22vh;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 68%);
  animation: orbDriftB 34s ease-in-out infinite alternate;
}

.amb-orb.orb-c {
  width: 40vmax;
  height: 40vmax;
  left: 24vw;
  bottom: -18vmax;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
  animation: orbDriftA 40s ease-in-out infinite alternate-reverse;
}

.page-ambient .amb-grid {
  position: absolute;
  inset: -70px;
  background-image:
    linear-gradient(rgba(94, 23, 235, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 23, 235, 0.075) 1px, transparent 1px);
  background-size: 68px 68px;
  animation: gridPan 46s linear infinite;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 10%, transparent 78%);
}

.page-ambient .amb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

@keyframes orbDriftA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(7vw, 5vh, 0) scale(1.16); }
}

@keyframes orbDriftB {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(-6vw, -6vh, 0) scale(0.94); }
}

@keyframes gridPan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 68px 68px, 68px 68px; }
}

/* --- Fondo animado dentro de los heroes (oscuros) --- */
.hero-anim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-anim canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-anim .halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  will-change: transform;
}

.hero-anim .halo.h1 {
  width: 46%;
  height: 88%;
  left: -8%;
  top: -18%;
  background: radial-gradient(circle, rgba(94, 23, 235, 0.55), transparent 68%);
  animation: orbDriftA 22s ease-in-out infinite alternate;
}

.hero-anim .halo.h2 {
  width: 40%;
  height: 78%;
  right: -6%;
  bottom: -22%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.34), transparent 70%);
  animation: orbDriftB 27s ease-in-out infinite alternate;
}

/* Deriva de los degradados del hero y del page-hero */
.hero::before,
.page-hero::before {
  background-size: 145% 145%, 155% 155%, 100% 100%;
  animation: bgShift 30s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { background-position: 0% 0%, 100% 100%, 0 0; }
  50% { background-position: 34% 22%, 62% 68%, 0 0; }
  100% { background-position: 72% 38%, 18% 26%, 0 0; }
}

/* El arte de cada página respira y se desplaza lentamente */
.page-hero::after {
  animation: artDrift 24s ease-in-out infinite alternate;
}

@keyframes artDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: var(--art-o, 0.3); }
  50%  { transform: translate3d(-2.6%, -1.4%, 0) scale(1.06); opacity: calc(var(--art-o, 0.3) * 1.55); }
  100% { transform: translate3d(1.8%, 2.2%, 0) scale(1.02); opacity: var(--art-o, 0.3); }
}

body.page-legal .page-hero::after,
body.page-contacto .page-hero::after { --art-o: 0.5; }

/* --------------------------------------------------------------------------
   27. Animación de las imágenes del sitio
   -------------------------------------------------------------------------- */
.media-frame img,
.section-figure img,
.card-media img,
.hero-panel-figure img,
.hero-service-card .hero-art {
  animation: imgBreath 9s ease-in-out infinite;
  will-change: transform;
}

.hero-service-card .hero-art { animation-duration: 11s; }

@keyframes imgBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.012); }
}

/* Barrido de luz sobre los marcos de imagen */
.media-frame::after,
.section-figure::after,
.hero-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, transparent 34%, rgba(255, 255, 255, 0.13) 48%, transparent 62%);
  transform: translateX(-75%);
  animation: imgShine 7.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-service-card::after { border-radius: inherit; }

/* En los marcos con tinte el barrido se sustituye por el tinte fijo */
.media-frame.tint::after {
  animation: none;
  transform: none;
  background: linear-gradient(140deg, rgba(94, 23, 235, 0.22), transparent 65%);
}

@keyframes imgShine {
  0% { transform: translateX(-75%); opacity: 0; }
  18% { opacity: 1; }
  55% { transform: translateX(75%); opacity: 0.9; }
  100% { transform: translateX(75%); opacity: 0; }
}

.hero-service-card { position: relative; }

/* Halo pulsante dentro de las figuras de sección (el marco recorta) */
.section-figure { position: relative; }

.section-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(72% 62% at 72% 12%, rgba(94, 23, 235, 0.26), transparent 72%);
  animation: glowPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* Punto "en vivo" reutilizable */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-400);
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: livePulse 2.4s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --------------------------------------------------------------------------
   28. Marca gráfica (logo y favicon)
   -------------------------------------------------------------------------- */
.brand::before { display: none; }

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(94, 23, 235, 0.45));
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 10px 24px rgba(94, 23, 235, 0.6));
}

.footer-brand-logo {
  display: block;
  height: 42px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 22px rgba(94, 23, 235, 0.4));
}

/* --------------------------------------------------------------------------
   29. Menú "Productos" desplegable
   -------------------------------------------------------------------------- */
.nav-item { position: relative; display: inline-flex; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav-dropdown-toggle:hover,
.nav-item.open .nav-dropdown-toggle,
.nav-item.is-active .nav-dropdown-toggle {
  color: var(--white);
  background: rgba(139, 92, 246, 0.12);
}

.nav-dropdown-toggle .caret {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.nav-item.open .nav-dropdown-toggle .caret { transform: rotate(-135deg); margin-top: 2px; }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(600px, 76vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(21, 12, 44, 0.97);
  border: 1px solid var(--ink-line);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.9);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  z-index: 20;
}

.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-item.open .nav-dropdown-panel,
.nav-item:hover .nav-dropdown-panel,
.nav-item:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s;
}

.nav-dropdown-panel a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--text-on-dark);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.25;
}

.nav-dropdown-panel a::after { display: none; }

/* La regla global de <strong> usa tinta oscura: en las superficies oscuras
   el título del producto debe quedar en blanco para poder leerse. */
.nav-dropdown-panel a strong,
.nav-dropdown-panel a:hover strong,
.page-hero strong,
.hero-service-card strong,
.bg-dark strong,
.site-footer strong { color: var(--white); }

.nav-dropdown-panel a small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted-on-dark);
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
  background: rgba(139, 92, 246, 0.16);
  color: var(--white);
  transform: none;
}

.nav-dropdown-panel a:hover small { color: var(--brand-200); }

.nav-dropdown-foot {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--ink-line);
}

.mobile-menu-group {
  display: block;
  grid-column: 1 / -1;
  padding: 16px 4px 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.mobile-menu-group:not(:first-child) {
  margin-top: 8px;
  border-top: 1px solid var(--ink-line);
  padding-top: 18px;
}

/* --------------------------------------------------------------------------
   30. Sección de productos (home y landings)
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
}

.product-card-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #150C2C, #0C0718);
  border-bottom: 1px solid var(--line);
}

.product-card-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-card-media img { transform: scale(1.045); }

/* Barrido de luz sobre las miniaturas de producto */
.product-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, transparent 36%, rgba(255, 255, 255, 0.11) 50%, transparent 64%);
  transform: translateX(-70%);
  animation: imgShine 9s ease-in-out infinite;
  pointer-events: none;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(12, 7, 24, 0.72);
  border: 1px solid rgba(139, 92, 246, 0.42);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-200);
  backdrop-filter: blur(6px);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px 24px 24px;
}

.product-card-body h3 { font-size: 1.14rem; margin: 0; }
.product-card-body p { margin: 0; font-size: 0.94rem; color: var(--muted); }

.product-card-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 4px;
}

.product-card-points span {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand-600);
}

.product-card-body .service-link { margin-top: auto; padding-top: 8px; }

/* La portada de la tarjeta enmarca la captura real del producto */
.product-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 11;
  padding: 18px;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.55));
}

.product-card:hover .product-card-media img {
  transform: scale(1.03) translateY(-2px);
}

/* 31. Capturas reales de producto (galería dentro de cada landing) */
.shots-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.shots-grid--two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Dos por fila: las capturas anchas se leen de verdad */
.shots-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.shots-grid--pair .shot-media img { max-height: 520px; }
.shots-grid--one { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin: 0 auto; }

.shot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.shot-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 96% at 50% -10%, rgba(94, 23, 235, 0.42), transparent 64%),
    linear-gradient(165deg, #150C2C, #08040F);
  box-shadow: 0 30px 60px -40px rgba(12, 7, 24, 0.9);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

/* Halo suave detrás de la captura */
.shot-media::before {
  content: "";
  position: absolute;
  inset: 18% 12% 26%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.35), transparent 72%);
  filter: blur(22px);
  pointer-events: none;
}

.shot-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 460px;
  border-radius: 12px;
  box-shadow: 0 26px 48px -26px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(199, 182, 255, 0.14);
  transition: transform var(--dur-slow) var(--ease);
}

.shot:hover .shot-media {
  transform: translateY(-6px);
  border-color: rgba(196, 181, 253, 0.5);
  box-shadow: 0 40px 70px -40px rgba(94, 23, 235, 0.75);
}

.shot:hover .shot-media img { transform: scale(1.022); }

/* Los tableros anchos rompen el marco y ocupan todo el ancho */
.shot--board .shot-media { padding: 0; }
.shot--board .shot-media::before { display: none; }
.shot--board .shot-media img {
  width: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

.shot figcaption {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.shot figcaption strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.shots--on-dark figcaption { color: var(--muted-on-dark); }
.shots--on-dark figcaption strong { color: var(--white); }
.shots--on-dark .shot-media { border-color: var(--ink-line); }

.shot-note {
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--faint);
  text-align: center;
}

/* Bloque de producto dentro de las landings */
.product-hero-panel {
  display: grid;
  gap: 12px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.86rem;
  color: var(--muted);
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.bg-dark .pill,
.page-hero .pill {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--brand-200);
}

.page-hero .pill::before { background: var(--cyan); }

/* Comparativa de columnas (matriz de producto) */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  background: var(--paper);
}

.compare-cell h3 { font-size: 1.02rem; margin: 0; }
.compare-cell p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.compare-cell .compare-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-400);
}

/* Lista de pasos numerados compacta */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.numbered-item {
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.numbered-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand));
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  box-shadow: var(--shadow-brand);
}

.numbered-item h3 { font-size: 1.04rem; margin-bottom: 8px; }
.numbered-item p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   31. Responsive de los componentes nuevos
   -------------------------------------------------------------------------- */
/* El pie crece a cinco columnas al incorporar Productos */
@media (min-width: 1041px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1.15fr 1fr 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 1040px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbered-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-dropdown-panel { width: min(520px, 86vw); }
}

@media (max-width: 900px) {
  .nav-item { display: none; }
}

@media (max-width: 720px) {
  .products-grid,
  .compare-grid,
  .numbered-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 32px; }
  .footer-brand-logo { height: 36px; }
  .product-card-body { padding: 20px 20px 22px; }
  .page-hero::after { animation: none; }
  .shots-grid, .shots-grid--pair { gap: 20px; grid-template-columns: 1fr; }
  .shot-media { padding: 12px; }
  .shot-media img { max-height: 340px; }
  .product-card-media { padding: 14px; }
}

@media (max-width: 480px) {
  .shot-media img { max-height: 300px; }
  .shot figcaption { font-size: 0.88rem; }
}

@media (max-width: 620px) {
  .brand { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .page-ambient, .hero-anim { display: none !important; }
  .hero::before, .page-hero::before, .page-hero::after { animation: none !important; }
  .media-frame img, .section-figure img, .card-media img,
  .hero-panel-figure img, .hero-service-card .hero-art { animation: none !important; }
  .media-frame::after, .section-figure::after, .hero-service-card::after,
  .product-card-media::after { display: none !important; }
  .section-figure::before { animation: none !important; opacity: 0.7; }
}

/* ==========================================================================
   OWC Panel — Noticias (listado y detalle inyectados por owc-site.js)
   ========================================================================== */

#owc-posts .owc-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

/* ============ Blog: layout con barra lateral + paginación ============ */

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.blog-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-bottom: 18px;
  min-height: 1.2em;
}

.blog-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
}

.blog-widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 20px;
}

.blog-widget-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 12px;
  color: var(--ink-2);
}

.blog-search {
  display: flex;
  gap: 8px;
}

.blog-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: var(--radius-sm, 8px);
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: var(--ink-2);
}

.blog-search input[type="search"]:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.btn-sm { padding: 9px 14px; font-size: 0.85rem; }

.blog-archive {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-archive li + li {
  border-top: 1px solid var(--line);
}

.blog-archive a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.blog-archive a span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.blog-archive a:hover { color: var(--brand); }

.blog-archive a.is-active {
  color: var(--brand);
  font-weight: 600;
}

.owc-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  justify-content: center;
}

.owc-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 8px);
  background: var(--paper);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.owc-pagination a:hover { border-color: var(--brand); color: var(--brand); }

.owc-pagination a.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; order: -1; }
}

#owc-posts[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

#owc-posts .owc-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#owc-posts .owc-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 18px 40px rgba(12, 7, 24, 0.12));
  border-color: var(--line-strong);
}

#owc-posts .owc-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

#owc-posts .owc-post-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 18px 20px 8px;
}

#owc-posts .owc-post-card h3 a {
  color: var(--ink-2);
  text-decoration: none;
}

#owc-posts .owc-post-card h3 a:hover {
  color: var(--brand);
}

#owc-posts .owc-post-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 20px 14px;
}

#owc-posts .owc-post-card time {
  margin: auto 20px 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

#owc-posts .owc-posts-empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
}

/* Detalle de noticia */
#owc-page-content .owc-post-full {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 60px 24px 30px;
}

#owc-page-content .owc-post-full h1 {
  font-family: var(--font-display);
  color: var(--ink-2);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 10px;
}

#owc-page-content .owc-post-full time {
  display: inline-block;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

#owc-page-content .owc-post-cover {
  width: 100%;
  border-radius: var(--radius);
  margin: 0 0 26px;
  display: block;
}

#owc-page-content .owc-post-content {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

#owc-page-content .owc-post-content h2 {
  font-family: var(--font-display);
  color: var(--ink-2);
  margin: 1.6em 0 0.5em;
}

#owc-page-content .owc-post-content a {
  color: var(--brand);
}

/* Prosa completa de la noticia (el editor permite p, h3/h4, listas, citas, tablas) */
#owc-page-content .owc-post-content h3 {
  font-family: var(--font-display);
  color: var(--ink-2);
  font-size: 1.25rem;
  margin: 1.5em 0 0.5em;
}

#owc-page-content .owc-post-content h4 {
  font-family: var(--font-display);
  color: var(--ink-2);
  font-size: 1.05rem;
  margin: 1.4em 0 0.4em;
}

#owc-page-content .owc-post-content ul,
#owc-page-content .owc-post-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

#owc-page-content .owc-post-content li {
  margin: 0.4em 0;
}

#owc-page-content .owc-post-content blockquote {
  margin: 1.5em 0;
  padding: 14px 22px;
  border-left: 3px solid var(--brand);
  background: rgba(94, 23, 235, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
  font-style: italic;
}

#owc-page-content .owc-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.95rem;
}

#owc-page-content .owc-post-content th,
#owc-page-content .owc-post-content td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}

#owc-page-content .owc-post-content th {
  background: rgba(94, 23, 235, 0.05);
  font-family: var(--font-display);
}

#owc-page-content .owc-post-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

#owc-page-content .owc-post-content figure {
  margin: 1.5em 0;
}

#owc-page-content .owc-post-content figcaption {
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: 8px;
  text-align: center;
}

/* Controles globales del panel sobre noticias */
#owc-page-content .owc-post-full {
  padding-left: var(--owc-post-pad-x, 24px);
  padding-right: var(--owc-post-pad-x, 24px);
}

#owc-page-content .owc-post-full h1 {
  color: var(--owc-post-title-color, var(--ink-2));
}

#owc-page-content .owc-post-cover {
  max-height: var(--owc-post-cover-maxh, none);
  object-fit: cover;
}

/* Footer activo (marcado por owc-site.js cuando la página actual coincide) */
.site-footer a.is-active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#owc-page-content .owc-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

