/*
Theme Name: CBD León Code (Definitivo PRO)
Theme URI: https://cbdleon.com/
Author: CBD León
Description: Tema WordPress a medida. Estilo Dark Mode Premium, limpio y consistente.
Version: 1.4.0
*/

/* =========================================================
   1. VARIABLES (CONFIGURACIÓN DE COLORES)
========================================================= */
:root {
  /* FONDOS */
  --bg-body: #050a08;       /* Fondo principal (Casi negro) */
  --bg-card: #0d1411;       /* Fondo tarjetas */
  --bg-card-hover: #121c17; /* Fondo al pasar el ratón */
  --bg-trans: rgba(255, 255, 255, 0.03);

  /* ACENTOS (VERDE) */
  --primary: #16a34a;       /* Verde base */
  --primary-glow: #22c55e;  /* Verde neón (para el truco [C] y hovers) */
  --primary-dim: rgba(34, 197, 94, 0.15); /* Verde suave de fondo */

  /* BORDES Y TEXTO */
  --border-light: rgba(255, 255, 255, 0.10);
  --border-green: rgba(34, 197, 94, 0.4);
  --text-main: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.65);

  /* MEDIDAS */
  --radius: 20px;
  --max-width: 1200px;
}

/* =========================================================
   2. BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* TRUCO DE COLOR PARA EL TÍTULO [C] */
.cbd-highlight {
  color: var(--primary-glow);
  font-weight: inherit;
}

/* Contenedor principal */
.cbd-container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* =========================================================
   3. HEADER
========================================================= */
.cbd-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.cbd-topbar {
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  text-align: center;
}
.cbd-topbar__pill { font-weight: 700; color: var(--text-muted); }

.cbd-header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.cbd-brand__name {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
}
.cbd-brand__tagline { display: none; }

/* Menú */
.cbd-nav__list { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.cbd-nav__list a { font-weight: 700; font-size: 0.95rem; color: var(--text-muted); }
.cbd-nav__list a:hover { color: var(--primary-glow); }

/* =========================================================
   4. HERO (PORTADA)
========================================================= */
.cbd-hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.cbd-hero__bg {
  position: absolute; inset: 0; opacity: 0.2; pointer-events: none; z-index: -1;
}

.cbd-pill {
  display: inline-flex; padding: 0.4rem 1rem; border-radius: 50px;
  background: var(--bg-trans); border: 1px solid var(--border-light);
  font-size: 0.85rem; font-weight: 700; color: var(--primary-glow);
  margin-bottom: 1.5rem;
}

.cbd-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text-main);
}

.cbd-hero__subtitle {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 700px; margin: 0 auto 2rem;
}

.cbd-hero__actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* Botones */
.cbd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.5rem; border-radius: 50px;
  font-weight: 800; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent;
}
.cbd-btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
}
.cbd-btn--primary:hover {
  background: var(--primary-glow); transform: translateY(-2px);
}
.cbd-btn--ghost {
  background: transparent; border: 1px solid var(--border-light); color: var(--text-main);
}
.cbd-btn--ghost:hover {
  background: rgba(255,255,255,0.05); border-color: var(--text-main);
}
.cbd-btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* =========================================================
   5. TARJETAS Y GRID
========================================================= */
.cbd-section { padding: 4rem 0; }
.cbd-section--tight { padding: 2rem 0; }
.cbd-section__head { text-align: center; margin-bottom: 3rem; }
.cbd-h2 { font-size: 2.5rem; font-weight: 800; margin: 0 0 0.5rem; }
.cbd-lead { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.cbd-grid { display: grid; gap: 1.5rem; }
.cbd-grid--2 { grid-template-columns: 1fr; }
.cbd-grid--3 { grid-template-columns: 1fr; }
.cbd-grid--4 { grid-template-columns: 1fr; }

/* Estilo Tarjeta */
.cbd-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  transition: 0.3s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.cbd-card:hover {
  border-color: var(--border-green);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cbd-card--link { padding: 0; overflow: hidden; }
.cbd-card__body { padding: 1.5rem; display: flex; flex-direction: column; height: 100%; }
.cbd-card__media img { width: 100%; height: 200px; object-fit: cover; }

.cbd-h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 0.5rem; color: var(--text-main); }
.cbd-text { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; }
.cbd-link {
  color: var(--primary-glow); font-weight: 700; margin-top: auto;
}

/* Sección "Si es tu primera vez" (Pasos) */
.cbd-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-dim); color: var(--primary-glow);
  font-weight: 900; margin-bottom: 1rem;
  border: 1px solid var(--border-green);
}
.cbd-card--highlight {
  background: var(--primary-dim); border-color: var(--border-green);
}
.cbd-icon { font-size: 2rem; margin-bottom: 1rem; }

/* Sección TIENDA HERO */
.cbd-hero--shop {
  background: linear-gradient(45deg, var(--bg-card), #062b1b);
  border-radius: var(--radius);
  border: 1px solid var(--border-green);
  padding: 4rem 2rem; margin: 2rem 0;
}

/* Tira de Iconos (Mini Cards) */
.cbd-card--mini {
  padding: 1.5rem; background: var(--bg-trans); text-align: center;
  justify-content: center;
}
.cbd-minihead { font-weight: 800; margin-bottom: 0.5rem; color: var(--primary-glow); }
.cbd-minitext { font-size: 0.9rem; color: var(--text-muted); }

/* =========================================================
   6. FOOTER
========================================================= */
.cbd-site-footer {
  margin-top: 3rem; background: #020403; padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}
.cbd-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.cbd-footer-title { color: var(--text-main); font-weight: 800; margin-bottom: 1rem; }
.cbd-footer-menu a { display: block; padding: 0.3rem 0; color: var(--text-muted); }
.cbd-footer-menu a:hover { color: var(--primary-glow); }
.cbd-footer-bottom {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-light);
  text-align: center; color: var(--text-muted); font-size: 0.8rem;
}

/* =========================================================
   7. RESPONSIVE (PC y Tablets)
========================================================= */
@media (min-width: 768px) {
  .cbd-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .cbd-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .cbd-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .cbd-footer-grid { grid-template-columns: repeat(3, 1fr); }
}