/* ============================================================
   dossier-academia.css
   Hoja de estilos de GRCreal Academy (estetica dossier).
   Ensamblada a partir de academia.css + academy.css, que ya
   definen los componentes de curso, modulo y contenido.
   ============================================================ */

/* ---- Base de curso y bloques de contenido (ex academia.css) ---- */
/* ═══════════════════════════════════════════════════════════════
   ACADEMIA.CSS · ISO 27001 Lead Implementer
   Basado en marca.css (variables, colores, tipografías)
   No depende de articles.css — estilos propios del curso
   ═══════════════════════════════════════════════════════════════ */

/* ---------------------------------------------
   1. RESET Y BASE (depende de marca.css)
   --------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #eef2f5;
    font-family: var(--sans, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
    line-height: 1.4;
    color: var(--ink, #1a2c3e);
    padding: 40px 24px;
}

/* ---------------------------------------------
   2. TARJETA PRINCIPAL (CARD)
   --------------------------------------------- */
.card-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.card {
    background: var(--white, #ffffff);
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.accent-bar {
    height: 6px;
    background: var(--brand, #0077B5);
}

/* ---------------------------------------------
   3. NAVEGACION (MENU HORIZONTAL DEL CURSO)
   --------------------------------------------- */
.academy-module-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 32px 12px 32px;
    border-bottom: 1px solid var(--border-soft, #eae7e2);
    background: var(--white, #ffffff);
}

.academy-course-logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.3px;
    text-decoration: none;
    color: var(--ink, #0f2b3b);
}

.academy-course-logo span {
    font-weight: 400;
    color: var(--brand, #0077B5);
    font-size: 0.9rem;
}

.academy-course-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.academy-course-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--muted, #4a627a);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.academy-course-links a.active {
    color: var(--brand, #0077B5);
    border-bottom-color: var(--brand, #0077B5);
}

.academy-course-links a:hover:not(.active) {
    color: var(--brand-dark, #005a8e);
    border-bottom-color: var(--brand-mid, #cce4f0);
}

.module-badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand, #0077B5);
    background: var(--brand-light, #e8f3fa);
    padding: 6px 16px;
    border-radius: 40px;
    display: inline-block;
}

/* ---------------------------------------------
   4. HEADER / TITULAR DEL CURSO
   --------------------------------------------- */
.header {
    padding: 40px 48px 24px 48px;
    background: var(--white, #ffffff);
}

.tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--brand, #0077B5);
    background: var(--brand-light, #e8f3fa);
    padding: 4px 12px;
    border-radius: 40px;
    margin-bottom: 20px;
}

.article-date {
    font-size: 0.8rem;
    color: var(--faint, #6b8a9e);
    margin-bottom: 20px;
    font-family: var(--mono, monospace);
    letter-spacing: 0.04em;
}

.headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink, #0f2b3b);
    margin-bottom: 24px;
}

.headline .accent {
    color: var(--brand, #0077B5);
}

.headline .dim {
    color: var(--ghost, #c8c8c8);
}

.subline {
    font-size: 1.2rem;
    color: var(--muted, #335a73);
    border-left: 4px solid var(--brand, #0077B5);
    padding-left: 20px;
    max-width: 85%;
}

.subline strong {
    color: var(--brand-dark, #005a8e);
}

/* ---------------------------------------------
   5. BLOQUES DE CONTENIDO
   --------------------------------------------- */
.body {
    padding: 0 48px 40px 48px;
}

.block {
    margin-bottom: 48px;
}

.block-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--brand, #0077B5);
    margin-bottom: 12px;
    font-family: var(--mono, monospace);
}

.block-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink, #1a3a4f);
    margin-bottom: 20px;
}

.block-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--muted, #2c475c);
    margin-bottom: 16px;
}

.block-text strong {
    color: var(--ink, #111);
    font-weight: bold;
}

.block-text a {
    color: var(--brand, #0077B5);
    text-decoration: none;
    font-weight: 600;
}

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

.divider {
    height: 2px;
    background: var(--border-soft, #eae7e2);
    margin: 40px 0;
}

/* ---------------------------------------------
   6. TABLAS DE TENSIÓN (para el curso)
   --------------------------------------------- */
.tension {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface, #faf9f7);
    border: 1px solid var(--border, #dedad4);
    margin: 20px 0;
}

.tension tr {
    border-bottom: 1px solid var(--border-soft, #eae7e2);
}

.tension tr:last-child {
    border-bottom: none;
}

.tension td {
    padding: 16px 12px;
    vertical-align: top;
}

.tension-who {
    font-weight: 700;
    font-size: 1.2rem;
    width: 60px;
    color: var(--brand, #0077B5);
    font-family: var(--mono, monospace);
    padding: 14px 12px 14px 20px;
}

.tension-says {
    color: var(--muted, #555);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 14px 20px 14px 8px;
}

.tension-says strong {
    color: var(--ink, #111);
    font-weight: bold;
}

.hi-row {
    background: var(--brand-light, #e8f3fa);
}

.hi {
    color: var(--brand, #0077B5);
    font-weight: bold;
}

/* hover en filas */
.tension tr:hover {
    background: var(--brand-light, #e8f3fa);
    cursor: pointer;
}

/* enlaces dentro de tablas */
.tension-says a {
    color: var(--brand, #0077B5);
    text-decoration: none;
    font-weight: 600;
}

.tension-says a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------
   7. CITAS (QUOTE BLOCK)
   --------------------------------------------- */
.quote-block {
    background: var(--brand-light, #e8f3fa);
    border-left: 6px solid var(--brand, #0077B5);
    padding: 24px 28px;
    margin: 28px 0;
    border-radius: 8px;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--ink, #124257);
    font-weight: 450;
    margin-bottom: 12px;
    font-family: var(--mono, monospace);
}

.quote-attr {
    font-size: 0.8rem;
    color: var(--faint, #6d8eaa);
    letter-spacing: 0.2px;
    font-family: var(--mono, monospace);
}

/* ---------------------------------------------
   8. CTA (LLAMADA A LA ACCIÓN)
   --------------------------------------------- */
.cta-block {
    background: var(--brand-light, #e8f3fa);
    border: 2px solid var(--brand, #0077B5);
    border-radius: 16px;
    padding: 40px 40px;
    margin: 56px 0 32px 0;
    text-align: center;
}

.cta-headline {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--ink, #174155);
    margin-bottom: 12px;
}

.cta-headline span {
    color: var(--brand, #0077B5);
}

.cta-sub {
    font-size: 1rem;
    margin: 16px 0 24px;
    color: var(--muted, #2a6a5c);
}

.cta-sub a {
    color: var(--brand, #0077B5);
    text-decoration: none;
    font-weight: 600;
}

.cta-sub a:hover {
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    background: var(--brand, #0077B5);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 36px;
    border-radius: 40px;
    font-size: 1rem;
    transition: 0.2s background;
    box-shadow: 0 5px 12px rgba(0,0,0,0.05);
}

.cta-button:hover {
    background: var(--brand-dark, #005a8e);
}

.cta-button.disabled {
    background: var(--ghost, #b0c4d4);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ---------------------------------------------
   9. FOOTER (AUTOR + LINKEDIN)
   --------------------------------------------- */
.footer {
    margin-top: 32px;
    border-top: 1px solid var(--border-soft, #eae7e2);
    background: var(--white, #ffffff);
    padding: 20px 48px 28px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.author-block {
    display: flex;
    gap: 14px;
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--brand, #0077B5);
    border-radius: 100px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.author-name {
    font-weight: 700;
    color: var(--ink, #1a3f50);
    font-size: 0.9rem;
}

.author-name span {
    font-weight: 400;
    color: var(--brand, #0077B5);
}

.author-title {
    font-size: 0.75rem;
    color: var(--faint, #6b8dac);
}

.li-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--brand-light, #e8f3fa);
    border: 1px solid var(--brand-mid, #cce4f0);
    padding: 8px 20px;
    border-radius: 60px;
    text-decoration: none;
    transition: 0.2s;
}

.li-icon {
    width: 28px;
    height: 28px;
}

.li-main {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand, #0077B5);
    display: block;
}

.li-sub {
    font-size: 0.7rem;
    color: var(--faint, #3682a4);
}

.li-btn:hover {
    background: var(--brand-mid, #dbeef8);
}

/* ---------------------------------------------
   10. BOTÓN HOME FLOTANTE
   --------------------------------------------- */


/* ---------------------------------------------
   11. BOTÓN COMPARTIR (opcional para artículos)
   --------------------------------------------- */
.share-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-soft, #eae7e2);
    border-bottom: 1px solid var(--border-soft, #eae7e2);
    margin: 20px 0;
}

.share-label {
    font-family: var(--mono, monospace);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint, #8ba3b5);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono, monospace);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand, #0077B5);
    text-decoration: none;
    border: 1px solid var(--brand, #0077B5);
    padding: 7px 14px;
    border-radius: 3px;
    transition: all 0.15s;
}

.share-btn:hover {
    background: var(--brand, #0077B5);
    color: #fff;
}

/* ---------------------------------------------
   12. RESPONSIVE
   --------------------------------------------- */
@media (max-width: 800px) {
    body {
        padding: 16px;
    }

    .headline {
        font-size: 2.2rem;
    }

    .subline {
        max-width: 100%;
        font-size: 1rem;
    }

    .header {
        padding: 24px 24px 16px 24px;
    }

    .body {
        padding: 0 24px 32px 24px;
    }

    .academy-module-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }

    .academy-course-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .block-title {
        font-size: 1.6rem;
    }

    .cta-headline {
        font-size: 1.4rem;
    }

    .footer {
        padding: 16px 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .tension td {
        padding: 12px 8px;
    }
}

@media (max-width: 520px) {
    .tension-who {
        width: 45px;
        font-size: 0.9rem;
        padding: 12px 8px 12px 12px;
    }

    .tension-says {
        padding: 12px 12px 12px 4px;
        font-size: 0.85rem;
    }

    .quote-text {
        font-size: 1rem;
    }

    .cta-block {
        padding: 24px 20px;
    }
}


/* ---------------------------------------------
   13. COPYRIGHT HINT (bombilla animada)
   --------------------------------------------- */

/* ESTILOS BASE (siempre necesarios) */
.copyright-hint-auto {
    background: var(--brand-light, #e8f3fa);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    color: var(--brand, #0077B5);
    transition: all 0.2s ease;
}

/* =============================================
   OPCIÓN 1 · Parpadeo solo al hacer hover (elegida)
   ============================================= */
.copyright-hint-auto:hover {
    animation: pulse 0.6s ease-in-out 2;
    transform: scale(1.05);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); background: var(--brand, #0077B5); color: white; }
    100% { opacity: 1; transform: scale(1); }
}

/* =============================================
   OPCIÓN 2 · Parpadeo suave continuo (siempre)
   ============================================= */
/*
.copyright-hint-auto {
    animation: softBlink 2s ease-in-out infinite;
}

@keyframes softBlink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
*/

/* =============================================
   OPCIÓN 3 · Parpadeo rápido continuo (llamativo)
   ============================================= */
/*
.copyright-hint-auto {
    animation: fastBlink 0.8s step-end infinite;
}

@keyframes fastBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
*/

/* =============================================
   OPCIÓN 4 · Combinada: parpadeo suave continuo + hover más intenso
   ============================================= */

.copyright-hint-auto {
    animation: softBlink 2s ease-in-out infinite;
}

.copyright-hint-auto:hover {
    animation: pulse 0.6s ease-in-out 2;
    transform: scale(1.05);
}

@keyframes softBlink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); background: var(--brand, #0077B5); color: white; }
    100% { opacity: 1; transform: scale(1); }
}


/* =============================================
   OPCIÓN 5 · Sin animación, solo cambio de color al hover
   ============================================= */
/*
.copyright-hint-auto:hover {
    background: var(--brand, #0077B5);
    color: white;
    transform: scale(1.05);
}
*/
/* ---- Componentes de portada/listado y notas (ex academy.css) ---- */
/* ========== ACADEMY.CSS ========== */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 10px;
}

.academy-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: all .22s ease;
  position: relative;
}

.academy-card:hover {
  transform: translateY(-3px);
  border-color: #a0a0a0;
  background: #f5f5f5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

/* Estilo para cursos bloqueados */
.academy-card.locked {
  opacity: 0.85;
  background: #f8f8f8;
  cursor: not-allowed;
}

.academy-card.locked:hover {
  transform: none;
  border-color: var(--border);
  background: #f8f8f8;
  box-shadow: none;
}

/* Badge "Próximamente" */
.lock-badge-card {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e67e22;
  background: #fff8f0;
  padding: 5px 14px;
  border-radius: 20px;
  border: 2px solid #e67e22;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lock-badge-card::before {
  content: "🔒";
  font-size: 10px;
}

.locked-message-card {
  font-size: 12px;
  font-weight: 600;
  color: #e67e22;
  margin-top: 12px;
  font-family: var(--mono);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff8f0;
  padding: 8px 12px;
  border-radius: 8px;
}

.locked-message-card::before {
  content: "💧";
  font-size: 12px;
}

.academy-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 12px;
}

.academy-card.locked .academy-tag {
  color: var(--ghost);
}

.academy-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--ink);
}

.academy-card.locked .academy-title {
  opacity: 0.6;
}

.academy-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 22px;
  flex: 1;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  padding: 6px 10px;
  border: 1px solid var(--border);
  font-size: 11px;
  border-radius: 999px;
  font-family: var(--mono);
  color: var(--muted);
}

.academy-card.locked .badge {
  background: #f0f0f0;
  color: var(--ghost);
  border-color: var(--border-soft);
}

.academy-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7280;
}

.academy-card.locked .academy-link {
  color: var(--ghost);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.feature-item {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.feature-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.card-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.card {
  max-width: 100%;
}

@media (max-width: 720px) {
  .academy-grid {
    grid-template-columns: 1fr;
  }
  .academy-title {
    font-size: 24px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== NOTA DESTACADA ========== */
.nota-destacada {
  margin: 48px 0 32px 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--ds-line, #D7DCDF);
  border-left: 3px solid var(--ds-deep, #003955);
  border-radius: 0;
}

.nota-destacada-inner {
  padding: 30px 36px;
  text-align: left;
}

.nota-destacada-eyebrow {
  display: inline-block;
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand, #0077B5);
  margin-bottom: 16px;
}

.nota-destacada p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.nota-destacada-texto {
  font-size: 1.18rem !important;
  font-weight: 600;
  color: var(--ds-ink, #10161B) !important;
  margin: 0 0 16px 0 !important;
  max-width: 64ch;
}

.nota-destacada-texto strong {
  color: var(--ds-deep, #003955);
  font-weight: 700;
}

.nota-destacada-cierre {
  font-size: .95rem !important;
  color: #64748b !important;
  margin: 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--ds-line, #D7DCDF);
  max-width: 70ch;
}

/* ========== CTA FINAL ========== */
.cta-block-final {
  margin-top: 56px;
  padding: 40px 32px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
}

.cta-block-final .cta-headline {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-block-final .cta-headline span {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-block-final .cta-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 700px) {
  .nota-destacada-inner {
    padding: 24px 20px;
  }
  
  .nota-destacada p {
    font-size: 0.9rem;
  }
  
  .nota-destacada-frase {
    font-size: 1rem !important;
  }
  
  .nota-destacada-texto {
    font-size: 0.95rem !important;
  }
  
  .cta-block-final {
    padding: 30px 20px;
  }
  
  .cta-block-final .cta-headline {
    font-size: 1.4rem;
  }
}
/* ============================================================
   Compat dossier · clases sin estilo propio en Academy
   Reutilizan tokens de marca/dossier-core ya cargados.
   ============================================================ */

/* Wrappers de pagina (no requieren caja visible, solo flujo) */
.academia-body{margin:0;}
.article-page{width:100%;}

/* Enlace "volver al curso" (misma estetica que en articulos/versus) */
.ds-page .art-back{
  display:flex;width:fit-content;align-items:center;gap:6px;
  font-family:var(--mono);font-size:12px;letter-spacing:.04em;font-weight:600;
  color:#fff;background:var(--brand);text-decoration:none;
  padding:5px 14px;border-radius:13px;margin-bottom:26px;
  position:relative;z-index:1;transition:background .15s;
}
.ds-page .art-back:hover{background:var(--brand-dark,#14315a);}

/* Acentos exclusivos del curso lead-implementer: heredan de la familia .tension */
.constraints-who{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;
  text-transform:uppercase;font-weight:700;color:var(--brand);opacity:.85;
}
.translation-1,.translation-2{display:block;}
.translation-1{font-weight:600;color:var(--ink,#1a1a1a);}
.translation-2{margin-top:.35rem;color:var(--muted,#5b6470);font-style:italic;}

/* Boton CTA principal (p.ej. "Hacer el quiz"): mismo azul, mas presencia */
.cta-button-primary{box-shadow:0 4px 14px rgba(0,119,181,.35);}
.cta-button-primary:hover{box-shadow:0 6px 18px rgba(0,119,181,.45);}
