/* ===== ESTILOS ESPECÍFICOS PARA ARTÍCULOS ===== */

/* Breadcrumb */
.breadcrumb {
    background: #f9fafb;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb a {
    color: #065f46;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Artículo principal */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    line-height: 1.8;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.article-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #065f46;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.article-image {
    margin: 2rem 0;
}

.image-placeholder.ayudas-main {
    height: 300px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.image-placeholder.ayudas-main span {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-placeholder.ayudas-main h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.image-placeholder.ayudas-main p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contenido del artículo */
.article-content {
    font-size: 1.1rem;
    color: #374151;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #dcfce7;
}

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

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

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Cajas destacadas */
.highlight-box {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.highlight-box h3 {
    color: #065f46;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.warning-box h4 {
    color: #92400e;
    margin: 0 0 1rem 0;
}

.deadline-alert {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.deadline-alert h4 {
    color: #dc2626;
    margin: 0 0 1rem 0;
}

.benefits-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.benefits-box h4 {
    color: #1d4ed8;
    margin: 0 0 1rem 0;
}

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

.beneficiary-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.beneficiary-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.beneficiary-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.beneficiary-card h4 {
    color: #065f46;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.beneficiary-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Tabla de importes */
.amounts-table {
    background: #f9fafb;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.amounts-table h4 {
    margin-bottom: 1.5rem;
    color: #065f46;
}

.amounts-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.amounts-table th,
.amounts-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.amounts-table th {
    background: #065f46;
    color: white;
    font-weight: 600;
}

.amounts-table .highlight-row {
    background: #dcfce7;
    font-weight: 600;
    color: #065f46;
}

/* Lista de servicios */
.services-list {
    margin: 2rem 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.service-item .step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.service-item h4 {
    color: #065f46;
    margin: 0 0 0.5rem 0;
}

.service-item p {
    margin: 0;
    color: #6b7280;
}

/* CTA dentro del artículo */
.article-cta {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    color: white;
    box-shadow: 0 15px 40px rgba(6, 95, 70, 0.3);
}

.article-cta h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
}

.article-cta p {
    margin-bottom: 2rem;
    color: #f0fdf4;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 1;
}

.article-cta .cta-button {
    display: inline-block;
    background: white;
    color: #065f46;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.article-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #d1fae5;
    font-weight: 500;
    opacity: 1;
}

/* Artículos relacionados */
.related-articles {
    background: #f9fafb;
    padding: 3rem 0;
}

.related-articles h3 {
    text-align: center;
    font-size: 2rem;
    color: #065f46;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.related-card h4 {
    margin-bottom: 0.75rem;
}

.related-card h4 a {
    color: #065f46;
    text-decoration: none;
    font-weight: 600;
}

.related-card h4 a:hover {
    color: #10b981;
}

.related-card p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-article {
        padding: 2rem 1rem;
    }

    .article-header h1 {
        font-size: 2.25rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .article-meta {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .beneficiaries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .amounts-table {
        padding: 1rem;
    }

    .amounts-table th,
    .amounts-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .article-cta {
        padding: 2rem 1.5rem;
    }

    .article-cta h3 {
        font-size: 1.5rem;
    }
}
