/* ==========================================================================
   Kolossus · Refresh UX/UI v2 (2026)
   Capa de estilos que se carga DESPUÉS de styles.min.css y Bootstrap.
   Mantiene la marca (azul #244895) y moderniza tipografía, espaciado,
   botones, tarjetas, hero y formulario. Pensada para captar leads.
   ========================================================================== */

:root {
  --k-blue: #244895;
  --k-blue-dark: #1b3873;
  --k-blue-deep: #14264d;
  --k-teal: #1c9ab2;
  --k-green: #75c7ac;
  --k-accent: #f3ac51;     /* CTA cálido (Enviar / acción) */
  --k-accent-dark: #e0922f;
  --k-bg: #f5f2f2;
  --k-ink: #1f2430;
  --k-muted: #5b6373;
  --k-line: #e6e3e3;
  --k-radius: 16px;
  --k-shadow-sm: 0 2px 10px rgba(20, 38, 77, .06);
  --k-shadow: 0 12px 34px rgba(20, 38, 77, .12);
  --k-grad: linear-gradient(90deg, var(--k-blue) 0%, var(--k-teal) 100%);
}

/* ----------------------------- Base tipográfica ------------------------- */
body {
  color: var(--k-ink);
  background-color: var(--k-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, .display-2, .display-4 { letter-spacing: -.01em; }

p { line-height: 1.65; }

.k-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--k-teal);
}

.k-text-muted { color: var(--k-muted) !important; }

/* --------------------------------- Botones ------------------------------ */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .7rem 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary,
.btn-k {
  background: var(--k-blue);
  border-color: var(--k-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(36, 72, 149, .28);
}
.btn-primary:hover,
.btn-k:hover {
  background: var(--k-blue-dark);
  border-color: var(--k-blue-dark);
  color: #fff;
}

/* CTA principal cálido (acción de conversión) */
.btn-cta,
.btn-warning {
  background: var(--k-accent);
  border-color: var(--k-accent);
  color: #14264d;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(243, 172, 81, .38);
}
.btn-cta:hover,
.btn-warning:hover {
  background: var(--k-accent-dark);
  border-color: var(--k-accent-dark);
  color: #14264d;
}

.btn-outline-light-k {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .8);
  color: #fff;
}
.btn-outline-light-k:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.btn-secondary {
  background: var(--k-blue);
  border-color: var(--k-blue);
}
.btn-secondary:hover { background: var(--k-blue-dark); border-color: var(--k-blue-dark); }

.btn-lg { padding: .9rem 1.9rem; font-size: 1.05rem; }

/* --------------------------------- Header (claro) ----------------------- */
.k-header {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(20, 38, 77, .08);
  padding: .3rem 0;
  transition: box-shadow .3s ease, background .3s ease;
}
.k-header.navbar-scrolled {
  background: rgba(255, 255, 255, .98) !important;
  background-size: auto !important;          /* anula el background-size:100% 7px viejo */
  padding: .3rem 0 !important;               /* anula el padding-bottom:5px viejo (evita el salto) */
  box-shadow: 0 6px 26px rgba(20, 38, 77, .10) !important;
  transition: box-shadow .3s ease, background .3s ease;  /* anula transition:all .5s viejo */
}
.k-header .navbar-brand img { height: 50px !important; width: auto; }
.k-header .btn-cta { box-shadow: 0 4px 14px rgba(243, 172, 81, .45); }

.k-header .nav-link {
  font-weight: 600;
  color: #2a3346 !important;
  border-radius: 10px;
  padding: .5rem .85rem !important;
  transition: color .15s ease, background .15s ease;
}
.k-header .nav-link:hover,
.k-header .nav-link:focus,
.k-header .nav-item.show .nav-link {
  color: var(--k-blue) !important;
  background: rgba(36, 72, 149, .07);
}

.k-header .dropdown-menu {
  border: 0;
  box-shadow: var(--k-shadow);
  border-radius: 14px;
  padding: .5rem;
  margin-top: 0;                        /* sin hueco muerto entre el botón y el menú */
  border-top: 10px solid transparent;   /* "puente" hoverable: mantiene el espacio visual sin cerrar el menú */
  background-clip: padding-box;
}
/* Apertura por hover vía CSS (robusta, no depende del JS ni se cierra al cruzar) */
@media (min-width: 992px) {
  .k-header .nav-item.dropdown:hover > .dropdown-menu { display: block; }
}
.k-header .dropdown-item {
  border-radius: 9px;
  padding: .55rem .8rem;
  font-weight: 500;
  color: #2a3346;
}
.k-header .dropdown-item:hover,
.k-header .dropdown-item:focus {
  background: rgba(36, 72, 149, .08);
  color: var(--k-blue);
}
.k-header .navbar-toggler { border-color: rgba(20, 38, 77, .15); }
.k-header .nav-link.active { color: var(--k-blue) !important; background: rgba(36, 72, 149, .07); }
.k-header .dropdown-item.active { background: rgba(36, 72, 149, .1); color: var(--k-blue); }

/* -------------------------------- Hero v2 ------------------------------- */
.k-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.k-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.k-hero__video video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.k-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg, rgba(20, 38, 77, .92) 0%, rgba(20, 38, 77, .78) 42%, rgba(20, 38, 77, .35) 100%);
}
.k-hero__inner { position: relative; z-index: 2; width: 100%; }

.k-hero__title {
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}
.k-hero__title .hl {
  background: linear-gradient(90deg, #8ad6c0, #6fd0e6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.k-hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255, 255, 255, .92);
  max-width: 620px;
  margin-bottom: 1.8rem;
}
.k-hero__points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
}
.k-hero__points li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  color: #eaf2ff;
}
.k-hero__points svg { color: #8ad6c0; flex: 0 0 auto; }

.k-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.k-trustbar {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.k-trustbar span {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-bottom: .7rem;
}
.k-trustbar__logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.k-trustbar__logos img {
  height: 34px;
  width: auto;
  background: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  box-sizing: content-box;
  filter: none;
  opacity: 1;
}

/* Tarjeta lateral del hero (mini-form de captura) */
.k-hero-card {
  background: #fff;
  color: var(--k-ink);
  border-radius: var(--k-radius);
  box-shadow: var(--k-shadow);
  padding: 1.6rem 1.5rem;
}
.k-hero-card h3, .k-hero-card .k-form-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .3rem; color: var(--k-ink); }
.k-hero-card p { font-size: .9rem; color: var(--k-muted); margin-bottom: 1rem; }
.k-hero-card .form-control { border-radius: 10px; }

/* ------------------------------- Secciones ------------------------------ */
.k-section { padding: 4.5rem 0; }
.k-section--tint { background: #fff; }
.k-section--soft { background: var(--k-bg); }

.k-section-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.k-section-head h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: .4rem 0 .6rem;
}
.k-section-head p { color: var(--k-muted); font-size: 1.05rem; margin: 0; }

/* Píldora de título existente, modernizada */
.title_section {
  background: var(--k-grad) !important;
  border-radius: 999px !important;
  font-size: 1.25rem !important;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.4rem !important;
  box-shadow: var(--k-shadow-sm);
}

/* ------------------------------- Tarjetas ------------------------------- */
.k-card {
  background: #fff;
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  padding: 1.6rem;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.k-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--k-shadow);
  border-color: transparent;
}
.k-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(36,72,149,.1), rgba(28,154,178,.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.k-card__icon img { width: 34px; height: 34px; object-fit: contain; }
.k-card h3 { font-weight: 700; margin-bottom: .4rem; font-size: 1.2rem; }
.k-card p { color: var(--k-muted); font-size: .95rem; flex: 1 1 auto; }
.k-card__link {
  font-weight: 600;
  color: var(--k-blue);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .6rem;
}
.k-card__link:hover { color: var(--k-teal); }

/* Tarjeta para contenido legal (políticas, términos) */
.k-card--legal {
  padding: 2rem 2.2rem;
  transform: none !important;
}
.k-card--legal:hover {
  transform: none;
  border-color: var(--k-line);
  box-shadow: var(--k-shadow-sm);
}
.k-card--legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--k-blue);
  margin-top: 1.75rem;
  margin-bottom: .75rem;
}
.k-card--legal h2:first-of-type {
  margin-top: 0;
}
.k-card--legal p {
  color: var(--k-muted);
  margin-bottom: 1rem;
}

/* Arreglo: las cards viejas tenían width:18rem fijo (rompía móvil) */
.card[style*="18rem"] { width: 100% !important; }
.card.text-bg-light {
  border-radius: var(--k-radius) !important;
  border: 1px solid var(--k-line) !important;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card.text-bg-light:hover { transform: translateY(-4px); box-shadow: var(--k-shadow); }

/* ------------------------- Bloque de beneficios ------------------------- */
.k-stat { text-align: center; padding: 1rem; }
.k-stat .num {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3rem);
  background: var(--k-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.k-stat .lbl { color: var(--k-muted); font-weight: 600; margin-top: .4rem; }

/* ------------------------------- Clientes ------------------------------- */
.k-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1rem;
  align-items: center;
}
.k-logos img {
  max-width: 110px;
  max-height: 56px;
  width: auto; height: auto;
  margin: 0 auto;
  filter: grayscale(100%);
  opacity: .7;
  transition: filter .2s ease, opacity .2s ease;
}
.k-logos img:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 575.98px) {
  .k-logos { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------- Form ---------------------------------- */
.k-form-wrap {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--k-shadow);
  padding: 2.4rem;
}
.k-form-side {
  background: linear-gradient(160deg, var(--k-blue-deep), var(--k-blue));
  color: #fff;
  border-radius: 22px;
  padding: 2.4rem;
  height: 100%;
}
.k-form-side h3 { font-weight: 800; font-size: 1.6rem; }
.k-form-side ul { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.k-form-side li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .9rem; color: rgba(255,255,255,.9); }
.k-form-side li svg { color: #8ad6c0; flex: 0 0 auto; margin-top: 3px; }
.form-control, .form-select {
  border-radius: 12px;
  padding: .75rem .9rem;
  border-color: var(--k-line);
}
.form-control:focus {
  border-color: var(--k-teal);
  box-shadow: 0 0 0 .2rem rgba(28, 154, 178, .15);
}
.form-label { font-weight: 600; font-size: .9rem; }
.k-req { color: #e24b4a; font-weight: 700; }

/* -------------------------------- Footer -------------------------------- */
.footer { font-size: .85rem; }
.footer .icon-footer {
  background: rgba(255, 255, 255, .1) !important;
  border-color: rgba(255, 255, 255, .15) !important;
}

/* ------------------------------ Utilidades ------------------------------ */
.k-divider {
  height: 4px; width: 64px;
  background: var(--k-grad);
  border-radius: 4px;
  margin: 0 auto;
}
img { max-width: 100%; }

@media (max-width: 991.98px) {
  .k-hero { min-height: auto; padding: 110px 0 60px; }
  .k-section { padding: 3rem 0; }
}

/* ==========================================================================
   FIXES post-auditoría (resuelven choques con el CSS antiguo styles.min.css)
   ========================================================================== */

/* C1 · El CSS viejo deja #videoContainer en position:fixed y rompe el hero */
.k-hero #videoContainer {
  position: absolute !important;
  inset: 0 !important;
  min-width: 0;
  min-height: 0;
  right: auto; bottom: auto;
}
/* Fondo de respaldo del hero mientras el video carga (evita pantallazo negro / mejora LCP) */
.k-hero { background: var(--k-blue-deep); }

/* Ícono hamburguesa oscuro (header claro) */
.k-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(36,72,149,0.9)' stroke-width='2.2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menú móvil del header claro: panel blanco con sombra */
@media (max-width: 991.98px) {
  /* Especificidad alta para ganarle al styles.min.css viejo (que lo pintaba gris #f5f2f2) */
  header.k-header.sticky-top { background-color: rgba(255, 255, 255, .97) !important; }
  header.k-header.sticky-top .navbar-collapse {
    background-color: #fff !important;
    border: 1px solid var(--k-line);
    border-radius: 16px;
    box-shadow: var(--k-shadow);
    padding: .6rem 1rem 1rem;
    margin-top: .6rem;
  }
  .k-header .nav-link { color: #2a3346 !important; }
  /* El CSS viejo sumaba padding-top:80px al <main> y fijaba el header: el hero ya reserva ese espacio */
  main { padding-top: 0 !important; }
  /* Performance/datos: ocultamos el video en móvil */
  .k-hero__video { display: none; }
}

/* Accesibilidad · foco visible en CTAs (Bootstrap quedaba tapado por el box-shadow) */
.btn:focus-visible {
  outline: 3px solid rgba(28, 154, 178, .6);
  outline-offset: 2px;
}

/* Detalle · el hover de la tarjeta ya no "salta" 1px al perder el borde */
.k-card:hover { border-color: var(--k-line); box-shadow: var(--k-shadow); }

/* Detalle · sombra del CTA cálido más neutra sobre fondos claros */
.btn-cta, .btn-warning { box-shadow: 0 6px 18px rgba(20, 38, 77, .18); }

/* Clientes · paso intermedio a 3 columnas en tablet */
@media (max-width: 991.98px) and (min-width: 576px) {
  .k-logos { grid-template-columns: repeat(3, 1fr); }
}

/* Sección "Cómo trabajamos" */
.k-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  padding: 1.6rem 1.4rem;
  height: 100%;
}
.k-step__num {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--k-grad);
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
}
.k-step h3 { font-weight: 700; margin-bottom: .3rem; font-size: 1.05rem; }
.k-step p { color: var(--k-muted); font-size: .92rem; margin: 0; }

/* ==========================================================================
   OPTIMIZACIÓN MÓVIL (web + mobile)
   ========================================================================== */

/* Evita scroll horizontal accidental en cualquier dispositivo */
html, body { overflow-x: hidden; max-width: 100%; }

/* Los anclajes (#contacto, #soluciones) no quedan tapados por el header fijo */
section[id] { scroll-margin-top: 70px; }

/* Suaviza la unión entre el header claro y el hero oscuro */
.k-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 90px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 38, 77, .35), rgba(20, 38, 77, 0));
  pointer-events: none;
}

/* Áreas táctiles cómodas (mínimo recomendado ~44px) */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.navbar .nav-link { padding-top: .6rem; padding-bottom: .6rem; }
.dropdown-item { padding-top: .6rem; padding-bottom: .6rem; }

/* --- Tablets y bajo (<= 991px) --- */
@media (max-width: 991.98px) {
  .navbar-contact-btn { padding: .5rem .9rem; min-height: 42px; }
  .navbar-nav { padding-top: .25rem; }
  .navbar-nav .nav-item { border-top: 1px solid rgba(20,38,77,.07); }
  .navbar-nav .nav-item:first-child { border-top: 0; }
  /* CTA del menú móvil a ancho completo */
  .navbar-nav .btn-cta { width: 100%; margin-top: .5rem; }

  .k-hero { padding: 96px 0 48px; }
  .k-hero-card { margin-top: 1.5rem; }
  /* Botones del hero a ancho completo: más fáciles de tocar */
  .k-hero__cta { flex-direction: column; }
  .k-hero__cta .btn { width: 100%; }

  .k-form-side, .k-form-wrap { padding: 1.6rem 1.3rem; }
  .k-section-head { margin-bottom: 1.8rem; }
}

/* --- Teléfonos (<= 575px) --- */
@media (max-width: 575.98px) {
  .k-section { padding: 2.4rem 0; }
  .k-hero__title { font-size: 1.95rem; }
  .k-hero__points { gap: .45rem 1rem; }
  .k-stat .num { font-size: 2rem; }

  /* reCAPTCHA (304px fijo) no desborda en pantallas chicas */
  .g-recaptcha { transform: scale(0.86); transform-origin: left center; }

  /* La métrica se ve mejor en 2 columnas con respiro */
  .k-stat { padding: .5rem; }

  /* Logos de clientes: 2 columnas con buen tamaño */
  .k-logos { gap: 1.2rem .8rem; }
  .k-logos img { max-width: 96px; }

  /* WhatsApp no tapa el contenido inferior */
}

/* ==========================================================================
   PÁGINAS INTERNAS (servicios / productos)
   ========================================================================== */

/* Hero de página interna: sin video, gradiente de marca, más compacto */
.k-hero--page {
  min-height: auto;
  padding: 130px 0 70px;
  background: linear-gradient(120deg, var(--k-blue-deep) 0%, var(--k-blue) 60%, var(--k-teal) 140%);
}
.k-hero--page .k-hero__overlay {
  background: radial-gradient(120% 120% at 0% 0%, rgba(0,0,0,.18), rgba(0,0,0,0) 60%);
}
.k-hero--page .k-hero__title { font-size: clamp(1.9rem, 4vw, 3rem); }

/* Badge de check en tarjetas de beneficio */
.k-card__num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(36,72,149,.12), rgba(28,154,178,.16));
  color: var(--k-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

/* Cita destacada */
.k-quote {
  border-left: 4px solid var(--k-teal);
  padding: .4rem 0 .4rem 1.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--k-blue-deep);
  line-height: 1.4;
}

/* Lista con checks */
.k-checklist { list-style: none; padding: 0; margin: 0; }
.k-checklist li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; color: var(--k-ink); }
.k-checklist li svg { color: var(--k-teal); flex: 0 0 auto; margin-top: 4px; }

/* Banda CTA intermedia */
.k-ctaband {
  background: linear-gradient(120deg, var(--k-blue-deep), var(--k-blue));
  border-radius: 22px;
  padding: 2.4rem;
  color: #fff;
  text-align: center;
}
.k-ctaband h2 { color: #fff; font-weight: 800; }

@media (max-width: 575.98px) {
  .k-hero--page { padding: 104px 0 48px; }
}

/* Tarjetas de artículo (Blog) */
.k-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.k-post:hover { transform: translateY(-4px); box-shadow: var(--k-shadow); }
.k-post__img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: #eef1f6;
}
.k-post__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.k-post__date { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--k-teal); }
.k-post__body h2, .k-post__body h3 { font-weight: 700; font-size: 1.12rem; margin: .4rem 0 .5rem; line-height: 1.3; }
.k-post__body p { color: var(--k-muted); font-size: .93rem; flex: 1 1 auto; }
.k-post__link { font-weight: 600; color: var(--k-blue); display: inline-flex; align-items: center; gap: .25rem; margin-top: .6rem; }
.k-post__link:hover { color: var(--k-teal); }

/* Artículo destacado */
.k-post--feature { display: grid; grid-template-columns: 1.1fr 1fr; }
.k-post--feature .k-post__img { aspect-ratio: auto; height: 100%; min-height: 280px; }
.k-post--feature .k-post__body { padding: 2rem; justify-content: center; }
.k-post--feature .k-post__body h2, .k-post__body h3 { font-size: 1.5rem; }
@media (max-width: 767.98px) {
  .k-post--feature { grid-template-columns: 1fr; }
  .k-post--feature .k-post__img { min-height: 200px; }
}

/* Artículo individual (HTMLy) */
.k-post--single {
  padding: 2rem 2.2rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--k-ink);
}
.k-post--single__featured {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.k-post--single h2,
.k-post--single h3,
.k-post--single h4 {
  font-weight: 700;
  margin: 1.75rem 0 .75rem;
  line-height: 1.3;
  color: var(--k-blue-deep);
}
.k-post--single h2 { font-size: 1.45rem; }
.k-post--single h3 { font-size: 1.22rem; }
.k-post--single h4 { font-size: 1.05rem; }
.k-post--single p { margin-bottom: 1rem; }
.k-post--single ul,
.k-post--single ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}
.k-post--single li { margin-bottom: .4rem; }
.k-post--single img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.k-post--single blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--k-teal);
  background: rgba(28, 154, 178, .08);
  border-radius: 0 8px 8px 0;
  color: var(--k-muted);
}
.k-post--single a {
  color: var(--k-blue);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.k-post--single a:hover { color: var(--k-teal); }
.k-post--single__tags {
  font-size: .92rem;
  color: var(--k-muted);
}
.k-post--single__tags a {
  color: var(--k-blue);
  text-decoration: none;
}
.k-post--single__tags a:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
  .k-post--single { padding: 1.35rem 1.2rem; }
}

/* Paginación HTMLy */
.k-pagination .pagination,
.k-pagination ul.pagination {
  justify-content: center;
  gap: .35rem;
  margin: 0;
  flex-wrap: wrap;
}
.k-pagination .page-item .page-link {
  border-radius: 8px;
  color: var(--k-blue);
  border-color: var(--k-line);
  padding: .45rem .85rem;
  font-weight: 600;
}
.k-pagination .page-item.active .page-link {
  background: var(--k-blue);
  border-color: var(--k-blue);
}
.k-pagination .page-item .page-link:hover {
  background: rgba(36, 72, 149, .08);
  color: var(--k-blue-deep);
}
.k-pagination .page-item.disabled .page-link {
  color: var(--k-muted);
}

/* Botones de redes sociales (página RRSS) */
.k-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  background: #fff;
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  padding: 1.6rem 1rem;
  color: var(--k-blue);
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.k-social:hover { transform: translateY(-4px); box-shadow: var(--k-shadow); color: var(--k-teal); }
.k-social__ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(36,72,149,.1), rgba(28,154,178,.14));
  display: flex; align-items: center; justify-content: center;
  color: var(--k-blue);
}

/* En pantallas muy angostas (<=360px) evita que el form-side apriete el texto */
@media (max-width: 360px) {
  .k-form-side, .k-form-wrap, .k-hero-card { padding: 1.3rem 1.1rem; }
  .btn-lg { padding: .8rem 1.2rem; font-size: 1rem; }
}

/* ----------------------------- Cookie consent banner -------------------- */
.k-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--k-blue-deep);
  color: rgba(255, 255, 255, .92);
  padding: 1.25rem 0;
  box-shadow: 0 -8px 32px rgba(20, 38, 77, .28);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.k-cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
}
.k-cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.k-cookie-banner__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}
.k-cookie-banner__text a {
  color: var(--k-green);
  text-decoration: underline;
}
.k-cookie-banner__text a:hover {
  color: #9de4cc;
}
.k-cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.k-cookie-banner__actions .btn {
  white-space: nowrap;
  padding: .6rem 1.25rem;
  font-size: .9rem;
}
@media (max-width: 575.98px) {
  .k-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .k-cookie-banner__actions {
    flex-direction: column;
  }
  .k-cookie-banner__actions .btn {
    width: 100%;
  }
}
