/**
 * CTA Tesis — light mode premium
 * Shortcode: [bfcr_cta_tesis]
 * Modos: default (post_end), sidebar, category_hero
 * Tokens compartidos con bfcr-faq.css (Playfair Display + Source Sans 3, paleta dorado/azul/bufete)
 */

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

/* ============================================================
   Base shared across modes
   ============================================================ */

.bfcr-cta-tesis {
    box-sizing: border-box;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    color: #0a1628;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 28px rgba(10, 22, 40, 0.08), 0 0 0 1px rgba(200, 164, 78, 0.18);
    position: relative;
    overflow: hidden;
}

.bfcr-cta-tesis::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c8a44e, #e8c96a, #c8a44e);
}

.bfcr-cta-tesis__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    color: #0a1628;
    line-height: 1.22;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.bfcr-cta-tesis__text {
    font-size: 1rem;
    line-height: 1.55;
    color: #2a3a52;
    margin: 0 0 18px 0;
}

.bfcr-cta-tesis__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #002a28;
    color: #ffffff !important;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 2px 12px rgba(0, 42, 40, 0.18);
}

.bfcr-cta-tesis__button:hover,
.bfcr-cta-tesis__button:focus {
    background: #00403d;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 42, 40, 0.26);
    color: #ffffff !important;
    text-decoration: none !important;
}

.bfcr-cta-tesis__button--block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ============================================================
   Mode: default (post_end)
   ============================================================ */

.bfcr-cta-tesis--default {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 30px 34px;
    margin: 48px 0 32px 0;
}

.bfcr-cta-tesis--default .bfcr-cta-tesis__icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff6db 0%, #ffe5a3 100%);
    border-radius: 12px;
    color: #8a6a22;
    margin-top: 4px;
}

.bfcr-cta-tesis--default .bfcr-cta-tesis__body {
    flex: 1;
    min-width: 0;
}

.bfcr-cta-tesis--default .bfcr-cta-tesis__title {
    font-size: 1.5rem;
}

/* ============================================================
   Mode: sidebar
   ============================================================ */

.bfcr-cta-tesis--sidebar {
    padding: 28px 26px;
    margin: 0 0 24px 0;
}

.bfcr-cta-tesis--sidebar .bfcr-cta-tesis__title {
    font-size: 1.22rem;
}

.bfcr-cta-tesis--sidebar .bfcr-cta-tesis__text {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* Ocultar widget sidebar en mobile para evitar duplicar con post_end */
@media (max-width: 991px) {
    .widget .bfcr-cta-tesis--sidebar {
        display: none;
    }
}

/* ============================================================
   Mode: category_hero
   ============================================================ */

.bfcr-cta-tesis--hero {
    padding: 0;
    margin: 48px 0 36px 0;
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.03) 0%, rgba(200, 164, 78, 0.06) 100%),
        #ffffff;
}

/* Wrapper inyectado por avante-child/category.php — separa el hero
 * de la descripcion del archive (el margin-top del hero lo cancela algun
 * reset del tema Avante; el padding del wrapper si pega). */
.bufete-category-hero-wrap {
    padding-top: 2rem;
}

.bfcr-cta-tesis--hero .bfcr-cta-tesis__hero-inner {
    padding: 54px 56px;
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.bfcr-cta-tesis__eyebrow {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c8a44e;
    margin: 0 0 14px 0;
}

.bfcr-cta-tesis__title--hero {
    font-size: 2.1rem;
    line-height: 1.15;
    margin-bottom: 18px;
}

.bfcr-cta-tesis__text--hero {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #2a3a52;
    margin-bottom: 28px;
    max-width: 62ch;
}

.bfcr-cta-tesis__button--hero {
    font-size: 1.05rem;
    padding: 16px 34px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 720px) {
    .bfcr-cta-tesis--default {
        flex-direction: column;
        padding: 26px 22px;
        gap: 14px;
    }
    .bfcr-cta-tesis--default .bfcr-cta-tesis__icon {
        width: 44px;
        height: 44px;
    }
    .bfcr-cta-tesis--default .bfcr-cta-tesis__title {
        font-size: 1.28rem;
    }

    .bfcr-cta-tesis--hero .bfcr-cta-tesis__hero-inner {
        padding: 34px 24px;
    }
    .bfcr-cta-tesis__title--hero {
        font-size: 1.55rem;
    }
    .bfcr-cta-tesis__text--hero {
        font-size: 1rem;
    }
    .bfcr-cta-tesis__button--hero {
        font-size: 1rem;
        padding: 14px 26px;
    }
}
