/* Panel «Mi Academia» — tema «night blueprint» de la landing Academia Revit Total.
   Todo va dentro de .r7d para no chocar con Astra/Elementor. Móvil primero. */
@font-face { font-family: "R7 Geist"; src: url("fonts/502b9851e13aed9b.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "R7 Geist Mono"; src: url("fonts/181a29443484632f.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

body:has(.r7d) { background: #0f1117 !important; margin: 0; }
.r7d {
  --bg: #0f1117; --bg-2: #13161e; --surface: #181c26; --surface-2: #1f2430;
  --line: rgba(226, 232, 255, 0.08); --line-2: rgba(226, 232, 255, 0.15);
  --fg: #eef1f8; --muted: #a3acc0; --faint: #8a93a8;
  --blue: #3b82f6; --blue-2: #60a5fa; --accent: #34d399;
  --radius: 18px; --radius-sm: 12px; --gutter: 16px; --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --sans: "R7 Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "R7 Geist Mono", ui-monospace, monospace;
  color-scheme: dark; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh;
}
@media (min-width: 720px) { .r7d { --gutter: clamp(24px, 4vw, 48px); } }
.r7d *, .r7d *::before, .r7d *::after { box-sizing: border-box; }
.r7d img, .r7d svg { display: block; max-width: 100%; }
.r7d a { color: inherit; text-decoration: none; }
.r7d p { margin: 0 0 1em; }
.r7d h1, .r7d h2, .r7d h3, .r7d h4 { margin: 0; color: var(--fg); font-family: var(--sans); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; text-transform: none; }
.r7d ul { margin: 0; padding: 0; list-style: none; }
.r7d button { font: inherit; color: inherit; }
.r7d :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.r7d [hidden] { display: none !important; }
/* WordPress (wpautop) mete <p> sueltos entre etiquetas: los vacíos se ocultan y los que envuelven
   bloques se vuelven «transparentes». Los párrafos propios llevan clase. */
.r7d p:empty, .r7d-soft__item > br, .r7d-lib__item > br { display: none; }
.r7d p:not([class]) { display: contents; }
.r7d :is(.w3eden, .r7d-ldprofile, .learndash-wrapper) p:not([class]) { display: block; }
.r7d button, .r7d .r7d-btn { text-transform: none; letter-spacing: normal; font-family: var(--sans); }
.r7d-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.r7d-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.r7d-i { width: 20px; height: 20px; flex: none; }
.r7d-muted { color: var(--muted); }
.r7d-small { font-size: 14px; color: var(--faint); margin: 14px 0 0; }
.r7d-small a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.r7d-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Etiquetas y títulos */
.r7d-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.r7d-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.r7d-h2 { font-size: clamp(1.6rem, 6vw, 2.6rem); margin: 12px 0 10px; }
.r7d-h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0 0 6px; }
.r7d-h3 .r7d-i { color: var(--accent); }
.r7d-head { max-width: 720px; margin-bottom: 24px; }

/* Botones */
.r7d-btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 500; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.r7d-btn .r7d-i { width: 16px; height: 16px; }
.r7d-btn--primary { background: #2563eb; color: #fff !important; box-shadow: 0 8px 30px -8px rgba(59, 130, 246, 0.7); }
.r7d-btn--primary:hover { background: #1d4ed8; transform: translateY(-2px); }
.r7d-btn--accent { background: var(--accent); color: #0b1a14 !important; box-shadow: 0 8px 30px -10px rgba(52, 211, 153, 0.7); }
.r7d-btn--accent:hover { transform: translateY(-2px); background: #4ee0ab; }
.r7d-btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--fg); }
.r7d-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); }
.r7d-btn--sm { --h: 40px; padding: 0 14px; font-size: 14px; }
.r7d-btn--off { border: 1px dashed var(--line-2); color: var(--faint); cursor: not-allowed; background: transparent; }

/* Tarjetas con brillo bajo el ratón */
.r7d-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.r7d-glow { overflow: hidden; transition: border-color 0.3s, transform 0.4s var(--ease); }
.r7d-glow::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.18), transparent 45%); }
.r7d-glow:hover { border-color: var(--line-2); }
.r7d-glow:hover::before { opacity: 1; }

/* Cabecera */
.r7d-top { position: sticky; top: 0; z-index: 40; background: rgba(15, 17, 23, 0.82); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.admin-bar .r7d-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .r7d-top { top: 0; } }
.r7d-top__in { display: flex; align-items: center; gap: 16px; height: 64px; }
.r7d-logo { display: inline-flex; align-items: center; gap: 10px; }
.r7d-logo__mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--blue); color: var(--accent); font-weight: 700; font-size: 14px; }
.r7d-logo__text { display: grid; line-height: 1.15; }
.r7d-logo__text b { font-size: 15px; font-weight: 600; }
.r7d-logo__text small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.r7d-nav { display: none; gap: 4px; margin-left: auto; }
.r7d-nav a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.r7d-nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.r7d-top .r7d-btn { margin-left: auto; }
@media (min-width: 860px) { .r7d-nav { display: flex; } .r7d-top .r7d-btn { margin-left: 8px; } }
@media (max-width: 380px) { .r7d-top .r7d-btn span { display: none; } .r7d-top .r7d-btn { padding: 0 12px; } }

/* Visitante sin sesión (WordPress pone body.logged-in) */
.r7d-guest { display: none; padding-block: 72px; }
body:not(.logged-in) .r7d-guest { display: block; }
body:not(.logged-in) .r7d-member, body:not(.logged-in) .r7d-nav { display: none; }
.r7d-guest__card { padding: 32px 24px; max-width: 640px; }
.r7d-guest__card h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin: 14px 0; }

/* Hero */
.r7d-hero { position: relative; padding: 40px 0 36px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.r7d-hero__grid { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none; background-image: linear-gradient(rgba(59, 130, 246, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.14) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 90% at 20% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 80% 90% at 20% 0%, #000 10%, transparent 70%); }
.r7d-hero h1 { font-size: clamp(2.1rem, 9vw, 4rem); font-weight: 700; margin: 14px 0 10px; }
.r7d-name:empty, .r7d-name.is-empty { display: none; }
.r7d-lead { color: #c5ccdb; font-size: clamp(1rem, 2.4vw, 1.15rem); max-width: 620px; }
.r7d-plan-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid rgba(96, 165, 250, 0.4); background: rgba(59, 130, 246, 0.1); color: var(--blue-2); }
.r7d-plan-badge[data-plan="avanzado"], .r7d-plan-badge[data-plan="legacy"] { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); color: var(--accent); }
.r7d-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.r7d-quick__a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 500; transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s; }
.r7d-quick__a .r7d-i { color: var(--blue-2); }
.r7d-quick__a:hover { border-color: rgba(96, 165, 250, 0.5); background: var(--surface-2); transform: translateY(-2px); }
@media (min-width: 720px) { .r7d-quick { grid-template-columns: repeat(3, 1fr); } .r7d-hero { padding: 64px 0 52px; } }
@media (min-width: 1080px) { .r7d-quick { grid-template-columns: repeat(6, 1fr); } .r7d-quick__a { flex-direction: column; align-items: flex-start; min-height: 92px; } }

/* Secciones */
.r7d-sec { padding-block: clamp(44px, 8vw, 96px); }
.r7d-sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Buscador */
#buscar { padding-block: 28px 0; }
.r7d-search { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.r7d-search p { margin: 0; font-size: 15px; }
.r7d-search__form { display: flex; gap: 8px; }
.r7d-search__form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; }
.r7d-search__form input::placeholder { color: var(--faint); }
.r7d-search__form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); }
@media (min-width: 860px) { .r7d-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; padding: 26px 30px; } }

/* Cursos */
.r7d-filter { display: inline-flex; padding: 5px; margin-bottom: 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); max-width: 100%; }
.r7d-filter button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; font-size: 14.5px; }
.r7d-filter button small { font-family: var(--mono); font-size: 11.5px; opacity: 0.8; }
.r7d-filter button[aria-pressed="true"] { background: #2563eb; color: #fff; }
.r7d-courses { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .r7d-courses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .r7d-courses { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.r7d-courses[data-view="basico"] .r7d-course[data-plan="avanzado"] { display: none; }
.r7d-course { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.r7d-course:hover { transform: translateY(-3px); }
.r7d-course img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.r7d-course__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.r7d-course__t { font-size: 17.5px; letter-spacing: -0.015em; line-height: 1.25; }
.r7d-course__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--blue-2) !important; }
.r7d-course__link .r7d-i { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.r7d-course__link:hover .r7d-i { transform: translateX(3px); }
.r7d-course__link::after { content: ""; position: absolute; inset: -400px 0 0; }
.r7d-course__lock, .r7d-course__soon { display: none; align-items: center; gap: 6px; margin-top: auto; font-size: 13.5px; color: var(--faint); }
.r7d-course__lock .r7d-i { width: 15px; height: 15px; }
.r7d-course__soon { display: inline-flex; color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
/* Bloqueado: la persona no está inscrita (el Básico ve el Avanzado, para dar curiosidad) */
.r7d-course.is-locked img { filter: grayscale(0.85) brightness(0.55); }
.r7d-course.is-locked .r7d-course__t { color: var(--muted); }
.r7d-course.is-locked .r7d-course__link { display: none; }
.r7d-course.is-locked .r7d-course__lock { display: inline-flex; }
.r7d-course.is-locked::after { content: ""; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(15, 17, 23, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 18px no-repeat; border: 1px solid var(--line-2); }
.r7d-course.is-locked { cursor: pointer; }
.r7d-course--soon { border-color: rgba(52, 211, 153, 0.45); background: linear-gradient(170deg, rgba(52, 211, 153, 0.08), transparent 45%), var(--surface); }
.r7d-badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line-2); }
.r7d-badge--both { color: var(--blue-2); border-color: rgba(96, 165, 250, 0.4); background: rgba(59, 130, 246, 0.1); }
.r7d-badge--adv { color: var(--accent); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }

/* Barra de progreso de LearnDash dentro de la tarjeta */
.r7d-progress { width: 100%; font-size: 12.5px; color: var(--muted); }
.r7d-progress:empty { display: none; }
.r7d .r7d-progress .learndash-wrapper, .r7d .r7d-progress .ld-progress { margin: 0 !important; padding: 0 !important; background: none !important; }
.r7d .r7d-progress .ld-progress-heading { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px !important; }
.r7d .r7d-progress .ld-progress-stats, .r7d .r7d-progress .ld-progress-percentage, .r7d .r7d-progress .ld-progress-steps { color: var(--muted) !important; font-size: 12.5px !important; font-weight: 500 !important; text-transform: none !important; }
.r7d .r7d-progress .ld-progress-bar { height: 6px !important; border-radius: 99px !important; background: var(--surface-2) !important; overflow: hidden; margin: 0 !important; }
.r7d .r7d-progress .ld-progress-bar-percentage { height: 100% !important; border-radius: 99px !important; background: linear-gradient(90deg, var(--blue), var(--accent)) !important; }
.r7d .r7d-progress dd.course_progress { margin: 0; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.r7d .r7d-progress .course_progress_blue { height: 100%; background: linear-gradient(90deg, var(--blue), var(--accent)); }

/* Perfil completo de LearnDash (desplegable) */
.r7d-more { margin-top: 22px; padding: 0; }
.r7d-more summary, .r7d-dl__g summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 500; }
.r7d-more summary::-webkit-details-marker, .r7d-dl__g summary::-webkit-details-marker { display: none; }
.r7d-more summary .r7d-i { color: var(--blue-2); }
.r7d-more summary::after, .r7d-dl__g summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 20px; color: var(--muted); }
.r7d-more[open] summary::after, .r7d-dl__g[open] summary::after { content: "–"; }
.r7d-ldprofile { padding: 0 12px 16px; background: #fff; color: #1f2430; border-radius: 0 0 var(--radius) var(--radius); }
.r7d-ldprofile a { color: #1d4ed8; }
.r7d .r7d-ldprofile :is(h1, h2, h3, h4) { color: #1f2430; }

/* Plan Avanzado */
.r7d-upgrade { padding-top: 0; }
.r7d-upgrade__card { display: grid; gap: 18px; padding: 26px 22px; border-color: rgba(52, 211, 153, 0.45); background: linear-gradient(165deg, rgba(52, 211, 153, 0.08), transparent 45%), linear-gradient(200deg, rgba(59, 130, 246, 0.16), transparent 60%), var(--surface); box-shadow: 0 30px 90px -40px rgba(59, 130, 246, 0.6); }
.r7d-upgrade__card p { margin: 0; }
@media (min-width: 900px) { .r7d-upgrade__card { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 36px 40px; } .r7d-upgrade__card .r7d-small { grid-column: 1 / -1; } }

/* Recursos */
.r7d-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 28px; padding-bottom: 4px; scrollbar-width: none; }
.r7d-tabs a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }
.r7d-tabs a:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.35); }
.r7d-block { margin-bottom: 52px; scroll-margin-top: 90px; }
.r7d-block:last-child { margin-bottom: 0; }
.r7d-block > .r7d-muted { max-width: 720px; margin-bottom: 18px; }

/* Descargas (Download Manager) */
.r7d-dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.r7d-dl__g summary small { font-family: var(--mono); font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.r7d-dl__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 12px 14px; }
@media (min-width: 900px) { .r7d-dl__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.r7d .r7d-dl__list > *:not(:empty) { margin: 0 !important; }
.r7d .r7d-dl__list .w3eden { background: transparent; color: var(--fg); }
.r7d .r7d-dl__list .w3eden .card { margin: 0 !important; background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-radius: var(--radius-sm) !important; box-shadow: none !important; color: var(--fg); transition: border-color 0.25s; }
.r7d .r7d-dl__list .w3eden .card:hover { border-color: rgba(96, 165, 250, 0.45) !important; }
.r7d .r7d-dl__list .w3eden .card-body { padding: 14px 16px !important; }
.r7d .r7d-dl__list .w3eden .media { display: flex; align-items: center; gap: 12px; }
.r7d .r7d-dl__list .w3eden .img-48 { margin: 0 !important; flex: none; }
.r7d .r7d-dl__list .w3eden .img-48 img { width: 40px; height: 40px; border-radius: 8px; }
.r7d .r7d-dl__list .w3eden .media-body { min-width: 0; flex: 1; }
.r7d .r7d-dl__list .w3eden .media { flex-wrap: wrap; }
.r7d .r7d-dl__list .w3eden .package-title { margin: 0 0 2px !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.3 !important; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.r7d .r7d-dl__list .w3eden .package-title a { color: var(--fg) !important; }
.r7d .r7d-dl__list .w3eden .text-muted { color: var(--faint) !important; font-size: 12.5px !important; }
.r7d .r7d-dl__list .w3eden .ml-3:last-child { margin-left: 0 !important; flex: none; }
.r7d .r7d-dl__list .w3eden .btn { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px !important; border: 0 !important; border-radius: 999px !important; background: #2563eb !important; color: #fff !important; font-size: 13.5px !important; font-weight: 500 !important; text-transform: none !important; white-space: nowrap; }
.r7d .r7d-dl__list .w3eden .btn:hover { background: #1d4ed8 !important; }

/* Software */
.r7d-soft { display: grid; gap: 12px; }
@media (min-width: 760px) { .r7d-soft { grid-template-columns: repeat(3, 1fr); } }
.r7d-soft__item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
.r7d-soft__item > .r7d-i { width: 30px; height: 30px; color: var(--accent); margin-bottom: 6px; }
.r7d-soft__item h4 { font-size: 18px; }
.r7d-soft__item p { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.r7d-soft__item .r7d-btn { margin-top: auto; position: relative; z-index: 1; }
#software:has(.r7d-soft) .r7d-soft__note { display: none; }
.r7d-soft__note { font-size: 14.5px; }

/* Manuales y libros */
.r7d-lib { display: grid; gap: 12px; }
@media (min-width: 640px) { .r7d-lib { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .r7d-lib { grid-template-columns: repeat(3, 1fr); } }
.r7d-lib__item { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 20px; }
.r7d-lib__item > .r7d-i { width: 26px; height: 26px; color: var(--blue-2); margin-top: 2px; }
.r7d-lib__item h4 { font-size: 17px; margin-bottom: 4px; }
.r7d-lib__item p { margin: 0; color: var(--muted); font-size: 14px; }
.r7d-lib__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.r7d-pill { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* Ayuda */
.r7d-help { display: grid; gap: 18px; padding: 26px 22px; }
.r7d-help__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(52, 211, 153, 0.12); color: var(--accent); }
.r7d-help__icon .r7d-i { width: 28px; height: 28px; }
.r7d-help .r7d-muted { max-width: 680px; }
.r7d-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.r7d-chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.r7d-help .r7d-row { position: relative; z-index: 1; }
@media (min-width: 900px) { .r7d-help { grid-template-columns: auto 1fr; padding: 40px; gap: 28px; } }

/* Pie */
.r7d-foot { border-top: 1px solid var(--line); padding: 26px 0 96px; font-size: 13.5px; color: var(--faint); }
.r7d-foot .r7d-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Aparición al deslizar (solo si el JS está activo y el usuario no pide menos movimiento) */
.r7d.js-reveal .r7d-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.r7d.js-reveal .r7d-reveal.is-in { opacity: 1; transform: none; }
.r7d-flash { animation: r7dFlash 1.4s var(--ease); }
@keyframes r7dFlash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px var(--accent), 0 30px 90px -30px rgba(52, 211, 153, 0.7); } }
@media (prefers-reduced-motion: reduce) { .r7d *, .r7d *::before { transition: none !important; animation: none !important; } }


/* ---------- v4 (2026-11-14) ---------- */
.r7d-center { justify-content: center; margin-top: 22px; }
.r7d-pill--live { color: #fca5a5; border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.r7d-pill--new { color: var(--blue-2); border-color: rgba(96, 165, 250, 0.4); background: rgba(59, 130, 246, 0.1); }
.r7d-btn--danger { border: 1px solid rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.08); color: #fecaca !important; }
.r7d-btn--danger:hover { background: rgba(248, 113, 113, 0.18); border-color: rgba(248, 113, 113, 0.7); }

/* Clases en vivo */
.r7d-notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; margin: 0 0 18px; border-color: rgba(52, 211, 153, 0.35); background: linear-gradient(120deg, rgba(52, 211, 153, 0.08), transparent 60%), var(--surface); color: var(--muted); font-size: 15px; }
.r7d-notice .r7d-i { color: var(--accent); margin-top: 3px; }
.r7d-notice b { color: var(--fg); }
.r7d-classes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 680px) { .r7d-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .r7d-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.r7d-class { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 20px; background: linear-gradient(160deg, rgba(59, 130, 246, 0.1), transparent 55%), var(--surface); }
.r7d-class:hover { transform: translateY(-3px); }
.r7d-class__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.r7d-class__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(59, 130, 246, 0.14); color: var(--blue-2); }
.r7d-class__t { font-size: 17px; line-height: 1.3; }
.r7d-class__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--blue-2); font-size: 14px; font-weight: 500; position: relative; z-index: 1; }
.r7d-class__go .r7d-i { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.r7d-class:hover .r7d-class__go .r7d-i { transform: translateX(3px); }

/* Plugin BIMPro Library */
.r7d-plugin { display: grid; gap: 22px; padding: 26px 22px; border-color: rgba(52, 211, 153, 0.5); background: linear-gradient(100deg, rgba(15, 17, 23, 0.96) 0%, rgba(15, 17, 23, 0.86) 55%, rgba(15, 17, 23, 0.7) 100%), var(--plugin-bg) center / cover no-repeat, var(--surface); box-shadow: 0 30px 90px -45px rgba(52, 211, 153, 0.55); }
.r7d-plugin__ico { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 12px; border: 1px solid rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); color: var(--accent); }
.r7d-plugin__ico .r7d-i { width: 24px; height: 24px; }
.r7d-plugin__sub { color: var(--accent); font-weight: 500; font-size: 1.05rem; margin: 0 0 10px; }
.r7d-steps { display: grid; gap: 10px; margin: 16px 0 20px; }
.r7d-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(24, 28, 38, 0.8); color: var(--muted); font-size: 14.5px; }
.r7d-steps .r7d-i { color: var(--accent); margin-top: 2px; }
.r7d-steps b { color: var(--fg); }
.r7d-plugin__media { position: relative; z-index: 1; align-self: center; border-radius: 16px; padding: 8px; background: #0b0d12; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); }
.r7d-plugin__video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #fff; }
@media (min-width: 900px) { .r7d-plugin { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px; padding: 40px; } }

/* Mi cuenta */
.r7d-acc summary { display: flex; align-items: center; gap: 10px; padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.r7d-acc summary::-webkit-details-marker { display: none; }
.r7d-acc summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 20px; }
.r7d-acc[open] summary::after { content: "−"; }
.r7d-acc summary .r7d-i { color: var(--accent); }
.r7d-acc__body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.r7d-acc__dl { display: grid; gap: 0; margin: 8px 0 18px; }
.r7d-acc__dl div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .r7d-acc__dl div { grid-template-columns: 180px minmax(0, 1fr); } }
.r7d-acc__dl dt { color: var(--faint); font-size: 13px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.r7d-acc__dl dd { margin: 0; overflow-wrap: anywhere; }

/* Ventana «¿Estás seguro?» */
.r7d-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--fg); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8); }
.r7d-dialog::backdrop { background: rgba(5, 7, 12, 0.72); backdrop-filter: blur(4px); }
.r7d-dialog__in { position: relative; padding: 28px 24px 24px; }
.r7d-dialog__x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.r7d-dialog__x:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.r7d-dialog__ico { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.r7d-dialog .r7d-h3 { font-size: 1.4rem; }
.r7d-loss { display: grid; gap: 8px; margin: 0 0 6px; }
.r7d-loss li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.r7d-loss .r7d-i { color: #fca5a5; margin-top: 2px; }
.r7d-dialog__btns { margin-top: 20px; }
.r7d-dialog__btns .r7d-btn { flex: 1 1 200px; white-space: normal; text-align: center; }
.r7d-plugin .r7d-pill { position: static; display: inline-block; margin: 0 0 4px; }
.r7d-class .r7d-pill { position: static; }
.r7d section[id], .r7d [id="plantillas"], .r7d [id="software"], .r7d [id="manuales"] { scroll-margin-top: 84px; }
.r7d-pill--live, .r7d-pill--new { padding: 4px 9px; border: 1px solid; border-radius: 999px; }
.r7d-pill--live { border-color: rgba(248, 113, 113, 0.35); }
.r7d-pill--new { border-color: rgba(96, 165, 250, 0.4); }
