/* ══════════════════════════════════════════
   articulo.css — Estilos de artículos del blog
   Salseopisos · estilos/articulo.css
══════════════════════════════════════════ */

/* ── Layout principal ── */
.articulo-page {
    max-width: 740px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* ── Breadcrumb ── */
.art-breadcrumb {
    font-size: 13px;
    color: var(--flex-gray, #6B7280);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.art-breadcrumb a {
    color: var(--flex-gray, #6B7280);
    text-decoration: none;
}
.art-breadcrumb a:hover { color: var(--flex-green, #22c55e); }
.art-breadcrumb .sep { color: #D1D5DB; }
.art-breadcrumb .current { color: #374151; }

/* ── Cabecera del artículo ── */
.art-header {
    margin-bottom: 36px;
}
.art-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--flex-green, #22c55e);
    background: rgba(34,197,94,0.1);
    border-radius: 4px;
    padding: 3px 10px;
    margin-bottom: 14px;
}
.art-header h1 {
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 800;
    line-height: 1.18;
    color: var(--flex-black, #111827);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.art-lead {
    font-size: 18px;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 20px;
    font-weight: 400;
}
.art-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--flex-gray, #6B7280);
    flex-wrap: wrap;
}
.art-meta .art-readtime {
    background: #F3F4F6;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.art-meta .art-author strong { color: #374151; }

/* ── Imagen destacada ── */
.art-img-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #F3F4F6;
    aspect-ratio: 16/9;
}
.art-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Cuerpo del artículo ── */
.art-body {
    font-size: 17px;
    line-height: 1.75;
    color: #1F2937;
}
.art-body p {
    margin: 0 0 20px;
}
.art-body h2 {
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 700;
    color: var(--flex-black, #111827);
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
    padding-bottom: 10px;
    border-bottom: 2px solid #F3F4F6;
}
.art-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin: 28px 0 12px;
}
.art-body strong { color: #111827; }
.art-body em { color: #4B5563; }
.art-body a { color: var(--flex-green, #22c55e); text-decoration: underline; }

/* ── Listas ── */
.art-body ul, .art-body ol {
    padding-left: 22px;
    margin: 0 0 20px;
}
.art-body li {
    margin-bottom: 8px;
    line-height: 1.65;
}

/* ── Callout / dato destacado ── */
.art-callout {
    background: #F0FDF4;
    border-left: 3px solid var(--flex-green, #22c55e);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 28px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #166534;
}
.art-callout p { margin: 0; color: #166534; }
.art-callout strong { color: #14532D; }

/* ── Tip / consejo ── */
.art-tip {
    background: #FFFBEB;
    border-left: 3px solid #F59E0B;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 28px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #78350F;
}
.art-tip p { margin: 0; color: #78350F; }

/* ── Advertencia ── */
.art-warning {
    background: #FEF2F2;
    border-left: 3px solid #EF4444;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 28px 0;
    font-size: 16px;
    color: #7F1D1D;
}
.art-warning p { margin: 0; color: #7F1D1D; }

/* ── Estadísticas ── */
.art-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 32px 0;
}
.art-stat-box {
    background: #F9FAFB;
    border: 1px solid var(--flex-border, #E5E7EB);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.art-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--flex-green, #22c55e);
    line-height: 1;
    margin-bottom: 6px;
}
.art-stat-label {
    display: block;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 4px;
}
.art-stat-src {
    display: block;
    font-size: 11px;
    color: #9CA3AF;
}

/* ── Pasos / Steps ── */
.art-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    counter-reset: steps;
}
.art-steps li {
    counter-increment: steps;
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.art-steps li::before {
    content: counter(steps);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--flex-green, #22c55e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* ── Tabla comparativa simple ── */
.art-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 28px 0;
}
.art-table th {
    background: #F9FAFB;
    font-weight: 700;
    color: #374151;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #E5E7EB;
}
.art-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #F3F4F6;
    color: #1F2937;
}
.art-table tr:last-child td { border-bottom: none; }

/* ── Separador temático ── */
.art-divider {
    border: none;
    border-top: 1px solid #F3F4F6;
    margin: 40px 0;
}

/* ── FAQ sección ── */
.art-faq {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid #F3F4F6;
}
.art-faq-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: var(--flex-black, #111827);
    margin: 0 0 8px;
}
.art-faq-sub {
    color: var(--flex-gray, #6B7280);
    font-size: 15px;
    margin-bottom: 28px;
}
.art-faq-item {
    border: 1px solid var(--flex-border, #E5E7EB);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.art-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #1F2937;
    background: #fff;
    user-select: none;
    gap: 12px;
}
.art-faq-question:hover { background: #F9FAFB; }
.art-faq-icon {
    font-size: 20px;
    color: var(--flex-gray, #6B7280);
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.art-faq-item.open .art-faq-icon { transform: rotate(45deg); }
.art-faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}
.art-faq-item.open .art-faq-answer { display: block; }
.art-faq-answer p { margin: 0 0 10px; }
.art-faq-answer p:last-child { margin-bottom: 0; }

/* ── CTA del artículo ── */
.art-cta {
    margin-top: 56px;
    background: var(--flex-black, #111827);
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
}
.art-cta-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}
.art-cta-sub {
    font-size: 16px;
    color: #9CA3AF;
    margin: 0 0 24px;
    line-height: 1.5;
}
.art-cta-btn {
    display: inline-block;
    background: var(--flex-green, #22c55e);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.art-cta-btn:hover { opacity: 0.88; }
.art-cta-note {
    font-size: 13px;
    color: #6B7280;
    margin-top: 12px;
    margin-bottom: 0;
}

/* ── Artículos relacionados ── */
.art-related {
    margin-top: 56px;
}
.art-related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--flex-black, #111827);
    margin: 0 0 20px;
}
.art-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.art-related-card {
    border: 1px solid var(--flex-border, #E5E7EB);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: block;
}
.art-related-card:hover {
    border-color: var(--flex-green, #22c55e);
    box-shadow: 0 2px 12px rgba(34,197,94,0.1);
}
.art-related-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--flex-green, #22c55e);
    display: block;
    margin-bottom: 8px;
}
.art-related-card h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #1F2937;
    margin: 0 0 8px;
}
.art-related-card .art-related-time {
    font-size: 12px;
    color: #9CA3AF;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .articulo-page { padding: 16px 16px 60px; }
    .art-body { font-size: 16px; }
    .art-cta { padding: 28px 20px; }
    .art-stats-row { grid-template-columns: 1fr 1fr; }
}
