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

/* Tabla de comparación */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
}

.comparison-header {
    display: contents;
}

.comparison-header .comparison-col {
    background: #374151;
    color: white;
    font-weight: bold;
    padding: 1rem;
    text-align: center;
}

.comparison-row {
    display: contents;
}

.comparison-col {
    background: white;
    padding: 1rem;
    text-align: center;
}

.comparison-col:first-child {
    font-weight: 600;
    text-align: left;
}

/* Demo containers */
.demo-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

/* Navbar Demo */
.navbar-demo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-demo .logo {
    font-weight: bold;
    color: #6366f1;
    font-size: 1.2rem;
}

.navbar-demo .nav-links {
    display: flex;
    gap: 2rem;
}

.navbar-demo .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-demo .nav-links a:hover {
    color: #6366f1;
}

.navbar-demo .cta-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.navbar-demo .cta-btn:hover {
    background: #4f46e5;
}

/* Page Layout Demo */
.page-layout-demo {
    display: grid;
    grid-template-columns: 150px 1fr 180px;
    grid-template-rows: 60px 200px 40px;
    grid-template-areas: 
        "header header header"
        "nav main sidebar"
        "footer footer footer";
    min-height: 300px;
    gap: 0.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

.demo-header  { 
    grid-area: header; 
    background: #6366f1; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.demo-nav     { 
    grid-area: nav; 
    background: #8b5cf6; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.demo-main    { 
    grid-area: main; 
    background: #06b6d4; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.demo-sidebar { 
    grid-area: sidebar; 
    background: #10b981; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.demo-footer  { 
    grid-area: footer; 
    background: #334155; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Gallery Demo */
.gallery-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.gallery-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    height: 60px;
}

.gallery-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #1f2937;
}

.gallery-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-table {
        grid-template-columns: 1fr;
    }
    
    .comparison-header .comparison-col:nth-child(2),
    .comparison-header .comparison-col:nth-child(3) {
        display: none;
    }
    
    .comparison-row .comparison-col:nth-child(2),
    .comparison-row .comparison-col:nth-child(3) {
        display: none;
    }
    
    .navbar-demo {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-demo .nav-links {
        gap: 1rem;
    }
    
    .page-layout-demo {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "nav"
            "main"
            "sidebar"
            "footer";
        grid-template-rows: auto auto auto auto auto;
    }
    
    .gallery-demo {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* 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: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

/* Stats grid específico para este post */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 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;
}