/* Common Styles - Navbar and Footer */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #f7fafc;
}

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

/* Navbar Styles */
nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Footer Styles */
.site-footer {
    background: #1a202c;
    margin-top: 80px;
    padding: 60px 0 30px;
    color: #cbd5e0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2d3748;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 350px;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #a0aec0;
    margin: 0 0 20px 0;
}

.footer-contact-wrapper {
    margin-top: 10px;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-base);
}

.footer-contact-link:hover {
    color: var(--color-primary-dark);
}

.footer-contact-icon {
    font-size: 1.1rem;
}

.footer-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-block;
}

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

.footer-disclaimer-full {
    margin-bottom: 25px;
    padding: 15px 0;
}

.footer-disclaimer-full p {
    font-size: 0.7rem;
    color: #718096;
    margin: 0;
    line-height: 1.6;
    max-width: none;
    text-align: left;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Telegram Banner Styles */
.telegram-banner {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    padding: 15px 0;
    margin: 0 0 50px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.15);
    position: relative;
    overflow: hidden;
}

.telegram-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    background-position: 0 0, 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.telegram-background-icon {
    position: absolute;
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    width: 264px;
    height: 200px;
    opacity: 0.15;
    color: white;
    pointer-events: none;
}

.telegram-background-icon svg {
    width: 100%;
    height: 100%;
}

.telegram-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.telegram-stars .star {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.4rem;
    animation: twinkle 3s ease-in-out infinite;
}

.telegram-stars .star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.telegram-stars .star:nth-child(2) { top: 30%; left: 20%; font-size: 0.9rem; animation-delay: 0.5s; }
.telegram-stars .star:nth-child(3) { top: 50%; left: 15%; font-size: 1rem; animation-delay: 1s; }
.telegram-stars .star:nth-child(4) { top: 70%; left: 25%; font-size: 0.8rem; animation-delay: 1.5s; }
.telegram-stars .star:nth-child(5) { top: 15%; right: 15%; font-size: 1.1rem; animation-delay: 2s; }
.telegram-stars .star:nth-child(6) { top: 65%; right: 10%; font-size: 0.9rem; animation-delay: 2.5s; }
.telegram-stars .star:nth-child(7) { top: 10%; left: 30%; font-size: 0.7rem; animation-delay: 0.3s; }
.telegram-stars .star:nth-child(8) { top: 80%; left: 40%; font-size: 1rem; animation-delay: 0.8s; }
.telegram-stars .star:nth-child(9) { top: 40%; left: 50%; font-size: 0.85rem; animation-delay: 1.3s; }
.telegram-stars .star:nth-child(10) { top: 25%; right: 25%; font-size: 0.75rem; animation-delay: 1.8s; }
.telegram-stars .star:nth-child(11) { top: 75%; right: 30%; font-size: 1.05rem; animation-delay: 2.2s; }
.telegram-stars .star:nth-child(12) { top: 5%; right: 5%; font-size: 0.8rem; animation-delay: 0.6s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.telegram-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.telegram-text {
    flex: 1;
    color: white;
}

.telegram-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: white;
}

.telegram-title-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.telegram-title-link:hover {
    opacity: 0.9;
}

.telegram-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #0088cc;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.telegram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.telegram-button-icon {
    width: 18px;
    height: 18px;
    color: #0088cc;
}

/* Page Header Styles - Unified header for all pages */
.page-header,
.blog-header,
.offer-header,
header.main-header {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.65) 0%, rgba(74, 85, 104, 0.65) 100%), url('/images/header_background.webp');
    background-size: cover;
    background-position: center 860px;
    background-attachment: fixed;
    color: var(--color-bg-white);
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    clear: both;
    display: block;
    width: 100%;
    will-change: transform;
}

.page-header::before,
.blog-header::before,
.offer-header::before,
header.main-header::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    z-index: 0;
}

.page-header .container,
.blog-header .container,
.offer-header .container,
header.main-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1,
.blog-header h1,
.offer-header h1,
header.main-header h1 {
    font-size: var(--h1-font-size);
    margin-bottom: var(--space-sm);
    font-weight: var(--h1-font-weight);
    color: var(--color-bg-white);
}

.page-header p,
.blog-header p,
.offer-header p,
header.main-header p {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    max-width: var(--content-max-width);
    margin: 0 auto;
    color: var(--color-bg-white);
}

/* Blog Grid and Card Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Blog Card Featured (primera) */
.blog-card-featured {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    margin-bottom: 30px;
}

.blog-card-featured .blog-thumbnail {
    width: 400px;
    height: 200px;
}

.blog-card-featured .blog-card-content {
    height: 200px;
    justify-content: center;
}

.blog-card-featured .blog-card-title {
    font-size: 1.5rem;
}

.blog-card-featured .blog-card-excerpt {
    font-size: 1rem;
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.blog-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2d3748;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.blog-card-date {
    font-size: 0.85rem;
    color: #718096;
    margin: 0 0 12px 0;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.blog-card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
}

.blog-card-link:hover {
    color: var(--color-primary-dark);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #2d3748;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination .current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Accounts Banner Styles */
.accounts-banner {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    padding: 15px 0;
    margin: 50px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.15);
    position: relative;
    overflow: hidden;
}

.accounts-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    background-position: 0 0, 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.accounts-background-icon {
    position: absolute;
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    width: 264px;
    height: 200px;
    opacity: 0.15;
    color: white;
    pointer-events: none;
}

.accounts-background-icon svg {
    width: 100%;
    height: 100%;
}

.accounts-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.accounts-stars .star {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.4rem;
    animation: twinkle 3s ease-in-out infinite;
}

.accounts-stars .star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.accounts-stars .star:nth-child(2) { top: 30%; left: 20%; font-size: 0.9rem; animation-delay: 0.5s; }
.accounts-stars .star:nth-child(3) { top: 50%; left: 15%; font-size: 1rem; animation-delay: 1s; }
.accounts-stars .star:nth-child(4) { top: 70%; left: 25%; font-size: 0.8rem; animation-delay: 1.5s; }
.accounts-stars .star:nth-child(5) { top: 15%; right: 15%; font-size: 1.1rem; animation-delay: 2s; }
.accounts-stars .star:nth-child(6) { top: 65%; right: 10%; font-size: 0.9rem; animation-delay: 2.5s; }
.accounts-stars .star:nth-child(7) { top: 10%; left: 30%; font-size: 0.7rem; animation-delay: 0.3s; }
.accounts-stars .star:nth-child(8) { top: 80%; left: 40%; font-size: 1rem; animation-delay: 0.8s; }
.accounts-stars .star:nth-child(9) { top: 40%; left: 50%; font-size: 0.85rem; animation-delay: 1.3s; }
.accounts-stars .star:nth-child(10) { top: 25%; right: 25%; font-size: 0.75rem; animation-delay: 1.8s; }
.accounts-stars .star:nth-child(11) { top: 75%; right: 30%; font-size: 1.05rem; animation-delay: 2.2s; }
.accounts-stars .star:nth-child(12) { top: 5%; right: 5%; font-size: 0.8rem; animation-delay: 0.6s; }

.accounts-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.accounts-text {
    flex: 1;
    color: white;
}

.accounts-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: white;
}

.accounts-title-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.accounts-title-link:hover {
    opacity: 0.9;
}

.accounts-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.accounts-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #38a169;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.accounts-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.accounts-button-icon {
    width: 18px;
    height: 18px;
    color: #38a169;
}

.nomina-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15) !important;
}

.nomina-banner .accounts-button {
    color: var(--color-primary);
}

.nomina-banner .accounts-button-icon {
    color: var(--color-primary);
}

/* Main Container Styles */
main.container {
    display: block;
    width: 100%;
    position: relative;
    clear: both;
    float: none;
}

/* Clearfix helper */
.clearfix {
    clear: both;
    display: block;
    width: 100%;
}

/* Empty state styles */
.empty-state {
    text-align: center;
    color: #718096;
    padding: 60px 20px;
}

/* Blog Categories Navigation */
.blog-categories-wrapper {
    clear: both;
    width: 100%;
    float: none;
    display: block;
    overflow: hidden;
    margin-bottom: 50px;
}

.blog-categories-nav {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    clear: both;
    overflow: hidden;
    display: block;
    width: 100%;
    position: relative;
    float: none;
    margin: 0;
}

.blog-categories-nav-content {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.blog-categories-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    border-bottom: none;
    padding-bottom: 2px;
    transition: color 0.2s ease;
    display: inline-block;
    float: none;
}

.blog-categories-link.active {
    color: #000;
    font-weight: 500;
    border-bottom: 2px solid #000;
}

.blog-categories-link.category {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-categories-link:hover {
    color: #000;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-disclaimer-full {
        padding: 20px;
    }

    .footer-disclaimer-full p {
        font-size: 0.75rem;
    }

    .telegram-banner {
        margin: 0 0 40px 0;
        padding: 20px 0;
    }

    .telegram-background-icon {
        width: 150px;
        height: 150px;
        right: 5%;
        opacity: 0.1;
    }

    .telegram-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .telegram-title {
        font-size: 1.2rem;
    }

    .telegram-description {
        font-size: 0.9rem;
    }

    .telegram-button {
        width: 100%;
        justify-content: center;
    }

    .page-header h1,
    .blog-header h1,
    .offer-header h1,
    header.main-header h1 {
        font-size: var(--font-size-3xl);
    }

    .blog-grid,
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .accounts-banner {
        margin: 40px 0;
        padding: 20px 0;
    }

    .accounts-background-icon {
        width: 150px;
        height: 150px;
        right: 5%;
        opacity: 0.1;
    }

    .accounts-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .accounts-title {
        font-size: 1.2rem;
    }

    .accounts-description {
        font-size: 0.9rem;
    }

    .accounts-button {
        width: 100%;
        justify-content: center;
    }
}

