/*
Theme Name: Oblicua Theme
Theme URI: https://oblicua.co
Author: Oblicua
Author URI: https://oblicua.co
Description: Theme personalizado para Oblicua — automatización de procesos con IA.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: oblicua-theme
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --gradient:          linear-gradient(90deg, #B91EF8 0%, #7A1ADF 35%, #4B29F2 60%, #1E69F8 100%);
  --gradient-diagonal: linear-gradient(120deg, #B91EF8 0%, #5F1FE5 50%, #1E69F8 100%);
  --gradient-orb:      radial-gradient(circle at 30% 30%, #4B29F2, #B91EF8);

  --magenta:       #B41AF0;
  --magenta-light: #C246F2;
  --indigo:        #4824E4;
  --blue:          #1E69F8;
  --blue-hover:    #1042A8;
  --blue-50:       #E8F1FE;
  --indigo-50:     #ECE9FD;

  --white:        #FFFFFF;
  --neutral-50:   #F7F8FA;
  --neutral-100:  #EEF0F3;
  --neutral-200:  #DEE1E7;
  --neutral-300:  #C4C9D2;
  --neutral-400:  #9CA3AF;
  --neutral-500:  #6B7280;
  --neutral-600:  #585858;
  --neutral-700:  #3F3F46;
  --neutral-800:  #27272E;
  --neutral-900:  #111114;

  --text-primary:   #000000;
  --text-secondary: #585858;
  --text-tertiary:  #6B7280;
  --border:         #DEE1E7;
  --border-subtle:  #EEF0F3;

  --shadow-sm:   0 1px 2px rgba(17,17,20,.06);
  --shadow-md:   0 4px 12px rgba(17,17,20,.08);
  --shadow-lg:   0 8px 24px rgba(17,17,20,.12);
  --shadow-xl:   0 16px 40px rgba(17,17,20,.16);
  --shadow-glow: 0 8px 32px rgba(95,31,229,.30);
  --shadow-focus:0 0 0 3px rgba(30,105,248,.40);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-pill: 999px;

  --container:  1200px;
  --gutter:     1.5rem;
  --section-py: 5rem;

  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --transition:      250ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 400ms cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--white); line-height: 1.5; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  white-space: nowrap; line-height: 1;
}
.btn-primary  { background: var(--blue); color: var(--white); }
.btn-primary:hover  { background: var(--blue-hover); box-shadow: var(--shadow-lg); }
.btn-gradient { background: var(--gradient); color: var(--white); }
.btn-gradient:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.75); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  display: block;
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo);
  margin-bottom: 0.875rem;
}
.eyebrow--white { color: rgba(255,255,255,0.7); }

.section-title {
  font-family: var(--font-heading); font-weight: 700;
  color: var(--text-primary); line-height: 1.25;
}
.section-title strong { color: var(--magenta); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--neutral-900);
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 1.75rem; }
.topbar-left  { display: flex; align-items: center; gap: 0.625rem; }
.topbar-right { display: flex; align-items: center; gap: 1.75rem; }
.topbar-social {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); transition: color var(--transition);
}
.topbar-social:hover { color: var(--white); }
.topbar a {
  color: rgba(255,255,255,0.75);
  display: flex; align-items: center; gap: 0.4rem;
  transition: color var(--transition);
  font-family: var(--font-heading); font-weight: 500;
}
.topbar a:hover { color: var(--white); }
.topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.2); }
.topbar .wa-link       { color: #4ADE80; }
.topbar .wa-link:hover { color: #86EFAC; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  height: 72px; overflow: visible;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-logo img { height: 38px; width: auto; }

.site-nav  { display: flex; align-items: center; height: 100%; }
.nav-list  { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; height: 100%; }

.nav-link, .nav-toggle {
  font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 500;
  color: var(--text-primary); padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  background: none; border: none; cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap; display: flex; align-items: center; gap: 0.375rem;
}
.nav-link:hover, .nav-toggle:hover         { color: var(--blue); background: var(--neutral-50); }
.nav-link.nav-cta {
  background: var(--gradient); color: var(--white);
  padding: 0.5625rem 1.375rem;
  border-radius: var(--radius-pill);
  font-weight: 600; margin-left: 0.5rem;
}
.nav-link.nav-cta:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }

.nav-chevron { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--transition); }
.nav-item.is-open > .nav-toggle .nav-chevron { transform: rotate(180deg); }
.nav-toggle[aria-expanded="true"] { color: var(--blue); background: var(--neutral-50); }

/* Dropdown ≤7 items */
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; left: auto;
  transform: translateY(-6px);
  min-width: 300px;
  background: var(--white); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 300;
}
/* Puente invisible — cubre el gap entre botón y panel */
.nav-dropdown::before {
  content: ''; position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
  background: transparent;
}
.nav-mega::before {
  content: ''; position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
  background: transparent;
}
.nav-item.is-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav-dd-item {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  color: var(--text-primary); text-decoration: none;
  transition: background var(--transition);
}
.nav-dd-item:hover { background: var(--neutral-50); }
.nav-dd-item:hover .nav-dd-title { color: var(--blue); }
.nav-dd-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--indigo-50); display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.nav-dd-icon svg { width: 18px; height: 18px; }
.nav-dd-title { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); transition: color var(--transition); line-height: 1.3; }
.nav-dd-desc  { font-size: 0.8rem; color: var(--text-tertiary); margin-top: 0.15rem; line-height: 1.4; }

/* Mega menú >7 items */
.nav-mega {
  position: fixed; top: 72px; left: 0; right: 0; /* top se sobreescribe por JS */
  background: var(--white); border-top: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  padding: 2rem 0 2.25rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}
.nav-item.is-open .nav-mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.mega-inner  { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mega-header {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.mega-header strong { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); }
.mega-header span   { font-size: 0.8rem; color: var(--text-tertiary); }
.mega-grid {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
}
.mega-col {
  flex: 1 1 0;
  max-width: 285px;
  min-width: 180px;
}
.mega-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  color: var(--text-primary); text-decoration: none;
  transition: background var(--transition);
}
.mega-item:hover { background: var(--neutral-50); }
.mega-item:hover .mega-item-title { color: var(--blue); }
.mega-item--all {
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.25rem;
}
.mega-item--all .mega-item-title {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.mega-item--all:hover { background: var(--indigo-50); }
.mega-item--all:hover .mega-item-title { -webkit-text-fill-color: transparent; }
.mega-item-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--indigo-50); display: flex; align-items: center; justify-content: center;
}
.mega-item-icon svg  { width: 16px; height: 16px; }
.mega-item-title     { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); transition: color var(--transition); line-height: 1.3; }

.nav-backdrop {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  z-index: 190; background: rgba(0,0,0,0.08);
}
.nav-backdrop.is-visible { display: block; }

/* ============================================================
   PAGE HERO BANNER (páginas interiores)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 40%, #0d1a3a 100%);
  padding: 4.5rem 0 4rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.10);
  top: -200px; right: -100px; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -120px; left: -60px; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-breadcrumb {
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.page-hero-breadcrumb a:hover { color: var(--white); }
.page-hero-breadcrumb span { color: rgba(255,255,255,0.50); }
.page-hero h1 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white); line-height: 1.15; margin-bottom: 1.25rem;
  max-width: 700px;
}
.page-hero h1 strong { color: var(--magenta-light); }
.page-hero-lead {
  font-size: 1.0625rem; color: var(--white);
  max-width: 600px; line-height: 1.65;
}

/* ============================================================
   INTRO SECTION
   ============================================================ */
.intro-section {
  padding: var(--section-py) 0;
  text-align: center;
}
.intro-section h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  max-width: 600px; margin: 0 auto 1.5rem;
}
.intro-section p,
.intro-parrafo p {
  font-size: 1.125rem; color: var(--text-secondary);
  max-width: 620px; margin: 0 auto; line-height: 1.65;
}
.intro-parrafo { max-width: 620px; margin: 0 auto; }

/* ============================================================
   SOLUCIONES
   ============================================================ */
.solutions-section {
  padding: var(--section-py) 0;
  background: var(--white);
}
.solutions-intro { text-align: center; margin-bottom: 4rem; }
.solutions-intro h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  max-width: 560px; margin: 0 auto;
}
.solutions-grid-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.solution-card {
  display: flex; flex-direction: column; gap: 0.875rem;
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: inherit; text-decoration: none;
}
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(72,36,228,0.35);
}
.solution-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--indigo-50), var(--blue-50));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.solution-icon svg { width: 26px; height: 26px; }
.solution-icon i   { font-size: 22px; color: var(--indigo); }

/* Skeleton */
.solution-card--skeleton {
  min-height: 200px;
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease infinite;
  border: none; box-shadow: none;
}
.solution-eyebrow {
  font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo);
}
.solution-card h3 {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.4;
}
.solution-card p {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.65; flex: 1;
}
.solution-link {
  display: flex; align-items: center; gap: 0.375rem;
  font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600;
  color: var(--blue); margin-top: auto;
  transition: gap var(--transition);
}
.solution-card:hover .solution-link { gap: 0.625rem; }

/* ============================================================
   CLIENTES
   ============================================================ */
.clients-section {
  padding: 3.5rem 0;
  background: var(--neutral-50);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.clients-section .section-label {
  text-align: center;
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--neutral-400);
  margin-bottom: 2.5rem;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: center;
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  transition: opacity var(--transition);
  opacity: 0.6;
}
.client-logo:hover { opacity: 1; }
.client-logo img {
  height: 125px; width: auto; max-width: 320px; object-fit: contain;
  filter: brightness(0);
  transition: filter var(--transition), opacity var(--transition);
}
.client-logo:hover img { filter: brightness(0) invert(0.3); }
.nosotros-logos .client-logo img { height: 120px; max-width: 300px; }
.client-logo-name { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 600; }

/* Skeleton preloader */
.client-logo--skeleton {
  height: 56px;
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease infinite;
  border-radius: var(--radius-md);
  min-width: 100px;
}
@keyframes skeleton-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   SINGLE POST — BLOG / CASO DE ÉXITO
   ============================================================ */
.post-hero {
  position: relative;
  width: 100%; height: 60vh; min-height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 40%, #0d1a3a 100%);
  display: flex; align-items: flex-end;
}
.post-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10,10,15,0.85) 0%,
    rgba(10,10,15,0.40) 55%,
    transparent 100%);
}
.post-hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 3rem 0;
}
.post-hero-tag {
  display: inline-block;
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white);
  background: var(--gradient);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.post-hero-content h1 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--white); line-height: 1.2;
  max-width: 780px; margin-bottom: 1.25rem;
}
.post-hero-meta {
  display: flex; gap: 1.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.65);
}
.post-hero-meta i { margin-right: 0.4rem; }

.post-body-section {
  padding: var(--section-py) 0;
  background: var(--white);
}
.post-body-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
/* Sidebar compartido — page-informativa + single post */
.page-content { padding: var(--section-py) 0; background: var(--white); }
.prose p { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.prose a {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-color: rgba(75, 41, 242, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.prose a:hover {
  color: #7A1ADF;
  text-decoration-color: currentColor;
}
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.75; }
.prose ul li::marker { color: var(--indigo); }
.prose ol li::marker { color: var(--indigo); font-weight: 700; }

/* ── single-tecnologia ─────────────────────────────────────────────── */
.tec-hero {
  background: var(--white);
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.tec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0.25rem 0 0;
  line-height: 1.15;
}
.tec-content {
  background: var(--white);
  padding: 3rem 0 3.5rem;
}
.tec-content-inner {
  max-width: 760px;
}
.tec-content-inner .prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-700, #374151);
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.tec-content-inner .prose p:last-child { margin-bottom: 0; }
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.page-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  color: var(--neutral-900); margin-bottom: 0.75rem;
}
.sidebar-card p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 1.25rem;
}
.sidebar-contact { border-top: 3px solid var(--indigo); }
.sidebar-techs { border-top: 3px solid var(--indigo); }
.sidebar-tech-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 0; }
.sidebar-tech-item { display: flex; align-items: center; justify-content: center; }
.sidebar-tech-item img { width: 100%; height: 64px; object-fit: contain; filter: brightness(0); opacity: 0.6; transition: opacity var(--transition); }
.sidebar-tech-item:hover img { opacity: 1; }
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
}

.post-video-wrap { background: var(--neutral-900); padding: 2.5rem 0; }
.post-video-embed { position: relative; padding-bottom: 31.25%; height: 0; overflow: hidden; border-radius: var(--radius-xl); max-width: 55%; margin: 0 auto; }
.post-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius-xl); }
/* Mobile play button — oculto en desktop */
.post-video-mobile { display: none; }
@media (max-width: 768px) {
  .post-video-desktop { display: none; }
  .post-video-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    background-color: #000;
    overflow: hidden;
    position: relative;
    text-decoration: none;
  }
  .post-video-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 52px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    transition: transform 0.2s, filter 0.2s;
  }
  .post-video-mobile:hover .post-video-play-btn,
  .post-video-mobile:active .post-video-play-btn {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.7));
  }
}

.post-prose { min-width: 0; }
.post-prose p { margin-bottom: 1.5rem; line-height: 1.8; font-size: 1.0625rem; color: var(--neutral-800); }
.post-prose p:last-child { margin-bottom: 0; }
.post-prose h2, .post-prose h3, .post-prose h4 { font-family: var(--font-heading); font-weight: 700; margin: 2.5rem 0 1rem; color: var(--neutral-900); }
.post-prose h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
.post-prose h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
.post-prose ul, .post-prose ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-prose li { margin-bottom: 0.5rem; line-height: 1.7; color: var(--neutral-800); }
.post-prose ul li::marker { color: var(--indigo); }
.post-prose ol li::marker { color: var(--indigo); font-weight: 700; }
.post-prose blockquote { border-left: 4px solid var(--indigo); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--neutral-700); }
.post-prose img { border-radius: var(--radius-lg); margin: 2rem 0; }
.post-prose a {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-color: rgba(75, 41, 242, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.post-prose a:hover {
  color: #7A1ADF;
  text-decoration-color: currentColor;
}
@media (max-width: 900px) {
  .post-body-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE INDUSTRIA — HERO
   ============================================================ */
.industria-hero {
  position: relative;
  width: 100%; height: 50vh; min-height: 320px;
  overflow: hidden;
  background: var(--neutral-900);
  display: flex; align-items: flex-end;
}
.industria-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.sol-hero .industria-hero-img { object-position: center; }
.single-industria .industria-hero-img { object-position: center; }
.industria-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10,10,15,0.80) 0%,
    rgba(10,10,15,0.30) 60%,
    transparent 100%);
}
.industria-hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 3rem 0;
}
.industria-hero-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.industria-hero-icon {
  font-size: 52px;
  line-height: 1;
  color: var(--white);
  padding-right: 1rem;
}
.industria-hero-divider {
  display: block;
  width: 1.5px;
  height: 36px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
}
.industria-hero-logo {
  height: 62px; width: auto;
  display: block;
}
.sol-hero-copy {
  font-family: var(--font-heading); font-weight: 600; font-style: italic;
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  color: var(--white); line-height: 1.4;
  max-width: 680px; padding-left: 15px;
}
.sol-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
  z-index: 3;
}
.industria-hero-lead {
  font-size: 1.0625rem; color: var(--white);
  max-width: 600px; line-height: 1.65;
  margin-top: 0.875rem; padding-left: 15px;
}
.industria-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700; line-height: 1.15;
  color: var(--white);
  max-width: 700px;
  padding-left: 15px;
}

/* ============================================================
   SINGLE INDUSTRIA — INTRO (QUOTE + STATS)
   ============================================================ */
.industria-intro {
  padding: var(--section-py) 0;
  background: var(--white);
}
.industria-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.industria-quote {
  border-left: 4px solid var(--indigo);
  padding-left: 2rem;
}
.industria-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--neutral-800);
  font-style: italic;
}
.industria-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.industria-posts {
  padding: var(--section-py) 0;
  background: var(--neutral-50);
}
.industria-posts .post-card-body p,
.industria-posts .post-card-meta { display: none; }
.industria-posts .cards-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .industria-posts .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .industria-posts .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .industria-intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   INDUSTRIAS
   ============================================================ */
.industrias-section {
  padding: var(--section-py) 0;
  background: var(--white);
}
.industrias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
.industria-card--skeleton {
  min-height: 90px;
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease infinite;
  border: none; box-shadow: none;
  border-radius: var(--radius-lg);
}
.industria-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.industria-card:hover {
  border-color: var(--indigo);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.industria-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--indigo-50);
  display: flex; align-items: center; justify-content: center;
}
.industria-icon svg {
  width: 24px; height: 24px;
  stroke: var(--indigo);
}
.industria-body { flex: 1; }
.industria-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}
.industria-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.industria-arrow {
  flex-shrink: 0;
  color: var(--neutral-300);
  transition: color var(--transition), transform var(--transition);
  margin-top: 2px;
}
.industria-arrow svg { width: 18px; height: 18px; }
.industria-card:hover .industria-arrow {
  color: var(--indigo);
  transform: translateX(4px);
}
@media (max-width: 768px) {
  .industrias-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOGS / CASOS
   ============================================================ */
.blogs-section {
  padding: var(--section-py) 0;
  background: var(--neutral-50);
}
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.75rem; flex-wrap: wrap; gap: 1rem;
}
.section-header h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
/* Tarjetas de casos de éxito — imagen dominante con overlay */
.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.caso-card {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 4px 24px rgba(10,10,30,0.13);
  transition: box-shadow var(--transition), transform var(--transition);
}
.caso-card:hover {
  box-shadow: 0 12px 40px rgba(10,10,30,0.22);
  transform: translateY(-3px);
}
.caso-card-inner {
  display: block; position: relative;
  aspect-ratio: 3/2;
  text-decoration: none;
  overflow: hidden;
}
.caso-card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.55s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.caso-card:hover .caso-card-img { transform: scale(1.06); }
.caso-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,20,0.90) 0%,
    rgba(8,8,20,0.45) 45%,
    rgba(8,8,20,0.10) 75%,
    transparent 100%
  );
  transition: opacity var(--transition);
}
.caso-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.375rem 1.375rem;
}
.caso-card-tag {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); opacity: 0.65;
  margin-bottom: 0.5rem;
}
.caso-card-title {
  font-size: 1.125rem; font-weight: 700; line-height: 1.35;
  color: var(--white); margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.caso-card--skeleton {
  aspect-ratio: 3/2;
  background: var(--neutral-100);
  border-radius: var(--radius-xl);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.post-card {
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; cursor: pointer;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.post-card-img   { width: 100%; height: 176px; object-fit: cover; display: block; }
.post-card-body  { padding: 1.375rem; flex: 1; display: flex; flex-direction: column; }
.post-card-tag {
  font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo);
  margin-bottom: 0.625rem; display: block;
}
.post-card h3 {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.625rem; line-height: 1.4;
}
.post-card p {
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 1rem; flex: 1;
}
.post-card-meta { font-size: 0.8125rem; color: var(--text-tertiary); margin-top: auto; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card--skeleton {
  min-height: 280px; border: none; box-shadow: none;
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease infinite;
}
.blogs-cta { text-align: center; margin-top: 3rem; }

/* Archivo publicaciones */
.publicaciones-section { padding: 4rem 0 5rem; }
.publicaciones-grid    { margin-top: 0; }
.publicaciones-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.publicaciones-pagination a,
.publicaciones-pagination span { padding: 0.5rem 0.875rem; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--text-primary); }
.publicaciones-pagination .current { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.publicaciones-pagination a:hover { border-color: var(--indigo); color: var(--indigo); }
.publicaciones-empty { text-align: center; color: var(--text-tertiary); padding: 4rem 0; }

/* ============================================================
   FRANJA CONTRASTE (gradient CTA)
   ============================================================ */
.contrast-stripe {
  background: var(--gradient-diagonal);
  padding: 5.5rem 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.contrast-stripe::before {
  content: ''; position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  top: -180px; left: -120px; pointer-events: none;
}
.contrast-stripe::after {
  content: ''; position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -130px; right: -80px; pointer-events: none;
}
.contrast-dot {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.10);
  top: 50%; right: 12%; transform: translateY(-50%);
  pointer-events: none;
}
.contrast-stripe .container        { position: relative; z-index: 2; }
.contrast-stripe h2,
.contrast-copy h2,
.contrast-copy p {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.375rem);
  color: var(--white); max-width: 720px;
  margin: 0 auto 2.5rem; line-height: 1.3;
}
.contrast-copy          { text-align: center; }
.contrast-copy strong   { color: var(--magenta-light); }

/* ============================================================
   PRE-FOOTER (dark CTA)
   ============================================================ */
.pre-footer {
  background: var(--neutral-900);
  padding: 5.5rem 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.pre-footer::before {
  content: ''; position: absolute; border-radius: 50%;
  width: 500px; height: 500px;
  background: var(--gradient-orb); opacity: 0.07; filter: blur(80px);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.pre-footer .container        { position: relative; z-index: 2; }
.pre-footer h2,
.prefooter-copy h2,
.prefooter-copy p {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--white); max-width: 640px;
  margin: 0 auto 2.25rem; line-height: 1.35;
}
.pre-footer h2 strong,
.prefooter-copy strong { color: var(--magenta-light); }
.prefooter-copy        { text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-diagonal);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
}
.footer-brand img {
  height: 36px; width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 0.9375rem; line-height: 1.65; color: rgba(255,255,255,0.65); }
.footer-social  { display: flex; gap: 0.625rem; margin-top: 1.5rem; }
.social-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: all var(--transition);
}
.social-icon:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.social-icon svg   { width: 18px; height: 18px; }
.footer-col h4 {
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--white);
  margin-bottom: 1.375rem;
}
.footer-col ul, .footer-col .menu { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.footer-col ul li a {
  font-size: 0.9375rem; color: rgba(255,255,255,0.7);
  transition: color var(--transition); line-height: 1.4;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.375rem 0; text-align: center;
}
.footer-bottom p { font-size: 0.875rem; color: rgba(255,255,255,0.45); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all var(--transition);
}
.wa-float:hover { background: #1DA851; transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.wa-float svg   { width: 30px; height: 30px; }

/* ============================================================
   SINGLE SOLUCIÓN — intro
   ============================================================ */
.sol-intro {
  padding: 4rem 0 3.5rem;
  background: var(--white);
}
.sol-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.sol-intro-col1 { display: flex; flex-direction: column; }
.sol-intro-heading {
  display: flex; align-items: flex-start; gap: 1rem;
}
.sol-intro-icon {
  font-size: 1.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25; flex-shrink: 0;
}
.sol-intro-titulo {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.sol-intro-desc {
  font-size: 1.0625rem; color: var(--text-secondary);
  line-height: 1.7;
}
.sol-intro-desc p { margin-bottom: 1rem; }
.sol-intro-desc p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .sol-intro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   SINGLE SOLUCIÓN — bloques zigzag
   ============================================================ */
.sol-bloque { padding: var(--section-py) 0; }
.sol-bloque:nth-child(even) { background: var(--neutral-50); }

.sol-bloque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.sol-bloque--reverse .sol-bloque-grid {
  direction: rtl;
}
.sol-bloque--reverse .sol-bloque-grid > * {
  direction: ltr;
}
.sol-bloque-img img {
  width: 100%; height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}
.sol-bloque-titulo {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--text-primary); line-height: 1.25;
  margin-bottom: 1.25rem;
}
.sol-bloque-titulo::before {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin-bottom: .75rem;
}
.richtext { color: var(--text-secondary); line-height: 1.75; font-size: 1.0625rem; }
.richtext p  { margin-bottom: 1rem; }
.richtext p:last-child { margin-bottom: 0; }
.richtext ul, .richtext ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.richtext li { margin-bottom: 0.4rem; }
.richtext strong { color: var(--text-primary); font-weight: 700; }
.richtext a { color: var(--blue); text-decoration: underline; }

@media (max-width: 768px) {
  .sol-bloque-grid { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
  .sol-bloque--reverse .sol-bloque-grid { direction: ltr; }
  .sol-bloque--reverse .sol-bloque-img { order: -1; }
}

/* ============================================================
   NOSOTROS — ¿Por qué Oblicua?
   ============================================================ */
.nos-pq-section {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 40%, #0d1a3a 100%);
  padding: var(--section-py) 0;
}
.nos-pq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.nos-pq-titulo {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white); line-height: 1.15;
  position: sticky; top: 120px;
}
.nos-pq-col2 { display: flex; flex-direction: column; gap: 1.5rem; }
.nos-dif-card {
  display: flex; align-items: flex-start; gap: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
}
.nos-dif-num {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 2.5rem; line-height: 1;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0; min-width: 2rem;
}
.nos-dif-body h3 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.0625rem; color: var(--white);
  margin-bottom: 0.5rem; line-height: 1.3;
}
.nos-dif-body p {
  font-size: 0.9375rem; color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
@media (max-width: 768px) {
  .nos-pq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nos-pq-titulo { position: static; }
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto-section {
  padding: var(--section-py) 0;
}
.contacto-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.contacto-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text-primary); line-height: 1.2;
  margin-bottom: 2rem;
}

/* Formulario */
.contacto-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
}
.cf-field { display: flex; flex-direction: column; gap: 0.375rem; }
.cf-field--full { grid-column: 1 / -1; }
.cf-field label {
  font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600;
  color: var(--text-primary);
}
.cf-field input,
.cf-field textarea {
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--text-primary);
  background: var(--neutral-50); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%;
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--blue);
  box-shadow: var(--shadow-focus);
  background: var(--white);
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-error {
  font-size: 0.8rem; color: #DC2626; min-height: 1rem;
}
.cf-field--check { gap: 0.25rem; }
.cf-checkbox {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem; color: var(--text-secondary);
  cursor: pointer; line-height: 1.5;
}
.cf-checkbox input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--indigo); cursor: pointer;
}
.cf-checkbox a { color: var(--indigo); text-decoration: underline; }
.cf-checkbox a:hover { color: var(--blue); }

.cf-submit {
  width: 100%; padding: 0.875rem; font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer; border-radius: var(--radius-pill);
  background: var(--indigo); color: var(--white);
  transition: background var(--transition), box-shadow var(--transition);
}
.cf-submit:hover { background: #3a1bb8; box-shadow: var(--shadow-lg); }
.cf-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.cf-success {
  text-align: center; color: #16A34A; font-weight: 600;
  margin-top: 0.75rem; font-size: 0.9375rem;
}

/* ── Modal contacto ─────────────────────────────────────────────────── */
.cf-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,8,20,0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.cf-modal-overlay[hidden] { display: none; }
.cf-modal {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem; max-width: 520px; width: 100%;
  position: relative; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto;
}
.cf-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem; line-height: 1;
  cursor: pointer; color: var(--text-secondary);
}
.cf-modal-close:hover { color: var(--dark); }
.cf-modal-icon { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.cf-modal-icon--success { color: #16A34A; }
.cf-modal-icon--error   { color: #DC2626; }
.cf-modal-title {
  font-size: 1.375rem; font-weight: 800; text-align: center;
  color: var(--dark); margin-bottom: 0.75rem;
}
.cf-modal-body {
  font-size: 0.9375rem; color: var(--text-secondary); text-align: center;
  line-height: 1.65; margin-bottom: 1.5rem;
}
.cf-modal-retry { display: block; margin: 0 auto; }

/* Mini cards de casos en el modal */
.cf-modal-casos { margin-top: 0.25rem; }
.cf-casos-track {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem;
}
.cf-caso-card {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  border: 1.5px solid var(--border); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--neutral-50, #f8f8fb);
}
.cf-caso-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cf-caso-card--skeleton { height: 140px; background: var(--neutral-100, #efefef); animation: pulse 1.4s infinite; }
.cf-caso-img {
  height: 100px; background-size: cover; background-position: center top;
}
.cf-caso-body { padding: 0.625rem 0.75rem 0.75rem; }
.cf-caso-title {
  font-size: 0.8125rem; font-weight: 700; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4;
}

/* Aside info */
.contacto-info {
  background: var(--neutral-50); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  position: sticky; top: 100px;
}
.ci-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.ci-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--indigo-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--indigo); font-size: 1rem;
}
.ci-label {
  display: block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-tertiary); margin-bottom: 0.2rem;
}
.ci-item a {
  font-size: 0.9375rem; font-weight: 500; color: var(--text-primary);
  transition: color var(--transition);
}
.ci-item a:hover { color: var(--blue); }
.ci-social { display: flex; flex-direction: column; gap: 0.75rem; }
.ci-social-icons {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.ci-social-icons a {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 1rem;
  transition: all var(--transition);
}
.ci-social-icons a:hover {
  border-color: var(--indigo); color: var(--indigo);
  background: var(--indigo-50);
}

@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contacto-info { position: static; }
}
@media (max-width: 640px) {
  .contacto-form { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1) 0.15s,
              transform 0.7s cubic-bezier(0.4,0,0.2,1) 0.15s;
}
.reveal-left.is-visible,
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* Para bloques reverse la imagen viene de la derecha y el texto de la izquierda */
.sol-bloque--reverse .reveal-left  { transform: translateX(48px); }
.sol-bloque--reverse .reveal-right { transform: translateX(-48px); }
.sol-bloque--reverse .reveal-left.is-visible,
.sol-bloque--reverse .reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
              transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.reveal-stagger.is-visible > *:nth-child(1)    { opacity:1; transform:translateY(0); transition-delay:0.05s; }
.reveal-stagger.is-visible > *:nth-child(2)    { opacity:1; transform:translateY(0); transition-delay:0.15s; }
.reveal-stagger.is-visible > *:nth-child(3)    { opacity:1; transform:translateY(0); transition-delay:0.25s; }
.reveal-stagger.is-visible > *:nth-child(4)    { opacity:1; transform:translateY(0); transition-delay:0.35s; }
.reveal-stagger.is-visible > *:nth-child(5)    { opacity:1; transform:translateY(0); transition-delay:0.45s; }
.reveal-stagger.is-visible > *:nth-child(6)    { opacity:1; transform:translateY(0); transition-delay:0.55s; }
.reveal-stagger.is-visible > *:nth-child(7)    { opacity:1; transform:translateY(0); transition-delay:0.65s; }
.reveal-stagger.is-visible > *:nth-child(n+8)  { opacity:1; transform:translateY(0); transition-delay:0.70s; }

/* ============================================================
   HERO SLIDER (home)
   ============================================================ */
.hero-slider {
  position: relative; width: 100%; height: 70vh; min-height: 480px;
  overflow: hidden; background: var(--neutral-900);
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.6;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(75,41,242,0.60) 0%,
    rgba(17,17,20,0.50) 60%,
    rgba(17,17,20,0.70) 100%);
}
.hero-slide.is-case .hero-overlay {
  background: linear-gradient(135deg,
    rgba(30,105,248,0.65) 0%,
    rgba(20,66,168,0.55) 50%,
    rgba(17,17,20,0.65) 100%);
}
.hero-orb {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--gradient-orb); opacity: 0.22; filter: blur(48px);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--gutter);
}
.hero-eyebrow {
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 1rem; display: block;
}
.hero-content h1 {
  font-family: var(--font-heading); font-weight: 700; line-height: 1.15;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--white); max-width: 640px; margin-bottom: 1.125rem;
}
.hero-content h1 strong { color: var(--magenta-light); }
.hero-lead {
  font-size: 1rem; color: rgba(255,255,255,0.80);
  max-width: 480px; line-height: 1.65; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-controls {
  position: absolute; bottom: 1.5rem; right: 2rem;
  z-index: 10; display: flex; align-items: center; gap: 1.25rem;
}
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  padding: 0; transition: all var(--transition);
}
.hero-dot.is-active { background: var(--white); width: 24px; border-radius: 4px; }
.hero-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.hero-arrow:hover { background: rgba(255,255,255,0.28); }
.hero-arrow svg   { width: 16px; height: 16px; }
.hero-logo-brand {
  display: block; margin-bottom: 1.125rem;
  height: 76px; width: auto;
  filter: brightness(0) invert(1);
}
.hero-logo-brand-wrap { min-height: 0; }
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.6;
}

/* Modal YouTube */
.yt-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; }
.yt-modal[hidden] { display: none; }
.yt-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.82); }
.yt-modal-box { position: relative; z-index: 1; width: min(90vw, 900px); }
.yt-modal-close {
  position: absolute; top: -2.5rem; right: 0;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.yt-modal-embed { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; background: #000; }
.yt-modal-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   RESPONSIVE — Tablet 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid            { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid-wrap   { grid-template-columns: repeat(2, 1fr); }
  .footer-top            { grid-template-columns: 1fr 1fr; }
  .footer-brand          { grid-column: 1 / -1; }
  .clients-grid          { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   HAMBURGER — visible solo en mobile
   ============================================================ */
.nav-hamburger { display: none; }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.nav-mobile-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}
.nav-mobile-overlay.is-open { opacity: 1; visibility: visible; }
.nav-mobile-drawer {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(300px, 84vw);
  background: var(--white); overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.nav-mobile-overlay.is-open .nav-mobile-drawer { transform: translateX(0); }
.nav-mobile-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.nav-mobile-top img { height: 26px; width: auto; }
.nav-mobile-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); padding: 0.25rem;
  border-radius: var(--radius-md); display: flex;
}
.nav-mobile-close:hover { background: var(--neutral-100); }
.nav-mobile-list { padding: 0.5rem 0 2rem; }
.nav-mobile-item { border-bottom: 1px solid var(--border-subtle); }
.nav-mobile-item:last-child { border-bottom: none; }
.nav-mobile-item > a,
.nav-mobile-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.9rem 1.125rem;
  font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600;
  color: var(--text-primary); background: none; border: none;
  cursor: pointer; text-align: left; text-decoration: none;
}
.nav-mobile-chevron { flex-shrink: 0; transition: transform 0.22s; }
.nav-mobile-has-sub.is-open .nav-mobile-chevron { transform: rotate(180deg); }
.nav-mobile-sub {
  display: none;
  background: var(--neutral-50);
  border-top: 1px solid var(--border-subtle);
  padding: 0.375rem 0;
}
.nav-mobile-has-sub.is-open .nav-mobile-sub { display: block; }
.nav-mobile-sub a {
  display: block; padding: 0.7rem 1.75rem;
  font-family: var(--font-heading); font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
}
.nav-mobile-sub a:hover { color: var(--indigo); }
.nav-mobile-cta > a {
  margin: 0.75rem 1.125rem;
  background: var(--gradient); color: var(--white) !important;
  border-radius: var(--radius-pill);
  justify-content: center;
  padding: 0.75rem 1.25rem;
}

/* ============================================================
   RESPONSIVE — Mobile 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-py: 3rem; }

  /* Topbar */
  .topbar { display: none; }

  /* Header */
  .site-header { height: 60px; }
  .site-logo img { height: 30px; }
  .site-nav { display: none; }
  .nav-hamburger {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 40px; height: 40px;
    background: none; border: none; cursor: pointer;
    border-radius: var(--radius-md); padding: 0.5rem;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: all 0.25s;
  }
  .nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Section utilities */
  .section-header { flex-direction: column; align-items: flex-start; }
  .solutions-intro { margin-bottom: 2rem; }

  /* Hero slider */
  .hero-slider { height: 78vh; min-height: 440px; }
  .hero-content h1 { font-size: clamp(1.375rem, 5vw, 1.875rem); }
  .hero-lead { font-size: 0.9rem; margin-bottom: 1.375rem; }
  .hero-controls { bottom: 0.875rem; right: 1rem; gap: 0.75rem; }

  /* Soluciones — carrusel swipe */
  .solutions-grid-wrap {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem var(--gutter) 1.25rem;
    margin: 0 calc(-1 * var(--gutter));
    scrollbar-width: none;
    grid-template-columns: none !important;
  }
  .solutions-grid-wrap::-webkit-scrollbar { display: none; }
  .solutions-grid-wrap > * {
    flex: 0 0 78%;
    min-width: 220px;
    scroll-snap-align: start;
  }

  /* Posts — carrusel swipe */
  .cards-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem var(--gutter) 1.25rem;
    margin: 0 calc(-1 * var(--gutter));
    scrollbar-width: none;
    grid-template-columns: none !important;
  }
  .cards-grid::-webkit-scrollbar { display: none; }
  .cards-grid > * {
    flex: 0 0 82%;
    min-width: 240px;
    scroll-snap-align: start;
  }

  /* Industrias — carrusel swipe */
  .industrias-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem var(--gutter) 1.25rem;
    margin: 0 calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .industrias-grid::-webkit-scrollbar { display: none; }
  .industrias-grid > * { flex: 0 0 78%; min-width: 220px; scroll-snap-align: start; }
  .industria-card  { padding: 1rem; gap: 0.875rem; }
  .industria-body h3 { font-size: 0.875rem; }

  /* Clients logos — carrusel swipe */
  .clients-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    margin: 0 calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .clients-grid::-webkit-scrollbar { display: none; }
  .clients-grid .client-logo {
    flex: 0 0 42%;
    scroll-snap-align: start;
    padding: 0.75rem;
  }
  .clients-grid .client-logo img { height: 80px; max-width: 160px; }

  /* Casos de éxito — carrusel swipe 1 tarjeta */
  .casos-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem var(--gutter) 1.25rem;
    margin: 0 calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .casos-grid::-webkit-scrollbar { display: none; }
  .casos-grid > * {
    flex: 0 0 88%;
    min-width: 260px;
    scroll-snap-align: start;
  }

  /* Hero imagen (industria/solucion) */
  .industria-hero { height: 44vh; min-height: 260px; }
  .industria-hero-icon { font-size: 28px; }
  .industria-hero-logo { height: 44px; }
  .industria-hero-content { padding: 1.75rem 0; }
  .industria-hero-content h1 { font-size: clamp(1.5rem, 5vw, 2rem); padding-left: 0; }
  .sol-hero-copy { font-size: clamp(1.125rem, 4vw, 1.375rem); padding-left: 0; }
  .industria-hero-lead { padding-left: 0; }

  /* Intro solucion */
  .sol-intro { padding: 2.25rem 0 1.75rem; }
  .sol-intro-grid { gap: 1.25rem; }
  .sol-intro-icon { font-size: 1.375rem; }

  /* Zigzag bloques */
  .sol-bloque { padding: 2.25rem 0; }
  .sol-bloque-grid { gap: 1.5rem; }
  .sol-bloque-img img { max-height: 260px; }

  /* Page hero */
  .page-hero { padding: 2.25rem 0; }
  .page-hero h1 { font-size: clamp(1.625rem, 5vw, 2.25rem); }

  /* Nosotros — ¿Por qué Oblicua? */
  .nos-dif-card { padding: 1.25rem 1.25rem; gap: 1rem; }
  .nos-dif-num  { font-size: 2rem; }

  /* Industria intro */
  .industria-intro-grid { gap: 2rem; }
  .stat-number { font-size: clamp(2rem, 8vw, 2.75rem); }

  /* Pre-footer / contrast */
  .pre-footer     { padding: 3rem 0; }
  .contrast-stripe { padding: 3rem 0; }

  /* Reveal — evitar desborde horizontal antes de animar */
  .reveal-left,
  .sol-bloque--reverse .reveal-left,
  .sol-bloque--reverse .reveal-right { transform: translateY(32px); }
  .reveal-right { transform: translateY(32px); }
  .reveal-left.is-visible,
  .reveal-right.is-visible,
  .sol-bloque--reverse .reveal-left.is-visible,
  .sol-bloque--reverse .reveal-right.is-visible { opacity: 1; transform: translateY(0) !important; }

  /* Breadcrumbs — ocultar en mobile */
  .page-hero-breadcrumb { display: none; }

  /* Footer */
  .site-footer { padding: 2.25rem 0 0; }
  .footer-top  { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .footer-col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .footer-col ul li a { font-size: 0.875rem; }
  /* Primer menú footer — ocultar en mobile (.footer-brand es el :first-child) */
  .footer-col:nth-child(2) { display: none; }

  /* Sidebar artículos — quitar */
  .page-sidebar { display: none; }
  .post-body-layout,
  .page-layout { grid-template-columns: 1fr; }

  /* Formulario contacto */
  .contacto-form { grid-template-columns: 1fr; }
  .contacto-info { display: none; }
}

/* ============================================================
   RESPONSIVE — Mobile pequeño 480px
   ============================================================ */
@media (max-width: 480px) {

  .solutions-grid-wrap > * { flex: 0 0 86%; }
  .cards-grid > * { flex: 0 0 88%; }
  .hero-slider { height: 82vh; }
  .footer-col ul { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
