/* ADN Nómina Blog - CSS Styles */

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(5, 31, 61, 0.1);
    border-bottom: 1px solid rgba(5, 31, 61, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.nav-brand .logo {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.header.scrolled .nav-brand .logo {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav-menu a {
    color: #051F3D;
    text-shadow: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: rgba(255, 255, 255, 0.8);
}

.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.active {
    color: #0A2E5C;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
}

.header.scrolled .nav-menu a.active::after {
    background: #051F3D;
}

.nav-actions .btn {
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: white;
    color: #051F3D;
    border: 2px solid #051F3D;
}

.btn-secondary:hover {
    background: #051F3D;
    color: white;
}

.btn-primary {
    background: white;
    color: #051F3D;
    border: 2px solid white;
    cursor: pointer;
}

.header.scrolled .btn-primary {
    background: linear-gradient(135deg, #051F3D 0%, #0A2E5C 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.header.scrolled .btn-primary:hover {
    box-shadow: 0 5px 15px rgba(5, 31, 61, 0.3);
    background: linear-gradient(135deg, #0A2E5C 0%, #051F3D 100%);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #051F3D;
    transition: all 0.3s ease;
}

/* Blog Hero Section */
.blog-hero {
    padding: 120px 0 80px;
    background: 
        linear-gradient(180deg, rgba(5, 31, 61, 0.9) 0%, rgba(10, 46, 92, 0.6) 50%, rgba(255, 255, 255, 1) 100%),
        url('../images/hero_bg_7_1.png') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.6);
}

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

.blog-hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Blog Content Layout */
.blog-content {
    padding: 80px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

/* Main Content */
.blog-main {
    min-height: 100vh;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(5, 31, 61, 0.1);
    margin-bottom: 60px;
    transition: transform 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(5, 31, 61, 0.15);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.post-category {
    background: linear-gradient(135deg, #051F3D 0%, #0A2E5C 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.post-date,
.post-author {
    color: #666;
}

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

.post-title a {
    color: #051F3D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0A2E5C;
}

.post-excerpt {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    color: #888;
}

.post-stats i {
    margin-right: 5px;
    color: #051F3D;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(5, 31, 61, 0.1);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(5, 31, 61, 0.15);
}

.blog-post .post-content {
    padding: 25px;
}

.blog-post .post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-post .post-excerpt {
    font-size: 1rem;
    margin-bottom: 15px;
}

.blog-post .post-stats {
    gap: 20px;
}

/* Pagination */
.pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 40px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 0 4px;
    background: white;
    color: #051F3D;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #051F3D;
    color: white;
    border-color: #051F3D;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #051F3D 0%, #0A2E5C 100%);
    color: white;
    border-color: transparent;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(5, 31, 61, 0.1);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #051F3D;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #051F3D;
}

.search-btn {
    padding: 12px 15px;
    background: #051F3D;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #0A2E5C;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.category-list a:hover {
    color: #051F3D;
}

.category-list span {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(5, 31, 61, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
}

.recent-post-content h4 {
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.recent-post-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: #051F3D;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #666;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: #f8fafc;
    color: #666;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #051F3D;
    color: white;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #051F3D 0%, #0A2E5C 100%);
    color: white;
    text-align: center;
}

.cta-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cta-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cta-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-content .btn {
    background: white;
    color: #051F3D;
}

.cta-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #051F3D;
    margin-bottom: 15px;
}

.newsletter-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #051F3D;
}

/* Footer */
.footer {
    background: #051F3D;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
}

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

.social-link {
    width: 40px;
    height: 40px;
    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-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

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

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: white;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
        top: auto;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
}
