/* ===================================================================
   CCO — Blog index (/blog/)
   Magazine grid that replaces Flatsome's default archive + sidebar.
   Design tokens (navy / gold / cream, Cormorant + Jost) come from
   redesign-home.css, which is always enqueued before this file.
   =================================================================== */

.cco-blog { background: var(--ivory); }

/* ---------- Hero ---------- */
.cco-blog-hero {
  background:
    radial-gradient(900px 420px at 50% -40%, rgba(184,153,104,.20), transparent 70%),
    linear-gradient(180deg, var(--green), var(--green-dark));
  color: #EDE4D2;
  padding: 54px 0 62px;
  border-bottom: 1px solid rgba(184,153,104,.28);
  text-align: center;
}
.cco-blog-hero .wrap { max-width: 900px; }

.cco-blog-crumbs {
  display: flex; justify-content: center; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #9DAAB9; margin-bottom: 26px;
}
.cco-blog-crumbs a { color: #9DAAB9; transition: color .2s; }
.cco-blog-crumbs a:hover { color: var(--gold-light); }
.cco-blog-crumbs svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.cco-blog-crumbs span[aria-current] { color: var(--gold-light); }

.cco-blog-hero .eyebrow {
  display: flex; justify-content: center; align-items: center; gap: 13px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 20px;
}
.cco-blog-hero .eyebrow::before,
.cco-blog-hero .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--rule-gold); }

.cco-blog-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.05;
  color: #fff; margin: 0 0 18px; letter-spacing: -.005em;
}
.cco-blog-hero h1 em { font-style: italic; color: var(--gold-light); }

.cco-blog-hero .lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px; line-height: 1.6; color: #B9C4D0;
  max-width: 60ch; margin: 0 auto;
}

.cco-blog-stats {
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 28px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8E9BAA;
}
.cco-blog-stats b { color: var(--gold-light); font-weight: 600; }
.cco-blog-stats .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ---------- Body ---------- */
.cco-blog-body { padding: 60px 0 84px; }

/* Featured (newest) — a wide split card that anchors page 1. */
.bfeat {
  display: grid; grid-template-columns: 1.12fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--hairline); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 56px;
}
.bfeat-media { position: relative; aspect-ratio: 4/3; background: linear-gradient(180deg, var(--ivory), var(--cream-card)); overflow: hidden; }
.bfeat-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.bfeat:hover .bfeat-media img { transform: scale(1.035); }
.bfeat-body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.bfeat-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.14;
  color: var(--ink); margin: 16px 0 14px;
}
.bfeat-body h2 a { color: inherit; transition: color .2s; }
.bfeat-body h2 a:hover { color: var(--gold-deep); }
.bfeat-body .bexc { font-size: 15px; line-height: 1.7; color: var(--mute); margin-bottom: 22px; }

/* Grid */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; }

.bcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--hairline); border-radius: 12px;
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bcard:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(22,39,62,.10); border-color: var(--rule-gold); }

/* Featured images are stock product shots at wildly different ratios (square,
   3:2, portrait). A fixed 3:2 crop plus a cream backdrop makes the grid read
   as one set; the inset shadow keeps white-background packshots from bleeding
   into the white card. */
.bcard-media { position: relative; aspect-ratio: 3/2; background: linear-gradient(180deg, var(--ivory), var(--cream-card)); overflow: hidden; }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.bcard:hover .bcard-media img { transform: scale(1.05); }
.bfeat-media::after,
.bcard-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 -70px 60px -50px rgba(22,39,62,.30), inset 0 0 0 1px rgba(22,39,62,.05);
}
.bcard-media.is-empty, .bfeat-media.is-empty { display: grid; place-items: center; }
.bcard-media.is-empty svg, .bfeat-media.is-empty svg { width: 44px; height: 44px; stroke: var(--gold); fill: none; stroke-width: 1.2; opacity: .5; }

.bchip {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(28,52,84,.92); color: var(--gold-light);
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(184,153,104,.35);
  backdrop-filter: blur(4px);
}
.bfeat .bchip { position: static; align-self: flex-start; }

.bcard-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.bcard-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600; font-size: 22px; line-height: 1.22; color: var(--ink);
  margin: 0 0 11px;
}
.bcard-body h3 a { color: inherit; transition: color .2s; }
.bcard-body h3 a:hover { color: var(--gold-deep); }

/* redesign-home.css pins every `html body a` to Jost with !important, which
   would flatten the headings back to sans the moment they became links. */
html body .bfeat-body h2 a,
html body .bcard-body h3 a {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}
.bcard-body .bexc {
  font-size: 13.5px; line-height: 1.62; color: var(--mute); margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.bmeta {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline);
}
.bmeta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); flex: none; }
.bfeat .bmeta { border-top: 0; padding-top: 0; margin-top: 0; margin-bottom: 8px; }

.bmore {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin-left: auto;
  transition: gap .2s, color .2s;
}
.bmore svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.bcard:hover .bmore, .bmore:hover { gap: 15px; color: var(--ink); }

.bfeat .bmore-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: var(--cream);
  padding: 15px 30px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s, gap .2s, transform .2s;
}
.bfeat .bmore-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.bfeat .bmore-btn:hover { background: var(--ink); gap: 16px; transform: translateY(-1px); }

/* ---------- Pagination ---------- */
.bpag { margin-top: 62px; display: flex; justify-content: center; }
.bpag .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 12px; margin: 0 4px;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  transition: .2s;
}
.bpag .page-numbers:hover { border-color: var(--gold); color: var(--gold-deep); }
.bpag .page-numbers.current { background: var(--green); border-color: var(--green); color: var(--gold-light); font-weight: 600; }
.bpag .page-numbers.dots { border: 0; }
.bpag .next, .bpag .prev { letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cco-blog-hero { padding: 40px 0 46px; }
  .bfeat { grid-template-columns: 1fr; }
  .bfeat-media { aspect-ratio: 16/9; }
  .bfeat-body { padding: 30px 26px 34px; }
  .cco-blog-body { padding: 44px 0 64px; }
}
@media (max-width: 620px) {
  .bgrid { grid-template-columns: 1fr; gap: 28px; }
  .cco-blog-hero .lead { font-size: 17px; }
  /* Once the row wraps, a separator dot is left dangling at the line end. */
  .cco-blog-stats { gap: 6px 16px; font-size: 10px; }
  .cco-blog-stats .dot { display: none; }
  .bfeat .bmore-btn { width: 100%; justify-content: center; }
  .bpag .page-numbers { min-width: 38px; height: 38px; margin: 0 2px; padding: 0 9px; }
}

/* Habanos Guide: salio del menu del header, asi que se destaca en la cabecera
   del blog, que es donde vive ahora el contenido editorial. */
.cco-blog-guide{
  display:inline-flex; align-items:center; gap:12px; margin-top:22px;
  padding:11px 18px 11px 12px; border:1px solid rgba(255,255,255,.28);
  border-radius:999px; text-decoration:none; color:inherit;
  background:rgba(255,255,255,.07); transition:.22s;
}
.cco-blog-guide:hover{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.45); }
.cco-blog-guide-tag{
  font-family:"Jost",sans-serif; font-size:10px; letter-spacing:.16em; text-transform:uppercase;
  font-weight:600; padding:4px 9px; border-radius:999px; background:var(--gold,#C6A15B); color:#16273E;
}
.cco-blog-guide-txt{ font-family:"Jost",sans-serif; font-size:13.5px; letter-spacing:.01em; }
.cco-blog-guide-txt b{ font-weight:600; }
.cco-blog-guide svg{ width:12px; height:12px; opacity:.7; flex:0 0 auto; }
@media (max-width:560px){
  .cco-blog-guide{ width:100%; justify-content:flex-start; border-radius:10px; }
  .cco-blog-guide-txt{ font-size:12.5px; }
}

/* Extras del blog nativo (Next): byline, migas de la ficha, comentarios y archivos de categoria/tag.
   Se cargan despues de 10-redesign-blog.css (que es el CSS del indice de WordPress) y solo en rutas del blog. */
.cco-blog-hero .eyebrow a { color: inherit; }
.cco-blog-empty { text-align: center; color: var(--mute); padding: 40px 0; }
.bpag a.page-numbers, .bpag span.page-numbers { text-decoration: none; }

/* ---------- Articulo ---------- */
.cco-post .entry-header-text { padding-top: 34px; }
.cco-post .cco-post-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.cco-post .cco-post-crumbs a { color: var(--mute, #6b6b6b); }
.cco-post .cco-post-crumbs a:hover { color: var(--gold-deep, #8a6d3b); }
.cco-post .cco-post-crumbs span[aria-current] { color: var(--gold-deep, #8a6d3b); }
.cco-byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--mute, #6b6b6b); margin: 6px 0 4px; }
.cco-byline .cco-by a { color: inherit; font-weight: 600; }
.cco-byline .cco-by a:hover { color: var(--gold-deep, #8a6d3b); }
.cco-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.cco-post .entry-content img { max-width: 100%; height: auto; }
.cco-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.cco-post-tags a { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(184,153,104,.5); padding: 5px 12px; border-radius: 999px; color: inherit; }
.cco-post-tags a:hover { border-color: var(--gold, #b89968); color: var(--gold-deep, #8a6d3b); }
.cco-author-box { display: flex; gap: 16px; align-items: center; margin: 30px 0; padding: 18px 20px; border: 1px solid rgba(184,153,104,.35); border-radius: 8px; background: rgba(184,153,104,.06); }
.cco-author-box .av { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--green, #14233a); color: var(--gold-light, #d9c08f); display: grid; place-items: center; font-weight: 600; letter-spacing: .04em; }
.cco-author-box p { margin: 0; font-size: 14px; line-height: 1.55; }
.cco-author-box strong { display: block; font-size: 15px; }

/* ---------- Comentarios ---------- */
.cco-post .comments-area { margin-top: 36px; }
.cco-post .comment-list, .cco-post .comment-list ul.children { list-style: none; margin-left: 0; padding-left: 0; }
.cco-post .comment-list ul.children { margin-left: 28px; border-left: 2px solid rgba(184,153,104,.35); padding-left: 16px; }
.cco-post .comment-inner { margin: 0 0 18px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.cco-post .comment-inner .fn { font-style: normal; }
.cco-post .comment-badge { display: inline-block; margin-left: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--green, #14233a); color: var(--gold-light, #d9c08f); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.cco-post .comment-respond .cco-reply-note { font-size: 13px; margin: 0 0 10px; }
.cco-post .comment-form input[type=text], .cco-post .comment-form input[type=email], .cco-post .comment-form input[type=url], .cco-post .comment-form textarea { width: 100%; max-width: 100%; }
.cco-ts-msg { font-size: 13px; color: var(--mute, #6b6b6b); }
.cco-post .comments-closed { font-size: 14px; color: var(--mute, #6b6b6b); }

/* a11y 2026-11-05: Post Comment, blanco sobre #848484 = 3.74:1 (AA pide 4.5). #6b6b6b da 5.3:1 */
#respond .form-submit input#submit { background-color: #6b6b6b; }
