/* Estilos para páginas legales, documentación y artículos */
.legal-page, .doc-page, .article-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-content, .doc-section, .article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2, .doc-section h2, .article-content h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h2:first-of-type, .doc-section h2:first-of-type, .article-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content h3, .doc-section h3, .article-content h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-content p, .doc-section p, .article-content p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.legal-content ul, .legal-content ol, .doc-section ul, .doc-section ol, .article-content ul, .article-content ol {
    color: var(--text-light);
    margin: 1rem 0 1.5rem 2rem;
}

.legal-content li, .doc-section li, .article-content li {
    margin-bottom: 0.5rem;
}

.legal-content a, .doc-section a, .article-content a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover, .doc-section a:hover, .article-content a:hover {
    color: #4facfe;
}

/* Estilos específicos para artículos de blog */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-category {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.article-cta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.article-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Estilos para el blog */
.blog-page {
    padding: 120px 0 80px;
}

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

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    height: auto;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.blog-card-category {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.blog-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-readmore {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-readmore {
    color: #4facfe;
    transform: translateX(5px);
}

/* Tabla personalizada para artículos */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.custom-table th,
.custom-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-table th {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-weight: 600;
}

.custom-table td {
    color: var(--text-light);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

/* Responsive para páginas adicionales */
@media (max-width: 768px) {
    .legal-page, .doc-page, .article-page, .blog-page {
        padding: 100px 0 60px;
    }
    
    .legal-content, .doc-section, .article-content {
        padding: 0 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
    
    .article-cta {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .custom-table {
        font-size: 0.9rem;
    }
    
    .custom-table th,
    .custom-table td {
        padding: 0.75rem 0.5rem;
    }
}


/* Estilos para la página de contacto */
.contact-page {
    padding: 120px 0 80px;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-form-container h3, .contact-info-container h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.contact-form .form-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info-item p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* Responsive para páginas adicionales */
@media (max-width: 768px) {
    .legal-page, .doc-page, .article-page, .blog-page {
        padding: 100px 0 60px;
    }
    
    .legal-content, .doc-section, .article-content {
        padding: 0 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
    
    .article-cta {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .custom-table {
        font-size: 0.9rem;
    }
    
    .custom-table th,
    .custom-table td {
        padding: 0.75rem 0.5rem;
    }
}