/*
Theme Name: EH Campus
Theme URI: https://ehideas.com
Author: EH Ideas
Description: Tema personalizado de catálogo de cursos para EH Campus con WooCommerce
Version: 2.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: ehcampus
*/

/* ══════════════════════════════════════
   EH CAMPUS — Design System
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:      #1E4BF5;
  --blue-dk:   #0F2FC2;
  --blue-lt:   #E8EFFE;
  --red:       #F05A5A;
  --red-lt:    #FEECEC;
  --yellow:    #F5A623;
  --yellow-lt: #FFF8EC;
  --purple:    #7C3AED;
  --purple-lt: #EDE9FE;
  --off:       #F4F4F2;
  --surface:   #ffffff;
  --border:    #E0E0E0;
  --dark:      #0D1117;
  --text:      #1A1A2A;
  --muted:     #6B7280;
  --light:     #9CA3AF;
  --r:         14px;
  --r-sm:      8px;
  --r-pill:    100px;
  --sh-sm:     0 1px 4px rgba(0,0,0,0.06);
  --sh:        0 4px 20px rgba(0,0,0,0.09);
  --sh-lg:     0 8px 40px rgba(0,0,0,0.13);
  --t:         .26s cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--off);
  font-size: 15px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
img { max-width: 100%; height: auto; display: block; }

/* ══ WP ADMIN BAR ══ */
.admin-bar .ehc-navbar { top: 32px; }
.admin-bar .ehc-cat-bar { top: calc(66px + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .ehc-navbar { top: 46px; }
  .admin-bar .ehc-cat-bar { top: calc(66px + 46px); }
}

/* ══ NAVBAR ══ */
.ehc-navbar {
  background: var(--surface);
  border-bottom: 2px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(30,75,245,0.08);
}
.ehc-navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ehc-nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.ehc-nav-logo img { height: 38px; width: auto; display: block; }
.ehc-nav-links { display: flex; gap: 6px; margin-left: 12px; }
.ehc-nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: color var(--t), background var(--t);
}
.ehc-nav-links a:hover { color: var(--blue); background: var(--blue-lt); }
.ehc-nav-links a.active { color: var(--blue); background: var(--blue-lt); font-weight: 600; }
.ehc-nav-spacer { flex: 1; }
.ehc-nav-search {
  display: flex;
  align-items: center;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0 14px 0 10px;
  gap: 8px;
  height: 38px;
  width: 240px;
  transition: border-color var(--t), box-shadow var(--t);
}
.ehc-nav-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,75,245,0.10); }
.ehc-nav-search svg { color: var(--muted); flex-shrink: 0; }
.ehc-nav-search input {
  border: none; background: transparent;
  font-size: 13.5px; font-family: inherit;
  color: var(--text); outline: none; width: 100%;
}
.ehc-nav-search input::placeholder { color: var(--light); }
.ehc-nav-actions { display: flex; gap: 10px; align-items: center; }
.ehc-btn-ghost {
  font-size: 13.5px; font-weight: 500; color: var(--text);
  background: transparent; border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 7px 18px;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.ehc-btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.ehc-btn-primary {
  font-size: 13.5px; font-weight: 600; color: white;
  background: var(--blue); border-radius: var(--r-pill);
  padding: 8px 20px;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 2px 10px rgba(30,75,245,0.25);
}
.ehc-btn-primary:hover { background: var(--blue-dk); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(30,75,245,0.35); }

/* ══ HERO ══ */
.ehc-hero {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  padding: 72px 24px 64px;
  text-align: center;
}
.ehc-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.ehc-hero-orb-1 {
  position: absolute; width: 480px; height: 480px;
  top: -100px; right: -60px;
  background: radial-gradient(circle, rgba(240,90,90,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.ehc-hero-orb-2 {
  position: absolute; width: 360px; height: 360px;
  bottom: -80px; left: -40px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.ehc-hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.ehc-hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.ehc-hero-chip::before { content: "●"; font-size: 7px; color: var(--red); opacity: 0.9; margin-right: 4px; }
.ehc-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800;
  color: white; line-height: 1.18; letter-spacing: -0.03em; margin-bottom: 18px;
}
.ehc-hero h1 em { font-style: normal; color: var(--red); }
.ehc-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 540px; margin: 0 auto 32px; line-height: 1.65; }
.ehc-hero-search-bar {
  display: flex; align-items: center;
  background: white; border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px; gap: 10px;
  max-width: 560px; margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.ehc-hero-search-bar input { flex: 1; border: none; outline: none; font-size: 14px; font-family: inherit; color: var(--text); background: transparent; }
.ehc-hero-search-bar input::placeholder { color: var(--light); }
.ehc-hero-search-btn {
  background: var(--blue); color: white; font-size: 13px; font-weight: 600;
  border-radius: var(--r-pill); padding: 10px 22px; transition: background var(--t); white-space: nowrap;
}
.ehc-hero-search-btn:hover { background: var(--blue-dk); }
.ehc-hero-stats { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.ehc-hero-stat { color: rgba(255,255,255,0.9); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.ehc-hero-stat strong { font-weight: 700; font-size: 14px; color: white; }
.ehc-hero-stat::before { content: "✓"; color: var(--red); font-weight: 700; font-size: 13px; }

/* ══ CATEGORY TABS ══ */
.ehc-cat-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 66px;
  z-index: 90;
}
.ehc-cat-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.ehc-cat-bar-inner::-webkit-scrollbar { display: none; }
.ehc-cat-tab {
  flex-shrink: 0; font-size: 13px; font-weight: 500; color: var(--muted);
  background: transparent; border: none; border-bottom: 3px solid transparent;
  padding: 14px 16px; transition: color var(--t), border-color var(--t); white-space: nowrap;
}
.ehc-cat-tab:hover { color: var(--blue); }
.ehc-cat-tab.active { color: var(--blue); font-weight: 700; border-bottom-color: var(--blue); }

/* ══ MAIN LAYOUT ══ */
.ehc-main-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 36px 24px 64px;
  display: grid; grid-template-columns: 272px 1fr;
  gap: 32px; align-items: start;
}

/* ══ SIDEBAR ══ */
.ehc-sidebar {
  position: sticky; top: 120px;
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--border); padding: 6px 0;
  box-shadow: var(--sh-sm); overflow: hidden;
}
.ehc-sidebar-header {
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.ehc-sidebar-header h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ehc-clear-btn { font-size: 12px; font-weight: 600; color: var(--blue); background: none; border: none; cursor: pointer; padding: 0; }
.ehc-clear-btn:hover { text-decoration: underline; }
.ehc-filter-group { border-bottom: 1px solid var(--border); }
.ehc-filter-group:last-child { border-bottom: none; }
.ehc-filter-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: none; border: none;
  font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; transition: background var(--t);
}
.ehc-filter-toggle:hover { background: var(--off); }
.ehc-filter-toggle .arrow { font-size: 11px; color: var(--muted); transition: transform var(--t); }
.ehc-filter-toggle.open .arrow { transform: rotate(180deg); }
.ehc-filter-body { padding: 6px 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.ehc-filter-body.hidden { display: none; }
.ehc-filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; transition: background var(--t);
}
.ehc-filter-option:hover { background: var(--off); }
.ehc-filter-option input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.ehc-filter-option label { font-size: 13.5px; color: var(--text); cursor: pointer; flex: 1; }
.ehc-filter-count { font-size: 11.5px; color: var(--muted); background: var(--off); border-radius: var(--r-pill); padding: 2px 8px; font-weight: 500; }

/* ══ CONTENT AREA ══ */
.ehc-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.ehc-results-count { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.ehc-results-count span { color: var(--muted); font-weight: 400; }
.ehc-sort-select {
  font-size: 13px; font-family: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 7px 32px 7px 14px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  cursor: pointer; transition: border-color var(--t);
}
.ehc-sort-select:focus { outline: none; border-color: var(--blue); }
.ehc-view-toggle { display: flex; gap: 4px; }
.ehc-view-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: transparent; color: var(--muted); transition: all var(--t);
}
.ehc-view-btn.active { background: var(--blue-lt); border-color: var(--blue); color: var(--blue); }
.ehc-view-btn:hover:not(.active) { background: var(--off); border-color: var(--text); color: var(--text); }

/* ══ COURSE LIST (horizontal cards) ══ */
.ehc-course-list { display: flex; flex-direction: column; gap: 16px; }
.ehc-course-list.hidden { display: none; }
.ehc-course-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  display: grid; grid-template-columns: 220px 1fr auto; overflow: hidden;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.ehc-course-card:hover { box-shadow: var(--sh); transform: translateY(-2px); border-color: rgba(30,75,245,0.2); }
.ehc-card-thumb { position: relative; overflow: hidden; }
.ehc-card-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 148px; }
.ehc-card-thumb-placeholder {
  width: 100%; height: 100%; min-height: 148px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; font-size: 28px;
  background: linear-gradient(135deg, var(--blue-lt) 0%, #dce9fe 100%);
}
.ehc-card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }
.ehc-badge { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: 0.04em; line-height: 1.4; }
.ehc-badge-async { background: var(--blue); color: white; }
.ehc-badge-new   { background: var(--yellow); color: white; }
.ehc-badge-feat  { background: var(--red); color: white; }
.ehc-card-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ehc-card-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); }
.ehc-card-title {
  font-size: 15.5px; font-weight: 700; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ehc-card-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ehc-card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.ehc-card-cta {
  padding: 16px 18px; display: flex; flex-direction: column;
  align-items: flex-end; justify-content: space-between;
  gap: 12px; border-left: 1px solid var(--border); min-width: 160px;
  background: rgba(244,244,242,0.4);
}
.ehc-card-price { text-align: right; }
.ehc-price-main { font-size: 1.35rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.ehc-price-old { font-size: 12.5px; color: var(--light); text-decoration: line-through; }
.ehc-price-free { font-size: 1.1rem; font-weight: 800; color: var(--blue); }
.ehc-btn-add-cart {
  display: block; width: 100%; font-size: 13px; font-weight: 700; color: white;
  background: var(--blue); border-radius: var(--r-pill); padding: 10px 16px;
  transition: background var(--t), box-shadow var(--t), transform var(--t);
  text-align: center; box-shadow: 0 2px 10px rgba(30,75,245,0.22); border: none;
  cursor: pointer;
}
.ehc-btn-add-cart:hover { background: var(--blue-dk); box-shadow: 0 4px 18px rgba(30,75,245,0.35); transform: translateY(-1px); }
.ehc-btn-preview {
  display: block; width: 100%; font-size: 12.5px; font-weight: 600; color: var(--blue);
  background: transparent; border: 1.5px solid var(--blue-lt);
  border-radius: var(--r-pill); padding: 8px 16px;
  transition: background var(--t), border-color var(--t); text-align: center;
}
.ehc-btn-preview:hover { background: var(--blue-lt); border-color: var(--blue); }

/* WooCommerce add-to-cart button override */
.ehc-card-cta .button,
.ehc-card-cta .single_add_to_cart_button,
.ehc-card-cta a.button {
  display: block; width: 100%; font-size: 13px; font-weight: 700; color: white !important;
  background: var(--blue) !important; border-radius: var(--r-pill); padding: 10px 16px;
  transition: background var(--t); text-align: center; border: none;
}
.ehc-card-cta .button:hover { background: var(--blue-dk) !important; }

/* ══ GRID VIEW ══ */
.ehc-course-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ehc-course-grid.active { display: grid; }
.ehc-grid-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.ehc-grid-card:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: rgba(30,75,245,0.2); }
.ehc-grid-thumb { height: 160px; position: relative; overflow: hidden; }
.ehc-grid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ehc-grid-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, var(--blue-lt) 0%, #dce9fe 100%);
}
.ehc-grid-body { padding: 16px; }
.ehc-grid-body .ehc-card-title { font-size: 14.5px; margin-bottom: 8px; }
.ehc-grid-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border);
  background: rgba(244,244,242,0.4);
}
.ehc-btn-add-cart-sm {
  font-size: 12.5px; font-weight: 700; color: white;
  background: var(--blue); border-radius: var(--r-pill); padding: 8px 16px;
  transition: background var(--t); border: none; cursor: pointer;
}
.ehc-btn-add-cart-sm:hover { background: var(--blue-dk); }

/* ══ PAGINATION ══ */
.ehc-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
/* WooCommerce native pagination */
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul { display: flex; justify-content: center; align-items: center; gap: 6px; list-style: none; padding: 0; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; font-size: 13.5px; font-weight: 600;
  border-radius: var(--r-pill); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); transition: all var(--t);
}
.woocommerce-pagination ul li a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.woocommerce-pagination ul li span.current { background: var(--blue); border-color: var(--blue); color: white; }

/* ══ CTA BANNER ══ */
.ehc-cta-section {
  background: var(--blue); position: relative; overflow: hidden;
  padding: 56px 24px; text-align: center; margin-top: 0;
}
.ehc-cta-inner { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.ehc-cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: white; letter-spacing: -0.03em; margin-bottom: 14px; }
.ehc-cta-inner p { font-size: 1rem; color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.ehc-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ehc-btn-white {
  font-size: 14px; font-weight: 700; color: var(--blue); background: white;
  border-radius: var(--r-pill); padding: 13px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); transition: transform var(--t), box-shadow var(--t);
  border: none; cursor: pointer;
}
.ehc-btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.2); }
.ehc-btn-outline-white {
  font-size: 14px; font-weight: 600; color: white; background: transparent;
  border: 2px solid rgba(255,255,255,0.4); border-radius: var(--r-pill); padding: 12px 28px;
  transition: border-color var(--t), background var(--t); cursor: pointer;
}
.ehc-btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ══ FOOTER ══ */
.ehc-footer {
  background: var(--dark); color: rgba(255,255,255,0.55); padding: 52px 24px 32px;
}
.ehc-footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px;
}
.ehc-footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; margin-bottom: 14px; }
.ehc-footer-brand p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.45); max-width: 260px; }
.ehc-footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.ehc-footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 8px; transition: color var(--t); }
.ehc-footer-col a:hover { color: white; }
.ehc-footer-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,0.3);
}
.ehc-footer-bottom a { color: rgba(255,255,255,0.4); }
.ehc-footer-bottom a:hover { color: white; }
.ehc-footer-socials { display: flex; gap: 12px; }
.ehc-social-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,0.5);
  transition: background var(--t), color var(--t);
}
.ehc-social-icon:hover { background: var(--blue); color: white; }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  .ehc-main-wrap { grid-template-columns: 1fr; }
  .ehc-sidebar { position: static; }
  .ehc-course-card { grid-template-columns: 160px 1fr; }
  .ehc-card-cta { display: none; }
  .ehc-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ehc-hero h1 { font-size: 1.8rem; }
  .ehc-nav-links, .ehc-nav-search { display: none; }
  .ehc-course-card { grid-template-columns: 120px 1fr; }
  .ehc-footer-inner { grid-template-columns: 1fr; }
  .ehc-hero-stats { gap: 16px; }
}

/* ══ Card badges (sobre la imagen) ══ */
.ehc-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; padding: 4px 10px;
  border-radius: var(--r-pill); letter-spacing: 0.04em;
  line-height: 1; text-align: center; white-space: nowrap;
}
.ehc-badge-nuevo  { background: #F5A623; color: white; }
.ehc-badge-async  { background: var(--blue); color: white; }
.ehc-badge-sinc   { background: #0FB37E; color: white; }
.ehc-badge-blend  { background: var(--purple); color: white; }
.ehc-badge-feat   { background: var(--red); color: white; }

/* ══ Tags de características (Certificado, Nivel) ══ */
.ehc-card-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.ehc-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 5px 11px;
  border-radius: var(--r-pill); letter-spacing: 0.02em; white-space: nowrap;
  line-height: 1;
}
.ehc-tag-cert    { background: #D1FAE5 !important; color: #065F46 !important; border: 1px solid #6EE7B7 !important; }
.ehc-tag-nivel-p { background: #EDE9FE !important; color: #4C1D95 !important; border: 1px solid #C4B5FD !important; }
.ehc-tag-nivel-i { background: #DBEAFE !important; color: #1E40AF !important; border: 1px solid #93C5FD !important; }
.ehc-tag-nivel-a { background: #FEE2E2 !important; color: #991B1B !important; border: 1px solid #FCA5A5 !important; }
.ehc-tag-nivel-t { background: #F3F4F6 !important; color: #4B5563 !important; border: 1px solid #D1D5DB !important; }

/* ══ Meta row: duración, lecciones, rating — texto limpio con ícono ══ */
.ehc-card-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.ehc-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--muted); font-weight: 500;
}
.ehc-meta-item svg { color: var(--light); flex-shrink: 0; }
.ehc-meta-item strong { color: var(--text); font-weight: 600; }

/* Rating inline */
.ehc-card-rating {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
}
.ehc-card-rating .ehc-stars { color: #F5A623; font-size: 13px; letter-spacing: 1px; }
.ehc-card-rating strong { color: var(--text); font-weight: 700; }

/* Instructor */
.ehc-card-instructor {
  font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 7px; margin-top: 8px;
}
.ehc-card-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-lt); color: var(--blue);
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1.5px solid rgba(30,75,245,0.15);
}

/* Excerpt */
.ehc-card-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 2px;
}

/* Price styles in CTA */
.ehc-price-main { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.ehc-price-old { font-size: 12px; color: var(--light); text-decoration: line-through; margin-bottom: 2px; }
.ehc-price-discount {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: white; background: var(--red);
  border-radius: var(--r-pill); padding: 2px 8px; margin-top: 4px;
}
.ehc-price-free { font-size: 1.15rem; font-weight: 800; color: var(--blue); }

/* ── Single product page — WC add-to-cart button override ── */
.ehc-product-info-card .single_add_to_cart_button,
.ehc-product-info-card button[type="submit"] {
  display: flex !important; align-items: center; justify-content: center;
  width: 100% !important; padding: 14px !important;
  background: var(--blue) !important; color: white !important;
  border: none !important; border-radius: var(--r-pill) !important;
  font-size: 15px !important; font-weight: 700 !important;
  cursor: pointer; margin-bottom: 10px;
  box-shadow: 0 4px 18px rgba(30,75,245,0.3) !important;
  transition: background var(--t) !important;
}
.ehc-product-info-card .single_add_to_cart_button:hover { background: var(--blue-dk) !important; }
.ehc-product-info-card .quantity { display: none !important; }

/* ══ WooCommerce resets ══ */
.woocommerce-notices-wrapper { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--blue) !important; padding: 12px 20px !important; margin: 12px 0 !important;
}
