/* ================================================
   RECURSOS SEO — SprintIA
   CSS compartido entre las 3 páginas de recursos:
   - ChatGPTAbogados.cshtml
   - AutomatizarDespacho.cshtml
   - CasosDeUso.cshtml
   ================================================ */

/* ================================================
   HERO
   ================================================ */
.rec-hero {
    background: var(--gradient-hero);
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}

.rec-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
    pointer-events: none;
}

/* Breadcrumb */
.rec-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.40);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    .rec-breadcrumb a {
        color: rgba(255,255,255,0.55);
        text-decoration: none;
        transition: var(--transition);
    }

        .rec-breadcrumb a:hover {
            color: var(--secondary-light);
        }

/* Meta — tag + tiempo lectura */
.rec-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.rec-hero__tag,
.rec-hero__tiempo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rec-hero__tag {
    background: rgba(0,168,107,0.18);
    border: 1px solid rgba(0,168,107,0.35);
    border-radius: 50px;
    padding: 4px 12px;
    color: var(--secondary-light);
}

.rec-hero__tiempo {
    color: rgba(255,255,255,0.50);
}

.rec-tag-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Título y subtítulo */
.rec-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.rec-hero__title-green {
    color: var(--secondary);
}

.rec-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.70);
    line-height: 1.65;
    max-width: 640px;
    margin: 0;
}

/* ================================================
   SECCIÓN ARTÍCULO
   ================================================ */
.rec-section {
    background: var(--bg-white);
}

/* ================================================
   TIPOGRAFÍA DEL ARTÍCULO
   ================================================ */
.rec-h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 48px 0 16px;
    line-height: 1.25;
}

    .rec-h2:first-child {
        margin-top: 0;
    }

.rec-texto {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ================================================
   AVISO CONTEXTUAL
   ================================================ */
.rec-aviso {
    display: flex;
    gap: 14px;
    background: rgba(15,37,71,0.04);
    border: 1px solid rgba(15,37,71,0.10);
    border-left: 3px solid var(--secondary);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 40px;
}

.rec-aviso__icon {
    width: 18px;
    height: 18px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.rec-aviso p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.65;
    margin: 0;
}

/* ================================================
   CASOS DE USO — cards numeradas
   ================================================ */
.rec-caso {
    background: var(--bg-light);
    border: 1px solid rgba(15,37,71,0.08);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.rec-caso__header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.rec-caso__num {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.18;
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
    letter-spacing: -0.03em;
}

.rec-caso__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.35;
}

.rec-caso__desc {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.65;
    margin: 0;
}

/* Tip / consejo */
.rec-caso__tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(0,168,107,0.07);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 14px;
}

.rec-caso__tip-icon {
    width: 15px;
    height: 15px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 1px;
}

.rec-caso__tip span {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.55;
}

/* ================================================
   PROMPTS — bloque de código
   ================================================ */
.rec-prompt {
    background: var(--primary-dark);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.rec-prompt__label {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.06);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.50);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rec-prompt__icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.rec-prompt__code {
    padding: 16px 18px;
    font-family: var(--font-mono, 'Consolas', 'Monaco', monospace);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ================================================
   TABLA AUTOMATIZABLE / NO AUTOMATIZABLE
   ================================================ */
.rec-tabla {
    border: 1px solid rgba(15,37,71,0.10);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 24px 0 32px;
}

.rec-tabla__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.rec-tabla__col {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rec-tabla__col--mal {
    background: rgba(220,53,69,0.08);
    color: #DC3545;
    border-right: 1px solid rgba(15,37,71,0.08);
}

.rec-tabla__col--bien {
    background: rgba(0,168,107,0.08);
    color: var(--secondary-dark);
}

.rec-tabla__body {
}

.rec-tabla__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(15,37,71,0.06);
}

    .rec-tabla__row:hover {
        background: rgba(15,37,71,0.02);
    }

.rec-tabla__cel {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.4;
}

    .rec-tabla__cel:first-child {
        border-right: 1px solid rgba(15,37,71,0.06);
    }

/* ================================================
   HERRAMIENTAS — pills
   ================================================ */
.rec-herramientas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 8px;
}

.rec-herramienta {
    background: var(--bg-navy-soft);
    border: 1px solid rgba(15,37,71,0.12);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}

/* ================================================
   PASOS NUMERADOS
   ================================================ */
.rec-pasos {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 24px 0;
}

.rec-paso {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(15,37,71,0.06);
}

    .rec-paso:last-child {
        border-bottom: none;
    }

.rec-paso__num {
    width: 36px;
    height: 36px;
    background: var(--gradient-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.rec-paso__content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.rec-paso__content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ================================================
   CARDS DE CASOS DE USO (CasosDeUso.cshtml)
   ================================================ */
.rec-caso-card {
    background: #fff;
    border: 1px solid rgba(15,37,71,0.08);
    border-radius: var(--border-radius);
    padding: 24px;
    height: 100%;
    transition: var(--transition);
}

    .rec-caso-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(0,168,107,0.20);
    }

.rec-caso-card__icon {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.rec-caso-card__svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
}

.rec-caso-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.rec-caso-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.rec-caso-card__ahorro {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary-dark);
    background: rgba(0,168,107,0.08);
    border-radius: 50px;
    padding: 4px 10px;
    width: fit-content;
}

/* ================================================
   CASO DESTACADO — CrespoLaw
   ================================================ */
.rec-caso-destacado {
    background: var(--bg-light);
    border: 1px solid rgba(15,37,71,0.08);
    border-left: 3px solid var(--secondary);
    border-radius: var(--border-radius);
    padding: 28px 24px;
    margin: 8px 0 32px;
}

.rec-caso-destacado__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rec-caso-destacado__icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
}

.rec-caso-destacado__header strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.rec-caso-destacado__header span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.rec-caso-destacado__texto {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 12px;
}

.rec-caso-destacado__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,168,107,0.10);
    border: 1px solid rgba(0,168,107,0.25);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-top: 4px;
}

/* ================================================
   FAQ (ChatGPTAbogados.cshtml)
   ================================================ */
.rec-faq {
    margin: 8px 0 0;
}

.rec-faq__item {
    border: 1px solid rgba(15,37,71,0.08) !important;
    border-radius: var(--border-radius) !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.rec-faq__btn {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark) !important;
    background: #fff !important;
    padding: 16px 20px;
    box-shadow: none !important;
}

    .rec-faq__btn:not(.collapsed) {
        color: var(--primary) !important;
        background: var(--bg-light) !important;
    }

.rec-faq__body {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    padding: 4px 20px 18px;
    background: var(--bg-light);
}

/* ================================================
   CTA FINAL
   ================================================ */
.rec-cta {
    background: var(--gradient-hero);
}

.rec-cta__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.rec-cta__subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.70);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto 28px;
}

.rec-cta__disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.40);
    margin: 12px 0 0;
}

/* ================================================
   RECURSOS RELACIONADOS
   ================================================ */
.rec-relacionados {
    background: var(--bg-light);
}

.rec-relacionados__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.rec-relacionados__card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(15,37,71,0.08);
    border-radius: var(--border-radius);
    padding: 16px 18px;
    text-decoration: none;
    transition: var(--transition);
}

    .rec-relacionados__card:hover {
        border-color: rgba(0,168,107,0.25);
        box-shadow: var(--shadow-md);
        transform: translateX(4px);
        text-decoration: none;
    }

.rec-relacionados__icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
}

.rec-relacionados__card strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.rec-relacionados__card span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.rec-relacionados__arrow {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: auto;
    transition: var(--transition);
}

.rec-relacionados__card:hover .rec-relacionados__arrow {
    color: var(--secondary);
    transform: translateX(3px);
}

/* ================================================
   RESPONSIVE — MOBILE
   ================================================ */
@media (max-width: 767.98px) {

    .rec-hero {
        padding: 44px 0 36px;
    }

    .rec-tabla__header,
    .rec-tabla__row {
        grid-template-columns: 1fr;
    }

    .rec-tabla__col:first-child,
    .rec-tabla__cel:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(15,37,71,0.06);
    }

    .rec-prompt__code {
        font-size: 0.78rem;
    }

    .rec-caso__header {
        flex-direction: column;
        gap: 8px;
    }

    .rec-caso__num {
        font-size: 1rem;
        opacity: 0.25;
    }
}
