/*
Theme Name: Bytertek Pres
Theme URI: https://bytertek.com
Author: Bytertek
Author URI: https://bytertek.com
Description: Tema personalizado para Bytertek con soporte Gutenberg
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bytertek-pres
Tags: blog, one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, block-patterns, block-styles, wide-blocks
*/

:root {
    --bt-primary: #2563eb;
    --bt-secondary: #64748b;
    --bt-accent: #10b981;
    --bt-dark: #1e293b;
    --bt-light: #f8fafc;
    --bt-danger: #ef4444;
    --bt-bg: #f8fafc;
    --bt-text: #1e293b;
    --bt-gradient-start: #2563eb;
    --bt-gradient-end: #1d4ed8;
    --bt-container: 1200px;
    --bt-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bt-font-size: 16px;
    --bt-btn-radius: 8px;
    --bt-btn-padding: 12px;
    --bt-section-spacing: 60px;
    --bt-card-padding: 20px;
    --bt-header-height: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--bt-font);
    font-size: var(--bt-font-size);
    background: var(--bt-bg);
    color: var(--bt-text);
    line-height: 1.6;
}

.bt-container {
    max-width: var(--bt-container);
    margin: 0 auto;
    padding: 0 20px;
}

.bt-header {
    background: white;
    height: var(--bt-header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.bt-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.bt-header-centered .bt-header-inner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
    height: auto;
}

.bt-header-inline .bt-logo {
    background: transparent;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.bt-header-minimal {
    background: transparent;
    box-shadow: none;
}

.bt-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--bt-primary);
    text-decoration: none;
}

.bt-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.bt-nav a {
    color: var(--bt-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.bt-nav a:hover { color: var(--bt-primary); }

.bt-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.bt-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bt-text);
    margin: 5px 0;
}

.bt-hero {
    background: linear-gradient(135deg, var(--bt-gradient-start), var(--bt-gradient-end));
    color: white;
    padding: var(--bt-section-spacing) 0;
    text-align: center;
}

.bt-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.bt-hero p {
    font-size: clamp(18px, 2vw, 20px);
    opacity: 0.9;
    margin-bottom: 24px;
}

.bt-content {
    padding: var(--bt-section-spacing) 0;
}

.bt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bt-card {
    background: white;
    border-radius: var(--bt-btn-radius);
    padding: var(--bt-card-padding);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bt-btn {
    display: inline-block;
    background: var(--bt-primary);
    color: white;
    padding: var(--bt-btn-padding) calc(var(--bt-btn-padding) * 2);
    border-radius: var(--bt-btn-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.bt-btn:hover {
    background: var(--bt-secondary);
    transform: translateY(-1px);
}

.bt-footer {
    background: var(--bt-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.bt-footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.bt-footer a {
    color: white;
    text-decoration: none;
}

.bt-footer a:hover {
    color: var(--bt-primary);
}

.bt-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.bt-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: background 0.2s;
}

.bt-social a:hover {
    background: var(--bt-primary);
}

.bt-article {
    background: white;
    border-radius: var(--bt-btn-radius);
    padding: var(--bt-card-padding);
    margin-bottom: 20px;
}

.bt-article-header {
    margin-bottom: 20px;
}

.bt-article-date {
    font-size: 14px;
    color: var(--bt-secondary);
}

.bt-article-title {
    font-size: 28px;
    margin: 8px 0;
}

.bt-article-content {
    line-height: 1.8;
}

.bt-tags {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bt-tag {
    background: var(--bt-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.bt-sidebar {
    background: white;
    border-radius: var(--bt-btn-radius);
    padding: var(--bt-card-padding);
}

.bt-widget {
    margin-bottom: 20px;
}

.bt-widget-title {
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bt-light);
}

@media (max-width: 768px) {
    .bt-header-inner {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
        height: auto;
    }

    .bt-header-centered .bt-header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .bt-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .bt-menu-toggle {
        display: block;
    }

    .bt-nav {
        display: none;
        width: 100%;
        padding: 16px 0;
    }

    .bt-nav.bt-nav-open {
        display: block;
    }

    .bt-hero h1 {
        font-size: 32px;
    }

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