/* =========================================================
   KUATRO - INDEX
   File: /assets/index/index.css
   Ordenado por secciones + comentarios por bloque
========================================================= */

/* =========================================================
   0) VARIABLES / BASE
   (Variables usadas en varias secciones)
========================================================= */
:root{
  /* [Bloque: Productos slider / Acento] */
  --kuatro-accent: var(--accent, #F35109);

  /* [Bloque: Servicios Premium] */
  --k-bg: #0b0f14;
  --k-fg: #ffffff;
  --k-muted: rgba(255,255,255,.72);
  --k-border: rgba(255,255,255,.14);
  --k-glass: rgba(255,255,255,.08);
  --k-glass2: rgba(255,255,255,.06);
  --k-shadow: 0 24px 80px rgba(0,0,0,.35);
  --k-radius: 22px;
}

/* =========================================================
   1) HERO - MOBILE (Carousel)
   [Bloque: Hero móvil - layout / imagen / texto / CTAs]
========================================================= */

/* [Hero móvil] Alto del carrusel */
.kuatro-hero-carousel .carousel-inner{ height: 75vh; }     /* Modifica: alto viewport carrusel */
.kuatro-hero-carousel .carousel-item{ height: 75vh; position: relative; } /* Modifica: alto + stacking */
.kuatro-hero-img{ height: 75vh; object-fit: cover; }       /* Modifica: imagen hero móvil */

/* [Hero móvil] Contenedor de texto */
.kuatro-hero-content{
  position: absolute;     /* Modifica: overlay sobre la imagen */
  top: 110px;             /* Modifica: distancia desde arriba (móvil) */
  left: 18px;             /* Modifica: padding lateral */
  right: 18px;            /* Modifica: padding lateral */
  text-align: center;     /* Modifica: alineación texto */
  color: #fff;            /* Modifica: color texto */
}

/* [Hero móvil] Tipografía */
.kuatro-hero-content h1{
  font-size: 38px;        /* Modifica: tamaño H1 móvil */
  font-weight: 700;       /* Modifica: peso */
  line-height: 1.05;      /* Modifica: interlineado */
  margin: 0 0 8px 0;      /* Modifica: separación inferior */
}
.kuatro-hero-content p{
  margin: 0 0 18px 0;     /* Modifica: separación inferior */
  opacity: .92;           /* Modifica: opacidad */
  font-weight: 500;       /* Modifica: peso */
  font-size: 16px;        /* Modifica: tamaño párrafo */
}

/* [Hero móvil] Botones/CTAs */
.kuatro-hero-cta{
  display: grid;                 /* Modifica: distribución botones */
  grid-template-columns: 1fr 1fr;/* Modifica: 2 columnas */
  gap: 12px;                     /* Modifica: separación */
  max-width: 520px;              /* Modifica: ancho máximo */
  margin: 0 auto;                /* Modifica: centrado */
}
.kuatro-hero-cta .btn{
  border-radius: 10px;           /* Modifica: radio botones */
  padding: 10px 12px;            /* Modifica: padding botones */
  font-weight: 600;              /* Modifica: peso */
}

/* =========================================================
   2) HERO - DESKTOP (Carousel)
   [Bloque: Hero desktop - wrapper / carrusel / imagen]
========================================================= */

/* [Hero desktop] Wrapper */
.kuatro-hero-desktop .hero-wrapper{
  padding: 0 calc(32px * var(--ui-scale)); /* Modifica: padding lateral del hero */
}

/* [Hero desktop] Contenedor carrusel */
.kuatro-hero-carousel-desktop{
  position: relative;                                      /* Modifica: contexto para overlays */
  width: 100%;                                             /* Modifica: ancho */
  height: 80vh;                                            /* Modifica: alto */
  margin: calc(48px * var(--ui-scale)) auto calc(32px * var(--ui-scale)); /* Modifica: márgenes */
  border-radius: calc(24px * var(--ui-scale));             /* Modifica: esquinas */
  overflow: hidden;                                        /* Modifica: recorte */
}

/* [Hero desktop] Altura de items */
.kuatro-hero-carousel-desktop .carousel-inner,
.kuatro-hero-carousel-desktop .carousel-item{
  height: 80vh; /* Modifica: altura del item */
}

/* [Hero desktop] Imagen */
.kuatro-hero-img-desktop{
  width: 100%;      /* Modifica: ancho imagen */
  height: 80vh;     /* Modifica: alto imagen */
  object-fit: cover;/* Modifica: recorte */
}

/* =========================================================
   2.1) HERO - DESKTOP (Texto overlay + Tipografía UNIFICADA)
   [Bloque: Texto del slider desktop - centrado y left]
   ✅ Ajuste clave: la tipografía aplica a ambos contenedores
========================================================= */

/* [Hero desktop] Contenido centrado (slide estándar) */
.kuatro-hero-content-desktop{
  position: absolute; /* Modifica: overlay */
  top: calc(42% * var(--ui-scale)); /* Modifica: posición vertical (si quieres bajar, ajusta aquí) */
  left: 50%;          /* Modifica: centrado horizontal */
  transform: translateX(-50%); /* Modifica: centrado horizontal */
  width: min(calc(900px * var(--ui-scale)), calc(100% - calc(48px * var(--ui-scale)))); /* Modifica: ancho */
  text-align: center; /* Modifica: alineación texto */
  color: #fff;        /* Modifica: color texto */
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  z-index: 5;         /* Modifica: por encima de la imagen */
}

/* [Hero desktop] Contenido alineado a la izquierda (slide específico) */
.kuatro-hero-content-desktop-left{
  position: absolute;       /* Modifica: overlay */
  top: 52%;                 /* Modifica: centrado vertical */
  left: 6%;                 /* Modifica: margen izquierdo */
  transform: translateY(-50%); /* Modifica: centrado vertical real */
  max-width: 900px;         /* Modifica: ancho del bloque de texto */
  text-align: left;         /* Modifica: alineación */
  color: #fff;              /* Modifica: color texto */
  z-index: 5;               /* Modifica: capa */
}

/* ✅ [Hero desktop] Tipografía unificada (ANTES solo aplicaba al centrado)
   Esto corrige que en .kuatro-hero-content-desktop-left "se vea más pequeña" */
.kuatro-hero-content-desktop h1,
.kuatro-hero-content-desktop-left h1{
  font-size: calc(60px * var(--ui-scale)); /* Modifica: tamaño H1 desktop */
  font-weight: 700;                        /* Modifica: peso */
  line-height: 1.02;                       /* Modifica: interlineado */
  margin: 0 0 calc(10px * var(--ui-scale)) 0; /* Modifica: separación inferior */
}

.kuatro-hero-content-desktop p,
.kuatro-hero-content-desktop-left p{
  font-size: calc(20px * var(--ui-scale)); /* Modifica: tamaño párrafo desktop */
  font-weight: 500;                        /* Modifica: peso */
  margin: 0 0 calc(22px * var(--ui-scale)) 0; /* Modifica: separación inferior */
  opacity: .92;                            /* Modifica: opacidad */
}

/* =========================================================
   2.2) HERO - DESKTOP (Flechas / Controles)
   [Bloque: Flechas pegadas a laterales]
========================================================= */

/* [Hero desktop] Área clic de flechas */
.kuatro-hero-carousel-desktop .carousel-control-prev,
.kuatro-hero-carousel-desktop .carousel-control-next{
  width: 56px;   /* Modifica: ancho control */
  opacity: .95;  /* Modifica: opacidad */
  z-index: 6;    /* Modifica: por encima de texto */
}

/* [Hero desktop] Pegarlas al borde */
.kuatro-hero-carousel-desktop .carousel-control-prev{ left: 2%; }  /* Modifica: posición izquierda */
.kuatro-hero-carousel-desktop .carousel-control-next{ right: 2%; } /* Modifica: posición derecha */

/* [Hero desktop] Tamaño del ícono */
.kuatro-hero-carousel-desktop .carousel-control-prev-icon,
.kuatro-hero-carousel-desktop .carousel-control-next-icon{
  width: 22px;  /* Modifica: tamaño ícono */
  height: 22px; /* Modifica: tamaño ícono */
}

/* [Hero desktop] Íconos “blancos” consistentes (sin filtros raros de Bootstrap) */
.kuatro-hero-carousel-desktop .carousel-control-prev-icon,
.kuatro-hero-carousel-desktop .carousel-control-next-icon{
  filter: none !important; /* Modifica: elimina filtros */
}

/* =========================================================
   3) INTRO
   [Bloque: Sección intro + animación reveal]
========================================================= */

/* [Intro] Contenedor principal */
.kuatro-intro{
  padding: clamp(56px, 7vw, 110px) 18px; /* Modifica: padding */
  background: #fff;                      /* Modifica: fondo */
}

/* [Intro] Ancho / centrado */
.kuatro-intro__inner{
  max-width: 980px; /* Modifica: ancho */
  margin: 0 auto;   /* Modifica: centrado */
  text-align: center; /* Modifica: alineación */
}

/* [Intro] Título */
.kuatro-intro__title{
  color: #0F172A;             /* Modifica: color */
  margin: 0 0 14px 0;         /* Modifica: separación */
  font-weight:800;            /* Modifica: peso */
  letter-spacing:-0.03em;     /* Modifica: tracking */
  font-size:clamp(30px,3.6vw,56px); /* Modifica: tamaño */
  line-height:1.08;           /* Modifica: interlineado */
}

/* [Intro] Subtítulo */
.kuatro-intro__subtitle{
  font-size: clamp(14px, 1.35vw, 17px); /* Modifica: tamaño */
  line-height: 1.6;                     /* Modifica: interlineado */
  font-weight: 500;                     /* Modifica: peso */
  color: rgba(15, 23, 42, .70);         /* Modifica: color */
  max-width: 780px;                     /* Modifica: ancho */
  margin: 0 auto;                       /* Modifica: centrado */
}

/* [Intro] Reveal (preparación / entrada) */
.kuatro-intro__inner.is-prep{
  opacity: 0;                 /* Modifica: estado inicial */
  transform: translateY(16px);/* Modifica: desplazamiento inicial */
  transition: opacity .6s ease, transform .6s ease; /* Modifica: transición */
}
.kuatro-intro__inner.is-prep.is-in{
  opacity: 1;                 /* Modifica: estado final */
  transform: translateY(0);   /* Modifica: estado final */
}

/* [Intro] Responsive */
@media (max-width: 768px){
  .kuatro-intro{
    padding-top: 24px !important;  /* Modifica: padding superior */
    padding-bottom: 32px !important;/* Modifica: padding inferior */
    margin-top: 20px !important;   /* Modifica: margen superior */
  }
  .kuatro-intro h2{
    font-size: 26px !important; /* Modifica: tamaño título */
    line-height: 1.15;
    margin-bottom: 10px;
  }
  .kuatro-intro p{
    font-size: 15px !important; /* Modifica: tamaño párrafo */
    line-height: 1.45;
    padding: 0 10px;
  }
}

/* =========================================================
   4) PRODUCTS SLIDER (Tu versión Tesla)
   [Bloque: Slider de productos]
========================================================= */
.kuatro-products-slider{ background:#fff !important; padding:34px 0 14px; margin-top:-10px; } /* Modifica: sección */
.kuatro-ps-wrap{ position:relative; width:min(95%, calc(100% - 46px)); margin:0 auto; }       /* Modifica: wrapper */
.kuatro-ps-viewport{ overflow:hidden; border-radius:22px; background:#fff !important; }       /* Modifica: viewport */
.kuatro-ps-track{
  display:flex; gap:26px; padding:0; margin:0;                 /* Modifica: track */
  will-change:transform;
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
.kuatro-ps-card{
  flex:0 0 calc((100% - 26px)/2); /* Modifica: ancho card */
  position:relative;
  height:520px;                   /* Modifica: alto card */
  border-radius:18px;             /* Modifica: radio */
  overflow:hidden;
  background-image: var(--bg);
  background-size:cover;
  background-position:center;
  box-shadow:0 18px 28px -22px rgba(0,0,0,.22) !important;
}
.kuatro-ps-overlay{
  position:absolute; inset:0; /* Modifica: overlay */
  background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.30) 35%, rgba(0,0,0,.06) 70%, rgba(0,0,0,0) 100%);
}
.kuatro-ps-content{ position:absolute; left:28px; right:28px; bottom:22px; color:#fff; } /* Modifica: contenido */
.kuatro-ps-kicker{
  position:absolute; top:22px; left:26px; z-index:3; /* Modifica: kicker */
  color:#fff; font-size:14px; font-weight:600; opacity:.95;
  text-shadow:0 6px 18px rgba(0,0,0,.35);
}
.kuatro-ps-title{ font-size:56px; margin:0 0 8px; font-weight:900; letter-spacing:-0.02em; } /* Modifica: título */
.kuatro-ps-sub{ margin:0 0 16px; font-size:16px; opacity:.92; }                               /* Modifica: subtítulo */
.kuatro-ps-actions{ display:flex; gap:12px; flex-wrap:wrap; }                                 /* Modifica: botones */

.kuatro-ps-btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:42px; padding:0 18px; border-radius:10px;
  font-weight:800; text-decoration:none;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kuatro-ps-btn-primary{
  background:#fff; color:#0F172A;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 10px 22px rgba(0,0,0,.16);
}
.kuatro-ps-btn-primary:hover{ transform:translateY(-1px); background:var(--kuatro-accent); color:#fff; }
.kuatro-ps-btn-ghost{
  background:rgba(255,255,255,.12); color:#fff;
  border:1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(10px);
}

.kuatro-ps-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.92);
  box-shadow:0 14px 40px rgba(0,0,0,.18);
  cursor:pointer; font-size:28px;
  display:grid; place-items:center;
  z-index:5;
}
.kuatro-ps-prev{ left:18px; } /* Modifica: flecha izq */
.kuatro-ps-next{ right:18px; }/* Modifica: flecha der */

.kuatro-ps-dots{ display:flex; gap:8px; justify-content:center; margin-top:16px; } /* Modifica: dots */
.kuatro-ps-dot{ width:10px; height:10px; border-radius:999px; background:rgba(15,23,42,.20); border:0; cursor:pointer; }
.kuatro-ps-dot.is-active{ width:28px; background:rgba(15,23,42,.65); }

@media (max-width: 767.98px){
  .kuatro-ps-card{
    flex:0 0 100%;
    height:440px;

    /* ✅ imagen móvil */
    background-image: var(--bg-m, var(--bg));
    
    background-position: center 35%;
  }

  .kuatro-ps-title{ font-size:42px; }
}

/* =========================================================
   5) TRUST (Sección video + marquee)
   [Bloque: Trust / logos / animación marquee]
========================================================= */
.kuatro-trust{
  position: relative;
  width: min(1320px, calc(100% - 46px)); /* Modifica: ancho */
  margin: 0px auto 70px;                 /* Modifica: márgenes */
  border-radius: 34px;                   /* Modifica: radio */
  overflow: hidden;
  background: #0B1220;
  box-shadow: 0 26px 80px rgba(0,0,0,.22);
}
.kuatro-trust__media{ position:absolute; inset:0; } /* Modifica: layer media */
.kuatro-trust__video{ width:100%; height:100%; object-fit:cover; display:block; } /* Modifica: video */
.kuatro-trust__overlay{
  position:absolute; inset:0;
  background: radial-gradient(120% 120% at 50% 0%,
    rgba(0,0,0,.15), rgba(0,0,0,.55) 55%, rgba(0,0,0,.78) 100%);
}
.kuatro-trust__content{
  position:relative; z-index:2;
  padding: clamp(34px, 4vw, 56px) clamp(18px, 3vw, 56px);
  text-align:center; color:#fff;
}
.kuatro-trust__pill{
  display:inline-flex; align-items:center; justify-content:center;
  height:34px; padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  font-size:12px;
  letter-spacing:.22em;
  font-weight:800;
  margin-bottom:16px;
}
.kuatro-trust__title{
  margin:0 0 10px;
  font-weight:900;
  letter-spacing:-0.03em;
  font-size:clamp(30px,3.6vw,56px);
  line-height:1.08;
}
.kuatro-marquee{
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(10px);
  padding:16px 0;
}
.kuatro-marquee__track{
  display:flex;
  width:max-content;
  gap:26px;
  animation:kuatro-marquee 22s linear infinite;
  align-items:center;
}
.kuatro-marquee:hover .kuatro-marquee__track{ animation-play-state:paused; }
.kuatro-marquee__group{ display:flex; gap:26px; align-items:center; padding:0 18px; }
.kuatro-marquee img{ height:30px; width:auto; opacity:.92; filter:drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
@keyframes kuatro-marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* =========================================================
   6) SERVICIOS (Premium - Fondo + Glass + Grid)
   [Bloque: Servicios]
========================================================= */
.k-services{
  position: relative;
  padding: 90px 0;
  color: var(--k-fg);
  overflow: hidden;
}

/* [Servicios] Fondo imagen */
.k-services::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/index/img/servicios-1.png"); /* Modifica: imagen */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

/* [Servicios] Blur overlay */
.k-services::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,15,20,.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1;
}

/* [Servicios] Contenido arriba del blur */
.k-services__wrap{
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* [Servicios] Encabezado */
.k-services__head{ max-width: 720px; margin-bottom: 26px; }
.k-eyebrow{
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin: 0 0 10px 0;
}
.k-title{
  font-weight:900;
  letter-spacing:-0.03em;
  font-size:clamp(30px,3.6vw,56px);
  line-height:1.08;
  margin: 0 0 10px 0;
}
.k-subtitle{
  margin: 0;
  font-size: 16px;
  color: var(--k-muted);
  line-height: 1.6;
}

/* [Servicios] Panel glass */
.k-services__panel{
  border: 1px solid var(--k-border);
  background: linear-gradient(135deg, var(--k-glass), var(--k-glass2));
  border-radius: var(--k-radius);
  box-shadow: var(--k-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 22px;
}

/* [Servicios] Grid */
.k-services__grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* [Servicios] Card */
.k-serviceCard{
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  text-decoration: none;
  color: var(--k-fg);
  transform: translateZ(0);
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
  min-height: 180px;
}
.k-serviceCard:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}
.k-serviceCard__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.04);
}
.k-serviceCard__icon svg{ width: 22px; height: 22px; color: rgba(255,255,255,.9); }
.k-serviceCard__title{ margin: 0; font-size: 16px; letter-spacing: .01em; }
.k-serviceCard__text{ margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.72); }
.k-serviceCard__cta{ margin-top: auto; font-size: 13px; color: rgba(255,255,255,.86); opacity: .85; }

/* [Servicios] Footer actions */
.k-services__foot{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.k-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,90,0,.85);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .25s ease, background .25s ease;
}
.k-btn:hover{ transform: translateY(-2px); }
.k-link{ color: rgba(255,255,255,.8); text-decoration: none; }
.k-link:hover{ text-decoration: underline; }

/* [Servicios] Animación reveal */
.k-reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.k-reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* [Servicios] Responsive */
@media (max-width: 1100px){
  .k-services__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .k-services{ padding: 70px 0; }
  .k-services__grid{ grid-template-columns: 1fr; }
  .k-services__foot{ flex-direction: column; align-items: flex-start; }
}

/* [Servicios] Mobile grid 2 columnas */
@media (max-width: 720px){
  .k-services::before{ background-attachment: scroll; }
  .k-services__panel{ padding: 14px; }
  .k-services__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .k-serviceCard{ min-height: 150px; padding: 14px 12px; }
  .k-serviceCard__title{ font-size: 14px; }
  .k-serviceCard__text{ font-size: 12px; }
  .k-serviceCard:last-child{ grid-column: 1 / -1; } /* Modifica: 5to ocupa ancho completo */
  .k-services__foot{ flex-direction: column; align-items: stretch; }
  .k-btn{ width: 100%; }
}

/* =========================================================
   7) BLOG (Insights slider)
   [Bloque: Blog slider]
========================================================= */
.k-blog{
  position: relative;
  padding: 90px 0 100px;
  background: linear-gradient(180deg, #f3f4f6 0%, #f3f4f6 70%, #ffffff 100%);
  color: #0b0f14;
}

.k-blog__wrap{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 26px;
  align-items: center;
}

.k-eyebrow--dark{ color: rgba(11,15,20,.55); }

.k-blog__title{
  margin: 0 0 10px 0;
  font-weight:700;
  letter-spacing:-0.03em;
  font-size:clamp(30px,3.6vw,56px);
  line-height:1.08;
}

.k-blog__subtitle{
  margin: 0;
  color: rgba(11,15,20,.72);
  line-height: 1.6;
  font-size: 16px;
  max-width: 320px;
}

.k-blog__actions{ display: flex; gap: 10px; margin: 18px 0 14px; }

.k-blog__nav{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(11,15,20,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.k-blog__nav:hover{ transform: translateY(-1px); background: #fff; }

.k-blog__all{
  display: inline-flex;
  margin-top: 6px;
  color: rgba(255,90,0,.95);
  text-decoration: none;
}
.k-blog__all:hover{ font-weight: bold; }

/* [Blog] Track wrapper + fade derecho */
.k-blog__right{
  position: relative;
  overflow: hidden;
  background: transparent;
}


.k-blog__right::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:120px;

  background: linear-gradient(
    90deg,
    rgba(243,244,246,0) 0%,
    rgba(243,244,246,0.35) 60%,
    rgba(243,244,246,0.75) 80%,
    rgba(243,244,246,0.95) 100%
  );

  pointer-events:none;
  z-index:5;
}




/* [Blog] Track horizontal */
.k-blog__track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 340px;
  gap: 16px;
  overflow-x: auto;
  padding: 14px 4px 0px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}



.k-blog__track::-webkit-scrollbar{ display: none; }

/* [Blog] Card */
.k-bcard{
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11,15,20,.07);
}
.k-bcard__link{
  display: grid;
  grid-template-rows: 190px 1fr;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.k-bcard__media{
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
}
.k-bcard__body{ padding: 16px 16px 18px; display: grid; gap: 10px; }


.k-bcard__tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 28px;        /* fuerza misma altura */
  padding: 0 12px;     /* padding horizontal */

  width: fit-content;
  border-radius: 999px;

  background: rgba(255,90,0,.14);
  color: rgba(255,90,0,.95);

  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1;
}

.k-bcard__h{ margin: 0; font-size: 18px; line-height: 1.25; }
.k-bcard__p{ margin: 0; color: rgba(11,15,20,.72); line-height: 1.55; font-size: 13px; }
.k-bcard__cta{ margin-top: 4px; color: rgba(255,90,0,.95); font-weight: 700; font-size: 13px; }

@media (max-width: 980px){
  .k-blog__wrap{ grid-template-columns: 1fr; gap: 14px; }
  .k-blog__subtitle{ max-width: 520px; }
  .k-blog__actions{ display: none; }
  .k-blog__track{ grid-auto-columns: 82%; }
}

/* =========================================================
   8) RESULTADOS (Métricas)
   [Bloque: Resultados]
========================================================= */
.k-results{
  padding: 110px 0;
  background: #ffffff;
  color: #0b0f14;
}
.k-results__wrap{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.k-results__top{
  text-align: center;
  max-width: 780px;
  margin: 0 auto 70px;
}
.k-results__title{
  font-weight:900;
  letter-spacing:-0.03em;
  font-size:clamp(30px,3.6vw,56px);
  line-height:1.08;
}
.k-results__subtitle{
  color: rgba(11,15,20,.65);
  font-size: 17px;
  line-height: 1.6;
}
.k-results__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.k-metric{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.k-metric__number{
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  color: #ff5a00;
  letter-spacing: -1px;
}
.k-metric__label{
  font-size: 16px;
  color: rgba(11,15,20,.75);
}

@media (max-width: 980px){
  .k-results__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 20px;
  }
}
@media (max-width: 560px){
  .k-results{ padding: 80px 0; }
  .k-results__grid{ grid-template-columns: 1fr; }
}