/*
  H2TIC — Design System CSS
  Versión: 3.0 · Baeza, Jaén · 2026
  Compatible con: WordPress + Elementor Pro
  Fuentes: Inter (cuerpo) + Space Grotesk (títulos) — Google Fonts
  Iconos: Lucide Icons (CDN o plugin)

  ── ELEMENTOR: copiar en Customizer → CSS adicional ─────────────────────────
*/

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Variables CSS (Elementor: Site Settings → Global Colors los sobreescribe) */
:root {
  /* Teal — color primario de marca */
  --teal:        #1BA6A6;   /* Primario (banners, CTAs, enlaces) */
  --teal-deep:   #158F8F;   /* Hover / estado activo */
  --teal-light:  #2AB8B8;   /* Gradientes, acentos claros */
  --teal-soft:   #E8F6F6;   /* Fondos de iconos, chips */

  /* Navy — texto fuerte y fondos oscuros */
  --navy:        #184759;   /* Títulos, items activos en sidebar */
  --navy-deep:   #0F2F3D;   /* Footer, modo oscuro */

  /* Neutros */
  --ink:         #0F2430;   /* Texto principal */
  --muted:       #6B7A80;   /* Texto secundario, captions */
  --line:        #E6ECEE;   /* Bordes, separadores */
  --bg:          #FFFFFF;   /* Fondo base */
  --bg-soft:     #F7FAFB;   /* Secciones alternas, cards */

  /* Acentos puntuales */
  --accent:      #F4B942;   /* Amarillo (toldo, notificaciones) */
  --red:         #E86B6B;   /* Franjas decorativas (escaparate) */

  /* Tipografía */
  --h2tic-text:          var(--ink);
  --h2tic-text-soft:     var(--muted);

  /* Fondos (aliases para compatibilidad con componentes existentes) */
  --h2tic-bg:            var(--bg);
  --h2tic-bg-soft:       var(--bg-soft);
  --h2tic-bg-dark:       var(--navy-deep);
  --h2tic-bg-dark-2:     var(--navy);

  /* Bordes */
  --h2tic-line:          var(--line);

  /* Aliases --color-* (páginas generadas con nomenclatura antigua) */
  --color-primary:       var(--teal);
  --color-light:         var(--teal-light);
  --color-surface:       var(--bg-soft);
  --color-dark:          var(--navy);
  --color-muted:         var(--muted);
  --color-green:         var(--accent);
  --color-kit-digital:   var(--teal-light);
  --color-border:        var(--line);

  /* Espaciado */
  --h2tic-section:       100px;
  --h2tic-section-sm:    64px;
  --h2tic-radius:        20px;
  --h2tic-radius-sm:     12px;
  --h2tic-radius-xs:     8px;

  /* Sombras */
  --h2tic-shadow:        0 20px 40px -10px rgba(27,166,166,0.18);
  --h2tic-shadow-sm:     0 8px 24px rgba(27,166,166,0.10);
}


/* ── Reset mínimo ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--h2tic-text);
  background: var(--h2tic-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── Contenedor ───────────────────────────────────────────────────────────── */
.h2tic-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Tipografía ───────────────────────────────────────────────────────────── */
.h2tic-h1, h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h2tic-h2, h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h2tic-h3, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
p { max-width: 65ch; }

/* ── Kicker (etiqueta encima de título) ───────────────────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}
.kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--teal-light);
  flex-shrink: 0;
}
.kicker.kicker--white { color: rgba(255,255,255,0.75); }
.kicker.kicker--white::before { background: rgba(255,255,255,0.5); }

/* ── Botones ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-deep); box-shadow: var(--h2tic-shadow-sm); }

.btn-white {
  background: #fff;
  color: var(--teal);
}
.btn-white:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.h2tic-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  /* Contexto de posicionamiento para el drawer mobile */
  isolation: isolate;
}
.h2tic-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.h2tic-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.h2tic-logo-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: grid; place-items: center;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.h2tic-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.h2tic-logo-text b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.h2tic-logo-text small {
  font-size: 10px;
  color: var(--h2tic-text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.h2tic-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.h2tic-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--h2tic-text);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.h2tic-nav-links a:hover { color: var(--teal); }
.h2tic-nav-links a.has-dd::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 5px;
  vertical-align: middle;
}
.h2tic-nav-links a.active { color: var(--teal); }

/* Estado activo — WordPress añade estas clases al <li> automáticamente */
.h2tic-nav-links > ul > li.current-menu-item > a,
.h2tic-nav-links > ul > li.current-menu-ancestor > a,
.h2tic-nav-links > ul > li.current-page-ancestor > a {
  color: var(--teal);
  font-weight: 600;
}
.h2tic-nav-links > ul > li.current-menu-item > a::after,
.h2tic-nav-links > ul > li.current-menu-ancestor > a::after,
.h2tic-nav-links > ul > li.current-page-ancestor > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* WordPress wp_nav_menu: genera <ul><li><a> dentro de .h2tic-nav-links */
.h2tic-nav-links > ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.h2tic-nav-links > ul > li { list-style: none; }
.h2tic-nav-links > ul > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 5px;
  vertical-align: middle;
}

.h2tic-nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.h2tic-nav-phone {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--h2tic-bg-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: background .2s;
}
.h2tic-nav-phone:hover { background: #dde8f1; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 60%, #0F2F3D 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(42,184,184,0.25), transparent 50%),
    radial-gradient(ellipse at 75% 65%, rgba(27,166,166,0.3), transparent 45%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 96px 0 80px;
}
.hero-copy { color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--teal-light);
}
.hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}
.hero-firma {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}
.hero-firma span { color: rgba(255,255,255,0.8); }

/* Hero visual — automación animada */
.hero-visual {
  position: relative;
  height: 440px;
}
.hv-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.22);
  overflow: hidden;
}
.hv-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px;
  background: var(--h2tic-bg-soft);
  border-bottom: 1px solid var(--h2tic-line);
}
.hv-dot { width: 7px; height: 7px; border-radius: 50%; }
.hv-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.hv-line { height: 7px; border-radius: 4px; background: var(--h2tic-bg-soft); }
.hv-line.accent { background: var(--teal); }
.hv-line.green { background: var(--accent); }
.hv-line.sm { width: 55%; }
.hv-line.xs { width: 35%; }
.hv-chip {
  position: absolute;
  padding: 8px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--teal);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.hv-chip .icon { color: var(--accent); }
.hv-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(42,184,184,0.15);
}
.float { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 7.5s ease-in-out infinite; animation-delay: -2.5s; }
.float-3 { animation: float 5.5s ease-in-out infinite; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ── PAGE HERO — cabecera estándar para todas las páginas interiores ────────
   Clase canónica: .page-hero
   Aliases para compatibilidad con páginas migradas: .sectores-hero, .kit-hero, .kc-hero
   ─────────────────────────────────────────────────────────────────────────── */
.page-hero,
.sectores-hero,
.kit-hero,
.kc-hero,
.article-hero {
  background: linear-gradient(135deg, var(--color-kit-digital) 0%, #158F8F 100%);
  color: #fff;
  padding: 4rem 0 3rem;
}
.page-hero .container,
.sectores-hero .container,
.kit-hero .container,
.kc-hero .container,
.article-hero .container { max-width: 820px; }

.page-hero h1,
.sectores-hero h1,
.kit-hero h1,
.article-hero h1,
.kc-hero h1,
.page-hero-title {
  font-family: var(--h2tic-font-title);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 16px 0 20px;
}
.page-hero p,
.sectores-hero p,
.kit-hero p,
.kc-hero p,
.article-hero p,
.hero-subtitle,
.page-hero-intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  line-height: 1.65;
  margin: 0;
}

/* Badge pill */
.page-hero-badge,
.sectores-badge,
.kit-badge,
.kc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

/* ── ARTICLE META (cabecera de posts del blog) ────────────────────────────── */
.article-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.article-cat {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.article-date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* ── BREADCRUMB ───────────────────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 20px; }
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb li[aria-hidden="true"] { color: rgba(255,255,255,0.3); }
.breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb li[aria-current="page"] { color: rgba(255,255,255,0.85); font-weight: 500; }

/* Variante clara (sobre fondo blanco) */
.breadcrumb--light li { color: var(--muted); }
.breadcrumb--light li[aria-hidden="true"] { color: var(--line); }
.breadcrumb--light a { color: var(--teal); }
.breadcrumb--light li[aria-current="page"] { color: var(--ink); }

/* ── SECCIÓN GENÉRICA ─────────────────────────────────────────────────────── */
.section { padding: var(--h2tic-section) 0; }
.section-sm { padding: var(--h2tic-section-sm) 0; }
.section-white { background: #fff; padding: var(--h2tic-section) 0; }
.section-light { background: var(--bg-soft); padding: var(--h2tic-section) 0; }
.section-intro { font-size: 1.05rem; color: var(--muted); margin: 0.5rem 0 0; max-width: 640px; }
.section-white h2,
.section-light h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 0.35rem; color: var(--navy); }
.section-dark {
  background: var(--h2tic-bg-dark-2);
  color: #fff;
  padding: var(--h2tic-section) 0;
}
.section-soft { background: var(--h2tic-bg-soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.section-head-text { max-width: 520px; }
.section-head-side { max-width: 300px; }

/* ── GRID 3 COLUMNAS ──────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── TARJETA SERVICIO ─────────────────────────────────────────────────────── */
.card-servicio {
  background: var(--h2tic-bg);
  border: 1px solid var(--h2tic-line);
  border-radius: var(--h2tic-radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.card-servicio:hover {
  transform: translateY(-4px);
  box-shadow: var(--h2tic-shadow);
  border-color: transparent;
}
.card-servicio-num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--h2tic-text-soft);
  letter-spacing: 0.1em;
}
.card-servicio-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(27,166,166,0.08);
  color: var(--teal);
  display: grid; place-items: center;
  transition: background .25s, color .25s;
}
.card-servicio:hover .card-servicio-icon {
  background: var(--teal);
  color: #fff;
}
.card-servicio h3 { font-size: 19px; line-height: 1.3; }
.card-servicio p { color: var(--h2tic-text-soft); font-size: 14px; line-height: 1.55; flex: 1; }
.card-servicio .more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  margin-top: auto;
}
.card-servicio .more-arr {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(27,166,166,0.1);
  display: grid; place-items: center;
  transition: background .2s, color .2s, transform .2s;
}
.card-servicio:hover .more-arr {
  background: var(--teal);
  color: #fff;
  transform: translateX(2px);
}
.card-servicio.kit-badge::after {
  content: 'Kit Digital';
  position: absolute;
  top: 16px; right: 50px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ── TARJETA PACK ─────────────────────────────────────────────────────────── */
.card-pack {
  background: var(--h2tic-bg);
  border: 1px solid var(--h2tic-line);
  border-radius: var(--h2tic-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.card-pack:hover {
  transform: translateY(-4px);
  box-shadow: var(--h2tic-shadow);
  border-color: transparent;
}
.card-pack.pack-featured {
  border-color: var(--teal);
  background: linear-gradient(160deg, rgba(27,166,166,0.04), rgba(42,184,184,0.03));
}
.pack-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(27,166,166,0.1);
  display: grid; place-items: center;
  color: var(--teal);
}
.pack-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pack-target { font-size: 13px; color: var(--h2tic-text-soft); }
.pack-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.pack-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
}
.pack-price-sep { color: var(--h2tic-text-soft); font-size: 13px; }
.pack-plazo {
  font-size: 12px;
  color: var(--h2tic-text-soft);
  display: flex; align-items: center; gap: 5px;
}
.pack-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-kit { background: rgba(244,185,66,0.12); color: var(--accent); }
.badge-kit-c { background: rgba(27,166,166,0.1); color: var(--teal); }
.pack-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
  text-decoration: none;
}
.pack-label {
  position: absolute;
  top: -10px; left: 20px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── TARJETA SECTOR ───────────────────────────────────────────────────────── */
.card-sector {
  border-radius: var(--h2tic-radius);
  overflow: hidden;
  background: var(--teal-deep);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  text-decoration: none;
  color: #fff;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.card-sector::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(42,184,184,0.3), rgba(15,36,48,0.7));
}
.card-sector:hover {
  transform: translateY(-4px);
  box-shadow: var(--h2tic-shadow);
}
.card-sector-body {
  position: relative;
  padding: 28px 24px;
  margin-top: auto;
}
.card-sector-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: grid; place-items: center;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.card-sector h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.card-sector p { font-size: 13px; color: rgba(255,255,255,0.75); }

/* ── STATS ────────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 28px 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--h2tic-radius);
  background: rgba(255,255,255,0.04);
  transition: background .25s, border-color .25s;
}
.stat-card:hover {
  background: rgba(42,184,184,0.1);
  border-color: var(--teal-light);
}
.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: #fff;
}
.stat-val em { font-style: normal; color: var(--teal-light); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ── PROCESO ──────────────────────────────────────────────────────────────── */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.proceso-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: 80px; right: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-light), var(--teal));
  z-index: 0;
}
.proceso-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.proceso-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(27,166,166,0.3);
}
.proceso-step h3 { font-size: 18px; margin-bottom: 10px; }
.proceso-step p { font-size: 14px; color: var(--h2tic-text-soft); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 820px;
  margin: 0 auto;
}
details.faq-item {
  border: 1px solid var(--h2tic-line);
  border-radius: var(--h2tic-radius-sm);
  overflow: hidden;
  background: var(--h2tic-bg);
  transition: border-color .2s;
}
details.faq-item[open] { border-color: var(--teal-light); }
details.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(27,166,166,0.08);
  display: grid; place-items: center;
  color: var(--teal);
  flex-shrink: 0;
  transition: background .2s, transform .25s;
}
details.faq-item[open] summary .faq-icon {
  background: var(--teal);
  color: #fff;
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--h2tic-text-soft);
}

/* ── CTA BAND ─────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--h2tic-bg-soft);
  padding: var(--h2tic-section-sm) 0;
}
.cta-band-inner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: 28px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band-inner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(42,184,184,0.2);
  pointer-events: none;
}
.cta-band-inner::after {
  content: '';
  position: absolute;
  right: 60px; bottom: -50px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.cta-band-copy h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 14px;
}
.cta-band-copy p { color: rgba(255,255,255,0.82); max-width: 500px; }
.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.cta-trust { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ── KIT DIGITAL BANNER ───────────────────────────────────────────────────── */
.kit-banner {
  border-radius: var(--h2tic-radius);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.kit-banner-digital {
  background: #fff;
  border-left: 5px solid var(--accent);
  box-shadow: var(--h2tic-shadow-sm);
}
.kit-banner-consulting {
  background: #fff;
  border-left: 5px solid var(--teal);
  box-shadow: var(--h2tic-shadow-sm);
}
.kit-badge-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.kit-banner-consulting .kit-badge-label { color: var(--teal); }
.kit-banner h3 { font-size: 20px; margin-bottom: 8px; }
.kit-banner p { font-size: 14px; color: var(--h2tic-text-soft); max-width: 100%; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.h2tic-footer {
  background: var(--h2tic-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; margin-top: 16px; }
.footer-firma {
  font-size: 12px;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.07);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--teal-light); color: #fff; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }
.footer-contact-item { margin-bottom: 14px; }
.footer-contact-item strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
  font-family: 'Space Grotesk', sans-serif;
}
.footer-contact-item a {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color .2s;
}
.footer-contact-item a:hover { color: #fff; }
.footer-contact-item span { font-size: 14px; color: rgba(255,255,255,0.72); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-certs {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cert-badge {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}
.cert-badge.green { border-color: rgba(244,185,66,0.4); color: rgba(42,184,184,0.9); }

/* ── Banner Kit Digital ───────────────────────────────────────────────────── */
.kit-digital-banner-bar {
  background: #000;
  padding: 12px 0;
  width: 100%;
}
.kit-digital-banner-bar img {
  display: block;
  max-width: 1240px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .kit-digital-banner-bar img { padding: 0 16px; }
}

/* ── Botón scroll to top ─────────────────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 96px; right: 28px;
  z-index: 998;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(27,166,166,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover { background: var(--teal-deep); transform: translateY(-2px); }
.scroll-top-btn svg { display: block; }
@media (max-width: 768px) {
  .scroll-top-btn { bottom: 84px; right: 16px; width: 40px; height: 40px; }
}

/* ── WhatsApp flotante ────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px 14px 16px;
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37,211,102,0.5);
}

/* ── Container (alias de h2tic-wrap, usado en páginas generadas) ──────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── NAV UNIFICADO ────────────────────────────────────────────────────────── */

/* Layout interior del nav (Type B y C usan .nav-inner, Type A usa .h2tic-nav-inner) */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 24px;
  position: relative;
}

/* Botón hamburguesa (Type B/C: .nav-toggle · Type A: .nav-burger) */
.nav-toggle,
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  border-radius: 8px;
  transition: background .15s;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.nav-toggle:hover,
.nav-burger:hover { background: var(--bg-soft); }
.nav-toggle svg,
.nav-burger svg { display: block; }
/* Tres rayitas del hamburger */
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .15s ease;
  transform-origin: center;
}

/* ── Type C: .nav-menu + .nav-list + .nav-item + .nav-link ─────────────── */
.nav-menu {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--teal); background: var(--teal-soft); }
.nav-link[aria-current="page"] { color: var(--teal); font-weight: 600; }
.nav-item--cta { margin-left: 8px; }

/* Subdropdowns de nav (Type C) — visibles en desktop con hover */
.nav-item--has-children { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  padding: 8px;
  list-style: none;
  z-index: 200;
}
.nav-item--has-children:hover > .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover { background: var(--teal-soft); color: var(--teal-deep); }

/* ── Type B: .nav-links + .nav-actions + .dropdown-menu ────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--teal); background: var(--teal-soft); }
.nav-links > li > a[aria-current="page"] { color: var(--teal); }
.nav-links .nav-dropdown { position: relative; }
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  padding: 8px;
  list-style: none;
  z-index: 200;
}
.nav-links .nav-dropdown:hover .dropdown-menu { display: block; }
.nav-links .dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-links .dropdown-menu a:hover { background: var(--teal-soft); color: var(--teal-deep); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Botón sin clase .btn base (Type B usa solo .btn-primary.btn-sm) */
.btn-primary.btn-sm:not(.btn),
.nav-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--teal);
  color: #fff;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary.btn-sm:not(.btn):hover,
.nav-actions .btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */

/* Tablet y móvil: nav colapsa a hamburger desde 1024px */
@media (max-width: 1024px) {
  /* Grids de contenido */
  .grid-3, .grid-6 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .proceso-grid::before { display: none; }

  /* Hamburguesa visible, CTA oculto */
  .nav-toggle,
  .nav-burger { display: flex; }
  .h2tic-nav-cta .btn { display: none; }
  .h2tic-nav-phone { display: none; }

  /* Type A: .h2tic-nav-links → drawer vertical */
  .h2tic-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 150;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 0;
  }
  .h2tic-nav-links.is-open { display: flex; }
  .h2tic-nav-links > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .h2tic-nav-links > ul > li > a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    display: block;
  }
  .h2tic-nav-links > ul > li:last-child > a { border-bottom: none; }
  .h2tic-nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .h2tic-nav-links a:last-child { border-bottom: none; }

  /* Type C: .nav-menu → drawer vertical */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 150;
    padding: 12px 20px 20px;
  }
  .nav-menu.nav-menu--open,
  .nav-menu.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    padding: 13px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav-item:last-child .nav-link { border-bottom: none; }
  .nav-item--cta { margin-left: 0; padding-top: 14px; }
  .nav-item--cta .btn,
  .nav-item--cta .btn-primary { width: 100%; justify-content: center; }
  .nav-dropdown,
  .nav-item--has-children > .nav-dropdown { display: none !important; }

  /* Type B: .nav-links → drawer vertical */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 150;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > li > a {
    padding: 13px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav-links > li:last-child > a { border-bottom: none; }
  .nav-links .nav-dropdown,
  .dropdown-menu { display: none !important; }
  .nav-actions { gap: 8px; }

  /* Animación hamburguesa → X */
  .nav-toggle[aria-expanded="true"] svg line:nth-child(1) {
    transform-origin: center;
    transform: rotate(45deg) translate(4.5px, 4.5px);
  }
  .nav-toggle[aria-expanded="true"] svg line:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] svg line:nth-child(3) {
    transform-origin: center;
    transform: rotate(-45deg) translate(4.5px, -4.5px);
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Móvil: ajustes de espaciado y layout de contenido desde 768px */
@media (max-width: 768px) {
  :root {
    --h2tic-section: 64px;
    --h2tic-section-sm: 48px;
  }

  /* Contenedores */
  .h2tic-wrap,
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }

  /* Contenidos */
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 52px; }
  .hero-visual { display: none; }
  .grid-3, .grid-6, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; gap: 16px; }
  .section-head-side { max-width: 100%; }
  .cta-band-inner { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom span { width: 100%; }
  .kit-banner { grid-template-columns: 1fr; }

  /* WhatsApp float más pequeño en móvil */
  .whatsapp-float { padding: 12px 16px 12px 14px; font-size: 13px; bottom: 20px; right: 16px; }
}
