/* ============================================
   BLOG PÚBLICO - ESTILOS (estilo MetaBlog)
   ============================================ */

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

:root {
    --primary-color: #F25C5C;
    --secondary-color: #f7931e;
    --dark-color: #2c3e50;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --text-color: #34495e;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background: #ffffff;
    line-height: 1.6;
}

/* ============================================
   HERO SECTION
   ============================================ */
.blog-hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    padding: 8px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 18px 25px 18px 60px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FEATURED POST
   ============================================ */
.featured-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(242, 92, 92, 0.3);
}

.featured-content {
    padding: 50px 40px 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 92, 92, 0.3);
    align-self: flex-start;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 92, 92, 0.4);
    color: white;
}

/* ============================================
   LATEST POSTS
   ============================================ */
.latest-posts {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
}

.filter-tabs {
    display: flex;
    gap: 15px;
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover,
.filter-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* ============================================
   POST GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 30px;
}

.post-meta {
    margin-bottom: 15px;
}

.meta-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #999;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-link:hover {
    gap: 12px;
}

/* ============================================
   PÁGINA DE ARTÍCULO
   ============================================ */
.post-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    width: 100%;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.post-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-breadcrumb a:hover {
    opacity: 0.7;
}

.post-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.post-hero-meta {
    display: flex;
    gap: 30px;
    font-size: 1rem;
    color: white;
}

.post-hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   CONTENIDO DEL ARTÍCULO
   ============================================ */
.post-content-wrapper {
    padding: 80px 0;
    background: var(--light-gray);
}

.post-content-wrapper .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    max-width: 1400px;
}

.post-content {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-lead {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
    font-style: italic;
}

.post-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
}

.post-body h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 50px 0 25px;
    color: var(--dark-color);
}

.post-body h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--dark-color);
}

.post-body p {
    margin-bottom: 25px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.post-share {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.post-share h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.share-btn.email {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

/* ============================================
   SIDEBAR
   ============================================ */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.sidebar-card p {
    color: #666;
    margin-bottom: 20px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 92, 92, 0.3);
    color: white;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-post-item:hover {
    transform: translateX(5px);
}

.related-post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.related-post-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    line-height: 1.3;
}

.related-date {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   BOTÓN FLOTANTE
   ============================================ */
.back-button-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(242, 92, 92, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(242, 92, 92, 0.4);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(242, 92, 92, 0.5);
    color: white;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
}

.newsletter-card {
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.newsletter-icon i {
    font-size: 2rem;
}

.newsletter-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 92, 92, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.blog-footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    padding: 8px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .post-content-wrapper .container {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        order: -1;
    }
}

@media (max-width: 992px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 40px 30px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-hero {
        height: 400px;
    }
    
    .post-hero-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 30px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

