/*
Theme Name: Kimaré Theme
Theme URI: https://kimare.co
Author: Kimaré S.A.S.
Author URI: https://kimare.co
Description: Tema FSE minimalista brutalista del ecosistema Kimaré, optimizado para Bento Grid, modo oscuro/claro y conversión de fricción cero.
Version: 3.0.1
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kimare-theme
*/

:root{
  --kimare-font:"Sora",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --kimare-bg:#0d0e11;
  --kimare-surface:#16181d;
  --kimare-surface-strong:#1d2026;
  --kimare-border:#23262f;
  --kimare-text:#f6f7f9;
  --kimare-muted:#9ca0aa;
  --kimare-orange:#ec4e20;
  --kimare-violet:#7952f5;
  --kimare-radius:20px;
  --kimare-shadow:0 24px 80px rgba(0,0,0,.24);
  --kimare-header-h:72px;
  color-scheme:dark;
}

html[data-kimare-theme="light"]{
  --kimare-bg:#f4f4f1;
  --kimare-surface:#ffffff;
  --kimare-surface-strong:#f0f0ed;
  --kimare-border:#d8d9dc;
  --kimare-text:#0d0e11;
  --kimare-muted:#666a72;
  --kimare-shadow:0 24px 70px rgba(13,14,17,.10);
  color-scheme:light;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--kimare-bg)}
body{margin:0;background:var(--kimare-bg);color:var(--kimare-text);font-family:var(--kimare-font);font-optical-sizing:auto;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;transition:background-color .2s ease,color .2s ease}
button,input,select,textarea{font:inherit}
a{color:inherit;text-underline-offset:.18em}
img{max-width:100%;height:auto}
::selection{background:var(--kimare-orange);color:#fff}

.kimare-site-shell{min-height:100dvh;overflow:clip}

/* Cabecera pill */
.kimare-header-wrap{position:sticky;top:12px;z-index:900;margin-top:12px;pointer-events:none}
.admin-bar .kimare-header-wrap{top:44px}
.kimare-header-pill{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:var(--kimare-header-h);padding:10px 12px 10px 18px;border:1px solid color-mix(in srgb,var(--kimare-border) 90%,transparent);border-radius:999px;background:color-mix(in srgb,var(--kimare-surface) 86%,transparent);box-shadow:0 10px 40px rgba(0,0,0,.10);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:transform .2s ease,background .2s ease,border-color .2s ease}
.kimare-header-pill.is-compact{transform:translateY(-3px)}
.kimare-header-pill .wp-block-site-logo img{display:block;max-height:38px;width:auto}
.kimare-header-pill .wp-block-site-title{font-weight:750;letter-spacing:-.04em}
.kimare-header-pill .wp-block-navigation{font-size:.88rem;font-weight:650}
.kimare-header-actions{display:flex;align-items:center;gap:8px}
.kimare-theme-toggle,.kimare-pill-cta{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:1px solid var(--kimare-border);border-radius:999px;padding:0 16px;background:var(--kimare-surface-strong);color:var(--kimare-text);font-weight:750;text-decoration:none;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.kimare-theme-toggle{width:46px;padding:0;font-size:0}.kimare-theme-toggle::before{content:"◐";font-size:17px}
.kimare-pill-cta{border-color:var(--kimare-orange);background:var(--kimare-orange);color:#fff}
.kimare-theme-toggle:hover,.kimare-pill-cta:hover{transform:translateY(-1px)}

/* Bento */
.kimare-bento-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(12px,1.6vw,22px)}
.kimare-bento-card{position:relative;overflow:hidden;border:1px solid var(--kimare-border);border-radius:var(--kimare-radius);background:var(--kimare-surface);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.kimare-bento-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--kimare-orange) 50%,var(--kimare-border));box-shadow:var(--kimare-shadow)}
.kimare-prose{max-width:780px}

/* Footer */
.kimare-footer{margin-top:clamp(72px,10vw,150px);border-top:1px solid var(--kimare-border);background:var(--kimare-bg)}
.kimare-footer-cta{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;padding-top:clamp(56px,8vw,100px);padding-bottom:clamp(48px,7vw,84px)}
.kimare-footer-cta h2{max-width:11ch;margin:0;font-size:clamp(2.6rem,7vw,7rem);line-height:.88;letter-spacing:-.065em}
.kimare-footer-cta p{max-width:560px;color:var(--kimare-muted)}
.kimare-footer-main{display:grid;grid-template-columns:minmax(220px,1.1fr) 2fr;gap:48px;padding:38px 0;border-top:1px solid var(--kimare-border)}
.kimare-footer-brand{display:grid;gap:16px;align-content:start}.kimare-footer-brand p{margin:0;max-width:360px;color:var(--kimare-muted);font-size:.92rem}
.kimare-footer-nav .wp-block-navigation{justify-content:flex-end;gap:8px 24px;font-size:.9rem;font-weight:650}
.kimare-footer-bottom{display:flex;align-items:center;justify-content:flex-start;gap:20px;padding:22px 0 32px;border-top:1px solid var(--kimare-border);color:var(--kimare-muted);font-size:.78rem}
.kimare-footer-legal{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:.35em;line-height:1.55}.kimare-footer-made{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.28em}.kimare-footer-made strong,.kimare-footer-company{color:var(--kimare-text);font-weight:700}.kimare-footer-company a{color:inherit;text-decoration:none}.kimare-footer-company a:hover{text-decoration:underline}.kimare-heart{color:var(--kimare-orange);font-size:1.05em;line-height:1}

.wp-element-button,.wp-block-button__link{transition:transform .16s ease,box-shadow .16s ease}.wp-element-button:hover,.wp-block-button__link:hover{transform:translateY(-1px)}

@media(max-width:900px){.kimare-header-pill .wp-block-navigation{display:none}.kimare-footer-cta,.kimare-footer-main{grid-template-columns:1fr;display:grid}.kimare-footer-nav .wp-block-navigation{justify-content:flex-start}.kimare-footer-bottom{align-items:flex-start;flex-direction:column}.kimare-bento-grid{grid-template-columns:1fr}.admin-bar .kimare-header-wrap{top:58px}}
@media(max-width:600px){.kimare-header-wrap{top:8px;margin-top:8px}.kimare-header-pill{min-height:62px;padding:8px 8px 8px 14px}.kimare-pill-cta{min-height:42px;padding:0 13px;font-size:.78rem}.kimare-theme-toggle{width:42px;min-height:42px}.kimare-footer-cta h2{font-size:clamp(2.4rem,15vw,4.6rem)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}


/* ==========================================================
   Blog Kimaré — archivo editorial inspirado en catálogo +
   lectura profunda. Todo usa Sora y tokens del tema.
   ========================================================== */
.kimare-blog-main{padding-top:clamp(30px,5vw,64px);padding-bottom:clamp(70px,10vw,140px)}
.kimare-blog-section{margin-top:clamp(52px,8vw,100px)}
.kimare-blog-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}
.kimare-blog-section-head h2{margin:0;font-size:clamp(2rem,4.5vw,4.8rem);letter-spacing:-.055em}
.kimare-blog-section-head p{max-width:520px;margin:0;color:var(--kimare-muted);font-size:.92rem;line-height:1.6}

/* Archive / Search cards built with Core Query blocks. */
.kimare-query-grid .wp-block-post-template{gap:20px}
.kimare-query-card{height:100%;overflow:hidden;border:1px solid var(--kimare-border);border-radius:20px;background:var(--kimare-surface);transition:transform .2s ease,border-color .2s ease}
.kimare-query-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--kimare-orange) 42%,var(--kimare-border))}
.kimare-query-card .wp-block-post-featured-image{margin:0;aspect-ratio:16/9;overflow:hidden;background:#111318}
.kimare-query-card .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover}
.kimare-query-card__body{padding:20px}
.kimare-query-card .wp-block-post-date,.kimare-query-card .wp-block-post-terms{color:var(--kimare-muted);font-size:.72rem}
.kimare-query-card .wp-block-post-title{margin:10px 0;font-size:clamp(1.15rem,2vw,1.55rem);line-height:1.08;letter-spacing:-.035em}
.kimare-query-card .wp-block-post-title a{text-decoration:none}
.kimare-query-card .wp-block-post-excerpt{color:var(--kimare-muted);font-size:.84rem;line-height:1.55}

/* Single post. */
.kimare-single-article{padding-top:clamp(52px,8vw,110px);padding-bottom:clamp(64px,9vw,120px)}
.kimare-post-hero{display:grid;gap:18px;padding-bottom:clamp(34px,6vw,72px)}
.kimare-post-hero .taxonomy-category a{display:inline-flex;padding:8px 12px;border:1px solid var(--kimare-border);border-radius:999px;color:var(--kimare-orange);font-size:.7rem;font-weight:800;text-decoration:none;text-transform:uppercase;letter-spacing:.08em}
.kimare-post-title{max-width:1150px;margin:0!important;font-size:clamp(2.7rem,7vw,7.4rem)!important;line-height:.91!important;letter-spacing:-.068em!important;text-wrap:balance}
.kimare-post-subtitle{max-width:820px;margin:0;color:var(--kimare-muted);font-size:clamp(1.05rem,2vw,1.4rem);line-height:1.55}
.kimare-post-cover{overflow:hidden;border:1px solid var(--kimare-border);border-radius:24px;background:var(--kimare-surface)}
.kimare-post-cover img{display:block;width:100%;max-height:760px;object-fit:cover}
.kimare-post-layout{display:grid!important;grid-template-columns:minmax(180px,240px) minmax(0,780px);justify-content:center;gap:clamp(36px,6vw,86px);align-items:start;margin-top:clamp(44px,7vw,82px)}
.kimare-post-sidebar{min-width:0}
.kimare-post-content-wrap{min-width:0}
.kimare-post-content{font-size:clamp(1rem,1.1vw,1.075rem);line-height:1.82}
.kimare-post-content>*{max-width:var(--kimare-blog-readable,760px);margin-left:auto;margin-right:auto}
.kimare-post-content>h2,.kimare-post-content>h3{scroll-margin-top:130px}
.kimare-post-content h2{margin-top:clamp(50px,7vw,78px);margin-bottom:18px;font-size:clamp(1.9rem,4vw,3.3rem);line-height:1.03;letter-spacing:-.05em}
.kimare-post-content h3{margin-top:40px;margin-bottom:14px;font-size:clamp(1.35rem,2.6vw,2rem);line-height:1.08;letter-spacing:-.035em}
.kimare-post-content p{margin-top:0;margin-bottom:1.35em;color:color-mix(in srgb,var(--kimare-text) 91%,var(--kimare-muted))}
.kimare-post-content a{color:var(--kimare-orange);text-decoration-thickness:1px}
.kimare-post-content blockquote{padding:20px 24px;border-left:3px solid var(--kimare-orange);border-radius:0 16px 16px 0;background:var(--kimare-surface);font-size:1.1em}
.kimare-post-content figure{max-width:100%;margin-top:34px;margin-bottom:34px}
.kimare-post-content figure img{border-radius:18px}
.kimare-post-content figcaption{color:var(--kimare-muted);font-size:.72rem;text-align:left}
.kimare-post-content table{display:block;overflow:auto;width:100%;border-collapse:collapse;border:1px solid var(--kimare-border);border-radius:14px;background:var(--kimare-surface)}
.kimare-post-content th,.kimare-post-content td{padding:12px 14px;border-bottom:1px solid var(--kimare-border);text-align:left;white-space:normal}
.kimare-post-content th{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em}
.kimare-post-content pre{overflow:auto;padding:18px;border:1px solid var(--kimare-border);border-radius:14px;background:#090a0d}
.kimare-post-content ul,.kimare-post-content ol{padding-left:1.35em}
.kimare-post-footer-blocks{max-width:780px;margin:0 auto}
.kimare-post-related-wrap{margin-top:clamp(70px,10vw,140px)}

/* Search */
.kimare-search-hero{padding-top:clamp(60px,9vw,120px);padding-bottom:34px}.kimare-search-hero h1{margin:0;font-size:clamp(2.5rem,7vw,6rem)}
.kimare-search-form .wp-block-search__inside-wrapper{padding:6px;border:1px solid var(--kimare-border);border-radius:999px;background:var(--kimare-surface)}.kimare-search-form input{border:0!important;background:transparent!important;color:var(--kimare-text)!important}.kimare-search-form button{border-radius:999px!important}

@media(max-width:1000px){.kimare-post-layout{grid-template-columns:1fr;max-width:780px!important}.kimare-post-sidebar{order:0}.kimare-blog-section-head{align-items:start;flex-direction:column}.kimare-query-grid .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.kimare-post-title{font-size:clamp(2.5rem,13vw,4.5rem)!important}.kimare-post-cover{border-radius:18px}.kimare-query-grid .wp-block-post-template{grid-template-columns:1fr!important}.kimare-post-content{font-size:1rem;line-height:1.75}}
