/*
    Bárbara Castro — custom.css
    Colores originales del tema (teal/gradient) + nuevas secciones estructurales
*/

/* === PAGE LOADING === */
.page-loading {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    transition: all .4s .2s ease-in-out;
    background-color: #fff;
    opacity: 0; visibility: hidden;
    z-index: 9999;
}
.page-loading.active { opacity: 1; visibility: visible; }
.page-loading-inner {
    position: absolute; top: 50%; left: 0;
    width: 100%; text-align: center;
    transform: translateY(-50%);
    transition: opacity .2s ease-in-out;
    opacity: 0;
}
.page-loading.active > .page-loading-inner { opacity: 1; }
.page-loading-inner > span {
    display: block; font-size: 1rem; font-weight: normal; color: #737491;
}
.page-spinner {
    display: inline-block;
    width: 2.75rem; height: 2.75rem; margin-bottom: .75rem;
    vertical-align: text-bottom;
    border: .15em solid #008b8b; border-right-color: transparent;
    border-radius: 50%;
    animation: spinner .75s linear infinite;
}
@keyframes spinner { 100% { transform: rotate(360deg); } }

/* === UTILIDADES ORIGINALES === */
.gradient-text {
    background: linear-gradient(90deg, #008b8b, #31af9d, #60d3aa, #95f7b1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.btn-social {
    width: 3.25rem !important;
    height: 3.25rem !important;
}
.border-end-gradient {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #008b8b 50%, #31af9d 75%, #60d3aa 100%);
    background-clip: padding-box;
    -webkit-mask: linear-gradient(90deg, transparent, transparent 98%, #fff 100%);
    mask: linear-gradient(90deg, transparent, transparent 98%, #fff 100%);
}
.bg-gray { background-color: #777 !important; }
.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* === NAVBAR — mantener logo visible en sticky === */
.navbar-stuck .navbar-floating-logo { display: none !important; }
.navbar-stuck .navbar-stuck-logo    { display: block !important; }
.navbar-floating .navbar-stuck-logo { display: none; }

/* Dropdown del menú — ancho mínimo para CORPORATIVO */
.bc-dropdown-menu { min-width: 260px; }

/* CTA en navbar */
.bc-nav-cta {
    font-size: .85rem;
    font-weight: 600;
    padding: .4rem 1rem !important;
}

/* === HERO ===  */
.bc-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.bc-hero-content { padding-top: 5rem; padding-bottom: 5rem; }
.bc-hero-split {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.bc-hero-split .btn { min-width: 240px; text-align: left; }

/* === SECCIÓN LOGOS (clientes) === */
.bc-logos-label {
    font-size: .78rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: #6c757d;
}

/* Sección contenedor */
.bc-logos-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Grid 4 columnas × 2 filas */
.bc-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.bc-logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    min-height: 160px;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    transition: background .2s;
}
.bc-logo-cell:hover { background: #fff; }
.bc-logo-cell:nth-child(4n) { border-right: none; }
.bc-logo-cell:nth-child(n+5) { border-bottom: none; }

/* Logos tamaño grande (desktop grid) — max-height se define por logo en inline style */
.bc-logo-img-lg {
    max-width: 200px;
    width: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .65;
    transition: opacity .25s, filter .25s;
}
.bc-logo-cell:hover .bc-logo-img-lg {
    opacity: 1;
    filter: grayscale(0);
}

/* Logo tamaño original (otras secciones / páginas internas) */
.bc-logo-img {
    max-height: 48px; max-width: 130px;
    object-fit: contain; filter: grayscale(1); opacity: .5;
    transition: opacity .2s, filter .2s;
}
.bc-logo-img:hover { opacity: .9; filter: grayscale(0); }

/* Logo pequeño (mobile carrusel) */
.bc-logo-img-sm {
    max-height: 38px; max-width: 100px;
    object-fit: contain; filter: grayscale(1); opacity: .55;
}

/* === PROBLEMA === */
.bc-problema-card {
    border-left: 4px solid #008b8b;
    background: #fff;
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    height: 100%;
}
.bc-problema-title {
    font-size: .8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #008b8b; margin-bottom: 1rem;
}
.bc-problema-list { list-style: none; padding: 0; margin: 0; }
.bc-problema-list li {
    font-size: .9375rem; color: #555;
    padding: .55rem 0 .55rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.bc-problema-list li:last-child { border-bottom: none; }
.bc-problema-list li::before {
    content: '›'; position: absolute; left: 0;
    color: #008b8b; font-weight: 700; font-size: 1.2rem; line-height: 1;
    top: .6rem;
}
.bc-problema-conclusion {
    font-style: italic; font-size: 1.15rem;
    color: #008b8b; font-weight: 600;
}

/* === PROGRAMAS === */
.bc-card-programa {
    border-radius: 10px;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.bc-card-programa:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12) !important;
}
.bc-card-icon { font-size: 2rem; margin-bottom: .75rem; }

/* B2C card destacada */
.bc-card-b2c {
    border-radius: 12px;
    border: 2px solid #008b8b;
    padding: 2.25rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,139,139,.06) 0%, rgba(149,247,177,.04) 100%);
}
.bc-badge-destacado {
    display: inline-block;
    background: linear-gradient(90deg, #008b8b, #31af9d);
    color: #fff; font-size: .75rem; font-weight: 700;
    padding: .3rem .9rem; border-radius: 100px; letter-spacing: .06em;
    margin-bottom: 1.25rem;
}
.bc-metodologia-tag {
    display: inline-block;
    border: 1px solid #008b8b; color: #008b8b;
    font-size: .8rem; font-weight: 600;
    padding: .25rem .75rem; border-radius: 100px; letter-spacing: .05em;
}

/* === MINI-BIO FOTO === */
.bc-bio-img {
    border-radius: 8px;
    max-width: 440px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

/* === TESTIMONIOS === */
.bc-testimonio-card {
    border-radius: 10px;
    padding: 1.75rem;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border-top: 3px solid #008b8b;
    height: 100%;
}
.bc-testimonio-text {
    font-style: italic; font-size: .9375rem; color: #333;
    line-height: 1.75; margin-bottom: 1.25rem;
}
.bc-testimonio-author { font-size: .875rem; }
.bc-testimonio-author strong { color: #212529; }
.bc-testimonio-author span { color: #6c757d; }

/* === EN MEDIOS === */
.bc-medios-sub { font-size: .9rem; color: #6c757d; }
.bc-medio-badge {
    min-width: 88px; padding: .7rem 1.1rem;
    border: 1px solid #dee2e6; border-radius: 8px;
    font-size: .78rem; font-weight: 700; color: #495057;
    text-align: center; text-transform: uppercase; letter-spacing: .04em;
    line-height: 1.4;
}

/* Tarjeta de medio rediseñada */
.bc-medio-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 1.25rem;
    transition: box-shadow .2s, border-color .2s;
}
.bc-medio-card:hover {
    box-shadow: 0 6px 24px rgba(0,139,139,.1);
    border-color: rgba(0,139,139,.2);
}
.bc-medio-card-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* === LEAD MAGNET form === */
.bc-form-nota { font-size: .8rem; color: rgba(255,255,255,.55); }
.bc-lead-magnet-nombre {
    font-style: italic; font-size: 1.15rem; color: #95f7b1;
}

/* === FOOTER COLUMNS (sobre bg-darker) === */
.bc-footer-heading {
    font-size: .78rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: #60d3aa; margin-bottom: .75rem;
}
.bc-footer-links { list-style: none; padding: 0; margin: 0; }
.bc-footer-links li { margin-bottom: .35rem; font-size: .875rem; }
.bc-footer-links a {
    color: rgba(255,255,255,.55); text-decoration: none;
    transition: color .2s;
}
.bc-footer-links a:hover { color: #60d3aa; }
.bc-footer-links li:not(:has(a)) { color: rgba(255,255,255,.55); }
.bc-footer-tagline {
    font-style: italic; color: #60d3aa; font-size: 1rem;
}

/* === SOBRE MÍ — Componentes premium === */

/* Etiqueta de capítulo con línea decorativa */
.bc-chapter-label {
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #008b8b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.bc-chapter-label::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #008b8b, #60d3aa);
    border-radius: 1px;
    flex-shrink: 0;
}

/* Números estadísticos grandes */
.bc-stat-num {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, #008b8b, #31af9d, #60d3aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}
.bc-stat-caption {
    font-size: .825rem;
    color: #6c757d;
    margin-top: .35rem;
    line-height: 1.4;
}

/* Tarjeta de estadística */
.bc-stat-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    height: 100%;
}

/* Tarjeta estadística destacada */
.bc-stat-card-featured {
    background: linear-gradient(135deg, rgba(0,139,139,.07) 0%, rgba(149,247,177,.04) 100%);
    border: 2px solid rgba(0,139,139,.2);
    border-radius: 12px;
    text-align: center;
}

/* Ítems de medios (Cap IV) */
.bc-media-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}
.bc-media-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.bc-media-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,139,139,.12), rgba(96,211,170,.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #008b8b;
    flex-shrink: 0;
}

/* Timeline (Cap V) */
.bc-timeline {
    border-left: 2px solid rgba(0,139,139,.25);
    position: relative;
}
.bc-timeline-item {
    position: relative;
    padding-left: 1.25rem;
}
.bc-timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: .4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #008b8b;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0,139,139,.3);
}

/* === STATS SECTION (Homepage) === */
.bc-home-stat-col {
    position: relative;
}
.bc-home-stat-col::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.18), transparent);
}
.bc-home-stat-col--last::after { display: none; }

/* En mobile: solo divisor horizontal entre filas */
@media (max-width: 767.98px) {
    .bc-home-stat-col::after { display: none; }
    .bc-home-stat-col:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
}

.bc-home-stat-inner {
    padding: 1.75rem 1.25rem;
}

.bc-home-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(149,247,177,.12);
    border: 1px solid rgba(149,247,177,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #95f7b1;
    margin: 0 auto 1rem;
}

.bc-home-stat-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}

.bc-home-stat-label {
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    line-height: 1.4;
    margin-bottom: .75rem;
}

.bc-home-stat-sub {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Ícono de credencial */
.bc-cred-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,139,139,.12) 0%, rgba(96,211,170,.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #008b8b;
    font-size: .85rem;
}
