/* ===================================
   Estilos específicos para el demo
   =================================== */

/* Fix for white text on white background */
.step, .steps .step {
    color: #374151;
}

/* Override global checklist styles for specific sections */
.final-checklist .checklist-item {
    color: var(--text-light);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.final-checklist .checklist-item::before {
    content: none;
}

/* Also fix regular checklist items in this post */
.checklist .checklist-item {
    color: var(--text-secondary);
    background: transparent;
}

.checklist .checklist-item::before {
    content: "✅";
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.3;
}

/* Comparison demo */
.comparison-demo {
    margin: 3rem 0;
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 2px dashed var(--border-color);
}

.comparison-header h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.comparison-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
}

.device {
    text-align: center;
}

.device-screen {
    width: 200px;
    height: 360px;
    background: #1f2937;
    border-radius: 20px;
    padding: 20px 10px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.bad-example, .good-example {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.bad-example {
    font-size: 8px;
    line-height: 1.2;
}

.bad-header {
    background: #6366f1;
    color: white;
    padding: 8px 4px;
    white-space: nowrap;
    overflow: hidden;
}

.bad-content {
    padding: 8px 4px;
    font-size: 7px;
}

.bad-buttons {
    padding: 8px 4px;
    display: flex;
    gap: 4px;
}

.bad-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 2px 4px;
    font-size: 6px;
    border-radius: 2px;
}

.good-example {
    font-size: 12px;
    line-height: 1.4;
}

.good-header {
    background: #6366f1;
    color: white;
    padding: 12px;
    font-weight: bold;
}

.good-content {
    padding: 12px;
    font-size: 11px;
}

.good-buttons {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.good-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 10px;
    border-radius: 4px;
    font-weight: bold;
}

.device-label {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Approach comparison */
.approach-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.approach-item {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.approach-item.wrong {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.approach-item.correct {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--text-light);
}

.approach-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.approach-steps .step {
    background: var(--card-bg);
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid var(--text-muted);
}

.step-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.step-result.bad {
    background: #dc2626;
    color: white;
}

.step-result.good {
    background: #16a34a;
    color: white;
}

/* Breakpoints demo */
.breakpoints-demo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.breakpoint-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.breakpoint-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.bp-size {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.bp-device {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.bp-code {
    background: #1f2937;
    color: #10b981;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* Project features */
.project-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Testing guide */
.testing-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.testing-method {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-blue);
}

.testing-method h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.steps .step {
    background: var(--card-bg);
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border-left: 4px solid #10b981;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

/* Final checklist */
.final-checklist {
    display: grid;
    grid-template-columns: repeat( 3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.checklist-section h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
}

.checklist-section .checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: var(--card-bg);
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.checklist-section .checklist-item:hover {
    background: var(--secondary-bg);
    transform: translateX(4px);
    border-color: var(--accent-blue);
}

.checklist-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Internal CTA styling */
.internal-cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin: 1rem 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.internal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cta-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
    }
    
    .approach-comparison {
        grid-template-columns: 1fr;
    }
    
    .breakpoints-demo {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-features {
        grid-template-columns: 1fr;
    }
    
    .testing-guide {
        grid-template-columns: 1fr;
    }
    
    .final-checklist {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .breakpoints-demo {
        grid-template-columns: 1fr;
    }
    
    .comparison-demo {
        padding: 1rem;
    }
    
    .device-screen {
        width: 160px;
        height: 280px;
        padding: 15px 8px;
    }
    
    .approach-item {
        padding: 1rem;
    }
    
    .breakpoint-item {
        padding: 1rem;
    }
    
    .bp-size {
        font-size: 1rem;
    }
    
    .bp-code {
        font-size: 0.7rem;
    }
}