/* ============================================================
   RCAD PRO — Home CSS v2 PRO
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.rcad-home-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.rcad-home-section { margin: 0 0 44px; }
.rcad-home-ad { text-align: center; margin: 0 0 36px; padding: 10px 0; }

/* ── Section header ─────────────────────────────────────── */
.rcad-sh { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.rcad-sh__left { display: flex; flex-direction: column; gap: 3px; }
.rcad-sh__title { font-size: 21px !important; font-weight: 900 !important; color: #1a1a1a !important; margin: 0 !important; padding: 0 !important; line-height: 1.2 !important; letter-spacing: -.01em !important; }
.rcad-sh__title::after { content: ''; display: block; width: 44px; height: 3px; background: #f5a623; border-radius: 2px; margin-top: 7px; }
.rcad-sh__sub { font-size: 13px !important; color: #888 !important; margin: 0 !important; }
.rcad-sh__more { font-size: 13px; font-weight: 700; color: #f5a623; text-decoration: none; white-space: nowrap; flex-shrink: 0; border: 1.5px solid #f5a623; border-radius: 20px; padding: 5px 14px; transition: all .15s; }
.rcad-sh__more:hover { background: #f5a623; color: #fff; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.rcad-hero {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 40%, #0d2f5e 100%);
    padding: 56px 20px 40px;
    margin-bottom: 0;
}
.rcad-hero__inner { max-width: 1200px; margin: 0 auto; }
.rcad-hero__text { text-align: center; max-width: 780px; margin: 0 auto 32px; }
.rcad-hero__h1 {
    font-size: 38px !important; font-weight: 900 !important; color: #fff !important;
    margin: 0 0 14px !important; line-height: 1.15 !important; letter-spacing: -.02em !important;
}
.rcad-hero__h1 span { color: #f5a623; }
.rcad-hero__sub { font-size: 17px !important; color: rgba(255,255,255,.75) !important; margin: 0 0 30px !important; line-height: 1.6 !important; }

/* Buscador */
.rcad-hero__search { max-width: 620px; margin: 0 auto 20px; }
.rcad-hero__search-wrap { display: flex; border-radius: 50px; overflow: hidden; box-shadow: 0 6px 30px rgba(0,0,0,.4); background: #fff; }

.rcad-hero__input { flex: 1; padding: 16px 20px; border: none; font-size: 15px; outline: none; background: transparent; color: #333; min-width: 0; }
.rcad-hero__btn { padding: 14px 26px; background: #f5a623; color: #fff; border: none; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s; white-space: nowrap; flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; }
.rcad-hero__btn:hover { background: #c47f00; }

/* Tags populares */
.rcad-hero__tags { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.rcad-hero__tags-label { font-size: 12px; color: rgba(255,255,255,.5); white-space: nowrap; }
.rcad-hero__tag { display: inline-block; padding: 4px 12px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; font-size: 12px; font-weight: 500; text-decoration: none; transition: all .15s; }
.rcad-hero__tag:hover { background: #f5a623; border-color: #f5a623; color: #fff; }

/* Stats bar */
.rcad-hero__stats { display: flex; justify-content: center; gap: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; flex-wrap: wrap; }
.rcad-hero__stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 32px; border-right: 1px solid rgba(255,255,255,.1); }
.rcad-hero__stat:last-child { border-right: none; }
.rcad-hero__stat-emoji { font-size: 22px; line-height: 1; }
.rcad-hero__stat-n { font-size: 24px; font-weight: 900; color: #fff; line-height: 1; }
.rcad-hero__stat-label { font-size: 11px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════
   CARRUSEL HOME (.rcad-hc)
══════════════════════════════════════════════════════════ */
.rcad-hc { display: flex !important; align-items: center !important; gap: 8px !important; }
.rcad-hc__btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 38px !important; height: 38px !important; border-radius: 50% !important;
    border: 1.5px solid #e0d8cc !important; background: #fff !important; color: #555 !important;
    font-size: 16px !important; cursor: pointer !important; flex-shrink: 0 !important;
    transition: all .15s !important; padding: 0 !important; box-shadow: 0 2px 6px rgba(0,0,0,.08) !important;
}
.rcad-hc__btn:hover { background: #f5a623 !important; border-color: #f5a623 !important; color: #fff !important; }
.rcad-hc__btn:disabled { opacity: .3 !important; cursor: default !important; }
.rcad-hc__vp { flex: 1 !important; overflow: hidden !important; min-width: 0 !important; }
.rcad-hc__track { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 16px !important; padding: 4px 2px 10px !important; margin: 0 !important; transition: transform .35s cubic-bezier(.4,0,.2,1) !important; will-change: transform !important; }

/* ── Resource Card (.rcad-rc) ───────────────────────────── */
.rcad-rc { flex: 0 0 220px !important; min-width: 220px !important; max-width: 220px !important; }
.rcad-rc__a {
    display: flex !important; flex-direction: column !important; text-decoration: none !important;
    border: 1px solid #ede8df !important; border-radius: 10px !important; overflow: hidden !important;
    background: #fff !important; height: 100% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.07) !important; transition: box-shadow .2s, transform .2s !important;
}
.rcad-rc__a:hover { box-shadow: 0 8px 24px rgba(0,0,0,.13) !important; transform: translateY(-3px) !important; text-decoration: none !important; }
.rcad-rc__img { position: relative !important; width: 100% !important; padding-top: 65% !important; overflow: hidden !important; background: #f5f0e8 !important; flex-shrink: 0 !important; }
.rcad-rc__img img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform .3s !important; display: block !important; }
.rcad-rc__a:hover .rcad-rc__img img { transform: scale(1.06) !important; }
.rcad-rc__noimg { position: absolute !important; inset: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.rcad-rc__noimg svg { width: 40px !important; height: 40px !important; stroke: #ccc !important; }
.rcad-rc__badge { position: absolute !important; font-size: 9px !important; font-weight: 800 !important; padding: 3px 7px !important; border-radius: 3px !important; text-transform: uppercase !important; z-index: 1 !important; letter-spacing: .06em !important; }
.rcad-rc__badge--new { background: #f5a623 !important; color: #fff !important; top: 8px !important; left: 8px !important; }
.rcad-rc__badge--hot { background: #e53935 !important; color: #fff !important; top: 8px !important; right: 8px !important; left: auto !important; }
.rcad-rc__body { padding: 10px 12px 6px !important; flex: 1 !important; display: flex !important; flex-direction: column !important; gap: 4px !important; }
.rcad-rc__cat { font-size: 9.5px !important; font-weight: 800 !important; color: #f5a623 !important; text-transform: uppercase !important; letter-spacing: .06em !important; margin: 0 !important; }
.rcad-rc__title { font-size: 13px !important; font-weight: 700 !important; color: #1a1a1a !important; line-height: 1.35 !important; margin: 0 !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.rcad-rc__a:hover .rcad-rc__title { color: #f5a623 !important; }
.rcad-rc__stats { display: flex !important; gap: 10px !important; margin-top: 5px !important; flex-wrap: wrap !important; }
.rcad-rc__stat { display: inline-flex !important; align-items: center !important; gap: 3px !important; font-size: 11px !important; }
.rcad-rc__stat svg { width: 11px !important; height: 11px !important; fill: currentColor !important; flex-shrink: 0 !important; }
.rcad-rc__stat--dl { color: #f5a623 !important; font-weight: 600 !important; }
.rcad-rc__stat--views { color: #aaa !important; }
.rcad-rc__footer { padding: 8px 12px 12px !important; }
.rcad-rc__cta { display: flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; background: #f5a623 !important; color: #fff !important; font-size: 11.5px !important; font-weight: 800 !important; padding: 8px 10px !important; border-radius: 6px !important; text-transform: uppercase !important; letter-spacing: .04em !important; transition: background .15s !important; }
.rcad-rc__cta svg { width: 12px !important; height: 12px !important; fill: currentColor !important; flex-shrink: 0 !important; }
.rcad-rc__a:hover .rcad-rc__cta { background: #c47f00 !important; }

/* ══════════════════════════════════════════════════════════
   SILOS (.rcad-silos)
══════════════════════════════════════════════════════════ */
.rcad-silos { display: flex; flex-direction: column; gap: 10px; }
.rcad-silo {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border: 1px solid #ede8df; border-radius: 10px;
    background: #fff; text-decoration: none !important;
    transition: all .18s; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.rcad-silo:hover { border-color: #f5a623; box-shadow: 0 3px 14px rgba(245,166,35,.15); transform: translateX(4px); }
.rcad-silo__icon { width: 44px; height: 44px; background: #fff8ed; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .18s; }
.rcad-silo__icon span { font-size: 24px !important; line-height: 1 !important; transition: transform .18s; display: inline-block !important; }
.rcad-silo:hover .rcad-silo__icon span { transform: scale(1.2); }
.rcad-silo:hover .rcad-silo__icon { background: #f5a623; }
.rcad-silo:hover .rcad-silo__icon svg { stroke: #fff; }
.rcad-silo__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rcad-silo__name { font-size: 14.5px; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
.rcad-silo:hover .rcad-silo__name { color: #f5a623; }
.rcad-silo__desc { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcad-silo__count { font-size: 11px; color: #bbb; }
.rcad-silo__arrow { font-size: 18px; color: #ddd; flex-shrink: 0; transition: color .18s, transform .18s; }
.rcad-silo:hover .rcad-silo__arrow { color: #f5a623; transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════
   BLOQUE SEO 3 COLUMNAS
══════════════════════════════════════════════════════════ */
.rcad-seo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.rcad-seo-col { background: #fafaf8; border: 1px solid #ede8df; border-radius: 10px; padding: 22px 20px; }
.rcad-seo-col__icon { width: 40px; height: 40px; background: #fff8ed; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.rcad-seo-col__icon svg { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; stroke: #f5a623; }
.rcad-seo-col__title { font-size: 15px !important; font-weight: 800 !important; color: #1a1a1a !important; margin: 0 0 10px !important; line-height: 1.3 !important; }
.rcad-seo-col__text { font-size: 13px !important; color: #555 !important; line-height: 1.7 !important; margin: 0 !important; }

/* ══════════════════════════════════════════════════════════
   ÚLTIMAS PUBLICACIONES (.rcad-lc)
══════════════════════════════════════════════════════════ */
.rcad-latest-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.rcad-lc { display: flex; flex-direction: column; text-decoration: none !important; border: 1px solid #ede8df; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: box-shadow .2s, transform .2s; }
.rcad-lc:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.rcad-lc__img { position: relative; width: 100%; padding-top: 58%; overflow: hidden; background: #f5f0e8; flex-shrink: 0; }
.rcad-lc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.rcad-lc:hover .rcad-lc__img img { transform: scale(1.04); }
.rcad-lc__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rcad-lc__noimg svg { width: 36px; height: 36px; stroke: #ccc; }
.rcad-lc__badge { position: absolute; top: 8px; left: 8px; background: #f5a623; color: #fff; font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; }
.rcad-lc__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rcad-lc__cat { font-size: 10px; font-weight: 800; color: #f5a623; text-transform: uppercase; letter-spacing: .06em; }
.rcad-lc__title { font-size: 14px !important; font-weight: 700 !important; color: #1a1a1a !important; line-height: 1.4 !important; margin: 0 !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.rcad-lc:hover .rcad-lc__title { color: #f5a623 !important; }
.rcad-lc__date { font-size: 11px; color: #bbb; margin-top: auto; padding-top: 6px; }

/* ══════════════════════════════════════════════════════════
   TEXTO SEO FOOTER
══════════════════════════════════════════════════════════ */
.rcad-seo-footer { background: #fafaf8; border: 1px solid #ede8df; border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; }
.rcad-seo-footer__text { font-size: 12.5px !important; color: #777 !important; line-height: 1.75 !important; margin: 0 !important; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .rcad-latest-grid { grid-template-columns: repeat(2,1fr); }
    .rcad-seo-grid { grid-template-columns: repeat(2,1fr); }
    .rcad-hero__h1 { font-size: 30px !important; }
}
@media (max-width: 768px) {
    .rcad-hero { padding: 36px 16px 28px; }
    .rcad-hero__h1 { font-size: 24px !important; }
    .rcad-hero__sub { font-size: 14px !important; }
    .rcad-hero__search-wrap { flex-direction: column; border-radius: 12px; }
    .rcad-hero__input { padding: 14px 16px; }
    .rcad-hero__btn { border-radius: 0 0 10px 10px; padding: 14px; text-align: center; }
    .rcad-hero__stat { padding: 0 16px; }
    .rcad-hero__stat-n { font-size: 18px; }
    .rcad-latest-grid { grid-template-columns: 1fr; }
    .rcad-seo-grid { grid-template-columns: 1fr; }
    .rcad-sh__title { font-size: 17px !important; }
    .rcad-rc { flex: 0 0 180px !important; min-width: 180px !important; max-width: 180px !important; }
}

/* ── Suprimir header image/logo SVG de Orbital en home ──── */
body.home .default-header,
body.home .site-header__image,
body.home .header-image,
body.blog .default-header,
body.blog .site-header__image,
body.blog .header-image,
body.home #content > .default-header,
body.blog #content > .default-header {
    display: none !important;
}
/* Ocultar cualquier SVG suelto que Orbital inyecte en el main */
body.home main > svg:not([class*="rcad"]),
body.blog main > svg:not([class*="rcad"]),
body.home .site-main > svg:not([class*="rcad"]),
body.blog .site-main > svg:not([class*="rcad"]),
body.home #content > svg:not([class*="rcad"]),
body.blog #content > svg:not([class*="rcad"]) {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    visibility: hidden !important;
}

