/*
Theme Name: Heiler Brain Theme
Theme URI: https://heilerbrain.com
Author: Heiler Brain
Author URI: https://heilerbrain.com
Description: Tema oficial para Heiler Brain — Plataforma de Aprendizaje Digital. Diseñado para trabajar con el plugin Heiler Brain.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heiler-brain-theme
Tags: education, ecommerce, one-column, custom-colors, custom-logo, featured-images, full-width-template
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --hb-primary: #6C63FF;
    --hb-primary-rgb: 108, 99, 255;
    --hb-secondary: #FF6584;
    --hb-dark: #0f172a;
    --hb-gray: #64748b;
    --hb-light: #f8fafc;
    --hb-white: #ffffff;
    --hb-border: #e2e8f0;
    --hb-success: #10b981;
    --hb-radius: 16px;
    --hb-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --hb-shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--hb-light);
    color: var(--hb-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--hb-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--hb-secondary); }
img { max-width: 100%; height: auto; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--hb-dark); }
h1 { font-size: 42px; font-weight: 800; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
p { margin-bottom: 16px; }

/* Container */
.hb-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.hb-site-header {
    background: #080d1a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hb-site-header-inner {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.hb-site-logo {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.hb-site-logo-img { height: 44px; width: auto; }
.hb-site-logo-icon { font-size: 28px; }
.hb-site-logo-text { font-size: 20px; font-weight: 800; color: #a5b4fc; }
.hb-site-logo-slogan { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 400; }
.hb-site-nav { display: flex; gap: 8px; align-items: center; }
.hb-site-nav a {
    padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
    color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.hb-site-nav a:hover { background: rgba(255,255,255,0.08); color: white; }
.hb-site-nav .hb-cta {
    background: var(--hb-primary); color: white; padding: 10px 24px;
}
.hb-site-nav .hb-cta:hover { opacity: 0.9; color: white; }

/* Hero Section */
.hb-hero {
    background: #080d1a;
    color: white; padding: 120px 24px 100px; text-align: center;
    position: relative; overflow: hidden;
}
.hb-hero canvas {
    position: absolute; inset: 0; z-index: 0;
}
.hb-hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.hb-hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 16px; color: white; letter-spacing: -1px; }
.hb-hero p { font-size: 20px; opacity: 0.8; margin-bottom: 36px; color: #cbd5e1; }
.hb-hero-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px;
    background: white; color: var(--hb-primary); border-radius: 14px;
    font-weight: 700; font-size: 18px; transition: transform 0.2s;
}
.hb-hero-btn:hover { transform: scale(1.05); color: var(--hb-primary); }

/* Features */
.hb-features { padding: 80px 24px; }
.hb-features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto;
}
.hb-feature-card {
    background: var(--hb-white); border-radius: var(--hb-radius); padding: 32px;
    box-shadow: var(--hb-shadow); border: 1px solid var(--hb-border);
    transition: transform 0.3s;
}
.hb-feature-card:hover { transform: translateY(-4px); }
.hb-feature-icon { font-size: 40px; margin-bottom: 16px; }
.hb-feature-card h3 { margin-bottom: 8px; }
.hb-feature-card p { color: var(--hb-gray); font-size: 15px; }

/* Content */
.hb-content { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.hb-content h1 { margin-bottom: 24px; }
.hb-content h2 { margin: 32px 0 16px; }
.hb-content p { font-size: 16px; line-height: 1.8; color: #334155; }

/* Footer */
.hb-site-footer {
    background: var(--hb-dark); color: #94a3b8; padding: 48px 24px;
    text-align: center; margin-top: 64px;
}
.hb-site-footer a { color: var(--hb-primary); }
.hb-footer-brand { font-size: 20px; font-weight: 800; color: white; margin-bottom: 8px; }
.hb-footer-links { display: flex; justify-content: center; gap: 24px; margin: 24px 0; flex-wrap: wrap; }
.hb-footer-links a { color: #cbd5e1; font-size: 14px; }
.hb-footer-links a:hover { color: white; }
.hb-footer-copy { font-size: 13px; margin-top: 24px; }

/* Page Template */
.hb-page { padding: 48px 24px; min-height: 60vh; }

/* Responsive */
@media (max-width: 768px) {
    .hb-hero h1 { font-size: 28px; letter-spacing:-0.5px; }
    .hb-hero p { font-size: 15px; }
    .hb-hero { padding: 60px 16px 48px; }
    .hb-hero-btn { padding:14px 28px; font-size:15px; }
    .hb-site-header-inner { padding: 0 12px; height:60px; }
    .hb-site-logo-img { height:32px; }
    .hb-site-nav { gap: 2px; }
    .hb-site-nav a { padding:6px 10px; font-size:12px; }
    .hb-site-nav .hb-cta { padding:7px 14px; font-size:12px; }
    .hb-features-grid { grid-template-columns: 1fr; gap:16px; padding:0 4px; }
    .hb-features { padding:48px 16px; }
    .hb-feature-card { padding:24px; }
    .hb-feature-icon { font-size:32px; margin-bottom:12px; }
    .hb-feature-card h3 { font-size:18px; }
    .hb-feature-card p { font-size:14px; }
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    .hb-content { padding:32px 16px; }
    .hb-site-footer { padding:32px 16px; }
    .hb-footer-links { gap:16px; }
    .hb-footer-brand { font-size:18px; }
}
@media (max-width: 420px) {
    .hb-hero h1 { font-size:24px; }
    .hb-hero p { font-size:14px; margin-bottom:24px; }
    .hb-hero { padding:48px 12px 40px; }
    .hb-site-nav a:not(.hb-cta) { display:none; }
    .hb-features { padding:36px 12px; }
    .hb-feature-card { padding:20px; }
}
