/* =========================================================
   KOTÉ — Blog template styles
   ---------------------------------------------------------
   Palette sampled directly from cafekote.com/cafe-mexicano
   (pixel-picked, not guessed): warm near-black espresso,
   two alternating cream tones, and one rust/terracotta accent
   used consistently for every CTA and heading kicker.
   ========================================================= */

:root{
  /* --- Color (sampled from the real site) --- */
  --ink:          #201008;   /* nav / hero / ticker / footer — near-black espresso */
  --ink-soft:     #4A3222;   /* secondary text on light bg */
  --muted:        #7A6857;   /* tertiary / meta text */
  --cream:        #F8F2E6;   /* lighter page-section background */
  --cream-soft:   #F1E7D6;   /* alternate (deeper tan) section background */
  --accent:       #C05A2C;   /* rust/terracotta — every CTA, kicker heading, link */
  --accent-dark:  #9C4620;   /* accent hover/active */
  --accent-soft:  #F5DBC8;   /* accent tints (badges, tag chips) */
  --line:         #E7D9C4;   /* hairlines, borders */
  --white:        #FFFFFF;
  --shadow: 0 12px 28px -12px rgba(32,16,8,.20);

  /* --- Type --- */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.kote-blog-index{
  margin:0;
  font-family:var(--font-body);
  background:var(--cream);
  color:var(--ink-soft);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
.container{max-width:1180px;margin:0 auto;padding:0 24px}
h1,h2,h3{font-family:var(--font-display);color:var(--ink);line-height:1.15;margin:0;letter-spacing:-.01em}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}

/* ---------- Buttons — one CTA color throughout, as on the real site ---------- */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 22px;border-radius:999px;
  font-weight:600;font-size:15px;border:1px solid transparent;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg{width:16px;height:16px}
.btn--accent{background:var(--accent);color:var(--white)}
.btn--accent:hover{background:var(--accent-dark);transform:translateY(-1px)}
.btn--outline{background:transparent;color:var(--white);border-color:rgba(255,255,255,.35)}
.btn--outline:hover{background:rgba(255,255,255,.1)}
.btn--sm{padding:10px 18px;font-size:14px}

/* ---------- Nav — dark, matching the real site's header ---------- */
.nav{
  position:sticky;top:0;z-index:40;
  background:var(--ink);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav .container{display:flex;align-items:center;justify-content:space-between;height:76px}
.brand{display:flex;align-items:center;gap:9px}
.brand-mark{
  width:32px;height:32px;border-radius:9px;
  background:var(--accent);color:var(--white);
  display:flex;align-items:center;justify-content:center;
}
.brand-mark svg{width:18px;height:18px}
.brand-word{font-family:var(--font-display);font-weight:700;font-size:21px;color:var(--cream);letter-spacing:.02em}
.nav-links{display:flex;align-items:center;gap:30px}
.nav-links a{font-size:15px;font-weight:500;color:rgba(248,242,230,.75);position:relative;padding:4px 0}
.nav-links a:hover,.nav-links a.is-active{color:var(--cream)}
.nav-links a.is-active::after{
  content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;background:var(--accent);border-radius:2px;
}
.nav-actions{display:flex;align-items:center;gap:16px}
.nav-toggle{display:none;background:none;border:0;color:var(--cream);padding:6px}
.nav-toggle svg{width:24px;height:24px}
.nav-toggle .x{display:none}
.nav-toggle.is-open .bars{display:none}
.nav-toggle.is-open .x{display:block}

.mobile-menu{
  display:none;flex-direction:column;gap:2px;
  background:var(--ink);border-bottom:1px solid rgba(255,255,255,.08);
  padding:10px 24px 20px;
}
.mobile-menu a{padding:12px 4px;border-bottom:1px solid rgba(255,255,255,.08);font-weight:500;color:rgba(248,242,230,.8)}
.mobile-menu .btn{margin-top:14px;justify-content:center}
.mobile-menu.is-open{display:flex; }




@media (max-width:1033px){
  .nav-links{display:none}
  .nav-actions .btn--sm{display:none}
  .nav-toggle{display:inline-flex}
  .mobile-menu.is-open {position:fixed; z-index:999;width: 50%;right: 0px;}
}

@media (max-width:700px){
.mobile-menu.is-open {width: 100%;}

}
/* ---------- Hero ---------- */
.blog-hero{position:relative;padding:76px 0 40px;overflow:hidden;text-align:center;background:var(--cream)}
.blog-hero-bg{position:absolute;inset:0;z-index:0;pointer-events:none}
.blog-hero-bg .glow{/*
  position:absolute;top:-160px;left:50%;translate:-50% 0;
  width:640px;height:420px;border-radius:50%;
  background:radial-gradient(closest-side, rgba(192,90,44,.16), transparent 75%);
  filter:blur(6px);*/
}
/* subtle nod to KOTÉ's "grecas" heritage motif */
.blog-hero-bg .greca{
  /*position:absolute;inset:0;opacity:.6;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:34px 34px;
  mask-image:radial-gradient(ellipse 60% 50% at 50% 0%, black 40%, transparent 80%);*/
}
.blog-hero .container{position:relative;z-index:1}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:14px;font-weight:600;color:var(--accent-dark);
  background:var(--accent-soft);border:1px solid rgba(192,90,44,.25);
  padding:7px 16px;border-radius:999px;margin-bottom:22px;
}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.eyebrow--light{background:rgba(255,255,255,.12);color:var(--white);border-color:rgba(255,255,255,.22)}
.eyebrow--light .dot{background:var(--accent)}

.blog-hero h1{font-size:clamp(32px,4.6vw,50px);font-weight:600;max-width:760px;margin:0 auto 18px}
.blog-hero .sub{max-width:560px;margin:0 auto 34px;font-size:17px;line-height:1.6;color:var(--muted)}

.blog-search{max-width:480px;margin:0 auto 26px;position:relative}
.blog-search .ico{position:absolute;left:18px;top:50%;translate:0 -50%;color:var(--muted)}
.blog-search .ico svg{width:18px;height:18px}
.blog-search input{
  width:100%;padding:15px 20px 15px 48px;border-radius:999px;
  border:1px solid var(--line);background:var(--white);
  font-size:15px;color:var(--ink);box-shadow:var(--shadow);
}
.blog-search input:focus{outline:2px solid var(--accent);outline-offset:1px}

.filters{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.chip{
  padding:9px 18px;border-radius:999px;border:1px solid var(--line);
  background:var(--white);color:var(--ink-soft);font-size:14px;font-weight:500;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover{border-color:var(--accent)}
.chip.is-active{background:var(--ink);color:var(--cream);border-color:var(--ink)}

/* ---------- Sections ----------
   Your homepage alternates two cream tones between distinct
   marketing blocks — a listing page is one continuous feed
   instead, so it stays on the single lighter cream throughout;
   --cream-soft is used for smaller UI tints (tags, chips) below. */
.section{padding:56px 0;background:var(--cream)}

/* ---------- Covers ---------- */
.cover{
  position:relative;display:block;overflow:hidden;border-radius:var(--radius-sm);
  background:linear-gradient(135deg,#3A2416,var(--ink));
}
.cover .texture{
  position:absolute;inset:0;opacity:.3;
  background-image:repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 16px);
}
.cover .glyph{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(245,219,200,.55);
}
.cover .glyph svg{width:44px;height:44px}
.cover .cat-pill{
  position:absolute;top:14px;left:14px;z-index:2;
  background:rgba(248,242,230,.95);color:var(--ink);
  font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:999px;
}
/* placeholder cover treatments per category — swap for real photos when ready */
.cover--prep{background:linear-gradient(135deg,#6B4022,var(--ink))}
.cover--origen{background:linear-gradient(135deg,var(--accent),#7A3A1C)}
.cover--recetas{background:linear-gradient(135deg,#8A4A26,#3A2113)}
.cover--airbnb{background:linear-gradient(135deg,#57331E,var(--ink))}
.cover--vida{background:linear-gradient(135deg,#C05A2C,#4A2A16)}

/* ---------- Featured article ---------- */
.featured-card{
  display:grid;grid-template-columns:1.1fr 1fr;gap:0;
  background:var(--white);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);border:1px solid var(--line);
}
.featured-card .cover{border-radius:0;min-height:320px}
.featured-body{padding:38px 42px;display:flex;flex-direction:column;justify-content:center}
.tag-row{display:flex;gap:8px;margin-bottom:14px}
.tag{font-size:12.5px;font-weight:600;padding:5px 12px;border-radius:999px;background:var(--cream-soft);color:var(--ink-soft)}
.tag--featured{background:var(--accent-soft);color:var(--accent-dark)}
.featured-body h2{font-size:clamp(22px,2.6vw,30px);font-weight:600;margin-bottom:12px}
.featured-body h2 a:hover{color:var(--accent)}
.excerpt{color:var(--muted);font-size:15px;line-height:1.65;margin:0 0 20px}
.meta{display:flex;align-items:center;gap:10px;margin-bottom:22px;font-size:13.5px;color:var(--muted)}
.avatar{
  width:26px;height:26px;border-radius:50%;background:var(--accent);color:var(--white);
  display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;
}
.who b{color:var(--ink-soft);font-weight:600}
.read{display:flex;align-items:center;gap:5px}
.read svg{width:14px;height:14px}

@media (max-width:820px){
  .featured-card{grid-template-columns:1fr}
  .featured-card .cover{min-height:220px}
  .featured-body{padding:28px 26px}
}

/* ---------- Grid ---------- */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.post-card{
  background:var(--white);border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);box-shadow:0 6px 18px -12px rgba(32,16,8,.16);
  transition:transform .18s ease, box-shadow .18s ease;
}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.post-card .cover{border-radius:0;aspect-ratio:16/10}
.post-body{padding:22px 22px 24px}
.post-body h3{font-size:18px;font-weight:600;margin-bottom:9px;line-height:1.35}
.post-body h3 a:hover{color:var(--accent)}
.post-body .excerpt{font-size:14px;margin-bottom:16px}
.post-card.is-hidden{display:none}

@media (max-width:980px){.post-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.post-grid{grid-template-columns:1fr}}

/* ---------- Pagination ---------- */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:40px}
.pagination .page-numbers{
  min-width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  border-radius:10px;border:1px solid var(--line);background:var(--white);
  font-size:14px;font-weight:600;color:var(--ink-soft);padding:0 12px;
}
.pagination .page-numbers.current{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.pagination .page-numbers:hover:not(.current){border-color:var(--accent)}

/* ---------- Newsletter ---------- */
.newsletter{padding:20px 0 64px;background:var(--cream) !important}
.news-box{
  position:relative;overflow:hidden;text-align:center;
  background:var(--ink);border-radius:24px;padding:56px 32px;color:var(--cream);
}
.news-box .glow{
  position:absolute;top:-120px;right:-80px;width:360px;height:360px;border-radius:50%;
  background:radial-gradient(closest-side, rgba(192,90,44,.4), transparent 70%);
}
.news-box h2{color:var(--cream);font-size:clamp(24px,3vw,34px);font-weight:600;margin:18px auto 12px;max-width:520px}
.news-box p{color:rgba(248,242,230,.65);max-width:460px;margin:0 auto 28px;font-size:15px;line-height:1.6}
.news-form{display:flex;gap:10px;max-width:420px;margin:0 auto;position:relative;z-index:1}
.news-form input{
  flex:1;padding:14px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.07);color:var(--cream);font-size:15px;
}
.news-form input::placeholder{color:rgba(248,242,230,.45)}
.news-form input:focus{outline:2px solid var(--accent);outline-offset:1px}
.news-box small{display:block;margin-top:14px;color:rgba(248,242,230,.45);font-size:13px;position:relative;z-index:1}
@media (max-width:520px){.news-form{flex-direction:column}}

/* ---------- Greca divider — matches the small bracket motif on the real site ---------- */
.greca-divider{
  display:flex;justify-content:center;gap:14px;flex-wrap:wrap;
  padding:0 24px 8px;background:var(--cream);
}
.greca-divider span{
  width:14px;height:14px;flex-shrink:0;
  border:2px solid var(--line);border-radius:3px;
  opacity:.8;
}

/* ---------- Footer ---------- */
footer{background:var(--ink);color:rgba(248,242,230,.7);padding:60px 0 28px}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:36px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,.1)}
.foot-brand .brand-word{color:var(--cream)}
.foot-brand p{margin-top:14px;font-size:14px;line-height:1.65;color:rgba(248,242,230,.5);max-width:280px}
.foot-col h4{color:var(--cream);font-size:15px;font-weight:600;margin-bottom:16px;font-family:var(--font-body)}
.foot-col a,.contact-item{display:flex;align-items:center;gap:8px;color:rgba(248,242,230,.6);font-size:14.5px;padding:6px 0}
.foot-col a:hover,.contact-item:hover{color:var(--cream)}
.contact-item svg{width:16px;height:16px;flex-shrink:0}
.foot-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-top:22px;font-size:13.5px;color:rgba(248,242,230,.4)}
.foot-bottom a{color:rgba(248,242,230,.55)}
.foot-bottom a:hover{color:var(--cream)}

@media (max-width:820px){.foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.foot-grid{grid-template-columns:1fr}}

/* ---------- Reveal-on-scroll (single, restrained pass) ---------- */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease, transform .5s ease}
.reveal.is-visible{opacity:1;transform:none}




/* =========================================================
   SINGLE POST (single.php)
========================================================= */
.progress-bar{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--primary),var(--green));z-index:200;transition:width .1s linear}
.article-hero{padding-top:calc(var(--nav-h) + clamp(36px,5vw,60px))}
.article-head{max-width:var(--container-narrow);margin-inline:auto;text-align:center}
.article-head .tag-row{display:flex;justify-content:center;gap:10px;margin-bottom:20px}
.article-head h1{font-size:clamp(32px,4.6vw,52px);font-weight:900;letter-spacing:-.03em;line-height:1.12; float:none; max-width:960px; margin-left:auto; margin-right:auto}
.article-head .lead{font-size:clamp(17px,1.8vw,21px);color:var(--text-muted);margin-top:20px}
.article-head .meta{justify-content:center;margin-top:28px}
.article-head .meta .read{margin-left:0}
.article-cover{max-width:1000px;margin:clamp(32px,4vw,48px) auto 0;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow);aspect-ratio:21/9;position:relative}
.article-cover .glyph svg{width:180px;height:180px}

/* Contenido tipográfico (prose) */
.prose{max-width:var(--container-narrow);margin:clamp(40px,5vw,60px) auto 0;font-size:18px;color:var(--text-2);line-height:1.75}
.prose>*+*{margin-top:1.35em}
.prose h2{font-size:clamp(24px,3vw,32px);font-weight:800;letter-spacing:-.02em;color:var(--text);margin-top:1.8em;line-height:1.25}
.prose h3{font-size:clamp(20px,2.3vw,24px);font-weight:700;color:var(--text);margin-top:1.6em}
.prose p{margin-top:1.1em}
.prose a{color:var(--primary);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.prose a:hover{color:var(--primary-dark)}
.prose strong{color:var(--text);font-weight:700}
.prose ul,.prose ol{margin-top:1.1em;padding-left:0em;display:flex;flex-direction:column;gap:.6em}
.prose ul li{list-style:none;position:relative;padding-left:1.6em}
.prose ul li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;border-radius:3px;background:var(--accent-dark)}
.prose ol{list-style:decimal;padding-left:1.6em}
/*.prose ol li{padding-left:.3em}*/
.prose blockquote{margin-top:1.4em;padding:6px 0 6px 26px;border-left:4px solid var(--primary);font-size:20px;font-weight:500;color:var(--text);font-style:normal}
.prose img{border-radius:var(--radius);box-shadow:var(--shadow);margin-block:1.6em}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:var(--surface-2);padding:.15em .4em;border-radius:6px;color:var(--primary-dark)}
.prose pre{background:#0b1220;color:#e2e8f0;padding:20px;border-radius:var(--radius);overflow:auto;font-size:14.5px;line-height:1.6}
.prose pre code{background:none;padding:0;color:inherit}
.prose hr{border:none;border-top:1px solid var(--border);margin-block:2em}

/* Compartir + autor */
.article-foot{max-width:var(--container-narrow);margin:44px auto 0}
.share{display:flex;align-items:center;gap:12px;padding-top:28px;border-top:1px solid var(--border);flex-wrap:wrap}
.share span{font-weight:700;font-size:14px;color:var(--text-muted)}
.share a{width:42px;height:42px;border-radius:12px;background:var(--surface);border:1px solid var(--border);display:grid;place-items:center;color:var(--text-2);transition:transform .2s var(--ease),background .2s ease,color .2s ease}
.share a:hover{transform:translateY(-3px);background:var(--primary);color:#fff;border-color:var(--primary)}
.share a svg{width:18px;height:18px}
.author-box{display:flex;gap:18px;align-items:flex-start;margin-top:36px;padding:26px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}
.author-box .avatar{width:60px;height:60px;font-size:20px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;flex:none;background:linear-gradient(135deg,var(--primary),#5b86fb)}
.author-box h4{font-size:17px;font-weight:800}
.author-box .role{color:var(--primary);font-size:13.5px;font-weight:600;margin-top:2px}
.author-box p{color:var(--text-muted);font-size:14.5px;margin-top:10px;line-height:1.55}

/* Relacionados */
.related{margin-top:clamp(48px,6vw,72px)}
.related h2{font-size:clamp(24px,3vw,32px);font-weight:800;text-align:center;letter-spacing:-.02em}
.related .post-grid{margin-top:36px}


/* ---------------- SCROLL REVEAL ---------------- */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal.in{opacity:1;transform:none}
.reveal[data-delay="1"]{transition-delay:.07s}
.reveal[data-delay="2"]{transition-delay:.14s}
.reveal[data-delay="3"]{transition-delay:.21s}
.reveal[data-delay="4"]{transition-delay:.28s}
.reveal[data-delay="5"]{transition-delay:.35s}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width:900px){
  .featured-card{grid-template-columns:1fr}
  .featured-card .cover{min-height:220px}
  .post-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:620px){
  body{font-size:16px}
  .container{padding-inline:18px}
  .post-grid{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1/-1}
  .foot-bottom{flex-direction:column;text-align:center}
}
@media (max-width:380px){.foot-grid{grid-template-columns:1fr}}

/* WordPress admin bar */
.admin-bar .nav{top:32px}
.admin-bar .progress-bar{top:32px}
@media screen and (max-width:782px){.admin-bar .nav{top:46px}.admin-bar .progress-bar{top:46px}}
@media screen and (max-width:600px){.admin-bar .nav{top:0}.admin-bar .progress-bar{top:0}}
.admin-bar .mobile-menu{top:calc(var(--nav-h) + 32px)}
@media screen and (max-width:782px){.admin-bar .mobile-menu{top:calc(var(--nav-h) + 46px)}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none}
}
