/*
Theme Name:   CafePedia
Theme URI:    https://cafepedia.es
Description:  Tema completo para CafePedia.es — diseño moderno cálido optimizado para SEO y afiliados de Amazon. Tema hijo de Astra.
Author:       CafePedia
Template:     astra
Version:      1.0.1
Text Domain:  cafepedia
*/

/* ════════════════════════════════════════════════
   VARIABLES GLOBALES
════════════════════════════════════════════════ */
:root {
  --brown-dark:    #1A0F08;
  --brown-mid:     #3A1E0A;
  --brown-accent:  #8B5A2B;
  --brown-light:   #C8865A;
  --brown-pale:    #F5EDE0;
  --cream:         #F2EBE2;
  --cream-mid:     #E8D8C4;
  --text-dark:     #1C1410;
  --text-mid:      #5A4030;
  --text-muted:    #9A7860;
  --white:         #FFFFFF;
  --border:        rgba(90,64,48,0.15);
  --border-mid:    rgba(90,64,48,0.25);
  --success:       #2A6B3A;
  --warning:       #B86A1A;

  --container:     1200px;
  --container-narrow: 880px;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
}

/* ════════════════════════════════════════════════
   RESET / BASE
════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400;
  color: var(--text-dark) !important;
  background: var(--white) !important;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

/* ════════════════════════════════════════════════
   OVERRIDES ASTRA — limpiar para nuestro layout
════════════════════════════════════════════════ */
.ast-container,
.ast-page-builder-template .ast-content-area-inner { max-width: 100% !important; padding: 0 !important; }
body.home #page, body.home #content { padding: 0 !important; margin: 0 !important; }
body.home #masthead, body.home #colophon { display: none !important; }
body.home #primary { padding: 0 !important; }

/* Quitamos las molestias del astra header en el resto */
.site-content > .ast-container { max-width: var(--container) !important; padding: 0 24px !important; }

/* ════════════════════════════════════════════════
   UTILIDADES
════════════════════════════════════════════════ */
.cp-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.cp-container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.cp-divider { height: 0.5px; background: var(--border); margin: 0; }

.cp-section-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
.cp-section-label::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════════════
   HEADER + NAV
════════════════════════════════════════════════ */
.cp-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border);
}

.cp-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  height: auto;
}

.cp-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
}
.cp-logo span { color: var(--brown-accent); }
.cp-logo img,
.cp-logo .custom-logo {
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}

.cp-nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cp-nav-menu li { position: relative; }
.cp-nav-menu a {
  font-size: 13px;
  color: var(--text-mid);
  transition: color 0.2s;
  display: block;
  padding: 6px 0;
}
.cp-nav-menu a:hover,
.cp-nav-menu .current-menu-item > a { color: var(--brown-accent); }
.cp-nav-menu li.menu-item-ofertas > a { color: var(--brown-accent); font-weight: 500; }

/* Submenús */
.cp-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 8px 24px rgba(28,20,16,0.08);
}
.cp-nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cp-nav-menu .sub-menu a {
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.cp-nav-right { display: flex; align-items: center; gap: 12px; }

.cp-search-btn {
  background: none;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.cp-search-btn:hover { border-color: var(--brown-accent); color: var(--brown-accent); }

.cp-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
}

/* Menú móvil */
.cp-mobile-menu {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 0.5px solid var(--border);
  padding: 16px 24px;
  z-index: 99;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.cp-mobile-menu.is-open { display: block; }
.cp-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cp-mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 15px;
  color: var(--text-dark);
}
.cp-mobile-menu li.menu-item-ofertas a { color: var(--brown-accent); font-weight: 500; }

/* ════════════════════════════════════════════════
   HERO (portada)
════════════════════════════════════════════════ */
.cp-hero {
  background: var(--brown-dark);
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 80%, rgba(139,90,43,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cp-hero-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }
.cp-hero-eye {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.cp-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.cp-hero h1 em { color: var(--brown-light); font-style: italic; }
.cp-hero-desc {
  font-size: 16px;
  color: rgba(242,235,226,0.55);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 300;
}
.cp-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cp-hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 0.5px solid rgba(90,48,20,0.4);
  flex-wrap: wrap;
}
.cp-stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--cream);
}
.cp-stat-l {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(154,120,96,0.6);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════
   BOTONES
════════════════════════════════════════════════ */
.cp-btn-primary,
.cp-btn-secondary,
.cp-btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  text-decoration: none;
}
.cp-btn-primary {
  background: var(--brown-accent);
  color: var(--cream);
}
.cp-btn-primary:hover { background: #7A4E24; transform: translateY(-1px); color: var(--cream); }

.cp-btn-secondary {
  background: transparent;
  color: var(--brown-light);
  border: 0.5px solid rgba(200,134,90,0.35);
}
.cp-btn-secondary:hover { border-color: var(--brown-light); transform: translateY(-1px); }

.cp-btn-amazon {
  background: #FF9900;
  color: #1A0F08;
  width: 100%;
}
.cp-btn-amazon:hover { background: #E68A00; transform: translateY(-1px); color: #1A0F08; }

/* ════════════════════════════════════════════════
   SECCIONES PORTADA
════════════════════════════════════════════════ */
.cp-section { padding: 64px 0; }
.cp-section-alt { padding: 64px 0; background: var(--brown-pale); }

/* Categorías */
.cp-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.cp-cat {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
  color: inherit;
}
.cp-cat:hover { border-color: var(--brown-accent); transform: translateY(-2px); color: inherit; }
.cp-cat.is-hot { background: var(--brown-dark); border-color: var(--brown-mid); }
.cp-cat-icon { font-size: 28px; color: var(--brown-accent); margin-bottom: 12px; }
.cp-cat.is-hot .cp-cat-icon { color: #E8904A; }
.cp-cat-name { font-size: 13px; font-weight: 500; color: var(--text-dark); margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.cp-cat.is-hot .cp-cat-name { color: var(--cream); }
.cp-cat-sub { font-size: 11px; color: var(--text-muted); line-height: 1.45; }
.cp-cat.is-hot .cp-cat-sub { color: rgba(154,120,96,0.7); }

/* Marcas */
.cp-brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.cp-brand {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  text-align: center;
  background: var(--white);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: block;
  color: inherit;
}
.cp-brand:hover { border-color: var(--brown-accent); background: #FBF6F0; transform: translateY(-2px); color: inherit; }
.cp-brand-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  margin: 0 auto 8px;
}
.cp-brand-name { font-size: 12px; font-weight: 500; color: var(--text-dark); }
.cp-brand-desc { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* Featured */
.cp-featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}
.cp-feat-main {
  background: var(--brown-dark);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  color: var(--cream);
}
.cp-feat-main:hover { color: var(--cream); }
.cp-feat-tag {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}
.cp-feat-main h2 {
  font-size: 24px;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 14px;
}
.cp-feat-desc {
  font-size: 14px;
  color: rgba(242,235,226,0.5);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 22px;
}
.cp-feat-link {
  font-size: 13px;
  color: var(--brown-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: gap 0.2s;
}
.cp-feat-main:hover .cp-feat-link { gap: 10px; }
.cp-feat-side { display: flex; flex-direction: column; gap: 10px; }
.cp-feat-small {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--white);
  transition: border-color 0.2s;
  flex: 1;
  display: block;
  color: inherit;
}
.cp-feat-small:hover { border-color: var(--brown-accent); color: inherit; }
.cp-fs-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brown-accent);
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
}
.cp-fs-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
}
.cp-fs-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Productos */
.cp-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cp-prod {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.cp-prod:hover {
  transform: translateY(-3px);
  border-color: var(--brown-accent);
  box-shadow: 0 8px 24px rgba(28,20,16,0.06);
}
.cp-prod-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown-pale);
  overflow: hidden;
}
.cp-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.cp-prod-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.cp-prod-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #FEF0E6;
  color: #8B3A0A;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
  font-weight: 500;
  align-self: flex-start;
}
.cp-prod-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
  font-family: 'DM Sans', sans-serif;
}
.cp-prod-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cp-prod-rating .stars { color: #F5A623; }
.cp-prod-price { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; margin-top: auto; }
.cp-prod-price strong { color: var(--text-dark); font-size: 17px; font-weight: 500; }
.cp-amazon-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 20px; }

/* Últimos artículos */
.cp-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cp-art {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
  color: inherit;
}
.cp-art:hover { border-color: var(--brown-accent); transform: translateY(-2px); color: inherit; }
.cp-art-thumb {
  height: 160px;
  background: var(--brown-pale);
  overflow: hidden;
}
.cp-art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cp-art-body { padding: 20px; }
.cp-art-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brown-accent);
  margin-bottom: 8px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
.cp-art h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
}
.cp-art-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.cp-art-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Newsletter */
.cp-nl-section {
  background: var(--brown-dark);
  padding: 64px 0;
  text-align: center;
}
.cp-nl-section h2 {
  font-size: 30px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 10px;
}
.cp-nl-section > .cp-container > p {
  font-size: 14px;
  color: rgba(242,235,226,0.5);
  margin-bottom: 28px;
  font-weight: 300;
}
.cp-nl-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}
.cp-nl-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(200,134,90,0.3);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 14px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.cp-nl-input::placeholder { color: rgba(242,235,226,0.3); }
.cp-nl-input:focus { border-color: var(--brown-light); background: rgba(255,255,255,0.1); }
.cp-nl-btn {
  background: var(--brown-accent);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  transition: background 0.2s;
}
.cp-nl-btn:hover { background: #7A4E24; }

/* ════════════════════════════════════════════════
   LAYOUT INTERIOR (post + sidebar)
════════════════════════════════════════════════ */
.cp-content-area { padding: 48px 0 80px; }
.cp-layout-with-sidebar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

/* ════════════════════════════════════════════════
   ARTÍCULO (single)
════════════════════════════════════════════════ */
.cp-post-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--border);
}
.cp-post-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown-accent);
  font-weight: 500;
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}
.cp-post-cat a { color: var(--brown-accent); }
.cp-post-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.cp-post-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}
.cp-post-meta .meta-item { display: flex; align-items: center; gap: 6px; }
.cp-post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-post-author-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brown-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: var(--brown-accent);
}

.cp-featured-image {
  margin: 0 0 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Contenido del post */
.cp-post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
}
.cp-post-content > * { margin-bottom: 1.2em; }
.cp-post-content h2 {
  font-size: 28px;
  margin: 2em 0 0.75em;
  padding-top: 0.5em;
  border-top: 0.5px solid var(--border);
}
.cp-post-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.cp-post-content h3 { font-size: 22px; margin: 1.5em 0 0.5em; }
.cp-post-content h4 { font-size: 18px; margin: 1.2em 0 0.4em; }
.cp-post-content p { margin-bottom: 1.2em; }
.cp-post-content a {
  color: var(--brown-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.cp-post-content a:hover { color: var(--brown-dark); }
.cp-post-content ul, .cp-post-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.cp-post-content li { margin-bottom: 0.4em; }
.cp-post-content blockquote {
  border-left: 3px solid var(--brown-accent);
  padding: 8px 0 8px 24px;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--text-mid);
  font-size: 19px;
  font-family: 'Playfair Display', serif;
}
.cp-post-content img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}
.cp-post-content code {
  background: var(--brown-pale);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.cp-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}
.cp-post-content th, .cp-post-content td {
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border);
  text-align: left;
}
.cp-post-content th {
  background: var(--brown-pale);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}

/* Caja afiliado dentro de post */
.cp-affiliate-box {
  border: 0.5px solid var(--brown-accent);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 2em 0;
  background: linear-gradient(to bottom, #FBF6F0, var(--white));
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
}
.cp-affiliate-box-img { width: 100px; height: 100px; border-radius: var(--radius-sm); background: var(--brown-pale); }
.cp-affiliate-box-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 6px;
}
.cp-affiliate-box-content p { font-size: 13px; color: var(--text-muted); margin: 0 0 6px; }
.cp-affiliate-box-price { font-size: 18px; font-weight: 500; color: var(--text-dark); }

/* Tags y compartir */
.cp-post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
}
.cp-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cp-tag {
  font-size: 11px;
  padding: 5px 12px;
  border: 0.5px solid var(--border-mid);
  border-radius: 100px;
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s;
}
.cp-tag:hover { border-color: var(--brown-accent); color: var(--brown-accent); }

.cp-post-share {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-post-share span { font-size: 12px; color: var(--text-muted); }
.cp-post-share a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s;
}
.cp-post-share a:hover { border-color: var(--brown-accent); color: var(--brown-accent); }

/* Posts relacionados */
.cp-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 0.5px solid var(--border);
}
.cp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

/* ════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════ */
.cp-sidebar { display: flex; flex-direction: column; gap: 28px; }

.cp-widget {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--white);
}
.cp-widget-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 500;
}

/* Sidebar productos */
.cp-side-prod {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
  color: inherit;
  transition: opacity 0.2s;
}
.cp-side-prod:last-child { border-bottom: none; }
.cp-side-prod:hover { opacity: 0.85; color: inherit; }
.cp-side-prod-img {
  width: 60px; height: 60px;
  background: var(--brown-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--brown-accent);
}
.cp-side-prod-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
}
.cp-side-prod-price { font-size: 13px; font-weight: 500; color: var(--brown-accent); }

/* Sidebar artículos */
.cp-side-art {
  display: block;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
  color: inherit;
}
.cp-side-art:last-child { border-bottom: none; }
.cp-side-art-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brown-accent);
  margin-bottom: 4px;
  font-weight: 500;
}
.cp-side-art-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dark);
}

/* Sidebar newsletter */
.cp-widget-nl {
  background: var(--brown-dark);
  border: none;
  color: var(--cream);
}
.cp-widget-nl .cp-widget-title { color: rgba(200,134,90,0.7); }
.cp-widget-nl h4 {
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 6px;
}
.cp-widget-nl p {
  font-size: 12px;
  color: rgba(242,235,226,0.5);
  margin-bottom: 16px;
}
.cp-widget-nl .cp-nl-form { flex-direction: column; max-width: 100%; }
.cp-widget-nl .cp-nl-input { width: 100%; }
.cp-widget-nl .cp-nl-btn { width: 100%; }

/* ════════════════════════════════════════════════
   ARCHIVE / CATEGORÍA
════════════════════════════════════════════════ */
.cp-archive-header {
  background: var(--brown-pale);
  padding: 56px 0 48px;
  text-align: center;
  border-bottom: 0.5px solid var(--border);
}
.cp-archive-eye {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brown-accent);
  margin-bottom: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
.cp-archive-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.cp-archive-desc {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.cp-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cp-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.cp-pagination a, .cp-pagination span {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cp-pagination a:hover { border-color: var(--brown-accent); color: var(--brown-accent); }
.cp-pagination .current {
  background: var(--brown-accent);
  color: var(--cream);
  border-color: var(--brown-accent);
}

/* ════════════════════════════════════════════════
   PAGE (estáticas)
════════════════════════════════════════════════ */
.cp-page-header {
  text-align: center;
  padding: 48px 0 32px;
}
.cp-page-title {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.cp-page-content { padding: 16px 0 64px; }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.cp-site-footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 64px 0 0;
  margin-top: 0;
}
.cp-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.cp-footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(200,134,90,0.7);
  margin-bottom: 16px;
  font-weight: 500;
}
.cp-footer-brand .cp-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 14px;
  display: block;
}
.cp-footer-brand .cp-footer-logo span { color: var(--brown-light); }
.cp-footer-brand p {
  font-size: 13px;
  color: rgba(242,235,226,0.5);
  line-height: 1.7;
  font-weight: 300;
}
.cp-footer-col ul { list-style: none; padding: 0; margin: 0; }
.cp-footer-col li { margin-bottom: 10px; }
.cp-footer-col a {
  font-size: 13px;
  color: rgba(242,235,226,0.6);
  transition: color 0.2s;
}
.cp-footer-col a:hover { color: var(--brown-light); }

.cp-footer-bottom {
  border-top: 0.5px solid rgba(200,134,90,0.15);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(242,235,226,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ════════════════════════════════════════════════
   SEARCH FORM
════════════════════════════════════════════════ */
.cp-search-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
}
.cp-search-input {
  flex: 1;
  background: var(--white);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.cp-search-input:focus { border-color: var(--brown-accent); }
.cp-search-submit {
  background: var(--brown-accent);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

/* ════════════════════════════════════════════════
   404
════════════════════════════════════════════════ */
.cp-404 {
  text-align: center;
  padding: 96px 24px;
  max-width: 580px;
  margin: 0 auto;
}
.cp-404-num {
  font-size: 120px;
  color: var(--brown-accent);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
}
.cp-404 h1 { font-size: 32px; margin-bottom: 14px; }
.cp-404 p { font-size: 15px; color: var(--text-mid); margin-bottom: 28px; line-height: 1.7; }

/* ════════════════════════════════════════════════
   COMENTARIOS
════════════════════════════════════════════════ */
.comments-area {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 0.5px solid var(--border);
}
.comments-title {
  font-size: 22px;
  margin-bottom: 32px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.comment-list li { padding: 20px 0; border-bottom: 0.5px solid var(--border); }
.comment-author { font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.comment-metadata { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.comment-content { font-size: 14px; line-height: 1.7; color: var(--text-dark); }

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cp-layout-with-sidebar { grid-template-columns: 1fr; }
  .cp-sidebar { flex-direction: row; flex-wrap: wrap; }
  .cp-widget { flex: 1; min-width: 280px; }
  .cp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .cp-nav-menu, .cp-search-btn { display: none; }
  .cp-menu-toggle { display: flex; }
  .cp-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-brands-grid { grid-template-columns: repeat(3, 1fr); }
  .cp-featured-grid { grid-template-columns: 1fr; }
  .cp-feat-side { flex-direction: row; }
  .cp-products-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-related-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-archive-grid { grid-template-columns: 1fr; }
  .cp-affiliate-box { grid-template-columns: 80px 1fr; }
  .cp-affiliate-box .cp-btn-amazon { grid-column: span 2; }
}

@media (max-width: 600px) {
  .cp-hero { padding: 64px 0 56px; }
  .cp-hero-stats { gap: 32px; }
  .cp-section, .cp-section-alt, .cp-content-area { padding: 48px 0; }
  .cp-cats-grid, .cp-brands-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-featured-grid, .cp-feat-side { display: flex; flex-direction: column; }
  .cp-products-grid, .cp-articles-grid, .cp-related-grid { grid-template-columns: 1fr; }
  .cp-footer-grid { grid-template-columns: 1fr; }
  .cp-footer-bottom { flex-direction: column; text-align: center; }
  .cp-nl-form { flex-direction: column; }
  .cp-layout-with-sidebar { gap: 32px; }
  .cp-sidebar { flex-direction: column; }
}

/* ════════════════════════════════════════════════
   ANIMACIONES
════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cp-hero-eye  { animation: fadeUp 0.5s ease both; }
.cp-hero h1   { animation: fadeUp 0.5s 0.1s ease both; }
.cp-hero-desc { animation: fadeUp 0.5s 0.2s ease both; }
.cp-hero-btns { animation: fadeUp 0.5s 0.3s ease both; }
.cp-hero-stats{ animation: fadeUp 0.5s 0.4s ease both; }

/* ════════════════════════════════════════════════
   PRINT
════════════════════════════════════════════════ */
@media print {
  .cp-site-header, .cp-site-footer, .cp-sidebar, .cp-nl-section { display: none; }
  .cp-layout-with-sidebar { grid-template-columns: 1fr; }
}