/**
 * Homepage — estilos para la page nueva-home (y homepage activa del sitio).
 * Enqueue condicional desde bufete-legal-publisher.php.
 * Extiende bfcr-tesis-landing.css: reutiliza tl-* (tl-btn, tl-eyebrow, tl-section, tl-timeline, tl-cta-final, tl-branches).
 * Agrega bfcr-home-* para los bloques únicos de la home (hero split, ribbon, services, library, tools).
 */

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

/* ======== Home wrap (base tipográfica, igual al tl-wrap) ======== */
.bfcr-home { font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif; color: #2a3a52; line-height: 1.65; font-size: 17px; }
.bfcr-home h1, .bfcr-home h2, .bfcr-home h3, .bfcr-home h4 { font-family: 'Playfair Display', Georgia, serif; color: #0a1628; line-height: 1.2; letter-spacing: -0.01em; }
.bfcr-home p { margin: 0 0 14px 0; }
.bfcr-home a { color: #002a28; text-decoration: underline; text-decoration-color: rgba(200,164,78,0.55); text-underline-offset: 3px; transition: color .2s; }
.bfcr-home a:hover { color: #c8a44e; }

/* ======== HERO split (retrato + copy) ======== */
.bfcr-home-hero { position: relative; background: linear-gradient(135deg, #002a28 0%, #0a1628 100%); color: #fff; padding: 96px 36px 80px; overflow: hidden; margin: 0; }
.bfcr-home-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #c8a44e, #e8c96a, #c8a44e); }
.bfcr-home-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(200,164,78,0.12) 0%, transparent 55%); pointer-events: none; }
.bfcr-home-hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 3fr 2fr; gap: 64px; align-items: center; }
.bfcr-home-hero-copy .tl-eyebrow { color: #e8c96a; }
.bfcr-home-hero-copy .tl-eyebrow::before { background: #e8c96a; }
.bfcr-home-hero-title { font-size: 44px; font-weight: 800; color: #fff; margin: 0 0 18px 0; line-height: 1.1; }
.bfcr-home-hero-lead { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 0 24px 0; line-height: 1.55; }
.bfcr-home-hero-credentials { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 30px 0; padding: 14px 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(200,164,78,0.28); border-radius: 10px; font-size: 14.5px; color: rgba(255,255,255,0.82); }
.bfcr-home-hero-credentials span { display: inline-flex; align-items: center; gap: 8px; }
.bfcr-home-hero-credentials i { color: #e8c96a; font-size: 14px; }
.bfcr-home-hero-credentials .sep { opacity: 0.35; }
.bfcr-home-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.bfcr-home-hero-ctas .tl-btn-secondary { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.55); }
.bfcr-home-hero-ctas .tl-btn-secondary:hover { background: #fff; color: #002a28 !important; border-color: #fff; }

/* Retrato */
.bfcr-home-portrait-wrap { display: flex; justify-content: center; }
.bfcr-home-portrait { position: relative; width: 100%; max-width: 360px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 3px solid #c8a44e; box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(200,164,78,0.3) inset; background: linear-gradient(135deg, rgba(200,164,78,0.25), rgba(10,22,40,0.85)); }
.bfcr-home-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bfcr-home-portrait-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); font-family: 'Playfair Display', serif; font-size: 24px; text-align: center; padding: 24px; }

/* ======== RIBBON de estadísticas ======== */
.bfcr-home-ribbon { background: #002a28; color: #fff; padding: 28px 28px; position: relative; }
.bfcr-home-ribbon::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(200,164,78,0.6), transparent); }
.bfcr-home-ribbon::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(200,164,78,0.6), transparent); }
.bfcr-home-ribbon-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; }
.bfcr-home-ribbon-inner--3 { grid-template-columns: repeat(3, 1fr); }
.bfcr-home-stat { text-align: center; padding: 6px 10px; border-right: 1px solid rgba(200,164,78,0.18); min-height: 72px; display: flex; flex-direction: column; justify-content: center; }
.bfcr-home-stat:last-child { border-right: none; }
.bfcr-home-stat--link { text-decoration: none !important; color: inherit !important; border-radius: 10px; transition: background .18s, transform .18s; cursor: pointer; }
.bfcr-home-stat--link:hover { background: rgba(200,164,78,0.08); transform: translateY(-2px); }
.bfcr-home-stat--link:hover .bfcr-home-stat-num { color: #fff; }
.bfcr-home-stat--link:hover .bfcr-home-stat-label { color: #fff; }
.bfcr-home-stat-num { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 800; color: #e8c96a; line-height: 1.05; margin: 0 0 4px 0; }
.bfcr-home-stat-label { font-size: 13.5px; color: rgba(255,255,255,0.78); line-height: 1.4; }

/* ======== Section wrap (contenedor de cada bloque) ======== */
.bfcr-home-section { padding: 72px 24px; max-width: 1180px; margin: 0 auto; }
.bfcr-home-section--tight { padding-top: 48px; padding-bottom: 48px; }
.bfcr-home-section--dark { background: linear-gradient(135deg, #002a28 0%, #0a1628 100%); max-width: none; margin: 0; padding-left: 24px; padding-right: 24px; color: #fff; position: relative; }
.bfcr-home-section--dark::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #c8a44e, #e8c96a, #c8a44e); }
.bfcr-home-section--dark h2 { color: #fff; }
.bfcr-home-section--dark .tl-eyebrow { color: #e8c96a; }
.bfcr-home-section--dark .tl-eyebrow::before { background: #e8c96a; }
.bfcr-home-section-head { text-align: center; margin-bottom: 40px; }
.bfcr-home-section-head h2 { font-size: 32px; font-weight: 700; margin: 6px 0 12px 0; }
.bfcr-home-section-head p { color: #54617a; max-width: 720px; margin: 0 auto; font-size: 16.5px; }
.bfcr-home-section--dark .bfcr-home-section-head p { color: rgba(255,255,255,0.78); }

/* ======== SERVICIOS (3 cards) ======== */
.bfcr-home-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bfcr-home-service-card { position: relative; background: #fff; border-radius: 14px; padding: 34px 26px 30px; box-shadow: 0 4px 28px rgba(10, 22, 40, 0.08), 0 0 0 1px rgba(200, 164, 78, 0.18); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.bfcr-home-service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(10, 22, 40, 0.12); }
.bfcr-home-service-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #c8a44e, #e8c96a, #c8a44e); }
.bfcr-home-service-icon { width: 56px; height: 56px; border-radius: 14px; background: #002a28; color: #e8c96a; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.bfcr-home-service-card h3 { font-size: 21px; margin: 0 0 10px 0; color: #0a1628; }
.bfcr-home-service-card p { color: #54617a; font-size: 15.5px; margin: 0 0 22px 0; flex: 1; }
.bfcr-home-service-card .tl-btn { align-self: flex-start; }

/* ======== ÁREAS de práctica (branches con intro) ======== */
.bfcr-home-branches-intro { text-align: center; max-width: 720px; margin: 0 auto 32px auto; color: #54617a; font-size: 16.5px; }

/* ======== BIBLIOTECA (v2, tabs + cards dinámicas) ======== */
.bfcr-home-lib { max-width: 1180px; margin: 0 auto; }
.bfcr-home-lib-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 32px 0; padding: 8px; background: #002a28; border-radius: 14px; border: 1px solid rgba(200,164,78,0.25); box-shadow: 0 6px 20px rgba(0,42,40,0.18); }
.bfcr-home-lib-tab { appearance: none; background: transparent; border: 0; padding: 10px 18px; border-radius: 10px; font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 14.5px; color: rgba(255,255,255,0.72); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s, box-shadow .15s; }
.bfcr-home-lib-tab i { color: #e8c96a; font-size: 13px; }
.bfcr-home-lib-tab:hover { color: #fff; background: rgba(200,164,78,0.12); }
.bfcr-home-lib-tab.is-active { background: linear-gradient(135deg, #c8a44e, #b08c3a); color: #002a28; box-shadow: 0 4px 14px rgba(200,164,78,0.35); }
.bfcr-home-lib-tab.is-active i { color: #002a28; }
.bfcr-home-lib-panel { display: none; }
.bfcr-home-lib-panel.is-active { display: block; animation: bfcrFade .24s ease-out; }
.bfcr-home-lib-panel-cta { text-align: right; margin-top: 14px; }
.bfcr-home-lib-panel-cta a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: #002a28 !important; text-decoration: none !important; }
.bfcr-home-lib-panel-cta a i { transition: transform .2s; }
.bfcr-home-lib-panel-cta a:hover { color: #c8a44e !important; }
.bfcr-home-lib-panel-cta a:hover i { transform: translateX(4px); }
.bfcr-home-lib-footer { text-align: center; margin-top: 36px; }
@keyframes bfcrFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Grid compartido de cards (leyes / investigaciones / biografías) */
.bfcr-home-cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 20px 0; }
.bfcr-home-cardgrid:last-child { margin-bottom: 0; }
.bfcr-home-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 28px rgba(10, 22, 40, 0.08), 0 0 0 1px rgba(10,22,40,0.04); text-decoration: none !important; color: inherit !important; transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; }
.bfcr-home-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(10, 22, 40, 0.14); }
.bfcr-home-card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #002a28, #0a1628); min-height: 1px; }
.bfcr-home-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bfcr-home-card:hover .bfcr-home-card-thumb img { transform: scale(1.04); }
.bfcr-home-card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(200,164,78,0.5); font-size: 42px; }
.bfcr-home-card-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: rgba(0,42,40,0.92); color: #e8c96a; border-radius: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.bfcr-home-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bfcr-home-card-title { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 700; color: #0a1628; margin: 0; line-height: 1.3; }
.bfcr-home-card-excerpt { font-size: 14px; color: #54617a; margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bfcr-home-card-meta { margin-top: auto; padding-top: 10px; border-top: 1px dashed rgba(10,22,40,0.08); font-size: 12.5px; color: #54617a; display: inline-flex; align-items: center; gap: 6px; }
.bfcr-home-card-meta i { color: #c8a44e; }

/* Lista simple (legacy style="list") sigue disponible */
.bfcr-home-library-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bfcr-home-library-list a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: #0a1628 !important; text-decoration: none !important; background: #f6f8fb; border-left: 3px solid transparent; transition: border-color .15s, background .15s; line-height: 1.4; }
.bfcr-home-library-list a:hover { border-left-color: #c8a44e; background: #fff6db; }
.bfcr-home-library-list .bfcr-home-library-meta { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 400; color: #54617a; }
.bfcr-home-library-empty { text-align: center; color: #54617a; font-style: italic; padding: 20px; }

/* ======== CÓMO TRABAJAMOS — hora profesional (bloque full-width oscuro, destacado) ======== */
.bfcr-home-howwe-section { position: relative; background: linear-gradient(135deg, #002a28 0%, #0a1628 55%, #071018 100%); color: #fff; padding: 88px 24px; overflow: hidden; }
.bfcr-home-howwe-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #c8a44e, #e8c96a, #c8a44e); }
.bfcr-home-howwe-section::after { content: ""; position: absolute; top: 10%; right: -80px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(200,164,78,0.18) 0%, transparent 60%); pointer-events: none; }
.bfcr-home-howwe-section .bfcr-home-section-head { position: relative; z-index: 1; margin-bottom: 48px; }
.bfcr-home-howwe-section .bfcr-home-section-head h2 { color: #fff; font-size: 36px; }
.bfcr-home-howwe-section .bfcr-home-section-head p { color: rgba(255,255,255,0.78); }
.bfcr-home-howwe-section .tl-eyebrow { color: #e8c96a; }
.bfcr-home-howwe-section .tl-eyebrow::before { background: #e8c96a; }

.bfcr-home-howwe { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 1; }
.bfcr-home-howwe-step { position: relative; padding: 34px 28px 28px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid rgba(200,164,78,0.28); backdrop-filter: blur(4px); display: flex; flex-direction: column; gap: 14px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.bfcr-home-howwe-step:hover { transform: translateY(-4px); border-color: rgba(200,164,78,0.55); box-shadow: 0 20px 48px rgba(0,0,0,0.35); }
.bfcr-home-howwe-step-num { font-family: 'Playfair Display', serif; font-size: 56px; font-weight: 800; color: #e8c96a; line-height: 1; letter-spacing: -0.02em; opacity: 0.95; }
.bfcr-home-howwe-step-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(200,164,78,0.18); color: #e8c96a; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid rgba(200,164,78,0.4); }
.bfcr-home-howwe-step .bfcr-howwe-h3 { color: #fff; font-size: 21px; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; margin: 0; padding: 0; line-height: 1.25; letter-spacing: -0.01em; text-transform: none; }
.bfcr-home-howwe-step p { color: rgba(255,255,255,0.78); font-size: 15px; margin: 0; line-height: 1.6; }
.bfcr-home-howwe-step p a { color: #e8c96a; text-decoration: underline; text-decoration-color: rgba(232,201,106,0.5); }
.bfcr-home-howwe-step p a:hover { color: #fff; }

.bfcr-home-howwe-cta-row { max-width: 1180px; margin: 56px auto 0 auto; text-align: center; position: relative; z-index: 1; padding: 28px 28px; background: rgba(200,164,78,0.08); border: 1px solid rgba(200,164,78,0.35); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.bfcr-home-howwe-cta-row p { margin: 0; color: rgba(255,255,255,0.9); font-size: 16px; text-align: left; flex: 1; min-width: 240px; }
.bfcr-home-howwe-cta-row p strong { color: #fff; }
.bfcr-home-howwe-cta-row a { flex-shrink: 0; }

/* ======== SERVICIOS NOTARIALES (grid de tipos de escritura) ======== */
.bfcr-home-notarial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 36px 0; }
.bfcr-home-notarial-card { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; background: #fff; border-radius: 14px; border: 1px solid rgba(10,22,40,0.08); text-decoration: none !important; color: inherit !important; transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.bfcr-home-notarial-card::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: #c8a44e; opacity: 0; transition: opacity .2s; }
.bfcr-home-notarial-card:hover { transform: translateY(-3px); border-color: rgba(200,164,78,0.45); box-shadow: 0 12px 32px rgba(10,22,40,0.1); }
.bfcr-home-notarial-card:hover::before { opacity: 1; }
.bfcr-home-notarial-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #002a28, #003c3a); color: #e8c96a; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.bfcr-home-notarial-card h3 { font-size: 16.5px; margin: 0; color: #0a1628; line-height: 1.3; font-family: 'Playfair Display', serif; font-weight: 700; }
.bfcr-home-notarial-card p { font-size: 13.5px; color: #54617a; margin: 0; line-height: 1.5; }
.bfcr-home-notarial-footer { text-align: center; padding: 32px 28px; background: linear-gradient(135deg, #fffbf0 0%, #fff6db 100%); border-radius: 16px; border: 1px solid rgba(200,164,78,0.35); margin-top: 8px; }
.bfcr-home-notarial-footer p { margin: 0 0 20px 0; color: #3a3a2e; font-size: 15px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ======== SECCIÓN ACADÉMICA INTEGRADA (Tesis + Temario + Videoteca + Carrera) ======== */
.bfcr-home-academic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bfcr-home-ac-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; background: #fff; border-radius: 16px; border: 1px solid rgba(10,22,40,0.08); text-decoration: none !important; color: inherit !important; transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; overflow: hidden; }
.bfcr-home-ac-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #c8a44e, #e8c96a, #c8a44e); opacity: 0; transition: opacity .22s; }
.bfcr-home-ac-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,22,40,0.12); border-color: rgba(200,164,78,0.4); }
.bfcr-home-ac-card:hover::before { opacity: 1; }
.bfcr-home-ac-card--featured { grid-row: span 2; justify-content: flex-start; padding: 34px 32px; background: linear-gradient(160deg, #ffffff 0%, #fff9ed 100%); border-color: rgba(200,164,78,0.45); }
.bfcr-home-ac-card--featured::before { opacity: 1; height: 4px; }
.bfcr-home-ac-icon { width: 52px; height: 52px; border-radius: 12px; background: #002a28; color: #e8c96a; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.bfcr-home-ac-card--featured .bfcr-home-ac-icon { width: 64px; height: 64px; font-size: 28px; background: linear-gradient(135deg, #002a28, #003c3a); }
.bfcr-home-ac-body .tl-eyebrow { margin-bottom: 6px; font-size: 11px; }
.bfcr-home-ac-body h3 { font-size: 19px; margin: 0 0 8px 0; color: #0a1628; line-height: 1.3; font-family: 'Playfair Display', serif; }
.bfcr-home-ac-card--featured .bfcr-home-ac-body h3 { font-size: 25px; margin-bottom: 12px; }
.bfcr-home-ac-body p { font-size: 14.5px; color: #54617a; margin: 0 0 14px 0; line-height: 1.55; }
.bfcr-home-ac-card--featured .bfcr-home-ac-body p { font-size: 15.5px; }
.bfcr-home-ac-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #002a28; margin-top: auto; }
.bfcr-home-ac-cta i { transition: transform .2s; }
.bfcr-home-ac-card:hover .bfcr-home-ac-cta { color: #c8a44e; }
.bfcr-home-ac-card:hover .bfcr-home-ac-cta i { transform: translateX(4px); }

/* Videoteca card específica */
.bfcr-home-ac-videothumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin: -4px 0 8px 0; background: linear-gradient(135deg, #002a28, #0a1628); }
.bfcr-home-ac-videothumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bfcr-home-ac-videoteca:hover .bfcr-home-ac-videothumb img { transform: scale(1.05); }
.bfcr-home-ac-videothumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(200,164,78,0.4); font-size: 42px; }
.bfcr-home-ac-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; background: radial-gradient(circle at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 50%, transparent 80%); }
.bfcr-home-ac-play i { width: 54px; height: 54px; background: rgba(232,201,106,0.95); color: #002a28; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; padding-left: 4px; box-shadow: 0 6px 18px rgba(0,0,0,0.3); transition: transform .2s, background .2s; }
.bfcr-home-ac-videoteca:hover .bfcr-home-ac-play i { transform: scale(1.1); background: #fff; }

/* ======== Institucional H1 (reemplaza eael-dual-color-header para SEO) ======== */
.bfcr-home-institutional-h1 { text-align: center; margin: 0 auto 18px auto; max-width: 920px; }
.bfcr-home-institutional-title { font-family: 'Playfair Display', Georgia, serif; font-size: 54px; font-weight: 800; margin: 0 0 10px 0; line-height: 1.12; letter-spacing: -0.01em; color: #002a28; display: inline-block; }
.bfcr-home-institutional-title i { color: #B08632; font-size: 34px; display: inline-block; margin-right: 10px; vertical-align: middle; }
.bfcr-home-institutional-title-first { color: #B08632; }
.bfcr-home-institutional-title-last { color: #002a28; }
.bfcr-home-institutional-subtext { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: #002a28; font-size: 19px; margin: 0; letter-spacing: 0.02em; }
@media (max-width: 720px) {
  .bfcr-home-institutional-title { font-size: 38px; }
  .bfcr-home-institutional-title i { font-size: 24px; }
  .bfcr-home-institutional-subtext { font-size: 16px; }
}

/* ======== ACADÉMICA v2 — 3 cards uniformes (Tesis, Temario, Carrera) ======== */
.bfcr-home-academic-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bfcr-home-acv2-card { display: flex; flex-direction: column; gap: 10px; padding: 34px 28px 28px; background: #fff; border-radius: 16px; border: 1px solid rgba(10,22,40,0.08); box-shadow: 0 4px 28px rgba(10, 22, 40, 0.06); text-decoration: none !important; color: inherit !important; transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; overflow: hidden; }
.bfcr-home-acv2-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #c8a44e, #e8c96a, #c8a44e); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.bfcr-home-acv2-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(10,22,40,0.14); border-color: rgba(200,164,78,0.45); }
.bfcr-home-acv2-card:hover::before { transform: scaleX(1); }
.bfcr-home-acv2-icon { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, #002a28, #003c3a); color: #e8c96a; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 6px; flex-shrink: 0; }
.bfcr-home-acv2-card .tl-eyebrow { margin: 0; font-size: 11.5px; }
.bfcr-home-acv2-title { font-family: 'Playfair Display', Georgia, serif !important; font-size: 22px !important; font-weight: 700 !important; color: #0a1628 !important; margin: 2px 0 8px 0 !important; line-height: 1.25 !important; }
.bfcr-home-acv2-body { font-size: 14.5px; color: #54617a; margin: 0 0 18px 0; line-height: 1.6; flex: 1; }
.bfcr-home-acv2-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: #002a28; margin-top: auto; }
.bfcr-home-acv2-cta i { transition: transform .2s; font-size: 12px; }
.bfcr-home-acv2-card:hover .bfcr-home-acv2-cta { color: #c8a44e; }
.bfcr-home-acv2-card:hover .bfcr-home-acv2-cta i { transform: translateX(5px); }

/* ======== VIDEOTECA DEDICADA (sección full-width con video featured + grid 3 thumbs) ======== */
.bfcr-home-videoteca { position: relative; background: linear-gradient(135deg, #0a1628 0%, #002a28 50%, #071018 100%); color: #fff; padding: 88px 24px; overflow: hidden; }
.bfcr-home-videoteca::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #c8a44e, #e8c96a, #c8a44e); }
.bfcr-home-videoteca::after { content: ""; position: absolute; bottom: -80px; left: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(200,164,78,0.14) 0%, transparent 60%); pointer-events: none; }
.bfcr-home-videoteca-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.bfcr-home-videoteca-head { text-align: center; margin-bottom: 48px; }
.bfcr-home-videoteca-head .tl-eyebrow { color: #e8c96a; }
.bfcr-home-videoteca-head .tl-eyebrow::before { background: #e8c96a; }
.bfcr-home-videoteca-head h2 { color: #fff; font-size: 34px; margin: 8px 0 14px 0; font-family: 'Playfair Display', serif; }
.bfcr-home-videoteca-head p { color: rgba(255,255,255,0.76); max-width: 720px; margin: 0 auto; font-size: 16.5px; }
.bfcr-home-videoteca-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: stretch; }

/* Featured video card */
.bfcr-home-videoteca-featured { display: flex; flex-direction: column; background: rgba(255,255,255,0.04); border: 1px solid rgba(200,164,78,0.22); border-radius: 18px; overflow: hidden; text-decoration: none !important; color: inherit !important; transition: transform .25s, border-color .25s, box-shadow .25s; }
.bfcr-home-videoteca-featured:hover { transform: translateY(-4px); border-color: rgba(200,164,78,0.5); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.bfcr-home-videoteca-featured-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.bfcr-home-videoteca-featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bfcr-home-videoteca-featured:hover .bfcr-home-videoteca-featured-thumb img { transform: scale(1.04); }
.bfcr-home-videoteca-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(200,164,78,0.35); font-size: 54px; background: linear-gradient(135deg, rgba(200,164,78,0.1), transparent); }
.bfcr-home-videoteca-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, transparent 80%); }
.bfcr-home-videoteca-play i { width: 72px; height: 72px; background: rgba(232,201,106,0.95); color: #002a28; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: transform .22s, background .22s; }
.bfcr-home-videoteca-featured:hover .bfcr-home-videoteca-play i { transform: scale(1.1); background: #fff; }
.bfcr-home-videoteca-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; background: rgba(200,164,78,0.95); color: #002a28; border-radius: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.bfcr-home-videoteca-featured-body { padding: 26px 28px 28px; }
.bfcr-home-videoteca-featured-title { font-family: 'Playfair Display', Georgia, serif; color: #fff; font-size: 23px; margin: 0 0 10px 0; line-height: 1.25; font-weight: 700; padding: 0; letter-spacing: -0.01em; text-transform: none; }
.bfcr-home-videoteca-featured-excerpt { color: rgba(255,255,255,0.74); font-size: 15px; line-height: 1.6; margin: 0 0 16px 0; }
.bfcr-home-videoteca-featured-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: #e8c96a; }
.bfcr-home-videoteca-featured-cta i { transition: transform .2s; }
.bfcr-home-videoteca-featured:hover .bfcr-home-videoteca-featured-cta i { transform: translateX(5px); }

/* Grid de 3 thumbnails al lado */
.bfcr-home-videoteca-grid { display: flex; flex-direction: column; gap: 14px; }
.bfcr-home-videoteca-item { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; padding: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(200,164,78,0.15); border-radius: 12px; text-decoration: none !important; color: inherit !important; transition: background .2s, border-color .2s, transform .2s; }
.bfcr-home-videoteca-item:hover { background: rgba(200,164,78,0.08); border-color: rgba(200,164,78,0.4); transform: translateX(4px); }
.bfcr-home-videoteca-item-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.bfcr-home-videoteca-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bfcr-home-videoteca-play--sm i { width: 36px; height: 36px; font-size: 13px; padding-left: 3px; }
.bfcr-home-videoteca-item-title { font-family: 'Source Sans 3', sans-serif; color: #fff; font-size: 14.5px; font-weight: 600; margin: 0; padding: 0; line-height: 1.4; letter-spacing: 0; text-transform: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Bottom row: fila horizontal de 3 thumbs adicionales */
.bfcr-home-videoteca-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.bfcr-home-videoteca-rowitem { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(200,164,78,0.2); border-radius: 12px; padding: 12px; text-decoration: none !important; color: inherit !important; transition: transform .2s, border-color .2s, background .2s; }
.bfcr-home-videoteca-rowitem:hover { transform: translateY(-3px); border-color: rgba(200,164,78,0.5); background: rgba(200,164,78,0.08); }
.bfcr-home-videoteca-rowitem-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.bfcr-home-videoteca-rowitem-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.bfcr-home-videoteca-rowitem:hover .bfcr-home-videoteca-rowitem-thumb img { transform: scale(1.04); }
.bfcr-home-videoteca-rowitem-title { font-family: 'Source Sans 3', sans-serif; color: #fff; font-size: 14.5px; font-weight: 600; margin: 0; padding: 0 4px 4px; line-height: 1.4; letter-spacing: 0; text-transform: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.bfcr-home-videoteca-footer { text-align: center; margin-top: 48px; }

/* ======== SECCIÓN BIBLIOTECA con fondo dorado crema ========
 * Aplicado via css_classes="bfcr-lib-bg" en el Elementor section. Usar !important
 * porque Elementor inyecta su propio background-color inline/inline-css.
 */
.elementor-section.bfcr-lib-bg,
.elementor-element.bfcr-lib-bg,
section.bfcr-lib-bg { background: linear-gradient(135deg, #fff9ed 0%, #fff6db 50%, #fffbf0 100%) !important; position: relative; }
.elementor-section.bfcr-lib-bg::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(200,164,78,0.65), transparent); pointer-events: none; }

/* ======== TEMARIO (card pequeña que reemplaza el grid de 4 tools) ======== */
.bfcr-home-temario { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 24px 28px; background: #fff; border-radius: 14px; box-shadow: 0 4px 28px rgba(10, 22, 40, 0.08), 0 0 0 1px rgba(200, 164, 78, 0.18); text-decoration: none !important; color: inherit !important; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.bfcr-home-temario::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #c8a44e, #e8c96a, #c8a44e); }
.bfcr-home-temario:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(10, 22, 40, 0.12); }
.bfcr-home-temario-icon { width: 56px; height: 56px; border-radius: 12px; background: #002a28; color: #e8c96a; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.bfcr-home-temario-body .tl-eyebrow { margin-bottom: 6px; }
.bfcr-home-temario-body h3 { font-size: 19px; margin: 0 0 6px 0; color: #0a1628; }
.bfcr-home-temario-body p { font-size: 14.5px; color: #54617a; margin: 0; line-height: 1.55; }
.bfcr-home-temario-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(200,164,78,0.4); color: #c8a44e; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; transition: background .2s, color .2s, transform .2s; }
.bfcr-home-temario:hover .bfcr-home-temario-arrow { background: #c8a44e; color: #fff; transform: translateX(4px); }

/* ======== HERRAMIENTAS legacy (grid 4 cards, conservado para futuro) ======== */
.bfcr-home-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bfcr-home-tool { padding: 22px 18px; background: #fff; border-radius: 12px; border: 1px solid rgba(10,22,40,0.08); text-align: center; text-decoration: none !important; color: #0a1628 !important; transition: transform .2s, border-color .2s, box-shadow .2s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bfcr-home-tool:hover { transform: translateY(-4px); border-color: #c8a44e; box-shadow: 0 10px 28px rgba(200,164,78,0.2); }
.bfcr-home-tool-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, #fff6db, #ffffff); color: #c8a44e; display: flex; align-items: center; justify-content: center; font-size: 20px; border: 1px solid rgba(200,164,78,0.3); }
.bfcr-home-tool h3 { font-size: 15.5px; margin: 0; font-family: 'Source Sans 3', sans-serif; font-weight: 700; line-height: 1.3; color: #0a1628; }
.bfcr-home-tool p { font-size: 13px; color: #54617a; margin: 0; }

/* ======== TIMELINE (reusa tl-timeline pero contenedor custom) ======== */
.bfcr-home-timeline-wrap { max-width: 820px; margin: 0 auto; }

/* ======== CTA FINAL (reusa tl-cta-final con tweaks) ======== */
.bfcr-home .tl-cta-final { max-width: 960px; margin: 0 auto; }
.bfcr-home .tl-cta-final h2 { font-size: 34px; }

/* ======== FAQ wrapper ======== */
.bfcr-home-faq-wrap { max-width: 920px; margin: 0 auto; }

/* ======== Responsive ======== */
@media (max-width: 960px) {
  .bfcr-home-hero { padding: 72px 24px 56px; }
  .bfcr-home-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .bfcr-home-hero-copy .tl-eyebrow { margin-left: 0; }
  .bfcr-home-hero-lead { margin-left: auto; margin-right: auto; }
  .bfcr-home-hero-credentials { justify-content: center; }
  .bfcr-home-hero-ctas { justify-content: center; }
  .bfcr-home-portrait-wrap { order: -1; }
  .bfcr-home-portrait { max-width: 280px; }
  .bfcr-home-ribbon-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .bfcr-home-stat:nth-child(2) { border-right: none; }
  .bfcr-home-stat { border-bottom: 1px dashed rgba(200,164,78,0.2); padding-bottom: 16px; }
  .bfcr-home-stat:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 6px; }
  .bfcr-home-services { grid-template-columns: 1fr; }
  .bfcr-home-library { grid-template-columns: 1fr; }
  .bfcr-home-tools { grid-template-columns: repeat(2, 1fr); }
  .bfcr-home-howwe { grid-template-columns: 1fr; gap: 18px; }
  .bfcr-home-howwe-section { padding: 64px 20px; }
  .bfcr-home-howwe-section .bfcr-home-section-head h2 { font-size: 26px; }
  .bfcr-home-howwe-step { padding: 28px 22px 22px; }
  .bfcr-home-howwe-step-num { font-size: 44px; }
  .bfcr-home-howwe-cta-row { flex-direction: column; text-align: center; padding: 22px; }
  .bfcr-home-howwe-cta-row p { text-align: center; }
  .bfcr-home-ribbon-inner--3 { grid-template-columns: 1fr; gap: 16px; }
  .bfcr-home-ribbon-inner--3 .bfcr-home-stat { border-right: none; border-bottom: 1px dashed rgba(200,164,78,0.2); padding-bottom: 16px; }
  .bfcr-home-ribbon-inner--3 .bfcr-home-stat:last-child { border-bottom: none; padding-bottom: 6px; }
  .bfcr-home-notarial-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bfcr-home-notarial-card { padding: 20px 18px; }
  .bfcr-home-academic { grid-template-columns: 1fr; gap: 14px; }
  .bfcr-home-ac-card--featured { grid-row: auto; padding: 26px 22px; }
  .bfcr-home-ac-card--featured .bfcr-home-ac-body h3 { font-size: 22px; }
  .bfcr-home-academic-v2 { grid-template-columns: 1fr; gap: 14px; }
  .bfcr-home-acv2-card { padding: 28px 22px 22px; }
  .bfcr-home-videoteca { padding: 64px 20px; }
  .bfcr-home-videoteca-head h2 { font-size: 26px; }
  .bfcr-home-videoteca-layout { grid-template-columns: 1fr; gap: 20px; }
  .bfcr-home-videoteca-item { grid-template-columns: 110px 1fr; }
  .bfcr-home-videoteca-row { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .bfcr-home-cardgrid { grid-template-columns: 1fr; gap: 16px; }
  .bfcr-home-lib-tabs { padding: 6px; }
  .bfcr-home-lib-tab { padding: 8px 14px; font-size: 13.5px; }
  .bfcr-home-temario { grid-template-columns: auto 1fr; padding: 20px 22px; gap: 16px; }
  .bfcr-home-temario-arrow { display: none; }
  .bfcr-home-section { padding: 56px 20px; }
  .bfcr-home-section-head h2 { font-size: 26px; }
  .bfcr-home-hero-title { font-size: 34px; }
}
@media (max-width: 480px) {
  .bfcr-home-hero-title { font-size: 28px; }
  .bfcr-home-hero-lead { font-size: 16px; }
  .bfcr-home-stat-num { font-size: 28px; }
  .bfcr-home-tools { grid-template-columns: 1fr; }
  .bfcr-home-hero-ctas { flex-direction: column; }
  .bfcr-home-hero-ctas .tl-btn { width: 100%; justify-content: center; }
  .bfcr-home-notarial-grid { grid-template-columns: 1fr; }
}
