/* ==================== PROMPTS PAGE STYLES ==================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.prompts-hero {
    padding: 5rem 2rem 3rem;
    background: var(--gradient-hero);
    text-align: center;
    margin-top: 80px;
}

.prompts-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.prompts-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Introducción */
.prompts-intro {
    padding: 4rem 2rem;
    background: white;
}

.prompts-intro h2 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.intro-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.intro-card {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.intro-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Filtros de categoría */
.prompts-filter {
    padding: 3rem 2rem;
    background: var(--background-alt);
}

.prompts-filter h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn svg {
    flex-shrink: 0;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Ejemplos de prompts */
.prompts-examples {
    padding: 4rem 2rem;
    background: white;
}

.prompts-examples h2 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.prompt-comparison {
    background: var(--background-alt);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.prompt-comparison:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.comparison-header {
    margin-bottom: 1.5rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.category-tag svg {
    flex-shrink: 0;
}

.comparison-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.comparison-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bad-prompt,
.good-prompt {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid;
}

.bad-prompt {
    border-color: #fee;
}

.good-prompt {
    border-color: #d1fae5;
}

.prompt-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.bad-prompt .prompt-label {
    color: #dc2626;
}

.good-prompt .prompt-label {
    color: #059669;
}

.prompt-text {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: 'Courier New', monospace;
}

.prompt-why {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn svg {
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Plantillas */
.prompts-templates {
    padding: 4rem 2rem;
    background: var(--background-alt);
}

.prompts-templates h2 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.template-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.template-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.template-text {
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

/* Tips avanzados */
.prompts-tips {
    padding: 4rem 2rem;
    background: white;
}

.prompts-tips h2 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
    border-color: var(--primary-color);
}

.tip-icon {
    width: 56px;
    height: 56px;
    font-size: 2rem;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tip-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tip-example {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tip-example strong {
    color: var(--primary-color);
}

/* CTA Final */
.prompts-cta {
    padding: 5rem 2rem;
    background: var(--primary-color);
    text-align: center;
}

.prompts-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.prompts-cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.prompts-cta .cta-button {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.prompts-cta .cta-button:hover {
    background: var(--background-alt);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .prompts-hero h1 {
        font-size: 2rem;
    }

    .prompts-hero p {
        font-size: 1rem;
    }

    .prompts-intro h2,
    .prompts-examples h2,
    .prompts-templates h2,
    .prompts-tips h2 {
        font-size: 1.75rem;
    }

    .intro-cards,
    .templates-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .comparison-content {
        grid-template-columns: 1fr;
    }

    .category-buttons {
        flex-direction: column;
    }

    .category-btn {
        width: 100%;
    }

    .prompts-cta h2 {
        font-size: 1.75rem;
    }

    .prompts-cta p {
        font-size: 1rem;
    }
}