/*
Theme Name: Minimalist Builder
Theme URI: https://example.com
Author: Tu Nombre
Author URI: https://example.com
Description: Tema minimalista con constructor drag and drop y gestión completa de templates
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimalist-builder
Tags: custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005177;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: #333;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 20px 0 0;
}

.main-navigation a {
    color: #333;
    padding: 5px 0;
}

/* Content */
.site-content {
    padding: 40px 0;
    min-height: 60vh;
}

/* Posts */
.post {
    margin-bottom: 40px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

/* Archive & Loop */
.posts-list {
    display: grid;
    gap: 30px;
}

.loop-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.loop-item:hover {
    transform: translateY(-5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 4px;
}

.pagination .current {
    background: #0073aa;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}

/* Search */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 20px 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 .page-title {
    font-size: 6rem;
    color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* Builder Styles */
.mb-builder-active .site-content {
    padding: 0;
}

.mb-section {
    padding: 60px 0;
    position: relative;
}

.mb-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.mb-column {
    padding: 0 15px;
    flex: 1;
    min-width: 0;
}

.mb-widget {
    margin-bottom: 30px;
}

.mb-widget-heading {
    margin-bottom: 20px;
}

.mb-widget-text {
    line-height: 1.8;
}

.mb-widget-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-align: center;
}

.mb-widget-image img {
    max-width: 100%;
    height: auto;
    display: block;
}
