@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
    --ink: #17221A; --green: #8DA75D; --dark: #191919; --off: #F2F0F4; --white: #ffffff;
    --ink-soft: rgba(23,34,26,0.06); --green-dim: rgba(141,167,93,0.12); --green-dark: #5a7035;
    --text-body: #3a4a3e; --text-muted: #7a8a7e; --border: rgba(23,34,26,0.1);
    --font-head: 'Space Grotesk', sans-serif; --font-body: 'Inter', sans-serif;
    --r-sm: 8px; --r-md: 14px; --r-lg: 24px; --r-xl: 36px;
    --sh-sm: 0 2px 8px rgba(23,34,26,0.07); --sh-md: 0 6px 24px rgba(23,34,26,0.10);
    --sh-lg: 0 20px 56px rgba(23,34,26,0.13); --mw: 1140px;
}

.wrap { max-width: var(--mw); margin: 0 auto; }

/* HERO */
.page-hero { padding: calc(68px + 80px) 80px 72px; background: var(--ink); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -120px; right: -120px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(141,167,93,0.10) 0%, transparent 68%); border-radius: 50%; pointer-events: none; }
.page-hero::after { content: ''; position: absolute; bottom: -60px; left: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(141,167,93,0.05) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { max-width: var(--mw); margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.hero-eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--green); border-radius: 2px; display: block; }
.page-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 900; letter-spacing: -0.025em; color: var(--off); margin-bottom: 16px; line-height: 1.08; font-family: var(--font-head); }
.page-hero h1 em { font-style: normal; color: var(--green); }
.page-hero p { font-size: 1.05rem; color: rgba(242,240,244,0.6); max-width: 520px; line-height: 1.75; font-family: var(--font-body); }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.hero-stat { text-align: right; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; color: var(--off); line-height: 1; }
.hero-stat span { font-size: 0.8rem; color: rgba(242,240,244,0.45); font-weight: 500; font-family: var(--font-body); }

/* FILTROS */
.filters-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 80px; position: sticky; top: 68px; z-index: 100; }
.filters-inner { max-width: var(--mw); margin: 0 auto; display: flex; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.filters-inner::-webkit-scrollbar { display: none; }
.filter-btn { padding: 18px 0; margin-right: 32px; font-family: var(--font-head); font-size: 0.88rem; font-weight: 500; color: var(--text-muted); cursor: pointer; border: none; background: none; outline: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; flex-shrink: 0; transition: all .18s; }
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--green); }

/* MAIN */
.courses-main { padding: 64px 80px 96px; background: var(--off); }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }

/* COURSE CARD */
.course-card { background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .22s, transform .22s; display: flex; flex-direction: column; position: relative; }
.course-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.card-thumb { aspect-ratio: 16/9; background: var(--ink); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-thumb-arc { position: absolute; bottom: -50px; left: -50px; width: 260px; height: 260px; border: 1.5px solid rgba(141,167,93,0.15); border-radius: 50%; pointer-events: none; }
.card-thumb-arc2 { position: absolute; bottom: -80px; left: -80px; width: 340px; height: 340px; border: 1px solid rgba(141,167,93,0.08); border-radius: 50%; pointer-events: none; }
.card-thumb-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(141,167,93,0.13) 0%, transparent 65%); pointer-events: none; }
.card-play { width: 52px; height: 52px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: 0 6px 24px rgba(141,167,93,0.35); transition: transform .2s; }
.course-card:hover .card-play { transform: scale(1.1); }
.card-play-ico { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--ink); margin-left: 3px; }
.card-badge { position: absolute; top: 14px; left: 14px; background: rgba(141,167,93,0.18); border: 1px solid rgba(141,167,93,0.3); color: var(--green); font-size: 0.68rem; font-weight: 700; border-radius: 6px; padding: 4px 10px; letter-spacing: 0.06em; text-transform: uppercase; z-index: 2; }
.card-badge.new { background: rgba(212,237,90,0.18); border-color: rgba(212,237,90,0.4); color: #8a9e20; }
.card-badge.soon { background: rgba(141,167,93,0.1); border-color: rgba(141,167,93,0.2); color: rgba(141,167,93,0.7); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 10px; font-family: var(--font-body); }
.card-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.card-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 900; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.015em; line-height: 1.2; }
.card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; flex: 1; font-family: var(--font-body); }
.card-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.card-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; font-family: var(--font-body); }
.card-meta-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.card-footer { border-top: 1px solid var(--border); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-price { display: flex; flex-direction: column; }
.card-price-from { font-size: 0.72rem; color: var(--text-muted); text-decoration: line-through; line-height: 1; margin-bottom: 2px; font-family: var(--font-body); }
.card-price-main { font-family: var(--font-head); font-size: 1rem; font-weight: 900; color: var(--ink); line-height: 1; }
.card-price-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; font-family: var(--font-body); }
.card-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--off); font-family: var(--font-head); font-size: 0.84rem; font-weight: 700; border-radius: 50px; padding: 10px 20px; text-decoration: none; transition: opacity .2s; white-space: nowrap; flex-shrink: 0; }
.card-cta:hover { opacity: 0.88; }
.card-cta.highlighted { background: #D4ED5A; color: var(--ink); }
.course-card.featured { border-color: rgba(141,167,93,0.25); box-shadow: 0 4px 20px rgba(23,34,26,0.08); }
.course-card.coming-soon { opacity: 0.65; }

/* BANNER CTA */
.courses-cta-banner { background: var(--ink); border-radius: var(--r-xl); padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; position: relative; overflow: hidden; }
.courses-cta-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(141,167,93,0.1) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.banner-text h3 { font-family: var(--font-head); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 900; color: var(--off); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.banner-text h3 em { font-style: normal; color: var(--green); }
.banner-text p { font-size: 0.92rem; color: rgba(242,240,244,0.5); font-family: var(--font-body); }
.banner-cta { display: inline-flex; align-items: center; gap: 10px; background: #D4ED5A; color: var(--ink); font-family: var(--font-head); font-size: 0.95rem; font-weight: 800; border-radius: 50px; padding: 16px 32px; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: opacity .2s; position: relative; z-index: 1; }
.banner-cta:hover { opacity: 0.9; }

/* RESPONSIVE */
@media (max-width: 1000px) {
    .page-hero { padding: calc(68px + 56px) 40px 56px; }
    .hero-inner { flex-direction: column; align-items: flex-start; }
    .filters-bar { padding: 0 40px; }
    .courses-main { padding: 48px 40px 72px; }
    .courses-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .page-hero { padding: calc(68px + 40px) 24px 48px; }
    .filters-bar { padding: 0 24px; }
    .courses-main { padding: 40px 24px 64px; }
    .courses-grid { grid-template-columns: 1fr; gap: 18px; }
    .courses-cta-banner { padding: 32px 28px; flex-direction: column; align-items: flex-start; }
    .banner-cta { width: 100%; justify-content: center; }
    .hero-stats { display: none; }
}
@media (max-width: 480px) {
    .page-hero h1 { font-size: 2rem; }
    .filter-btn { margin-right: 20px; font-size: 0.82rem; }
}