/* =========================================================
   ESTILOS PÚBLICOS PREMIUM
   Directorio tipo SaaS - BNI VERSION FINAL PRO
   ========================================================= */

/* =========================================================
   VARIABLES (BRANDING BNI)
   ========================================================= */
:root{
    --bg-main: #f5f7fb;
    --bg-soft: #ffffff;

    --text-main: #182433;
    --text-muted: #667382;

    --line-soft: #e8edf3;

    /* 🔴 BNI */
    --bni-rojo: #d32f2f;
    --bni-rojo-hover: #b71c1c;
    --bni-rojo-soft: #fdeaea;
    --bni-negro: #1c1c1c;

    /* reemplazo de primary */
    --primary-soft: #fdeaea;
    --primary-color: #d32f2f;
    --primary-glow: rgba(211, 47, 47, 0.18);

    --success-glow: rgba(46, 179, 105, 0.16);

    --shadow-sm: 0 8px 24px rgba(24, 36, 51, 0.05);
    --shadow-md: 0 14px 36px rgba(24, 36, 51, 0.08);
    --shadow-lg: 0 18px 48px rgba(24, 36, 51, 0.10);

    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --transition: all .22s ease;
}

/* =========================================================
   BASE GLOBAL
   ========================================================= */
html{
    scroll-behavior: smooth;
}

body{
    background:
        radial-gradient(circle at top left, rgba(211, 47, 47, 0.06), transparent 25%),
        radial-gradient(circle at top right, rgba(46, 179, 105, 0.05), transparent 24%),
        var(--bg-main);
    color: var(--text-main);
}

/* =========================
   NAV PÚBLICA
   ========================= */
.public-navbar{
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid rgba(232, 237, 243, .9);
}

.public-brand{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
}

.public-brand-logo{
    /*width: 38px;*/
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
}

.public-nav-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================
   HERO
   ========================= */
.hero-public{
    padding: 56px 0 28px;
}

.hero-card{
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(232, 237, 243, 0.9);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,252,255,0.96));
    box-shadow: var(--shadow-md);
}

.hero-card::before{
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211,47,47,.10), transparent 68%);
    pointer-events: none;
}

.hero-card::after{
    content: "";
    position: absolute;
    inset: -80px auto auto -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211,47,47,.08), transparent 68%);
    pointer-events: none;
}

.hero-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    /*background: var(--bni-rojo-soft);*/
    color: var(--bni-rojo);
    font-weight: 600;
    font-size: .9rem;
    /*border: 1px solid rgba(211,47,47,.15);*/
}

.hero-title{
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 14px;
    color: var(--bni-negro);
}

.hero-subtitle{
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 760px;
    margin: 0 auto;
}

.hero-actions{
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}

/* =========================
   CARDS GENERALES
   ========================= */
.panel-premium{
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.card-premium{
    height: 100%;
    border: 1px solid rgba(232,237,243, .9);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24,36,51,0.04);
    transition: var(--transition);
    overflow: hidden;
}

.card-premium:hover{
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(211,47,47,.25);
}
/****************************************************/
.logo-box{
    width: 82px;
    height: 82px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    border: 1px solid var(--line-soft);
    box-shadow: 0 6px 14px rgba(24,36,51,.05);
    overflow: hidden;
}

.logo-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-box-sm{
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    border: 1px solid var(--line-soft);
    box-shadow: 0 6px 14px rgba(24,36,51,.05);
    overflow: hidden;
}

.logo-box-sm img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-pill{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f6f8fb;
    color: #5f6f7d;
    border: 1px solid #edf1f5;
    font-size: .84rem;
    font-weight: 600;
}

.metric-badge{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(32,107,196,.08);
    color: #206bc4;
    font-size: .85rem;
    font-weight: 700;
}

.tag-soft{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f3f8ff;
    color: #206bc4;
    border: 1px solid rgba(32,107,196,.08);
    font-size: .82rem;
    font-weight: 600;
}

.metric-badge{
    background: rgba(211,47,47,.08);
    color: var(--bni-rojo);
}

.tag-soft{
    background: var(--bni-rojo-soft);
    color: var(--bni-rojo);
    border: 1px solid rgba(211,47,47,.1);
}

/* =========================
   SEARCH
   ========================= */
.search-box-premium{
    border-radius: 22px;
    border: 1px solid var(--line-soft);
    background: #fff;
    box-shadow: var(--shadow-md);
}


.search-input-premium{
    border: none !important;
    box-shadow: none !important;
    font-size: 1.04rem;
    padding-left: .25rem;
    background: transparent !important;
}

.search-input-premium:focus{
    box-shadow: none !important;
}

.search-icon-premium{
    font-size: 1.3rem;
    color: #6b7682;
}

/* =========================
   SOCIO CARD
   ========================= */
.socio-card{
    height: 100%;
    border: 1px solid rgba(232,237,243, .95);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24,36,51,0.04);
    transition: var(--transition);
}

.socio-card:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.socio-title{
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 3px;
}

.socio-company{
    color: var(--text-muted);
    font-size: .95rem;
}

.socio-description{
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 1.58;
    min-height: 66px;
}

/* =========================
   EMPTY STATES
   ========================= */
.empty-state{
    border: 1px dashed #d9e1ea;
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    padding: 52px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-icon{
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f8ff;
    color: #206bc4;
    font-size: 2rem;
}

/* =========================
   SKELETON
   ========================= */
.skeleton-card{
    border-radius: 22px;
    border: 1px solid #edf0f2;
    background: #fff;
    padding: 22px;
    min-height: 220px;
    box-shadow: var(--shadow-sm);
}

.skeleton-avatar{
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 37%, #f1f3f5 63%);
    background-size: 400% 100%;
    animation: shine 1.4s ease infinite;
}

.skeleton-line{
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 37%, #f1f3f5 63%);
    background-size: 400% 100%;
    animation: shine 1.4s ease infinite;
    margin-bottom: 10px;
}

@keyframes shine{
    0%{ background-position: 100% 50%; }
    100%{ background-position: 0 50%; }
}





/* =========================
   ANIMACIONES DE ENTRADA
   ========================= */
.fade-up{
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp .55s ease forwards;
}

.fade-up.delay-1{ animation-delay: .06s; }
.fade-up.delay-2{ animation-delay: .12s; }
.fade-up.delay-3{ animation-delay: .18s; }
.fade-up.delay-4{ animation-delay: .24s; }
.fade-up.delay-5{ animation-delay: .30s; }
.fade-up.delay-6{ animation-delay: .36s; }

@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   FOOTER SIMPLE
   ========================= */
.public-footer{
    padding: 34px 0 46px;
    color: var(--text-muted);
    font-size: .92rem;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991.98px){
    .hero-public{
        padding-top: 36px;
    }

    .hero-card{
        border-radius: 24px;
    }
}

@media (max-width: 767.98px){
    .hero-title{
        font-size: 2rem;
    }

    .hero-actions{
        flex-direction: column;
        align-items: stretch;
    }

    .public-nav-actions{
        width: 100%;
    }

    .public-nav-actions .btn{
        width: 100%;
    }
}



.search-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f6f8fb;
    padding-top: 10px;
    padding-bottom: 10px;
}

.fade-in-up {
    animation: fadeInUp .4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.socio-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,.10);
}

.btn-wa {
    transition: all .2s;
}

.btn-wa:hover {
    transform: scale(1.03);
}

/* =========================
   BOTONES BNI
   ========================= */
.btn-primary{
    background-color: var(--bni-rojo) !important;
    border-color: var(--bni-rojo) !important;
}

.btn-primary:hover{
    background-color: var(--bni-rojo-hover) !important;
}

.btn-outline-primary{
    color: var(--bni-rojo) !important;
    border-color: var(--bni-rojo) !important;
}

.btn-outline-primary:hover{
    background-color: var(--bni-rojo);
    color: #fff !important;
}

.btn-success{
    background: #25D366 !important;
}

.btn-success:hover{
    background: #1ebe5d !important;
}


.btn-outline-primary, .btn-outline.btn-primary {
    --tblr-btn-color: #d32f2f;
    --tblr-btn-bg: transparent;
    --tblr-btn-border-color: #d32f2f;
    --tblr-btn-hover-color: #d32f2f;
    --tblr-btn-hover-border-color: transparent;
    --tblr-btn-hover-bg: #d32f2f;
    --tblr-btn-active-color: #d32f2f;
    --tblr-btn-active-bg: #d32f2f;
    --tblr-btn-active-border-color: #d32f2f;
    --tblr-btn-disabled-color: #d32f2f;
    --tblr-btn-disabled-border-color: #d32f2f;
}

/* BOTÓN LOGIN DISCRETO */
.btn-login {
    opacity: 0.85;
    transition: all .2s;
}

.btn-login:hover {
    opacity: 1;
    transform: translateY(-1px);
}


/* =========================
   NAVBAR PRO
   ========================= */

.navbar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

/* LOGO */
.brand-text {
    font-weight: 700;
    font-size: 1.05rem;
}

/* ACCIONES */
.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LINKS */
.nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link-btn:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text-main);
}

/* CTA */
.nav-cta {
    border-radius: 12px;
    padding: 9px 14px;
    font-weight: 600;
}

/* LOGIN ICON */
.nav-login {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line-soft);
    color: var(--text-muted);
    transition: var(--transition);
    background: #fff;
}

.nav-login:hover {
    background: var(--bni-rojo-soft);
    color: var(--bni-rojo);
    transform: translateY(-1px);
}

/* BOTÓN MOBILE */
.btn-menu-mobile {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.5rem;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px){

    .btn-menu-mobile {
        display: block;
    }

    .public-nav-actions {
        position: absolute;
        top: 70px;
        right: 20px;
        background: #fff;
        border-radius: 14px;
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: 12px;
        gap: 8px;
        width: 220px;

        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all .2s ease;
    }

    .public-nav-actions.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .nav-link-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    .nav-login {
        width: 100%;
    }

    .brand-text {
        font-size: 0.95rem;
    }
}

