/* Reset y variables CSS */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Colores específicos para cada sección */
    --cts-color: #2563eb;
    --cts-dark: #1d4ed8;
    --cts-light: #eff6ff;
    --gratificacion-color: #dc2626;
    --gratificacion-dark: #b91c1c;
    --gratificacion-light: #fef2f2;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    text-align: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
    color: white;
}

/* Header Navigation Menu */
.header-nav {
    margin-top: 1.5rem;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.nav-link i {
    font-size: 1rem;
    opacity: 0.9;
}

.nav-link span {
    font-weight: 500;
}

/* Responsive header navigation */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-link i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
}

/* Responsive logo adjustments */
@media (max-width: 640px) {
    .logo {
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 70px;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
}

/* Main Content */
.main {
    padding: 1rem 0;
    min-height: calc(100vh - 200px);
}

/* Navigation Tabs */
.tabs {
    display: flex;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-btn i {
    font-size: 1.25rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Cards */
.card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.card-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.form-input,
.form-select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--surface-color);
    color: var(--text-primary);
}

/* Ocultar las flechitas de incremento/decremento en inputs numéricos */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Form Sections */
.form-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    overflow-x: hidden;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-section-title i {
    color: var(--primary-color);
}

.form-section-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Ensure form groups don't overflow */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-x: hidden;
}

/* Input Grid */
.input-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    max-width: 100%;
    overflow-x: auto;
}

.input-grid .form-input {
    text-align: center;
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
    min-width: 0;
}

/* Responsive adjustments for input grid */
@media (max-width: 640px) {
    .input-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .input-grid .form-input {
        padding: 0.625rem 0.375rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .input-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .input-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 1025px) {
    .input-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.75rem;
    }
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s ease;
}

.radio-label:hover {
    background: var(--background-color);
}

.radio-input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.radio-input:checked + .radio-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.radio-input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 48px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #475569;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* PDF Download Section */
.pdf-download-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.pdf-download-section .btn {
    min-width: 180px;
}

/* Results */
.results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.results-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.result-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.result-card:hover {
    box-shadow: var(--shadow-sm);
}

.result-card.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
}

.result-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-card.highlight .result-label {
    color: rgba(255, 255, 255, 0.9);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.result-card.highlight .result-value {
    color: white;
    font-size: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.breakdown {
    background: var(--background-color);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-top: 1rem;
}

.breakdown h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.breakdown-item span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive Design - Mobile First */
@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
    
    .header {
        padding: 3rem 0;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.125rem;
    }
    
    .main {
        padding: 1.5rem 0;
    }
    
    .tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        min-width: 140px;
        flex-direction: row;
        padding: 1rem 1.5rem;
    }
    
    .tab-btn span {
        display: block;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .card {
        padding: 2.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
    
    .header {
        padding: 2rem 0;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .card {
        padding: 3rem;
    }
    
    .form {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .results {
        max-width: 600px;
        margin: 2rem auto 0;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
    
    .tabs {
        max-width: 800px;
        margin: 0 auto 2rem;
    }
    
    .card {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active {
    animation: fadeIn 0.3s ease;
}

.results {
    animation: fadeIn 0.5s ease;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    background: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Focus States for Accessibility */
.tab-btn:focus,
.btn:focus,
.form-input:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Estilos específicos para CTS */
.cts-card {
    border-left: 4px solid var(--cts-color);
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--cts-light) 100%);
}

.cts-card .card-title i {
    color: var(--cts-color);
}

.cts-card .form-label i {
    color: var(--cts-color);
}

.cts-card .btn-primary {
    background: var(--cts-color);
    box-shadow: 0 1px 2px 0 rgb(37 99 235 / 0.2);
}

.cts-card .btn-primary:hover {
    background: var(--cts-dark);
    box-shadow: 0 4px 6px -1px rgb(37 99 235 / 0.3), 0 2px 4px -2px rgb(37 99 235 / 0.3);
}

.cts-card .result-card.highlight {
    background: linear-gradient(135deg, var(--cts-color) 0%, var(--cts-dark) 100%);
    box-shadow: 0 10px 15px -3px rgb(37 99 235 / 0.3), 0 4px 6px -4px rgb(37 99 235 / 0.3);
}

.cts-card .form-input:focus,
.cts-card .form-select:focus {
    border-color: var(--cts-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.cts-card .radio-input:checked + .radio-custom {
    border-color: var(--cts-color);
    background: var(--cts-color);
}

/* Estilos específicos para Gratificación */
.gratificacion-card {
    border-left: 4px solid var(--gratificacion-color);
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--gratificacion-light) 100%);
}

.gratificacion-card .card-title i {
    color: var(--gratificacion-color);
}

.gratificacion-card .form-label i {
    color: var(--gratificacion-color);
}

.gratificacion-card .btn-primary {
    background: var(--gratificacion-color);
    box-shadow: 0 1px 2px 0 rgb(220 38 38 / 0.2);
}

.gratificacion-card .btn-primary:hover {
    background: var(--gratificacion-dark);
    box-shadow: 0 4px 6px -1px rgb(220 38 38 / 0.3), 0 2px 4px -2px rgb(220 38 38 / 0.3);
}

.gratificacion-card .result-card.highlight {
    background: linear-gradient(135deg, var(--gratificacion-color) 0%, var(--gratificacion-dark) 100%);
    box-shadow: 0 10px 15px -3px rgb(220 38 38 / 0.3), 0 4px 6px -4px rgb(220 38 38 / 0.3);
}

.gratificacion-card .form-input:focus,
.gratificacion-card .form-select:focus {
    border-color: var(--gratificacion-color);
    box-shadow: 0 0 0 3px rgb(220 38 38 / 0.1);
}

.gratificacion-card .radio-input:checked + .radio-custom {
    border-color: var(--gratificacion-color);
    background: var(--gratificacion-color);
}

/* Countdown Banner Styles */
.countdown-banner {
    background: linear-gradient(135deg, var(--gratificacion-color) 0%, var(--gratificacion-dark) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin: 0;
}

.countdown-content {
    max-width: 600px;
    margin: 0 auto;
}

.countdown-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.countdown-title i {
    font-size: 1.5rem;
}

.countdown-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-message {
    margin-top: 2rem;
}

.countdown-message p {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.countdown-note {
    font-size: 0.875rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive countdown */
@media (max-width: 768px) {
    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .countdown-item {
        padding: 1rem 0.75rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-title {
        font-size: 1.5rem;
    }
    
    .countdown-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .countdown-banner {
        padding: 2rem 1rem;
    }
    
    .countdown-timer {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.75rem;
    }
}

/* Footer Mejorado */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.tagline-footer {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

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

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Colores específicos por red social en hover */
.social-links a[aria-label="WhatsApp Channel"]:hover {
    background: #25D366;
}

.social-links a[aria-label="Telegram"]:hover {
    background: #0088cc;
}

.social-links a[aria-label="TikTok"]:hover {
    background: #000000;
}

.social-links a[aria-label="LinkedIn"]:hover {
    background: #0077b5;
}

.social-links a[aria-label="YouTube"]:hover {
    background: #FF0000;
}

.footer-bottom {
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom .disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
    max-width: 800px;
    margin: 1rem auto 0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .tabs {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .results {
        border-top: 1px solid #000;
    }
}

/* ========================================
   ESTILOS PARA PÁGINAS ADICIONALES
   ======================================== */

/* Hero Section para páginas adicionales */
.hero-section {
    text-align: center;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.hero-title i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ========================================
   ESTILOS PARA PÁGINA TUTORIAL
   ======================================== */

.tutorial-categories,
.resource-categories,
.blog-categories {
    margin-bottom: 2rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.category-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.category-filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.filter-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.category-filter-btn.active .filter-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-filter-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

.category-filter-btn .video-count {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-filter-btn.active .video-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.video-count,
.resource-count,
.article-count {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
}

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

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

/* Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-card.featured {
    border: 2px solid var(--primary-color);
}

.video-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.video-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* YouTube Channel Card */
.youtube-channel {
    margin-bottom: 3rem;
}

.channel-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    border: none;
    color: white;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.channel-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.channel-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.channel-details p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.channel-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.channel-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.channel-actions .btn-primary {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    border: none;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.channel-actions .btn-primary:hover {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* ========================================
   ESTILOS PARA PÁGINA RECURSOS
   ======================================== */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.download-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.download-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.download-actions {
    flex-shrink: 0;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Resources List */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.resource-details {
    flex: 1;
}

.resource-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.resource-details p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.resource-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.file-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.resource-actions {
    flex-shrink: 0;
}

/* ========================================
   ESTILOS PARA PÁGINA BLOG
   ======================================== */

.featured-article {
    margin-bottom: 4rem;
}

.featured-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
}

.featured-image {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.featured-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.article-date {
    color: var(--text-muted);
}

.featured-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.article-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay para mejor legibilidad del badge sobre imágenes */
.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.article-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.article-content {
    padding: 1.5rem;
}

.article-content .article-meta {
    margin-bottom: 0.75rem;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-content .article-footer {
    margin-bottom: 0;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: var(--shadow-lg);
}

.newsletter-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.newsletter-content h3 i {
    font-size: 1.75rem;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.newsletter-form .btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    border: none;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.newsletter-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.newsletter-form .btn-primary:hover::before {
    left: 100%;
}

.newsletter-form .btn-primary:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #128C7E 100%);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.newsletter-form .btn-primary:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.newsletter-form .btn-primary i {
    font-size: 1.2rem;
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.newsletter-input {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    min-width: 250px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

/* Popular Tags */
.popular-tags {
    margin-bottom: 3rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tag {
    background: var(--surface-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* ========================================
   RESPONSIVE DESIGN PARA PÁGINAS ADICIONALES
   ======================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-title i {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        gap: 0.75rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-filter-btn {
        min-width: 80px;
        padding: 0.5rem 0.75rem;
        flex-shrink: 0;
    }
    
    .filter-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .category-filter-btn span {
        font-size: 0.8rem;
    }
    
    .category-filter-btn .video-count {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    .videos-grid,
    .downloads-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .channel-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .channel-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .channel-logo {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
        align-self: center;
        order: -1;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
    }
    
    .resource-item {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .newsletter-content h3 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-content h3 i {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .newsletter-input {
        min-width: auto;
        width: 100%;
    }
    
    .filter-tabs {
        gap: 0.75rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        min-width: 80px;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .category-card,
    .download-card,
    .resource-item {
        padding: 1.5rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-card {
        padding: 1.5rem;
    }
    
    .channel-logo {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .newsletter-form .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .newsletter-form .btn-primary i {
        font-size: 1.2rem;
    }
}

/* ============================================
   BLOG ARTICLE STYLES
   ============================================ */

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #9ca3af;
}

/* Blog Article Container */
.blog-article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* Article Header */
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
}

.article-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 1rem 0;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.author-title {
    font-size: 0.85rem;
    color: #6b7280;
}

.article-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6b7280;
}

.article-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-info i {
    color: #2563eb;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #374151;
    margin-right: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn i {
    font-size: 1.1rem;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #1fc457;
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #0c63d4;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #0c8bd9;
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #084d8f;
    transform: translateY(-2px);
}

.share-btn.copy {
    background: #6b7280;
    color: white;
}

.share-btn.copy:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-intro {
    margin-bottom: 2rem;
}

.article-intro .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #1f2937;
    font-weight: 400;
}

/* Table of Contents */
.table-of-contents {
    background: #f9fafb;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.table-of-contents h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents h3 i {
    color: #2563eb;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.table-of-contents a:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

/* Article Sections */
.article-section {
    margin: 2.5rem 0;
}

.article-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.article-section h2 i {
    color: #2563eb;
    font-size: 1.5rem;
}

.article-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 1rem;
}

.article-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin: 1.25rem 0 0.75rem;
}

.article-section p {
    margin-bottom: 1.25rem;
}

.article-section strong {
    color: #111827;
    font-weight: 600;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.info-box-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.info-box-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 0.5rem 0;
}

.info-box-content p {
    margin: 0;
    color: #1e3a8a;
    line-height: 1.6;
}

/* Highlight Box (Warning) */
.highlight-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.highlight-box.warning {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
}

.highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.highlight-box.warning .highlight-icon {
    background: #f59e0b;
    color: white;
}

.highlight-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.highlight-box.warning .highlight-content h4 {
    color: #b45309;
}

.highlight-content p {
    margin: 0;
    line-height: 1.6;
}

.highlight-box.warning .highlight-content p {
    color: #92400e;
}

/* Tip Box */
.tip-box {
    display: flex;
    gap: 1rem;
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.tip-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tip-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #047857;
    margin: 0 0 0.5rem 0;
}

.tip-content p {
    margin: 0;
    color: #065f46;
    line-height: 1.6;
}

.tip-content .inline-link {
    color: #059669;
    font-weight: 600;
    text-decoration: underline;
}

/* Formula Box */
.formula-box {
    background: #fafafa;
    border: 2px solid #e5e7eb;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.formula-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.formula {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.formula code {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.checklist i {
    color: #10b981;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Example Box */
.example-box {
   
    border: 2px solid #0b74f5;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
}

.example-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 1rem 0;
}

.example-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.example-details li {
    padding: 0.5rem 0;
    color: #78350f;
    font-size: 1rem;
}

.calculation-steps {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.calculation-steps h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin: 1rem 0 0.5rem 0;
}

.calculation-steps h5:first-child {
    margin-top: 0;
}

.calc-step {
    background: #fef3c7;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: #78350f;
}

.result-box {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.result-box i {
    font-size: 2rem;
}

.result-box p {
    margin: 0;
}

.result-box strong {
    font-size: 1.3rem;
    color: white;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.tip-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.tip-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.tip-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Article Conclusion */
.article-conclusion {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-conclusion h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    border-bottom: none;
}

.article-conclusion p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Call to Action */
.article-cta {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.cta-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: white;
}

.cta-content h3 i {
    font-size: 2rem;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.article-cta .btn-primary {
    background: white;
    color: #2563eb;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.article-cta .btn-primary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tags-label {
    font-weight: 600;
    color: #374151;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #2563eb;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.article-share-footer {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.share-text {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.social-share-compact {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn-compact {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn-compact:hover {
    transform: translateY(-3px);
}

.share-btn-compact.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn-compact.facebook {
    background: #1877f2;
    color: white;
}

.share-btn-compact.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-compact.linkedin {
    background: #0a66c2;
    color: white;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
}

.related-articles h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-articles h2 i {
    color: #2563eb;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #2563eb;
}

.related-image {
    height: 150px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-category {
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.related-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.related-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.related-content .read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.related-content .read-more:hover {
    color: #1d4ed8;
    gap: 0.75rem;
}

/* Responsive Styles for Articles */
@media (max-width: 768px) {
    .blog-article {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-section h2 {
        font-size: 1.4rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .info-box,
    .highlight-box,
    .tip-box {
        flex-direction: column;
        text-align: center;
    }
    
    .article-content {
        font-size: 1rem;
    }
}
