/**
 * Estilos de los bloques de contenido que Kaku inserta en los posts
 * (TL;DR y Pros & Cons). Solo clases — nada de estilos inline en el markup —
 * para que el theme del cliente pueda sobreescribirlos con su propio CSS.
 *
 * El TL;DR deriva sus colores de currentColor (hereda la paleta y el modo
 * oscuro del theme sin configuración); Pros & Cons mantienen verde/rojo por
 * su semántica universal. Las declaraciones rgba() previas a cada color-mix()
 * son el fallback para navegadores sin soporte de color-mix.
 */

.kaku-tldr {
    border: 1px solid rgba(128, 128, 128, 0.35);
    border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    background: rgba(128, 128, 128, 0.06);
    background: color-mix(in srgb, currentColor 5%, transparent);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

/* Bloque de "lecturas relacionadas": recomendación de enlace interno añadida al
   final del post cuando no hay hueco natural inline. Colores de currentColor
   para heredar la paleta/modo del theme. */
.kaku-related-link {
    border: 1px solid rgba(128, 128, 128, 0.35);
    border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    background: rgba(128, 128, 128, 0.06);
    background: color-mix(in srgb, currentColor 5%, transparent);
    border-radius: 12px;
    padding: 0.85rem 1.15rem 0.85rem 2.85rem;
    margin: 1.5rem 0;
    position: relative;
    font-size: 0.95em;
}

.kaku-related-link::before {
    content: "\1F4D6"; /* 📖 */
    position: absolute;
    left: 1.05rem;
    top: 0.85rem;
    opacity: 0.9;
}

.kaku-proscons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.kaku-pros,
.kaku-cons {
    flex: 1 1 240px;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.kaku-pros {
    border: 1px solid rgba(22, 163, 74, 0.4);
    border: 1px solid color-mix(in srgb, #16a34a 40%, transparent);
    background: rgba(22, 163, 74, 0.05);
    background: color-mix(in srgb, #16a34a 5%, transparent);
}

.kaku-cons {
    border: 1px solid rgba(220, 38, 38, 0.33);
    border: 1px solid color-mix(in srgb, #dc2626 33%, transparent);
    background: rgba(220, 38, 38, 0.05);
    background: color-mix(in srgb, #dc2626 5%, transparent);
}

.kaku-tldr__title,
.kaku-pros__title,
.kaku-cons__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.kaku-pros__title { color: #16a34a; }
.kaku-cons__title { color: #dc2626; }

/* Iconos (lucide) como máscara sobre currentColor: heredan el color del título. */
.kaku-tldr__title::before,
.kaku-pros__title::before,
.kaku-cons__title::before {
    content: "";
    width: 1.35em;
    height: 1.35em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--kaku-icon) center / contain no-repeat;
    mask: var(--kaku-icon) center / contain no-repeat;
}

.kaku-tldr__title::before {
    --kaku-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E");
}

.kaku-pros__title::before {
    --kaku-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.kaku-cons__title::before {
    --kaku-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.kaku-tldr ul,
.kaku-pros ul,
.kaku-cons ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Bloques de los artículos del agente: índice, preguntas frecuentes, llamada a la
   acción y aviso. Como el TL;DR, sus colores salen de currentColor. */
.kaku-toc,
.kaku-cta,
.kaku-disclaimer {
    border: 1px solid rgba(128, 128, 128, 0.35);
    border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.kaku-toc__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.kaku-toc ul {
    margin: 0;
    padding-left: 1.25rem;
}

.kaku-faq {
    margin: 1.5rem 0;
}

.kaku-faq details {
    border-bottom: 1px solid rgba(128, 128, 128, 0.35);
    border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    padding: 0.75rem 0;
}

.kaku-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.kaku-faq details > p {
    margin: 0.5rem 0 0;
}

.kaku-cta {
    background: rgba(128, 128, 128, 0.06);
    background: color-mix(in srgb, currentColor 5%, transparent);
}

.kaku-cta__title {
    font-weight: 700;
    font-size: 1.1em;
    margin: 0 0 0.5rem;
}

.kaku-disclaimer {
    font-size: 0.9em;
    opacity: 0.85;
}

.kaku-disclaimer p {
    margin: 0;
}
