/* ==========================================================================
   Kairos Factory — LANDING
   Estructura y componentes tomados de los prototipos de Claude Design
   (Achuchon Landing.dc.html) con la paleta OFICIAL del manual de marca.
   Se carga SOLO en la portada (ver functions.php).
   ========================================================================== */

.kf-landing {
  --kf-max: 1240px;
  background: var(--kf-bg);
  color: var(--kf-text);
  font-family: var(--kf-font-body);
  overflow-x: hidden;
}
.kf-landing *,
.kf-landing *::before,
.kf-landing *::after { box-sizing: border-box; }

.kf-wrap {
  max-width: var(--kf-max);
  margin: 0 auto;
  padding: 0 28px;
}

.kf-landing h1, .kf-landing h2, .kf-landing h3 {
  font-family: var(--kf-font-head);
  color: var(--kf-text);
  margin: 0;
  line-height: 1.06;
  letter-spacing: -.02em;
}
.kf-landing p { margin: 0; }

/* --- Marquee de anuncios ---------------------------------------------- */
.kf-marquee {
  background: var(--kf-primary-dark);
  color: #F1EDFC;
  font-family: var(--kf-font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
}
.kf-marquee__track {
  display: inline-flex;
  gap: 42px;
  animation: kf-marquee 26s linear infinite;
  will-change: transform;
}
.kf-marquee__track span { display: inline-block; }
@keyframes kf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .kf-marquee__track { animation: none; } }

/* --- Nav ----------------------------------------------------------------
   El nav se define UNA sola vez, en brand.css (spec 6.1 punto 2), porque la
   cabecera es identica en todo el sitio y no solo en la portada. Aqui vivia un
   bloque .kf-nav duplicado que, al cargarse despues, pisaba el fondo lavanda,
   el color de los links, el peso, el tamano y el gap de la especificacion. */

.kf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--kf-font-head); font-weight: 700;
  border-radius: var(--kf-r-pill);
  padding: 13px 26px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.kf-btn--primary {
  background: var(--kf-primary); color: #fff;
  box-shadow: var(--kf-shadow-btn);
}
.kf-btn--primary:hover { background: var(--kf-primary-dark); color: #fff; transform: translateY(-2px); }
.kf-btn--ghost {
  background: #fff; color: var(--kf-primary-dark);
  border-color: var(--kf-border);
}
.kf-btn--ghost:hover { border-color: var(--kf-primary); color: var(--kf-primary); }
.kf-btn--white { background: #fff; color: var(--kf-primary-dark); }
.kf-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.kf-btn--outline:hover { background: rgba(255,255,255,.14); color: #fff; }

/* --- Hero -------------------------------------------------------------- */
.kf-hero { padding: 60px 0 74px; }
.kf-hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 48px; align-items: center;
}
.kf-badge {
  display: inline-block;
  background: var(--kf-lavender); color: var(--kf-primary-dark);
  font-family: var(--kf-font-head); font-weight: 700; font-size: 13.5px;
  padding: 8px 18px; border-radius: var(--kf-r-pill);
  margin-bottom: 20px;
}
.kf-hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; }
.kf-hero h1 em { font-style: normal; color: var(--kf-primary); }
.kf-hero__lead {
  font-size: 18.5px; color: #6A6293; margin-top: 20px; max-width: 34em;
  line-height: 1.6;
}
.kf-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.kf-social { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.kf-social__avatars { display: flex; }
.kf-social__avatars i {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid #fff; margin-left: -12px; display: block;
}
.kf-social__avatars i:first-child { margin-left: 0; }
.kf-social__txt { font-size: 14.5px; color: #6A6293; }
.kf-social__txt b { color: var(--kf-text); font-family: var(--kf-font-head); }

.kf-hero__media { position: relative; }
.kf-hero__media::before {
  content: ""; position: absolute; inset: -12% -8% -8% -12%;
  background: radial-gradient(circle at 40% 40%, var(--kf-lavender), var(--kf-cyan) 70%, transparent 78%);
  opacity: .55; filter: blur(6px); z-index: 0;
}
.kf-hero__img {
  position: relative; z-index: 1;
  aspect-ratio: 1 / 1; width: 100%;
  border-radius: 36px; border: 8px solid #fff;
  box-shadow: 0 30px 60px rgba(76, 44, 145, .22);
  object-fit: cover; display: block;
  background: var(--kf-lavender);
}
.kf-float {
  position: absolute; z-index: 2;
  background: #fff; border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 14px 34px rgba(76, 44, 145, .16);
  font-size: 13px; color: var(--kf-text);
  line-height: 1.3;
}
.kf-float b { display: block; font-family: var(--kf-font-head); font-size: 14px; }
.kf-float--a { left: -18px; top: 16%; transform: rotate(-7deg); }
.kf-float--b { right: -14px; bottom: 14%; transform: rotate(6deg); }

/* --- Franja de confianza ---------------------------------------------- */
.kf-trust {
  background: #fff; border-radius: var(--kf-r-card);
  box-shadow: var(--kf-shadow-card);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.kf-trust > div {
  padding: 24px 22px; text-align: center;
  border-right: 1px solid var(--kf-border-card);
}
.kf-trust > div:last-child { border-right: 0; }
.kf-trust b { display: block; font-family: var(--kf-font-head); font-size: 15.5px; margin-bottom: 4px; }
.kf-trust span { font-size: 13.5px; color: var(--kf-muted); }

/* --- Secciones --------------------------------------------------------- */
.kf-sec { padding: 74px 0; }
.kf-sec__head { text-align: center; margin-bottom: 40px; }
.kf-sec__head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.kf-sec__head p { color: #6A6293; margin-top: 12px; font-size: 16.5px; }

/* Categorías */
.kf-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.kf-cat {
  border-radius: 26px; padding: 22px; text-decoration: none; color: inherit;
  display: block; transition: transform .2s ease, box-shadow .2s ease;
}
.kf-cat:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(76,44,145,.12); }
.kf-cat:nth-child(4n+1) { background: var(--kf-lavender); }
.kf-cat:nth-child(4n+2) { background: #DDF1FC; }
.kf-cat:nth-child(4n+3) { background: #EDE4FB; }
.kf-cat:nth-child(4n+4) { background: #F6E9FD; }
.kf-cat__img {
  aspect-ratio: 1/1; width: 100%; border-radius: 18px; object-fit: cover;
  background: rgba(255,255,255,.6); margin-bottom: 14px; display: block;
}
.kf-cat__ph {
  aspect-ratio: 1/1; border-radius: 18px; background: rgba(255,255,255,.6);
  display: grid; place-items: center; font-size: 42px; margin-bottom: 14px;
}
.kf-cat h3 { font-size: 20px; font-weight: 700; }
.kf-cat span { font-size: 14px; color: var(--kf-primary-dark); opacity: .8; }

/* Grid de productos destacados (usa las clases de WooCommerce del tema) */
.kf-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin: 0; padding: 0; list-style: none;
}
.kf-products ul.products::before,
.kf-products ul.products::after { display: none !important; }
.kf-products ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
  padding: 14px !important; text-align: center;
}
.kf-empty {
  background: #fff; border: 1px dashed var(--kf-border);
  border-radius: var(--kf-r-card); padding: 46px 24px; text-align: center;
  color: var(--kf-muted);
}

/* Nosotros */
.kf-about {
  background: #fff; border-radius: 34px; padding: 40px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 42px; align-items: center;
  box-shadow: var(--kf-shadow-card);
}
.kf-about__media { position: relative; }
.kf-about__media img,
.kf-about__ph {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 26px; background: var(--kf-lavender); display: block;
}
.kf-about__ph { display: grid; place-items: center; font-size: 60px; }
.kf-sticker {
  position: absolute; right: -14px; top: 18px; transform: rotate(-8deg);
  background: var(--kf-cyan); color: var(--kf-text);
  font-family: var(--kf-font-head); font-weight: 700; font-size: 13.5px;
  padding: 10px 16px; border-radius: 14px;
  box-shadow: 0 10px 22px rgba(76,44,145,.18);
}
.kf-stats { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.kf-stats b {
  display: block; font-family: var(--kf-font-head); font-weight: 800;
  font-size: 30px; color: var(--kf-primary);
}
.kf-stats span { font-size: 14px; color: var(--kf-muted); }

/* Mayoreo */
.kf-whole {
  border-radius: 34px; padding: 46px;
  background: linear-gradient(120deg, var(--kf-primary-dark), var(--kf-primary) 55%, var(--kf-cyan));
  color: #fff; position: relative; overflow: hidden;
}
.kf-whole::before, .kf-whole::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.kf-whole::before { width: 260px; height: 260px; right: -60px; top: -80px; }
.kf-whole::after { width: 180px; height: 180px; left: -50px; bottom: -70px; }
.kf-whole__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 38px; align-items: center; }
.kf-whole h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.kf-whole p { margin-top: 14px; font-size: 16.5px; opacity: .94; line-height: 1.6; }
.kf-whole__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.kf-perks { display: grid; gap: 12px; }
.kf-perk {
  background: rgba(255,255,255,.16); border-radius: 16px; padding: 15px 18px;
  font-size: 15px;
}
.kf-perk b { font-family: var(--kf-font-head); }

/* Testimonios */
.kf-tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kf-test {
  background: #fff; border-radius: var(--kf-r-card); padding: 26px;
  box-shadow: var(--kf-shadow-card);
}
.kf-test__stars { color: var(--kf-star); font-size: 15px; letter-spacing: 2px; }
/* La misma tarjeta se reusa en "Cómo compras", donde el renglón de arriba lleva
   un emoji en vez de estrellas: necesita más tamaño y nada de interletraje.
   (5-sep-2026, al retirar los testimonios inventados.) */
.kf-tests .kf-test__stars:not(:empty) { font-size: 26px; letter-spacing: 0; line-height: 1; }
/* Sin avatar, el nombre queda solo y no debe arrastrar el hueco de la foto. */
.kf-test__who:has(> span:only-child) { gap: 0; }
.kf-sec__pie { margin-top: 22px; text-align: center; font-size: 14.5px; color: #6A6293; }
.kf-sec__pie a { color: var(--kf-primary-dark); }
.kf-test p { margin: 12px 0 18px; font-size: 16px; color: var(--kf-text-2); line-height: 1.55; }
.kf-test__who { display: flex; align-items: center; gap: 11px; }
.kf-test__who i { width: 36px; height: 36px; border-radius: 50%; display: block; }
.kf-test__who b { font-family: var(--kf-font-head); font-size: 14.5px; }

/* CTA final */
.kf-cta {
  background: var(--kf-footer); color: #fff; border-radius: 34px;
  padding: 52px 40px; text-align: center;
}
.kf-cta h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.kf-cta p { margin: 14px auto 26px; max-width: 46em; opacity: .86; font-size: 16.5px; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .kf-hero__grid, .kf-about, .kf-whole__in { grid-template-columns: 1fr; }
  .kf-cats, .kf-products ul.products { grid-template-columns: repeat(2, 1fr); }
  .kf-tests { grid-template-columns: 1fr; }
  .kf-trust { grid-template-columns: repeat(2, 1fr); }
  .kf-trust > div:nth-child(2) { border-right: 0; }
  /* Los links del nav NO se ocultan aqui: brand.css los cambia por el menu
     hamburguesa a 900px. Ocultarlos a 1024px dejaba la franja 900-1024px
     sin ninguna navegacion visible. */
}
@media (max-width: 640px) {
  .kf-wrap { padding: 0 18px; }
  .kf-sec { padding: 52px 0; }
  .kf-hero { padding: 36px 0 48px; }
  .kf-cats, .kf-products ul.products { grid-template-columns: 1fr 1fr; gap: 14px; }
  .kf-about, .kf-whole { padding: 26px; }
  .kf-float { display: none; }
  .kf-trust { grid-template-columns: 1fr; }
  .kf-trust > div { border-right: 0; border-bottom: 1px solid var(--kf-border-card); }
}

/* ==========================================================================
   MEJORAS DE EXPERIENCIA (animacion y venta)
   ========================================================================== */

/* Mascara para la entrada linea por linea del titular */
.kf-hero h1 { overflow: hidden; }
.kf-hero h1 .kf-linea { display: block; }

/* Tarjetas de producto: la foto respira al pasar el mouse */
.kf-products ul.products li.product { overflow: hidden; }
.kf-products ul.products li.product img,
.woocommerce ul.products li.product img {
  transition: transform .55s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.kf-products ul.products li.product:hover img,
.woocommerce ul.products li.product:hover img { transform: scale(1.07); }

/* Categorias: elevacion con sombra de color */
.kf-cat { will-change: transform; }
.kf-cat:hover { box-shadow: 0 22px 44px rgba(123,106,212,.22); }
.kf-cat__ph, .kf-cat__img { transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.kf-cat:hover .kf-cat__ph, .kf-cat:hover .kf-cat__img { transform: scale(1.06) rotate(-2deg); }

/* Botones con brillo al pasar */
.kf-btn { position: relative; overflow: hidden; }
.kf-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.kf-btn:hover::after { transform: translateX(120%); }

/* Sin foto: placeholder de marca, no el icono gris de WooCommerce */
.woocommerce ul.products li.product img[src*="woocommerce-placeholder"] {
  opacity: 0; 
}
.woocommerce ul.products li.product a img[src*="woocommerce-placeholder"] {
  background: linear-gradient(135deg, var(--kf-lavender), var(--kf-sky));
  opacity: 1;
  object-fit: contain;
  padding: 22%;
}

/* ==========================================================================
   COMPONENTES v2 - portada
   ========================================================================== */
.kf-eyebrow {
  display: block; font-family: var(--kf-font-head); font-weight: 700;
  font-size: 15px; color: var(--kf-primary); margin-bottom: 8px;
  letter-spacing: .02em;
}
.kf-sec--blanca { background: var(--kf-surface); }
.kf-centro { text-align: center; margin-top: 34px; }

/* Categorias: marco cuadrado para que TODAS midan igual */
.kf-cat__marco {
  aspect-ratio: 1/1; border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.65); margin-bottom: 14px;
  display: grid; place-items: center;
}
.kf-cat__marco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-cat__ph { font-size: 46px; }

/* Hero sin foto */
.kf-hero__img--vacio { display: grid; place-items: center; font-size: 96px; }

/* Nosotros */
.kf-about__img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 26px; display: block; background: var(--kf-lavender);
}
.kf-about__txt { margin-top: 16px; color: #6A6293; font-size: 16.5px; line-height: 1.65; }
.kf-about__cta { margin-top: 26px; }

/* Badge claro sobre el banner de mayoreo */
.kf-badge--claro {
  background: rgba(255,255,255,.22) !important;
  color: #fff !important; margin-bottom: 16px;
}

/* Testimonios: nombre + rol */
.kf-test__who span { display: flex; flex-direction: column; line-height: 1.25; }
.kf-test__who em { font-style: normal; font-size: 12.5px; color: var(--kf-muted); }

/* CTA final */
.kf-cta__botones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   HERO v3 - correcciones puntuales (spec 6.1)
   ========================================================================== */

/* 2. MARQUEE arriba del todo, con desvanecido lateral para que no se corte */
.kf-marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

/* 9. ESPACIADO: columnas del hero centradas entre si, sin hueco muerto */
.kf-hero { padding: 56px 0 44px; }
.kf-hero__grid { align-items: center; }
.kf-hero__col { display: flex; flex-direction: column; justify-content: center; }
.kf-social { margin-top: 26px; }

/* 7. H1 equilibrado: sin palabra huerfana */
.kf-hero h1 {
  text-wrap: balance;
  max-width: 12ch;
  line-height: 1.02;
}
.kf-hero h1 .kf-linea { display: block; }
.kf-hero h1 em { font-style: normal; color: var(--kf-primary); }

/* 3. GLOW contenido y suave */
.kf-hero__media::before {
  inset: -6% -4% -4% -6%;
  background: radial-gradient(circle at 50% 45%, var(--kf-accent-6) 0%, var(--kf-sky) 55%, transparent 72%);
  opacity: .5;
  filter: blur(26px);
}

/* 4. FOTO que llena la tarjeta */
.kf-hero__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 36px;
  border: 8px solid #fff;
  background: #F6F3FE;
  box-shadow: var(--kf-shadow-hero);
  display: block;
}
.kf-hero__img--vacio { display: grid; place-items: center; font-size: 96px; }

/* 5. TARJETAS FLOTANTES alineadas */
.kf-float {
  line-height: 1.25;
  text-align: left;
  padding: 11px 15px;
}
.kf-float--a { left: -26px; top: 34px; bottom: auto; transform: rotate(-7deg); }
.kf-float--b { right: -22px; bottom: 54px; top: auto; transform: rotate(6deg); }

/* 6. PRUEBA SOCIAL con iniciales y chip +9 */
.kf-social__avatars i {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -12px;
  display: grid; place-items: center;
  font-family: var(--kf-font-head); font-weight: 800; font-size: 12px;
  color: #fff; font-style: normal;
}
.kf-social__avatars i:first-child { margin-left: 0; }
.kf-social__txt { line-height: 1.35; }

/* 8. FRANJA DE CONFIANZA: icono + texto a la izquierda */
.kf-trust { margin-top: 8px; }
.kf-trust > div {
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  padding: 22px 24px;
  border-right: 0;
  border-left: 1px solid #ECE6F8;
}
.kf-trust > div:first-child { border-left: 0; }
.kf-trust__ico { font-size: 28px; line-height: 1; flex: none; }
.kf-trust b { display: block; font-family: var(--kf-font-head); font-size: 15px; margin-bottom: 2px; }
.kf-trust em { font-style: normal; font-size: 13.5px; color: var(--kf-muted); }

/* 10. Carrito: sin globo cuando esta vacio */
.kf-cart-count--cero { display: none !important; }

/* Movil: una columna, imagen debajo del texto */
@media (max-width: 900px) {
  .kf-hero__grid { grid-template-columns: 1fr; }
  .kf-hero h1 { max-width: 100%; }
  .kf-hero__media { order: 2; margin-top: 26px; }
  .kf-hero__col { order: 1; }
  .kf-trust { grid-template-columns: 1fr 1fr; }
  .kf-trust > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 620px) {
  .kf-trust { grid-template-columns: 1fr; }
  .kf-trust > div { border-left: 0; border-top: 1px solid #ECE6F8; }
  .kf-trust > div:first-child { border-top: 0; }
}


/* ==== MARCO DEL HERO: recorta margenes blancos de la foto ==== */
.kf-hero__marco{position:relative;aspect-ratio:1/1;border-radius:36px;border:8px solid #fff;background:#F6F3FE;overflow:hidden;box-shadow:0 24px 60px rgba(94,77,178,.16);}
.kf-hero__marco .kf-hero__img{width:116%;height:116%;max-width:none;margin:-8% 0 0 -8%;display:block;object-fit:cover;border:0;border-radius:0;aspect-ratio:auto;background:transparent;box-shadow:none;}

/* ==========================================================================
   BLOQUES 1-4 — correcciones de alineacion, tarjetas y pie
   ========================================================================== */

/* --- 1. Categorias: cuatro tarjetas exactamente iguales ------------------ */
.kf-cats { align-items: stretch; }
.kf-cat {
  display: flex;
  flex-direction: column;
  padding: 22px;            /* mismo aire en los cuatro lados */
  height: 100%;
  text-align: left;
}
/* La foto va DIRECTO sobre el color de la tarjeta: se elimino el marco
   blanco intermedio que creaba tres cajas anidadas. */
.kf-cat__img {
  width: 100%;
  aspect-ratio: 1 / 1;      /* misma proporcion en las cuatro */
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin: 0 0 16px;
  background: rgba(255, 255, 255, .45);
}
.kf-cat__ph { display: grid; place-items: center; font-size: 54px; }
/* El texto se ancla abajo: asi los nombres quedan en la misma linea base
   aunque una categoria tenga el nombre mas largo que otra. */
.kf-cat__txt { margin-top: auto; }
.kf-cat__txt h3 { margin: 0 0 2px; }

/* --- 2. Favoritos: tarjetas de igual altura con y sin hover -------------- */
.kf-products ul.products { align-items: stretch; }
.kf-products ul.products li.product {
  display: flex;
  flex-direction: column;
  text-align: left;
  height: 100%;
}
.kf-products ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #F6F3FE;      /* las fotos recortadas en blanco no "flotan" */
  border-radius: 16px;
  margin-bottom: 12px;
}
.kf-products ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.6em;        /* reserva dos lineas: los precios se alinean */
  display: block;
}
.kf-products ul.products li.product .price { margin-top: 4px; }
/*
 * El boton SIEMPRE ocupa su sitio. Antes aparecia solo en hover y al
 * aparecer empujaba el contenido, por eso la 4a tarjeta se desalineaba.
 */
.kf-products ul.products li.product .button,
.kf-products ul.products li.product .added_to_cart {
  display: block !important;
  margin-top: auto !important;
  visibility: visible;
  opacity: 1;
  transform: none;
  position: static !important;
  width: 100%;
}
/* Boton de la seccion, fuera de la grilla y con aire propio. */
.kf-products + .kf-centro,
.kf-sec .kf-centro { margin-top: 38px; text-align: center; clear: both; }

/* --- 3. Nosotros: imagen que llena su columna y sticker montado ---------- */
.kf-about { padding: 30px; align-items: center; }
.kf-about__media { align-self: stretch; display: flex; }
.kf-about__media img,
.kf-about__ph {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
}
/* El sticker se monta SOBRE la esquina de la foto, no flota separado. */
.kf-sticker {
  right: 16px;
  top: 16px;
  transform: rotate(-5deg);
  z-index: 2;
}

/* --- 4. CTA final (solo portada) ---------------------------------------- */
/* Respiro entre la tarjeta oscura del CTA y el pie: sin esto ambos se leian
   como un unico bloque negro gigante. */
.kf-cta { padding: 52px 40px; }
.kf-landing > section:last-of-type { padding-bottom: 64px; }

/* El PIE se mudo a brand.css. Motivo: landing.css solo se encola en la portada
   (ver functions.php), asi que en Catalogo, ficha de producto, carrito y
   checkout el pie salia sin estilos — logo gigante, enlaces amontonados y fondo
   blanco. El pie es del SITIO ENTERO, luego pertenece a la capa de marca.
   Misma leccion que con el nav: cada componente vive en UN solo archivo, y el
   archivo correcto es el que se carga donde el componente aparece. */

/* --- Prueba social e iconos de confianza (spec 6.1, puntos 6 y 8) -------- */
.kf-social__avatars i {
  width: 34px; height: 34px;
  border: 2px solid #fff;
  margin-left: -12px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--kf-font-head);
  font-weight: 700;
  font-size: 11.5px;
  font-style: normal;
}
.kf-social__mas { font-weight: 800 !important; font-size: 12px !important; }
.kf-social__txt em { display: block; font-style: normal; opacity: .85; }

.kf-trust > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  padding: 20px 22px;
  border-right: 0;
  border-left: 1px solid #ECE6F8;
}
.kf-trust > div:first-child { border-left: 0; }
.kf-trust__ico { grid-row: 1 / span 2; font-size: 28px; line-height: 1; }
.kf-trust b { margin: 0; font-size: 15.5px; }
.kf-trust em { font-style: normal; font-size: 13.5px; color: #8C84AE; }

/* ==========================================================================
   NITIDEZ DE LAS FOTOS
   Las fotos de producto que subio Kairos miden 900x900. Si el hueco del hero
   se dibuja a 625 px, una pantalla retina (dpr 2) necesita 1250 px reales y el
   navegador tiene que estirar la de 900 -> se ve pixelada.
   Limitando el hueco a 460 px, el peor caso pide 920 px y la foto original
   alcanza justo. Si mas adelante Kairos sube fotos de 1600 px, se puede subir
   este tope.
   ========================================================================== */
.kf-hero__media { max-width: 460px; margin-left: auto; }
.kf-hero__marco { width: 100%; }
.kf-hero__img { image-rendering: auto; }

/* Las tarjetas de categoria y de producto no deben pasar de la mitad de la
   resolucion de origen por el mismo motivo. */
.kf-cat__img,
.kf-products ul.products li.product img { max-width: 100%; height: auto; }

@media (max-width: 900px) {
  .kf-hero__media { margin: 26px auto 0; }
}

/* --- Datos del bloque "Quiénes somos" -------------------------------------
   Reemplaza a .kf-stats en ese bloque. Motivo: el contador de landing.js anima
   `.kf-stats b` desde 0, así que durante ~1,6 s la página muestra cifras
   distintas de las verdaderas, y el separador de miles lo aplicaba JavaScript
   (con GSAP caído o con prefers-reduced-motion se leía "12000" a secas).
   Aquí los valores no son todos numéricos y no deben animarse nunca. */
.kf-datos {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.kf-datos li {
  background: var(--kf-surface-soft);
  border: 1px solid var(--kf-border-card);
  border-radius: 16px;
  padding: 12px 18px;
}
.kf-datos b {
  display: block;
  font-family: var(--kf-font-head);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.15;
  color: var(--kf-primary);
}
.kf-datos span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--kf-text-2);
}

/* Las anclas de la portada (#categorias, #nosotros, #mayoreo) aterrizaban
   debajo de la barra fija de ~82 px, dejando el titular tapado. */
[id] { scroll-margin-top: 96px; }
