/* Professional Theme - Diseño corporativo/negocios */

/* Variables CSS */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: 0.5px;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.btn-search {
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero responsive height */
@media (max-width: 999px) {
    .hero-section {
        min-height: 250px !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 220px !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 180px !important;
    }
}

@media (max-width: 400px) {
    .hero-section {
        min-height: 150px !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

/* Post Cards */
.post-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.post-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.post-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.post-meta i {
    margin-right: 0.25rem;
}

.post-meta a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.post-meta a:hover {
    color: var(--secondary-color);
}

.post-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-card-title a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-read-more {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
}

.btn-read-more:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

.post-categories {
    margin-bottom: 1rem;
}

.badge {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    margin-right: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.badge:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

/* Single Post */
.single-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-post-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.single-post-content {
    background: var(--bg-white);
    padding: 3rem;
    border: 1px solid var(--border-color);
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.single-post-content h2,
.single-post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.single-post-content a:hover {
    color: var(--primary-color);
}

/* Author Info (en single post) */
.author-info {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: 3rem;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.author-name a {
    color: var(--text-color);
    text-decoration: none;
}

.author-name a:hover {
    color: var(--secondary-color);
}

/* Author Profile Card (página de autor) */
.author-profile-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 0;
}

.author-profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.author-profile-avatar-placeholder {
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    margin: 0 auto;
}

.author-profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.author-profile-bio {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.author-stats {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0;
}

.stat-item {
    margin-bottom: 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
}

.related-posts h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-item.disabled .page-link {
    background: var(--bg-light);
    border-color: var(--border-color);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--primary-color);
    padding: 5rem 0;
    margin-top: 4rem;
}

.newsletter-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.newsletter-form .btn-newsletter {
    background: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: 0;
    padding: 1rem 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.newsletter-form .btn-newsletter:hover {
    background: #2980b9;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 3rem 0 2rem;
    text-align: center;
}

.site-footer p {
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--secondary-color);
}

.footer-legal {
    font-size: 0.875rem;
    margin-top: 1rem;
}

.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 999;
}

.btn-back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Page Header (categorías, autor, búsqueda) */
.page-header {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 5rem 0;
}

.error-404 h1 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .single-post-content {
        padding: 2rem;
    }
    
    .single-post-title {
        font-size: 2.5rem;
    }
    
    .author-profile-card {
        padding: 2rem;
        text-align: center;
    }
    
    .author-profile-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 2rem 0;
    }
    
    .single-post-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .newsletter-section {
        padding: 3rem 0;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .btn-back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .author-profile-card {
        padding: 1.5rem;
    }
    
    .author-profile-avatar {
        width: 120px;
        height: 120px;
        border-width: 3px;
        margin-bottom: 1rem;
    }
    
    .author-profile-avatar-placeholder {
        font-size: 3rem;
    }
    
    .author-profile-name {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .author-profile-bio {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .author-stats {
        padding: 1.5rem;
        margin-top: 1rem;
    }
}

/* Videos responsivos */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.4;
    padding: 0 1rem;
}

/* Utilidades */
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

