/* Kairo Home — estilos del tema (se carga vía themeConfig.headTags en config/default.json) */
:root {
  --cream: #FBF2E8;
  --cream-2: #F4E9DA;
  --brown-dark: #3D2817;
  --brown: #5C3A22;
  --terracota: #B5875C;
  --terracota-deep: #A06A3F;
  --terracota-light: #D4B08B;
  --sage: #6F6A5C;
  --sage-light: #B8AF9C;
  --kh-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --kh-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Variables del sistema de diseño de EverShop (shadcn) -> paleta Kairo */
  --background: var(--cream);
  --foreground: var(--brown-dark);
  --card: #fffaf3;
  --card-foreground: var(--brown-dark);
  --popover: #fffaf3;
  --popover-foreground: var(--brown-dark);
  --primary: var(--terracota-deep);
  --primary-foreground: #fffaf3;
  --secondary: var(--cream-2);
  --secondary-foreground: var(--brown-dark);
  --muted: var(--cream-2);
  --muted-foreground: var(--sage);
  --accent: var(--cream-2);
  --accent-foreground: var(--brown-dark);
  --border: #e6d5bf;
  --input: #e6d5bf;
  --ring: var(--terracota);
  --font-sans: var(--kh-sans);
  --radius: 0.5rem;
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--brown-dark);
  font-family: var(--kh-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .kh-logo__text, .kh-footer__brand {
  font-family: var(--kh-serif);
  color: var(--brown-dark);
}
h1 em, h2 em, .kh-logo__text em, .kh-footer__brand em { color: var(--terracota-deep); font-style: italic; }
a { text-underline-offset: 3px; }

.page-width { max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Botones ---------- */
.kh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--terracota-deep); color: #fffaf3 !important;
  border: 1.5px solid var(--terracota-deep);
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--kh-sans); font-weight: 500; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.kh-btn:hover { background: var(--brown); border-color: var(--brown); transform: translateY(-1px); }
.kh-btn--outline { background: transparent; color: var(--brown-dark) !important; border-color: var(--terracota); }
.kh-btn--outline:hover { background: var(--terracota-deep); color: #fffaf3 !important; border-color: var(--terracota-deep); }
.kh-btn--small { padding: 9px 18px; font-size: 14px; }
.kh-btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.kh-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 242, 232, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.kh-header__row { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.kh-header__left { flex: 0 0 auto; }
.kh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.kh-logo img { border-radius: 50%; display: block; width: 46px; height: 46px; object-fit: cover; }
.kh-logo__text { font-size: 22px; font-weight: 600; }
.kh-nav { display: flex; align-items: center; gap: 22px; flex: 1 1 auto; font-size: 15px; }
.kh-nav a { color: var(--brown); text-decoration: none; white-space: nowrap; }
.kh-nav a:hover { color: var(--terracota-deep); }
.kh-nav__area { display: flex; gap: 22px; align-items: center; }
.kh-header__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.kh-header__right a, .kh-header__right button { color: var(--brown-dark); }
@media (max-width: 760px) {
  .kh-header__row { gap: 10px; flex-wrap: wrap; }
  .kh-logo__text { font-size: 19px; }
  .kh-nav { order: 3; flex: 1 0 100%; gap: 16px; overflow-x: auto; padding-bottom: 2px; }
  .kh-header__wa { display: none; }
}

/* ---------- Home ---------- */
.kh-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--terracota-deep); margin-bottom: 14px; }
.kh-lead { font-size: 18px; line-height: 1.65; color: var(--brown); max-width: 34em; }

.kh-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.kh-hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.1; font-weight: 500; margin: 0 0 20px; }
.kh-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.kh-hero__visual { position: relative; }
.kh-hero__circle { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin: 0 auto; }
.kh-hero__circle img { width: 100%; height: auto; display: block; border-radius: 50%; box-shadow: 0 20px 50px rgba(61, 40, 23, .18); }
@media (max-width: 860px) {
  .kh-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; text-align: center; }
  .kh-lead { margin-left: auto; margin-right: auto; }
  .kh-hero__ctas { justify-content: center; }
  .kh-hero__visual { order: -1; }
  .kh-hero__circle { width: min(300px, 80%); }
}

.kh-section { padding: 56px 0; }
.kh-section__head { text-align: center; margin-bottom: 34px; }
.kh-section__head h2, .kh-why h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; margin: 0 0 10px; }
.kh-section__head p { color: var(--sage); max-width: 36em; margin: 0 auto; }

.kh-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }
.kh-cat { text-align: center; text-decoration: none; color: var(--brown-dark); }
.kh-cat__photo { width: 100%; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--cream-2); border: 1px solid var(--border); margin-bottom: 14px; transition: transform .3s, box-shadow .3s; }
.kh-cat:hover .kh-cat__photo { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(61, 40, 23, .3); }
.kh-cat__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-cat h3 { font-size: 22px; font-weight: 500; margin: 0; }
@media (max-width: 640px) { .kh-cats { grid-template-columns: repeat(2, 1fr); gap: 16px; } .kh-cat h3 { font-size: 17px; } }

.kh-story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; }
.kh-story__photo img { width: 100%; height: auto; border-radius: 24px; display: block; }
.kh-story__text h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; margin: 0 0 16px; }
.kh-story__text p { line-height: 1.7; color: var(--brown); margin-bottom: 14px; }
@media (max-width: 760px) { .kh-story { grid-template-columns: 1fr; gap: 24px; } }

.kh-why { background: var(--brown-dark); color: var(--cream); padding: 56px 24px; margin: 24px calc(50% - 50vw); text-align: center; }
.kh-why h2 { color: var(--cream); margin-bottom: 30px; }
.kh-why__row { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.kh-why__item h3 { color: var(--terracota-light); font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.kh-why__item p { color: rgba(251, 242, 232, .82); line-height: 1.6; margin: 0; }
@media (max-width: 760px) { .kh-why__row { grid-template-columns: 1fr; gap: 22px; } }

.kh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.kh-step__num { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-family: var(--kh-serif); font-size: 22px; background: var(--cream-2); border: 1.5px solid var(--terracota); color: var(--terracota-deep); }
.kh-step h3 { font-size: 21px; font-weight: 500; margin: 0 0 6px; }
.kh-step p { color: var(--brown); margin: 0; line-height: 1.55; }
@media (max-width: 760px) { .kh-steps { grid-template-columns: 1fr; } }

.kh-closing { text-align: center; padding: 64px 20px; background: var(--cream-2); border-radius: 28px; margin: 24px 0; }
.kh-closing h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; margin: 0 0 12px; }
.kh-closing p { color: var(--brown); margin-bottom: 24px; }

.kh-hero__badge { position: absolute; bottom: 4%; right: 6%; width: 92px; height: 92px; border-radius: 50%; background: var(--brown-dark); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--kh-serif); font-size: 12px; line-height: 1.3; transform: rotate(-8deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.kh-hero__badge strong { font-size: 18px; font-weight: 600; }

.kh-why__item svg { display: block; margin-left: auto; margin-right: auto; width: 30px; height: 30px; fill: none; stroke: var(--terracota-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

.kh-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.kh-product { display: block; text-decoration: none; color: var(--brown-dark); background: #fffaf3; border: 1px solid var(--border); border-radius: 18px 18px 8px 8px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.kh-product:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -14px rgba(61, 40, 23, .25); }
.kh-product__photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #EFE2D0, #DCC6A8); display: flex; align-items: center; justify-content: center; color: var(--brown); font-size: 13px; border-bottom: 1px solid var(--border); }
.kh-product__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-product__info { padding: 16px 18px 20px; }
.kh-product__info h3 { font-size: 19px; font-weight: 500; margin: 0 0 4px; }
.kh-product__price { color: var(--terracota-deep); font-weight: 500; margin: 0; }
.kh-product__price s { color: var(--sage); font-weight: 400; margin-right: 6px; }
.kh-product__out { display: inline-block; margin-top: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.kh-catalog__all { text-align: center; margin-top: 30px; }
@media (max-width: 640px) { .kh-products { grid-template-columns: repeat(2, 1fr); gap: 14px; } .kh-product__info { padding: 12px 12px 16px; } .kh-product__info h3 { font-size: 16px; } }

/* ---------- Producto ---------- */
.kh-product-wa { margin-top: 14px; }
.kh-product-wa p { font-size: 13px; color: var(--sage); margin-top: 8px; text-align: center; }

/* ---------- Footer ---------- */
.kh-footer { margin-top: 56px; background: var(--brown-dark); color: var(--cream); padding: 48px 0 20px; }
.kh-footer a { color: var(--terracota-light); text-decoration: none; }
.kh-footer a:hover { color: var(--cream); text-decoration: underline; }
.kh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.kh-footer__brand { font-size: 26px; margin: 0 0 6px; color: var(--cream) !important; display: flex; align-items: center; gap: 12px; }
.kh-footer__brand img { border-radius: 50%; width: 44px; height: 44px; }
.kh-footer__tag { color: rgba(251, 242, 232, .75); max-width: 22em; line-height: 1.55; }
.kh-footer h4 { font-family: var(--kh-sans); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--sage-light) !important; margin-bottom: 12px; }
.kh-footer p { margin: 0 0 8px; }
.kh-footer__bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(251, 242, 232, .15); font-size: 13px; color: rgba(251, 242, 232, .6); }
@media (max-width: 760px) { .kh-footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.kh-wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff !important; text-decoration: none;
  padding: 12px 16px; border-radius: 999px; font-weight: 500; font-size: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.kh-wa-float:hover { background: #1ebe5b; }
@media (max-width: 640px) { .kh-wa-float span { display: none; } .kh-wa-float { padding: 14px; } }

/* ---------- Hogar en Armonía (puente con el app) ---------- */
.kh-appbanner { background: var(--cream-2); border-radius: 28px; padding: 52px 28px; margin: 24px 0; text-align: center; }
.kh-appbanner h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; margin: 0 0 12px; }
.kh-appbanner p { color: var(--brown); max-width: 38em; margin: 0 auto 22px; line-height: 1.65; }
.kh-appbanner .kh-hero__ctas { justify-content: center; margin-top: 0; }

.kh-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kh-feature { background: #fffaf3; border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px 24px; }
.kh-feature h3 { font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.kh-feature p { color: var(--brown); line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .kh-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kh-features { grid-template-columns: 1fr; } }

.kh-plan { max-width: 460px; margin: 0 auto; background: #fffaf3; border: 1px solid var(--border); border-radius: 24px; padding: 34px 30px; text-align: center; box-shadow: 0 16px 36px -20px rgba(61, 40, 23, .3); }
.kh-plan h3 { font-size: 26px; font-weight: 500; margin: 0 0 4px; }
.kh-plan__desc { color: var(--sage); margin: 0 0 14px; }
.kh-plan__price { font-family: var(--kh-serif); font-size: 40px; color: var(--terracota-deep); margin: 0; }
.kh-plan__price span { font-size: .55em; color: var(--sage); }
.kh-plan__alt { color: var(--brown); margin: 6px 0 22px; }

.kh-armonia-shop__cta { margin-top: 30px; }
.kh-armonia-shop__cta .kh-btn { background: var(--cream); color: var(--brown-dark) !important; border-color: var(--cream); }

/* ---------- Banner del app en el checkout ---------- */
.kh-checkout-app { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 18px 22px; background: var(--cream-2); border: 1px solid var(--border); border-radius: 18px; }
.kh-checkout-app strong { font-family: var(--kh-serif); font-size: 19px; font-weight: 500; color: var(--brown-dark); }
.kh-checkout-app p { margin: 4px 0 0; color: var(--brown); font-size: 14px; line-height: 1.55; }
.kh-checkout-app .kh-btn { flex: 0 0 auto; }
@media (max-width: 560px) { .kh-checkout-app { flex-direction: column; align-items: flex-start; } }
