/*
Theme Name: CyberCerts Academy Professional
Author: CyberCerts Academy
Version: 1.1
Description: Versión fiel al diseño HTML original con soporte dinámico.
*/

:root {
  --bg-primary: #0B132B;
  --bg-secondary: #050A14;
  --accent-blue: #00B4D8;
  --accent-green: #3EFF8B;
  --accent-orange: #FFB703;
  --text-primary: #E6EDF3;
  --text-muted: #9BAEC8;
  --border-soft: #1C2541;
  --card-bg: #0D1B2A;
  --white: #FFFFFF;
  --discount-purple: #A78BFA;
  --telegram-blue: #229ED9;
  --incoming-orange: #FF9F1C;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif; }
body { background: radial-gradient(circle at top, #0B132B 0%, #050A14 65%); color: var(--text-primary); line-height: 1.6; scroll-behavior: smooth; }
a { text-decoration: none; transition: 0.3s; }

header {
  background: rgba(5, 10, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 1000;
}
.header-left { display: flex; align-items: center; gap: 16px; }
header img.brand-logo { height: 45px; }
.brand-name { font-size: 1.3rem; font-weight: 700; color: var(--white); }
.main-menu { display: flex; gap: 25px; margin-left: 40px; }
.main-menu a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.main-menu a:hover { color: var(--accent-green); }
.header-right { display: flex; align-items: center; gap: 20px; }
.lang-switcher { display: flex; gap: 10px; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border-soft); background: rgba(255,255,255,0.03); }
.lang-flag { cursor: pointer; font-size: 1.1rem; opacity: 0.4; transition: 0.2s; white-space: nowrap; }
.lang-flag.active { opacity: 1; transform: scale(1.1); }
.udemy-header-logo { height: 22px; width: auto; }
.udemy-mobile-wrapper { display: none; text-align: center; padding-top: 40px; }

.hero { max-width: 1200px; margin: auto; padding: 60px 40px; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-logo-side { width: 100%; max-width: 400px; filter: drop-shadow(0 0 35px rgba(0,180,216,.35)); }
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
.hero h1 span { color: var(--accent-green); }
.hero p { color: var(--text-muted); max-width: 560px; margin-bottom: 36px; font-size: 1.15rem; }
.hero-cta { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-outline { display: inline-block; padding: 12px 30px; border: 2px solid var(--border-soft); color: var(--white); border-radius: 10px; font-weight: 600; transition: 0.3s; }
.btn-outline:hover { background: var(--border-soft); border-color: var(--accent-blue); }

.section { max-width: 1200px; margin: auto; padding: 60px 40px; }
.section-title { font-size: 2.2rem; margin-bottom: 40px; text-align: center; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.course-card { background: var(--card-bg); border-radius: 18px; border: 1px solid var(--border-soft); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: 0.3s ease; }
.course-card:hover { transform: translateY(-10px); border-color: var(--accent-blue); }
.status-badge { position: absolute; top: 15px; right: 15px; background: var(--accent-green); color: #050A14; padding: 5px 12px; border-radius: 8px; font-weight: 800; font-size: 0.75rem; z-index: 5; }
.status-badge.incoming { background: var(--incoming-orange); }
.course-image { width: 100%; height: 210px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border-soft); }
.course-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.course-category { font-size: 0.7rem; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 10px; font-weight: 700; letter-spacing: 1.2px; }
.course-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--white); }
.course-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.course-price { font-size: 1.5rem; color: var(--accent-green); font-weight: 800; margin-bottom: 15px; display: none; }
.course-price span { font-size: 0.8rem; color: var(--text-muted); font-weight: normal; margin-left: 5px; text-decoration: line-through; }
.course-rating { color: var(--accent-orange); font-size: 0.9rem; margin-bottom: 12px; font-weight: bold; }
.course-rating span { color: var(--text-muted); font-weight: normal; font-size: 0.8rem; }
.secure-tag { text-align: center; font-size: 0.72rem; color: var(--text-muted); margin-top: 12px; opacity: 0.7; }
.discount-banner { background: rgba(167, 139, 250, 0.1); border: 1px dashed var(--discount-purple); border-radius: 10px; padding: 12px; margin-bottom: 15px; display: none; }
.discount-banner.active { display: block; }
.coupon-code-box { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; background: var(--bg-secondary); padding: 5px 10px; border-radius: 5px; border: 1px solid var(--border-soft); }
.coupon-code-box code { font-family: monospace; color: var(--white); font-size: 0.9rem; }
.copy-btn { font-size: 0.7rem; background: var(--border-soft); color: var(--white); border: none; padding: 3px 8px; border-radius: 4px; cursor: pointer; }
.btn-course { display: block; text-align: center; padding: 12px; border: 2px solid var(--accent-green); color: var(--accent-green); border-radius: 10px; font-weight: 700; transition: 0.3s; cursor: pointer; background: transparent; }
.btn-course:hover { background: var(--accent-green); color: #050A14; }
.btn-discount-mode { background: linear-gradient(90deg, var(--accent-blue), var(--discount-purple)); border: none; color: white; }
.btn-incoming { border-color: var(--incoming-orange); color: var(--incoming-orange); cursor: default; }

.telegram-box { position: fixed; bottom: 20px; right: 20px; background: linear-gradient(135deg, #2AABEE, #229ED9); color: white; padding: 12px 18px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; z-index: 9999; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,0.1); }
.telegram-icon-wrapper { width: 32px; height: 32px; flex-shrink: 0; }
.telegram-text strong { display: block; font-size: 14px; line-height: 1.3; }
.telegram-text span { font-size: 12px; opacity: 0.9; font-weight: 500; }

.newsletter-section { background: linear-gradient(90deg, #0B132B, #1C2541); padding: 60px 40px; margin: 40px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.newsletter-container { max-width: 1000px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter-content { flex: 1; min-width: 300px; }
.newsletter-form { display: flex; gap: 10px; flex: 2; min-width: 300px; }
.newsletter-form input[type="email"] { flex: 1; padding: 15px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--bg-secondary); color: var(--white); outline: none; font-size: 1rem; }

footer { padding: 40px; text-align: center; border-top: 1px solid var(--border-soft); background: var(--bg-secondary); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 15px; flex-wrap: wrap; }
.footer-links a { color: var(--accent-green); font-weight: 600; font-size: 0.9rem; }

@media (max-width: 900px) {
  header { padding: 15px 20px; }
  .header-right .udemy-header-logo { display: none; }
  .udemy-mobile-wrapper { display: block; }
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-logo-side { margin: auto; max-width: 280px; }
  .hero h1 { font-size: 2.2rem; }
  .telegram-box { right: 15px; bottom: 15px; padding: 10px 14px; max-width: 260px; }
}