/*
Theme Name: Capitalis
Theme URI: https://capitalis.pe
Author: Escuela Capitalis
Author URI: https://capitalis.pe
Description: Tema profesional personalizado para Escuela Capitalis - Academia de Finanzas y Contabilidad en Peru. Incluye soporte para WooCommerce, blog de finanzas y venta de cursos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: capitalis
Tags: education, e-commerce, blog, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ===========================
   CSS VARIABLES / DESIGN TOKENS
   =========================== */
:root {
  /* Brand Colors - Navy / Teal / Gold / Cream */
  --cap-navy: #1B2A4A;
  --cap-navy-dark: #0F1B33;
  --cap-navy-light: #2A3F6B;
  --cap-teal: #1A8A7D;
  --cap-teal-dark: #147068;
  --cap-teal-light: #22B8A7;
  --cap-gold: #D4A843;
  --cap-gold-dark: #B8922E;
  --cap-gold-light: #E8C566;
  --cap-cream: #FDF8F3;
  --cap-cream-dark: #F5EDE4;

  /* Neutrals */
  --cap-white: #FFFFFF;
  --cap-off-white: #F8F9FB;
  --cap-gray-50: #F1F3F7;
  --cap-gray-100: #E2E6EE;
  --cap-gray-200: #C5CCD9;
  --cap-gray-400: #8A95A9;
  --cap-gray-600: #5A6478;
  --cap-gray-800: #2D3443;
  --cap-black: #111827;

  /* Typography - Serif for headings, Inter for body */
  --font-heading: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --header-height: 80px;

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(27,42,74,0.08);
  --shadow-md: 0 4px 12px rgba(27,42,74,0.1);
  --shadow-lg: 0 8px 30px rgba(27,42,74,0.12);
  --shadow-xl: 0 20px 60px rgba(27,42,74,0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--cap-gray-800);
  background-color: var(--cap-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cap-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cap-teal-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--cap-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); font-weight: 500; }
h2 { font-size: var(--text-4xl); font-weight: 500; }
h3 { font-size: var(--text-3xl); font-weight: 500; }
h4 { font-size: var(--text-2xl); font-weight: 500; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

p { margin-bottom: var(--space-4); }

/* ===========================
   UTILITY CLASSES
   =========================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section {
  padding: var(--space-20) 0;
}

.section--dark {
  background: var(--cap-navy);
  color: var(--cap-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cap-white);
}

.section--light {
  background: var(--cap-cream-dark);
}

.section--teal {
  background: linear-gradient(135deg, var(--cap-teal), var(--cap-teal-dark));
  color: var(--cap-white);
}

.text-center { text-align: center; }
.text-gold { color: var(--cap-gold); }
.text-teal { color: var(--cap-teal); }
.text-navy { color: var(--cap-navy); }

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

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--cap-gold);
  color: var(--cap-navy-dark);
  border-color: var(--cap-gold);
}
.btn--primary:hover {
  background: var(--cap-gold-dark);
  border-color: var(--cap-gold-dark);
  color: var(--cap-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: var(--cap-teal);
  color: var(--cap-white);
  border-color: var(--cap-teal);
}
.btn--secondary:hover {
  background: var(--cap-teal-dark);
  border-color: var(--cap-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--cap-navy);
  border-color: var(--cap-navy);
  border-width: 2px;
}
.btn--outline:hover {
  background: var(--cap-navy);
  color: var(--cap-white);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--cap-white);
  border-color: #25D366;
  font-size: var(--text-lg);
  padding: 16px 40px;
}
.btn--whatsapp:hover {
  background: #1EBE57;
  border-color: #1EBE57;
  color: var(--cap-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.35);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 18px 44px;
  font-size: var(--text-lg);
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cap-gray-100);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--cap-navy);
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.main-nav a {
  padding: var(--space-2) var(--space-4);
  color: var(--cap-gray-600);
  font-weight: 500;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--cap-teal);
  background: rgba(26,138,125,0.06);
}

.header-cta {
  margin-left: var(--space-4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cap-navy);
  margin: 5px 0;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--cap-cream);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(26,138,125,0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 5%;
  width: 40%;
  height: 140%;
  background: radial-gradient(circle, rgba(212,168,67,0.04) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: block;
  
  
  
}

.hero__content {
  color: var(--cap-navy);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--cap-gold);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cap-white);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  color: var(--cap-navy);
  margin-bottom: var(--space-6);
  line-height: 1.1;
  font-weight: 500;
}

.hero__title span {
  color: var(--cap-teal);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--cap-gray-600);
  margin-bottom: var(--space-8);
  line-height: 1.6;
  max-width: 520px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(26,138,125,0.15);
}

.hero__stat-number {
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--cap-teal);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--cap-gray-600);
  margin-top: var(--space-1);
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero__image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.hero__float-card {
  position: absolute;
  background: var(--cap-navy);
  color: var(--cap-white);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__float-card--top {
  top: -40px;
  right: -60px;
}

.hero__float-card--bottom {
  bottom: -40px;
  left: -60px;
}

.hero__float-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
}

.hero__float-icon--teal { background: rgba(26,138,125,0.2); }
.hero__float-icon--gold { background: rgba(212,168,67,0.2); }

.hero__float-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cap-white);
}

.hero__float-desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.8);
}

/* ===========================
   HERO — REDESIGNED LAYOUT
   =========================== */
.hero__wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__left { position: relative; z-index: 2; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--cap-gold);
  color: var(--cap-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.hero__float-badges {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero__float-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--cap-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cap-navy);
}

.hero__float-badge-number {
  font-weight: 700;
}

/* "PRÓXIMO INICIO" Card */
.hero__right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__next-course-card {
  background: linear-gradient(135deg, var(--cap-navy), var(--cap-navy-dark));
  color: var(--cap-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

.hero__next-course-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(26,138,125,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero__next-course-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: var(--space-1) var(--space-3);
  background: var(--cap-gold);
  color: var(--cap-navy-dark);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero__next-course-title {
  color: var(--cap-white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  line-height: 1.3;
}

.hero__next-course-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__next-course-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
}

.hero__next-course-meta-item svg {
  color: var(--cap-teal-light);
  flex-shrink: 0;
}

.hero__next-course-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--cap-gold-light);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.hero__next-course-link:hover {
  color: var(--cap-gold);
  gap: var(--space-3);
}

/* Stats Counter Bar */
.stats-bar {
  background: var(--cap-white);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--cap-gray-100);
  border-bottom: 1px solid var(--cap-gray-100);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--cap-teal);
  font-family: var(--font-heading);
  margin-bottom: var(--space-1);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
}

.benefit-card {
  padding: var(--space-8);
  background: var(--cap-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cap-gray-100);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
  border-color: var(--cap-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.benefit-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.benefit-card__title {
  font-size: var(--text-lg);
  color: var(--cap-navy);
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.benefit-card__desc {
  font-size: var(--text-sm);
  color: var(--cap-gray-600);
  line-height: 1.7;
}

/* Course Card Redesigned Elements */
.course-card__badges {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.course-card__category-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--cap-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  background: rgba(26,138,125,0.08);
  border-radius: var(--radius-full);
}

.course-card__month-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--cap-gray-600);
  padding: var(--space-1) var(--space-3);
  background: var(--cap-gray-50);
  border-radius: var(--radius-full);
}

.course-card__title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.course-card__title a:hover {
  color: var(--cap-teal);
}

.course-card__meta-info {
  font-size: var(--text-xs);
  color: var(--cap-gray-400);
  margin-bottom: var(--space-3);
}

.course-card__schedule,
.course-card__certification {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--cap-gray-600);
  margin-bottom: var(--space-2);
}

.course-card__schedule svg,
.course-card__certification svg {
  color: var(--cap-teal);
  flex-shrink: 0;
}

.course-card__cta {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cap-teal);
  transition: all var(--transition-fast);
}

.course-card__cta:hover {
  color: var(--cap-teal-dark);
}

/* Course Card without image - full padding */
.course-card {
  padding: var(--space-6);
}

/* ===========================
   STATS COUNTER SECTION
   =========================== */
.stats-section {
  padding: var(--space-16) 0;
  background: var(--cap-white);
  border-top: 1px solid var(--cap-gray-100);
  border-bottom: 1px solid var(--cap-gray-100);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat-item {
  text-align: center;
}

.stat-counter {
  font-size: var(--text-5xl);
  font-weight: 500;
  color: var(--cap-teal);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--cap-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

/* ===========================
   COURSE CARDS
   =========================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

.course-card {
  background: var(--cap-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cap-gray-100);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cap-teal);
}

.course-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cap-navy), var(--cap-teal));
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.course-card:hover .course-card__image img {
  transform: scale(1.05);
}

.course-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--cap-gold);
  color: var(--cap-navy-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.course-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--cap-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.course-card__title {
  font-size: var(--text-lg);
  color: var(--cap-navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
  font-family: var(--font-heading);
  font-weight: 500;
}

.course-card__desc {
  font-size: var(--text-sm);
  color: var(--cap-gray-600);
  margin-bottom: var(--space-4);
  flex-grow: 1;
  line-height: 1.6;
}

.course-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--cap-gray-100);
  font-size: var(--text-sm);
  color: var(--cap-gray-400);
}

.course-card__meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.course-card__price {
  margin-left: auto;
  text-align: right;
}

.course-card__price-old {
  font-size: var(--text-xs);
  color: var(--cap-gray-400);
  text-decoration: line-through;
}

.course-card__price-current {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--cap-teal);
}

/* ===========================
   FEATURES / BENEFITS
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  padding: var(--space-8);
  background: var(--cap-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cap-gray-100);
  transition: all var(--transition-base);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--cap-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, rgba(26,138,125,0.12), rgba(26,138,125,0.06));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
}

.feature-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--cap-navy);
  font-family: var(--font-heading);
  font-weight: 500;
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--cap-gray-600);
  line-height: 1.7;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.testimonial-card {
  background: var(--cap-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cap-gray-100);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-card__quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--cap-gray-800);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-weight: 400;
}

.testimonial-card__quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--cap-teal);
  opacity: 0.15;
  position: absolute;
  top: var(--space-2);
  left: var(--space-4);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--cap-teal), var(--cap-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cap-white);
  font-weight: 600;
  font-size: var(--text-lg);
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--cap-navy);
  font-size: var(--text-sm);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--cap-gray-400);
}

/* ===========================
   BLOG / ARTICLES
   =========================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-8);
}

.blog-card {
  background: var(--cap-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cap-gray-100);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image {
  height: 220px;
  overflow: hidden;
  background: var(--cap-gray-100);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.08);
}

.blog-card__body {
  padding: var(--space-6);
}

.blog-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--cap-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card__title {
  font-size: var(--text-xl);
  margin: var(--space-3) 0;
  color: var(--cap-navy);
  font-family: var(--font-heading);
  font-weight: 500;
}

.blog-card__title a {
  color: inherit;
}

.blog-card__title a:hover {
  color: var(--cap-teal);
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--cap-gray-600);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--cap-gray-400);
  padding-top: var(--space-4);
  border-top: 1px solid var(--cap-gray-100);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  background: linear-gradient(135deg, var(--cap-navy) 0%, var(--cap-navy-dark) 100%);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-section h2 {
  color: var(--cap-white);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-xl);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--cap-navy-dark);
  color: var(--cap-gray-200);
  padding: var(--space-16) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: var(--cap-gray-400);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--cap-white);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-3);
}

.footer-col a {
  color: var(--cap-gray-400);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--cap-gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-size: var(--text-xs);
  color: var(--cap-gray-400);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cap-gray-400);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--cap-teal);
  color: var(--cap-white);
}

/* ===========================
   WHATSAPP FLOATING BUTTON
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-base);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ===========================
   WOOCOMMERCE OVERRIDES
   =========================== */
.woocommerce ul.products li.product {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cap-gray-100);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product .price {
  color: var(--cap-teal);
  font-weight: 700;
}

.woocommerce ul.products li.product .price del {
  color: var(--cap-gray-400);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--cap-teal) !important;
  color: var(--cap-white) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  transition: all var(--transition-base) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--cap-teal-dark) !important;
  transform: translateY(-2px) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--cap-gold) !important;
  color: var(--cap-navy-dark) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--cap-gold-dark) !important;
  color: var(--cap-white) !important;
}

/* ===========================
   SINGLE POST / ARTICLE
   =========================== */
.single-post .entry-header {
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-12);
  background: var(--cap-cream);
  text-align: center;
  border-bottom: 1px solid var(--cap-gray-100);
}

.single-post .entry-title {
  font-size: var(--text-4xl);
  max-width: 800px;
  margin: 0 auto var(--space-4);
  font-family: var(--font-heading);
  font-weight: 500;
}

.entry-meta {
  font-size: var(--text-sm);
  color: var(--cap-gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.entry-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.entry-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 500;
}

.entry-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 500;
}

.entry-content ul,
.entry-content ol {
  padding-left: var(--space-8);
  margin-bottom: var(--space-6);
}

.entry-content li {
  margin-bottom: var(--space-2);
}

.entry-content blockquote {
  border-left: 4px solid var(--cap-teal);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--cap-cream-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--cap-gray-600);
}

/* ===========================
   PAGE TEMPLATE: FRONT PAGE
   =========================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 500;
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--cap-gray-600);
}

.section-header__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cap-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-12) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1px solid var(--cap-gray-100);
  color: var(--cap-gray-600);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--cap-teal);
  color: var(--cap-teal);
}

.pagination .current {
  background: var(--cap-teal);
  border-color: var(--cap-teal);
  color: var(--cap-white);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero .container {
    
    text-align: center;
  }

  .hero__wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle { margin: 0 auto var(--space-8); }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { display: none; }
  .hero__float-badges { justify-content: center; }
  .hero__right { margin-top: var(--space-8); }
  .hero__next-course-card { max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cap-white);
    flex-direction: column;
    padding: var(--space-8);
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: var(--text-lg);
    padding: var(--space-3) var(--space-4);
    width: 100%;
  }

  .header-cta { display: none; }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .hero { min-height: 70vh; }
  .hero__stats { flex-direction: column; gap: var(--space-4); }

  .section { padding: var(--space-12) 0; }

  .courses-grid,
  .blog-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
}
