/*
Theme Name: Preptiviti — Hello Elementor Child
Theme URI: https://preptiviti.com/
Description: Child theme de Hello Elementor para Preptiviti. CPT "Guía" + schema avanzado + 5 bloques Gutenberg + design system completo para single-guia.php. Construido por Milato Studio.
Author: Milato Studio
Author URI: https://milatostudio.com/
Template: hello-elementor
Version: 1.2.9
Text Domain: hello-elementor-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: child-theme, seo, education, multilingual, schema, gutenberg-blocks, cpt
*/

/* ============================================================
   PREPTIVITI — DESIGN SYSTEM v1.2.5
   Tokens canónicos del brand (navy + naranja + azul cielo + verde),
   fuentes oficiales (Merriweather + Open Sans), radii consistentes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Open+Sans:wght@400;600;700;800&display=swap');

/* ---------- Design tokens ---------- */
:root {
    /* === Brand colors canónicos === */
    --preptiviti-navy: #222D4C;            /* texto primario, CTAs outline */
    --preptiviti-navy-soft: #364158;       /* texto secundario */
    --preptiviti-naranja: #EA6339;         /* acento principal, CTAs primarios */
    --preptiviti-naranja-soft: #fff5f0;    /* fondo banner suave */
    --preptiviti-naranja-bg: rgba(234, 99, 57, 0.08);  /* badges */
    --preptiviti-azul: #2B9FD2;            /* acento secundario */
    --preptiviti-azul-soft: #e6f4fa;       /* fondo info */
    --preptiviti-azul-bg: rgba(43, 159, 210, 0.08);
    --preptiviti-verde: #49B186;           /* success */
    --preptiviti-verde-soft: #f0faf5;
    --preptiviti-verde-bg: rgba(73, 177, 134, 0.08);

    /* === Legacy aliases para no romper código existente === */
    --preptiviti-azul-light: var(--preptiviti-azul-soft);
    --preptiviti-azul-dark: #1E78A3;
    --preptiviti-naranja-light: var(--preptiviti-naranja-soft);
    --preptiviti-verde-light: var(--preptiviti-verde-soft);

    /* === Text === */
    --preptiviti-text: var(--preptiviti-navy);    /* primary text = navy */
    --preptiviti-text-soft: var(--preptiviti-navy-soft);
    --preptiviti-muted: #5a6a7a;                  /* body gray spec real */
    --preptiviti-muted-light: #8b97a4;

    /* === Backgrounds === */
    --preptiviti-bg: #FFFFFF;
    --preptiviti-bg-soft: #f8fafc;
    --preptiviti-bg-medium: #f1f5f9;
    --preptiviti-border: #e2e8f0;
    --preptiviti-border-strong: #cbd5e1;

    /* === Spacing scale (8pt grid) === */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* === Container widths === */
    --container-reading: 740px;
    --container-wide: 1320px;

    /* === Typography === */
    --font-family-serif: 'Merriweather', Georgia, "Times New Roman", serif;
    --font-family-sans:  'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-base:    var(--font-family-sans);
    --font-family-heading: var(--font-family-serif);

    --font-size-xs: 0.8125rem;   /* 13px */
    --font-size-sm: 0.9375rem;   /* 15px */
    --font-size-base: 1.0625rem; /* 17px mobile, override desktop 18px */
    --font-size-lg: 1.25rem;     /* 20px */
    --font-size-xl: 1.5rem;      /* 24px */
    --font-size-2xl: 1.875rem;   /* 30px */
    --font-size-3xl: 2.25rem;    /* 36px */
    --font-size-4xl: 2.625rem;   /* 42px */

    --line-height-tight: 1.25;
    --line-height-snug: 1.4;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.75;

    /* === Radii (spec del brand real) === */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;       /* cards canónico */
    --radius-pill: 100px;    /* badges/pills canónico */

    /* === Shadows === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* === Transitions === */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}


/* ============================================================
   SINGLE GUÍA — Layout completo del post
   ============================================================ */

.preptiviti-guia {
    font-family: var(--font-family-base);
    color: var(--preptiviti-text);
    line-height: var(--line-height-normal);
    background: var(--preptiviti-bg);
}

/* Headings dentro de la guía: Merriweather (spec del brand) */
.preptiviti-guia h1,
.preptiviti-guia h2,
.preptiviti-guia h3,
.preptiviti-guia .preptiviti-guia__title,
.preptiviti-guia .preptiviti-guia__cta-title,
.preptiviti-guia .preptiviti-guia__related-title {
    font-family: var(--font-family-heading);
    letter-spacing: -0.01em;
}

/* H4-H6 mantienen Open Sans (más utility/UI que editorial) */
.preptiviti-guia h4,
.preptiviti-guia h5,
.preptiviti-guia h6 {
    font-family: var(--font-family-base);
}

.preptiviti-guia__container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .preptiviti-guia__container {
        padding: 0 var(--space-lg);  /* 24px desktop (antes 40px) */
    }
}


/* ============================================================
   HERO
   ============================================================ */

.preptiviti-guia__hero {
    background: var(--preptiviti-bg-soft);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--preptiviti-border);
}

/* Layout hero: full-stack mobile/tablet, 50/50 grid desktop */
.preptiviti-guia__hero-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 1024px) {
    .preptiviti-guia__hero-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
        align-items: center;
    }
}

.preptiviti-guia__hero-text {
    display: flex;
    flex-direction: column;
    /* breadcrumb / pill / h1 / meta — orden natural del DOM */
}

.preptiviti-guia__hero-image {
    width: 100%;
}

.preptiviti-guia__hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    display: block;
}

@media (min-width: 1024px) {
    .preptiviti-guia__hero-image img {
        aspect-ratio: 4 / 3;  /* mantener proporcionado al texto */
    }
}

.preptiviti-guia__breadcrumb {
    font-size: var(--font-size-sm);
    color: var(--preptiviti-muted);
    margin-bottom: var(--space-md);
}

.preptiviti-guia__breadcrumb a {
    color: var(--preptiviti-muted);
    text-decoration: none;
}

.preptiviti-guia__breadcrumb a:hover {
    color: var(--preptiviti-azul);
}

.preptiviti-guia__pills {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.preptiviti-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.preptiviti-pill--tipo {
    background: var(--preptiviti-naranja-bg);
    color: var(--preptiviti-naranja);
}

.preptiviti-pill--nivel {
    background: var(--preptiviti-azul-bg);
    color: var(--preptiviti-azul);
}

.preptiviti-guia__title {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
    font-weight: 800;
    color: var(--preptiviti-text);
    margin: 0 0 var(--space-md);
    max-width: 900px;
}

@media (min-width: 768px) {
    .preptiviti-guia__title {
        font-size: var(--font-size-4xl);
    }
}

.preptiviti-guia__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--preptiviti-muted);
    margin-bottom: var(--space-lg);
}

.preptiviti-guia__author {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--preptiviti-text-soft);
    text-decoration: none;
    font-weight: 600;
}

.preptiviti-guia__author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.preptiviti-guia__author:hover {
    color: var(--preptiviti-azul);
}

.preptiviti-guia__separator {
    color: var(--preptiviti-border-strong);
}

.preptiviti-guia__updated {
    color: var(--preptiviti-verde);
    font-weight: 500;
}

/* Legacy: .preptiviti-guia__featured ya no se usa desde v1.2.9 (la imagen vive
   dentro del grid 50/50 del hero como .preptiviti-guia__hero-image).
   Mantenido por si algún post antiguo todavía lo referencia. */
.preptiviti-guia__featured {
    max-width: var(--container-wide);
    margin: var(--space-lg) auto 0;
    padding: 0 var(--space-md);
}

.preptiviti-guia__featured img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}


/* ============================================================
   BODY WRAPPER + LAYOUT (TOC + Content)
   ============================================================ */

.preptiviti-guia__body-wrapper {
    padding: var(--space-2xl) 0 var(--space-xl);
}

.preptiviti-guia__layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .preptiviti-guia__layout {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: var(--space-xl);  /* 40px (antes 64px) */
        align-items: start;
    }
}


/* ============================================================
   TOC
   ============================================================ */

.preptiviti-guia__toc {
    font-size: var(--font-size-sm);
}

@media (min-width: 1024px) {
    .preptiviti-guia__toc {
        position: sticky;
        top: var(--space-xl);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}

.preptiviti-guia__toc-details summary {
    list-style: none;
    cursor: pointer;
    padding: var(--space-md);
    background: var(--preptiviti-bg-soft);
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--preptiviti-text);
    user-select: none;
}

.preptiviti-guia__toc-details summary::-webkit-details-marker {
    display: none;
}

.preptiviti-guia__toc-details summary::after {
    content: "▼";
    float: right;
    font-size: 10px;
    color: var(--preptiviti-muted);
    transition: transform var(--transition-fast);
}

.preptiviti-guia__toc-details[open] summary::after {
    transform: rotate(180deg);
}

.preptiviti-guia__toc-title {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--font-size-xs);
    color: var(--preptiviti-muted);
}

.preptiviti-guia__toc-nav {
    margin-top: var(--space-sm);
    padding: var(--space-md);
    background: var(--preptiviti-bg-soft);
    border-radius: var(--radius-md);
}

.preptiviti-guia__toc-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.preptiviti-guia__toc-nav li {
    counter-increment: toc-counter;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--preptiviti-border);
}

.preptiviti-guia__toc-nav li:last-child {
    border-bottom: none;
}

.preptiviti-guia__toc-nav a {
    display: block;
    color: var(--preptiviti-text-soft);
    text-decoration: none;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-snug);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.preptiviti-guia__toc-nav a:hover {
    color: var(--preptiviti-azul);
}

.preptiviti-guia__toc-nav a::before {
    content: counter(toc-counter) ".";
    color: var(--preptiviti-muted-light);
    font-weight: 600;
    margin-right: 6px;
}


/* ============================================================
   ARTICLE CONTENT
   ============================================================ */

.preptiviti-guia__article {
    min-width: 0;
}

.preptiviti-guia__content {
    max-width: var(--container-reading);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--preptiviti-text-soft);
}

@media (min-width: 768px) {
    .preptiviti-guia__content {
        font-size: 1.125rem; /* 18px desktop */
    }
}

.preptiviti-guia__content > * + * {
    margin-top: var(--space-md);
}

.preptiviti-guia__content h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--preptiviti-text);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    scroll-margin-top: 80px; /* TOC smooth scroll offset */
}

.preptiviti-guia__content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--preptiviti-text);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.preptiviti-guia__content h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: var(--line-height-snug);
    color: var(--preptiviti-text);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.preptiviti-guia__content p {
    margin: 0 0 var(--space-md);
}

.preptiviti-guia__content a {
    color: var(--preptiviti-azul);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.preptiviti-guia__content a:hover {
    color: var(--preptiviti-azul-dark);
    text-decoration-thickness: 2px;
}

.preptiviti-guia__content ul,
.preptiviti-guia__content ol {
    padding-left: var(--space-lg);
    margin: 0 0 var(--space-md);
}

.preptiviti-guia__content li {
    margin-bottom: var(--space-sm);
}

.preptiviti-guia__content blockquote {
    border-left: 4px solid var(--preptiviti-azul);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--preptiviti-text-soft);
    font-style: italic;
    background: var(--preptiviti-bg-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.preptiviti-guia__content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: var(--font-size-sm);
}

.preptiviti-guia__content table th,
.preptiviti-guia__content table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--preptiviti-border);
    text-align: left;
}

.preptiviti-guia__content table th {
    background: var(--preptiviti-bg-soft);
    font-weight: 700;
    color: var(--preptiviti-text);
}

.preptiviti-guia__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.preptiviti-guia__content code {
    background: var(--preptiviti-bg-medium);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-family: Consolas, Monaco, "Courier New", monospace;
}


/* ============================================================
   BYLINE BOTTOM
   ============================================================ */

.preptiviti-guia__byline-bottom {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: var(--space-lg);
    background: var(--preptiviti-bg-soft);
    border: 1px solid var(--preptiviti-border);
    border-radius: var(--radius-lg);
    margin-top: var(--space-2xl);
    max-width: var(--container-reading);
}

.preptiviti-guia__byline-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--preptiviti-bg);
    box-shadow: var(--shadow-md);
}

.preptiviti-guia__byline-name {
    font-size: var(--font-size-sm);
    color: var(--preptiviti-muted);
    margin-bottom: var(--space-xs);
}

.preptiviti-guia__byline-name a {
    color: var(--preptiviti-text);
    font-weight: 700;
    text-decoration: none;
    font-size: var(--font-size-lg);
}

.preptiviti-guia__byline-name a:hover {
    color: var(--preptiviti-azul);
}

.preptiviti-guia__byline-bio {
    font-size: var(--font-size-sm);
    color: var(--preptiviti-text-soft);
    line-height: var(--line-height-normal);
    margin-top: var(--space-sm);
}

@media (max-width: 600px) {
    .preptiviti-guia__byline-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* ============================================================
   RELATED GUÍAS
   ============================================================ */

.preptiviti-guia__related {
    background: var(--preptiviti-bg-soft);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--preptiviti-border);
}

.preptiviti-guia__related-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--preptiviti-text);
    margin: 0 0 var(--space-lg);
    text-align: center;
}

.preptiviti-guia__related-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .preptiviti-guia__related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.preptiviti-related-card {
    display: block;
    background: var(--preptiviti-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.preptiviti-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.preptiviti-related-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.preptiviti-related-card__body {
    padding: var(--space-md);
}

.preptiviti-related-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: var(--line-height-snug);
    color: var(--preptiviti-text);
    margin: 0 0 var(--space-sm);
}

.preptiviti-related-card__excerpt {
    font-size: var(--font-size-sm);
    color: var(--preptiviti-muted);
    line-height: var(--line-height-normal);
    margin: 0;
}


/* ============================================================
   CTA CONVERSION
   ============================================================ */

.preptiviti-guia__cta {
    background: linear-gradient(135deg, var(--preptiviti-navy) 0%, #1a2540 100%);
    color: white;
    padding: var(--space-2xl) 0;
    text-align: center;
}

.preptiviti-guia__cta-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin: 0 0 var(--space-md);
    color: white;
}

@media (min-width: 768px) {
    .preptiviti-guia__cta-title {
        font-size: var(--font-size-3xl);
    }
}

.preptiviti-guia__cta-text {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    opacity: 0.95;
}

.preptiviti-guia__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.preptiviti-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.preptiviti-btn--primary {
    background: white;
    color: var(--preptiviti-azul-dark);
}

.preptiviti-btn--primary:hover {
    background: var(--preptiviti-naranja);
    color: white;
    transform: translateY(-1px);
}

.preptiviti-btn--secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.preptiviti-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}


/* ============================================================
   BLOQUES GUTENBERG — frontend
   (estilos heredados de v1.2.0)
   ============================================================ */

/* BYLINE — firma experto top */
.preptiviti-byline {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--preptiviti-bg-soft);
    border: 1px solid var(--preptiviti-border);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
    max-width: var(--container-reading);
}

.preptiviti-byline--top {
    margin-bottom: var(--space-lg);
}

.preptiviti-byline--bottom {
    margin-top: var(--space-2xl);
}

.preptiviti-byline__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--preptiviti-bg);
    box-shadow: var(--shadow-md);
}

.preptiviti-byline__body {
    flex: 1;
}

.preptiviti-byline__name {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--preptiviti-text);
    margin-bottom: 2px;
}

.preptiviti-byline__job {
    font-size: var(--font-size-sm);
    color: var(--preptiviti-naranja);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.preptiviti-byline__credentials {
    font-size: var(--font-size-xs);
    color: var(--preptiviti-muted);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.preptiviti-byline__bio {
    font-size: var(--font-size-sm);
    color: var(--preptiviti-text);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-sm);
}

.preptiviti-byline__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    color: var(--preptiviti-navy);
    text-decoration: none;
    padding: 6px 14px;
    border: 1.5px solid var(--preptiviti-navy);
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.preptiviti-byline__links a:hover {
    background: var(--preptiviti-navy);
    color: #fff;
}

@media (max-width: 600px) {
    .preptiviti-byline {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* PUNTOS CLAVE */
.preptiviti-puntos-clave {
    background: var(--preptiviti-azul-bg);
    border: 1px solid rgba(43, 159, 210, 0.25);
    border-left: 4px solid var(--preptiviti-azul);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-lg) 0 var(--space-xl);
    max-width: var(--container-reading);
}

.preptiviti-puntos-clave__title {
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--preptiviti-azul);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.preptiviti-puntos-clave__title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--preptiviti-azul);
    border-radius: 50%;
}

.preptiviti-puntos-clave__list {
    list-style: disc;
    padding-left: var(--space-lg);
    margin: var(--space-sm) 0 0;
}

.preptiviti-puntos-clave__item {
    padding: 4px 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--preptiviti-text);
}

.preptiviti-puntos-clave__item::marker {
    color: var(--preptiviti-azul);
}


/* FAQ */
.preptiviti-faq {
    margin: var(--space-2xl) 0;
    max-width: var(--container-reading);
}

.preptiviti-faq__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--preptiviti-text);
    margin-bottom: var(--space-lg);
}

.preptiviti-faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.preptiviti-faq__item {
    background: var(--preptiviti-bg);
    border: 1px solid var(--preptiviti-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.preptiviti-faq__item[open] {
    border-color: var(--preptiviti-naranja);
    box-shadow: var(--shadow-md);
}

.preptiviti-faq__question {
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--preptiviti-navy);
    list-style: none;
    position: relative;
    padding-right: 48px;
}

.preptiviti-faq__question::-webkit-details-marker {
    display: none;
}

.preptiviti-faq__question::after {
    content: '+';
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--preptiviti-naranja);
    font-weight: 700;
    transition: transform var(--transition-fast);
}

.preptiviti-faq__item[open] .preptiviti-faq__question::after {
    transform: translateY(-50%) rotate(45deg);
}

.preptiviti-faq__answer {
    padding: 0 var(--space-lg) var(--space-md);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    color: var(--preptiviti-text);
}

.preptiviti-faq__answer p {
    margin: 0 0 var(--space-sm);
}

.preptiviti-faq__answer p:last-child {
    margin-bottom: 0;
}


/* EXTRACTABLE */
.preptiviti-extractable {
    background: var(--preptiviti-naranja-soft);
    border: 1px solid rgba(234, 99, 57, 0.18);
    border-left: 4px solid var(--preptiviti-naranja);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--preptiviti-text);
    max-width: var(--container-reading);
    position: relative;
}

.preptiviti-extractable::before {
    content: '✦';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 20px;
    color: var(--preptiviti-naranja);
    opacity: 0.5;
}

.preptiviti-extractable p {
    margin: 0 0 var(--space-sm);
}

.preptiviti-extractable p:last-child {
    margin-bottom: 0;
}


/* STAT BOX */
.preptiviti-stat-box {
    display: block;
    background: var(--preptiviti-verde-soft);
    border: 1px solid rgba(73, 177, 134, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    margin: var(--space-lg) auto;
    text-align: center;
    max-width: 460px;
    position: relative;
}

.preptiviti-stat-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--preptiviti-verde);
    border-radius: 0 0 4px 4px;
}

.preptiviti-stat-box__value {
    font-family: var(--font-family-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--preptiviti-verde);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.preptiviti-stat-box__label {
    font-size: var(--font-size-base);
    color: var(--preptiviti-navy);
    line-height: var(--line-height-snug);
    font-weight: 600;
    max-width: 360px;
    margin: 0 auto;
}

.preptiviti-stat-box__source {
    font-size: var(--font-size-xs);
    color: var(--preptiviti-muted);
    margin-top: var(--space-md);
    font-style: italic;
}


/* ============================================================
   COMPARISON CARDS — pros/contras side-by-side
   Patrón aplicado en H2 "Papel vs ordenador" y similares.
   Native columns block + className para hookear estilos.
   ============================================================ */

.preptiviti-guia__content .preptiviti-comparison {
    margin: var(--space-xl) 0;
    gap: var(--space-md);
}

.preptiviti-guia__content .preptiviti-comparison__col {
    background: var(--preptiviti-bg-soft);
    border: 1px solid var(--preptiviti-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: box-shadow var(--transition-base);
}

.preptiviti-guia__content .preptiviti-comparison__col:hover {
    box-shadow: var(--shadow-md);
}

.preptiviti-guia__content .preptiviti-comparison__col--digital {
    border-top: 4px solid var(--preptiviti-azul);
}

.preptiviti-guia__content .preptiviti-comparison__col--papel {
    border-top: 4px solid var(--preptiviti-navy);
}

/* Heading del card */
.preptiviti-guia__content .preptiviti-comparison__col h3 {
    margin-top: 0 !important;
    font-size: var(--font-size-xl);
    font-family: var(--font-family-heading);
    color: var(--preptiviti-navy);
    margin-bottom: var(--space-sm);
}

.preptiviti-guia__content .preptiviti-comparison__col h4 {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--preptiviti-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: var(--space-md) 0 var(--space-sm);
    font-family: var(--font-family-base);
}

/* Listas con iconos pros/cons */
.preptiviti-guia__content .preptiviti-comparison__col ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.preptiviti-guia__content .preptiviti-comparison__col li {
    position: relative;
    padding-left: 28px;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-snug);
}

/* Pros — check verde */
.preptiviti-guia__content .preptiviti-comparison__col ul.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--preptiviti-verde-soft);
    color: var(--preptiviti-verde);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* Cons — warning naranja */
.preptiviti-guia__content .preptiviti-comparison__col ul.cons li::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--preptiviti-naranja);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* En mobile las cards se apilan automáticamente por wp:columns */
@media (max-width: 781px) {
    .preptiviti-guia__content .preptiviti-comparison {
        gap: var(--space-md);
    }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

*:focus-visible {
    outline: 3px solid var(--preptiviti-azul);
    outline-offset: 2px;
}

.preptiviti-guia__content a:focus-visible {
    background: var(--preptiviti-azul-light);
    border-radius: 2px;
}


/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .preptiviti-guia__toc,
    .preptiviti-guia__cta,
    .preptiviti-guia__related {
        display: none;
    }
    .preptiviti-faq__item {
        page-break-inside: avoid;
    }
    .preptiviti-faq__answer {
        display: block !important;
    }
}
