/*
 Theme Name:   RCAD PRO Child
 Theme URI:    https://recursoscad.com
 Description:  Tema hijo profesional de Orbital 2.6.5 — SEO, AdSense, Mega Menu, bbPress visual integrado con RC Community Engine, Panel Usuario, Acordeón, Login Modal.
 Author:       RecursosCAD
 Author URI:   https://recursoscad.com
 Template:     orbital
 Version: 5.76
 Update URI: https://recursoscad.com/rcad-theme/
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  rcad-pro
*/

/*
 * MOBILE EMERGENCY FIX — Se carga siempre, máxima prioridad
 */
@media (max-width: 768px) {
    /* Overflow solo en móvil donde realmente hace falta,
       y solo en body, no en html (html con overflow:hidden
       rompe position:absolute full-width del mega-menu) */
    body { max-width: 100vw; overflow-x: clip; }

    .site-main, #content, main, .container, #content-wrapper,
    .site-content, .content-area, .entry-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.home .site-main,
    body.home main {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
}


/* === RCAD V27 profile refinements === */
.bbp-author-name,.bbp-author-name a,.rcad-author-name,.rcad-author-name a{
 text-decoration:none!important;
 border-bottom:0!important;
}
.bbp-author-name a:hover,.rcad-author-name a:hover{color:#0b2d6b;text-decoration:none!important;}
.rcad-user-panel .rcad-user-stats li,
.rcad-user-panel .rcad-user-stats a{
 text-decoration:none!important;
}
.rcad-user-panel .rcad-user-stats{
 gap:6px!important;
}
.rcad-user-panel .rcad-user-stats .label{
 font-weight:500!important;
}
.rcad-user-panel .rcad-user-stats .value{
 font-weight:700!important;
}
.rcad-user-panel .rcad-badges{
 display:flex;
 justify-content:center;
 gap:8px;
}
.rcad-user-panel .rcad-badges img,
.rcad-user-panel .rcad-badges svg,
.rcad-user-panel .rcad-badges .dashicons{
 width:22px;height:22px;
}

/* RCAD v179: foro con retícula estructural única. */

/* RCAD v310 — /forums/: elimina la franja de cabecera bbPress legacy
   (Foro / Temas / Mensajes / Último mensaje) que queda debajo del índice nuevo. */
body.rcad-forum-home #bbpress-forums > ul.bbp-forums > li.bbp-header,
body.rcad-forum-home #bbpress-forums > ul.bbp-forums > li.bbp-footer {
    display: none !important;
}

/* RCAD v314 topic-tag full width */

/* RCAD v416 — Manual RCAD */
.rcad-resource-tablist-v350{gap:2px;overflow-x:auto;scrollbar-width:thin}.rcad-resource-tablist-v350 button{white-space:nowrap}
.rcad-manual-v416{padding:22px 4px 8px}.rcad-manual-intro-v416{margin-bottom:22px}.rcad-manual-intro-v416>span{display:inline-block;color:#9a6500;background:#fff5d8;border:1px solid #f6a800;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:700;letter-spacing:.05em}.rcad-manual-intro-v416 h2{margin:10px 0 5px;color:#071b46}.rcad-manual-intro-v416 p{margin:0;color:#53627a;max-width:760px}.rcad-manual-step-v416{display:grid;grid-template-columns:46px minmax(0,1fr);gap:14px;padding:20px 0;border-top:1px solid #e3e8f0}.rcad-manual-number-v416{width:40px;height:40px;border-radius:10px;background:#f6a800;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.rcad-manual-copy-v416 h3{margin:2px 0 7px;color:#071b46;font-size:18px}.rcad-manual-copy-v416 p{margin:0;color:#243653;line-height:1.7}.rcad-manual-copy-v416 img{display:block;width:100%;max-width:820px;height:auto;margin:16px 0 0;border:1px solid #dce3ed;border-radius:10px}.rcad-manual-video-v416{margin-top:20px;padding-top:20px;border-top:1px solid #e3e8f0}.rcad-manual-video-v416 iframe{width:100%;max-width:820px;aspect-ratio:16/9;height:auto;border:0;border-radius:10px}.rcad-manual-generated-v417{font-size:16px;color:#243653;line-height:1.72}.rcad-manual-generated-v417 p{margin:0 0 9px}.rcad-manual-generated-v417 p:last-child{margin-bottom:0}.rcad-manual-generated-v417 a{color:#0b76e0;text-decoration:underline;text-underline-offset:2px}.rcad-manual-generated-v417 strong{color:#071b46}.rcad-manual-v416 .rcad-manual-step-v416:first-of-type{border-top:0}
@media(max-width:700px){.rcad-manual-step-v416{grid-template-columns:38px minmax(0,1fr);gap:10px}.rcad-manual-number-v416{width:34px;height:34px}.rcad-manual-copy-v416 h3{font-size:16px}}


/* =========================================================
   RCAD v420 — Tipografía editorial inspirada en Newspaper
   Solo contenido editorial / pestañas de texto.
   No altera cajas de descarga, CTA, detalles ni comentarios.
   ========================================================= */
:root{
  --rcad-editorial-ink:#071b46;
  --rcad-editorial-link:#1683e8;
  --rcad-editorial-accent:#f6a800;
  --rcad-editorial-muted:#44546f;
}

/* Cuerpo de artículo: lectura limpia y profesional */
.single-post .entry-content,
.single-post .post-content,
.single-rcad_resource .rcad-tab-panel[data-tab="description"],
.single-rcad_resource .rcad-manual-content,
.rcad-resource-content .rcad-tab-panel[data-tab="description"]{
  color:var(--rcad-editorial-ink);
  font-size:18px;
  line-height:1.78;
  font-weight:400;
  letter-spacing:0;
}

/* Párrafos: aire similar al ritmo editorial de Newspaper */
.single-post .entry-content p,
.single-post .post-content p,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] p,
.single-rcad_resource .rcad-manual-content p,
.rcad-resource-content .rcad-tab-panel[data-tab="description"] p{
  margin:0 0 20px;
}

/* H2/H3 con jerarquía clara y sin cajas decorativas */
.single-post .entry-content h2,
.single-post .post-content h2,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] h2,
.single-rcad_resource .rcad-manual-content h2{
  color:var(--rcad-editorial-ink);
  font-size:27px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:-.25px;
  margin:38px 0 16px;
  padding:0;
  border:0;
  background:none;
}
.single-post .entry-content h3,
.single-post .post-content h3,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] h3,
.single-rcad_resource .rcad-manual-content h3{
  color:var(--rcad-editorial-ink);
  font-size:22px;
  line-height:1.3;
  font-weight:700;
  margin:30px 0 12px;
  padding:0;
  border:0;
  background:none;
}
.single-post .entry-content h4,
.single-post .post-content h4,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] h4,
.single-rcad_resource .rcad-manual-content h4{
  color:var(--rcad-editorial-ink);
  font-size:19px;
  line-height:1.35;
  font-weight:700;
  margin:25px 0 10px;
}

/* Listas: sencillas, con sangría y separación editorial */
.single-post .entry-content ul,
.single-post .entry-content ol,
.single-post .post-content ul,
.single-post .post-content ol,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] ul,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] ol,
.single-rcad_resource .rcad-manual-content ul,
.single-rcad_resource .rcad-manual-content ol{
  margin:10px 0 24px;
  padding-left:31px;
}
.single-post .entry-content li,
.single-post .post-content li,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] li,
.single-rcad_resource .rcad-manual-content li{
  margin:0 0 12px;
  padding-left:3px;
  line-height:1.72;
}
.single-post .entry-content ul li::marker,
.single-post .post-content ul li::marker,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] ul li::marker,
.single-rcad_resource .rcad-manual-content ul li::marker{
  color:var(--rcad-editorial-accent);
  font-size:.85em;
}
.single-post .entry-content ol li::marker,
.single-post .post-content ol li::marker,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] ol li::marker,
.single-rcad-resource .rcad-manual-content ol li::marker{
  color:var(--rcad-editorial-ink);
  font-weight:600;
}

/* Enlaces editoriales */
.single-post .entry-content a:not(.button):not(.wp-block-button__link),
.single-post .post-content a:not(.button):not(.wp-block-button__link),
.single-rcad_resource .rcad-tab-panel[data-tab="description"] a,
.single-rcad_resource .rcad-manual-content a{
  color:var(--rcad-editorial-link);
  text-decoration:none;
  border-bottom:1px solid rgba(22,131,232,.28);
}
.single-post .entry-content a:hover,
.single-post .post-content a:hover,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] a:hover,
.single-rcad_resource .rcad-manual-content a:hover{
  border-bottom-color:currentColor;
}

/* Negritas y citas */
.single-post .entry-content strong,
.single-post .post-content strong,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] strong,
.single-rcad_resource .rcad-manual-content strong{
  color:var(--rcad-editorial-ink);
  font-weight:700;
}
.single-post .entry-content blockquote,
.single-post .post-content blockquote,
.single-rcad_resource .rcad-tab-panel[data-tab="description"] blockquote{
  margin:26px 0;
  padding:4px 0 4px 20px;
  border-left:3px solid var(--rcad-editorial-accent);
  color:var(--rcad-editorial-muted);
  font-size:18px;
  line-height:1.7;
  background:transparent;
}

/* Manual RCAD: conserva números amarillos, pero usa el mismo ritmo de lectura */
.rcad-manual-step__title,
.rcad-manual-step h3,
.rcad-manual-step h4{
  color:var(--rcad-editorial-ink);
  font-weight:700;
}
.rcad-manual-step p{
  font-size:18px;
  line-height:1.72;
  margin-bottom:16px;
}

/* Móvil */
@media (max-width:767px){
  .single-post .entry-content,
  .single-post .post-content,
  .single-rcad_resource .rcad-tab-panel[data-tab="description"],
  .single-rcad_resource .rcad-manual-content,
  .rcad-resource-content .rcad-tab-panel[data-tab="description"]{
    font-size:17px;
    line-height:1.72;
  }
  .single-post .entry-content h2,
  .single-post .post-content h2,
  .single-rcad_resource .rcad-tab-panel[data-tab="description"] h2,
  .single-rcad_resource .rcad-manual-content h2{font-size:24px;margin-top:32px}
  .single-post .entry-content h3,
  .single-post .post-content h3,
  .single-rcad_resource .rcad-tab-panel[data-tab="description"] h3,
  .single-rcad_resource .rcad-manual-content h3{font-size:21px}
}


/* RCAD v421 — Tamaño del título principal de recursos */
.single-rcad_resource h1.entry-title,
.single-rcad_resource .entry-title,
.single-rcad_resource .rcad-resource-title,
.single-rcad_resource main h1 {
    font-size: 41px !important;
    line-height: 1.18 !important;
}
@media (max-width: 767px) {
    .single-rcad_resource h1.entry-title,
    .single-rcad_resource .entry-title,
    .single-rcad_resource .rcad-resource-title,
    .single-rcad_resource main h1 {
        font-size: 32px !important;
    }
}
