@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root{
    --bg-0:#0a0a0d;        /* fondo más oscuro (negro) */
    --bg-1:#111217;        /* fondo de secciones impares */
    --bg-2:#15161c;        /* fondo de secciones pares / tarjetas */
    --bg-card:#1a1b22;
    --border-soft:rgba(255,255,255,.08);
    --border-gold:rgba(255,193,7,.35);
    --gold:#ffc107;
    --gold-dark:#b8860b;
    --gold-grad:linear-gradient(135deg,#ffd65c,#ffc107);
    --text-high:#f5f6f8;
    --text-mid:#b7b9c2;
    --text-low:#7e8190;
}

*{box-sizing:border-box;}

html,body{
    background:var(--bg-0);
    color:var(--text-mid);
    font-family:'Inter',system-ui,-apple-system,sans-serif;
}

h1,h2,h3,h4,h5,h6{
    font-family:'Poppins',system-ui,sans-serif;
    color:var(--text-high);
}

a{ text-decoration:none; }

::selection{ background:var(--gold); color:#111; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar{
    background:rgba(10,10,13,.85)!important;
    backdrop-filter:blur(18px);
    box-shadow:0 1px 0 var(--border-soft);
    z-index:9999;
}

.navbar-brand{
    font-family:'Poppins',sans-serif;
    font-weight:800;
    color:var(--text-high)!important;
    display:flex;
    align-items:center;
    gap:6px;
}

.navbar-brand img{ transition:.3s; }
.navbar-brand:hover img{ transform:scale(1.03); }

.logo-home{
    font-size:3rem;
    font-weight:800;
    color:var(--text-high);
}

.navbar-nav .nav-link{
    font-weight:600;
    color:var(--text-mid)!important;
    margin:0 10px;
    transition:.3s;
    display:flex;
    align-items:center;
    gap:6px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active{
    color:var(--gold)!important;
}

.navbar-toggler{
    border-color:var(--border-soft)!important;
}

.dropdown-toggle::after{ margin-left:10px; }

.dropdown-menu{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
}

.dropdown-item{ color:var(--text-mid); }
.dropdown-item:hover{ background:rgba(255,193,7,.08); color:var(--gold); }

.btn-nav-ghost{
    border:1px solid var(--border-soft);
    color:var(--text-high);
    border-radius:30px;
    padding:8px 20px;
    font-weight:600;
    transition:.3s;
}

.btn-nav-ghost:hover{
    border-color:var(--gold);
    color:var(--gold);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn{
    font-weight:600;
    border-radius:30px;
}

.btn-warning{
    background:var(--gold-grad);
    border:none;
    color:#1a1300;
    font-weight:700;
    border-radius:50px;
    padding:14px 30px;
    transition:.3s;
}

.btn-warning:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 30px rgba(255,193,7,.35);
    color:#1a1300;
}

.btn-dark{
    background:#1c1d24;
    border:1px solid var(--border-soft);
    color:var(--text-high);
    border-radius:50px;
    padding:14px 30px;
    transition:.3s;
}

.btn-dark:hover{
    border-color:var(--gold);
    color:var(--gold);
    background:#22232b;
}

.btn-outline-light{
    border:1px solid rgba(255,255,255,.35);
    color:var(--text-high);
    border-radius:50px;
    padding:14px 30px;
    transition:.3s;
}

.btn-outline-light:hover{
    background:rgba(255,255,255,.08);
    border-color:#fff;
    color:#fff;
}

.btn-sm{ padding:8px 18px; font-size:.85rem; }
.btn-lg{ padding:14px 32px; font-size:1rem; }

.btn-casting{
    border-radius:30px;
    padding:10px 25px;
}

.btn-premium{
    background:var(--gold-grad);
    border:none;
    color:#1a1300;
    font-weight:700;
    border-radius:30px;
}

.btn-premium:hover{
    transform:translateY(-3px);
    transition:.3s;
}

/* ==========================================================================
   ESTRUCTURA GENERAL DE SECCIONES
   ========================================================================== */
section{
    position:relative;
    overflow:hidden;
    padding:80px 0;
}

section.bg-light,
section:nth-child(even):not(.hero-home):not(.cta-home):not(.premium-home){
    background:var(--bg-1)!important;
}

section:nth-child(odd){
    background:var(--bg-0);
}

section::before{
    content:'';
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(circle, rgba(255,193,7,.07), transparent 70%);
    right:-250px;
    top:-200px;
    z-index:0;
    pointer-events:none;
}

section::after{
    content:'';
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:120px;
    height:4px;
    background:var(--gold);
    border-radius:50px;
    opacity:.25;
}

section > .container,
section > .hero-overlay,
section > .overlay{
    position:relative;
    z-index:2;
}

.section-divider{
    height:1px;
    background:var(--border-soft);
}

/* Eyebrow / etiqueta superior */
.eyebrow{
    color:var(--gold);
    font-weight:700;
    font-size:.8rem;
    letter-spacing:1.5px;
    text-transform:uppercase;
    display:inline-block;
    margin-bottom:10px;
}

.eyebrow-underline{
    width:36px;
    height:3px;
    background:var(--gold);
    border-radius:10px;
    margin-top:10px;
}

h2{
    font-size:2.4rem;
    font-weight:800;
    margin-bottom:15px;
    position:relative;
    color:var(--text-high);
}

h2.text-center:after{
    content:'';
    display:block;
    margin:18px auto 0;
    width:70px;
    height:4px;
    background:var(--gold);
    border-radius:20px;
    opacity:.6;
}

.text-gold{ color:var(--gold)!important; }

/* ==========================================================================
   HERO HOME
   ========================================================================== */
.hero-home{
    min-height:calc(100vh - 76px);
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(100deg, rgba(8,8,10,.96) 20%, rgba(8,8,10,.55) 55%, rgba(8,8,10,.25) 100%),
        url("https://www.kasteando.com/assets/img/home/hero.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    padding:60px 0;
}

.hero-home::before,
.hero-home::after{ content:none; }

.hero-home .hero-overlay{
    max-width:680px;
    text-align:left;
    padding-left:5%;
}

.hero-home h1{
    color:var(--text-high);
    font-size:2.9rem;
    font-weight:800;
    line-height:1.2;
}

.hero-home p.lead{
    color:var(--text-mid);
    font-size:1.1rem;
    max-width:520px;
}

.hero-home .container{ text-align:left!important; }

/* ==========================================================================
   COMO FUNCIONA
   ========================================================================== */
.proceso-icon{
    width:64px;
    height:64px;
    border-radius:50%;
    border:1.5px solid var(--border-gold);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
    margin-bottom:18px;
    background:rgba(255,193,7,.04);
}

.proceso-icon svg{ width:26px; height:26px; }

.proceso-item h4{
    font-size:1.05rem;
    font-weight:700;
    margin-bottom:8px;
    color:var(--text-high);
}

.proceso-item p{
    color:var(--text-low);
    font-size:.92rem;
    max-width:230px;
}

.img-feature{
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,.45);
    border:1px solid var(--border-soft);
}

.img-feature img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* ==========================================================================
   TODOS TIENEN LUGAR (categorias)
   ========================================================================== */
.categoria-card{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    border-radius:18px;
    padding:35px 15px;
    text-align:center;
    transition:.3s;
    height:100%;
}

.categoria-card:hover{
    transform:translateY(-6px);
    border-color:var(--border-gold);
    box-shadow:0 15px 35px rgba(0,0,0,.35);
}

.categoria-icon{
    width:60px;
    height:60px;
    margin:0 auto 16px;
    border-radius:50%;
    border:1.5px solid var(--border-gold);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
}

.categoria-icon svg{ width:26px; height:26px; }

.categoria-card h5{
    font-size:1rem;
    font-weight:700;
    color:var(--text-high);
    margin:0;
}

/* ==========================================================================
   TALENTOS DESTACADOS
   ========================================================================== */
.talent-home-card{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    border-radius:20px;
    overflow:hidden;
    transition:.3s;
    flex:0 0 250px;
    scroll-snap-align:start;
}

.talent-home-card:hover{
    transform:translateY(-8px);
    border-color:var(--border-gold);
    box-shadow:0 20px 40px rgba(0,0,0,.4);
}

.talent-home-card .talent-img-wrap{
    position:relative;
    height:320px;
    overflow:hidden;
}

.talent-home-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.talent-home-card:hover img{ transform:scale(1.06); }

.badge-premium{
    position:absolute;
    top:14px;
    left:14px;
    background:var(--gold-grad);
    color:#1a1300;
    font-weight:700;
    font-size:.72rem;
    padding:5px 12px;
    border-radius:30px;
    z-index:2;
}

.talent-home-card .card-body{
    padding:18px;
}

.talent-home-card h5{
    font-size:1rem;
    font-weight:700;
    color:var(--text-high);
    margin-bottom:4px;
}

.talent-home-card .talent-ciudad{
    color:var(--text-low);
    font-size:.85rem;
    margin-bottom:14px;
    display:flex;
    align-items:center;
    gap:5px;
}

.talent-home-card .talent-ciudad svg{ width:14px; height:14px; }

.talent-scroll-row{
    display:flex;
    gap:20px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    padding-bottom:10px;
}

.talent-scroll-row::-webkit-scrollbar{ height:4px; }
.talent-scroll-row::-webkit-scrollbar-thumb{ background:var(--border-soft); border-radius:10px; }

.scroll-arrow{
    width:42px;
    height:42px;
    border-radius:50%;
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    color:var(--text-high);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.3s;
    flex:none;
}

.scroll-arrow:hover{ border-color:var(--gold); color:var(--gold); }

.scroll-dots{
    display:flex;
    justify-content:center;
    gap:6px;
    margin-top:20px;
}

.scroll-dots span{
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--border-soft);
}

.scroll-dots span.active{ background:var(--gold); width:22px; border-radius:10px; }

/* ==========================================================================
   BUSCAS TALENTOS (banner)
   ========================================================================== */
.banner-buscas{
    background:var(--bg-card);
    border:1px solid var(--border-gold);
    border-radius:20px;
    padding:30px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:20px;
    box-shadow:0 15px 40px rgba(255,193,7,.05);
}

.banner-buscas h3{
    font-size:1.4rem;
    font-weight:800;
    margin-bottom:4px;
    color:var(--text-high);
}

.banner-buscas p{
    margin:0;
    color:var(--text-low);
    font-size:.92rem;
}

/* ==========================================================================
   BENEFICIOS
   ========================================================================== */
.beneficio-check-list{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px 30px;
}

.beneficio-check-list li{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--text-mid);
    font-weight:500;
}

.beneficio-check-list svg{
    width:18px;
    height:18px;
    color:var(--gold);
    flex:none;
}

.benefit-card{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    border-radius:25px;
    padding:40px;
    text-align:center;
    height:100%;
    transition:.3s;
}

.benefit-card:hover{ transform:translateY(-8px); border-color:var(--border-gold); }

/* ==========================================================================
   CASTINGS
   ========================================================================== */
.casting-card{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    border-radius:18px;
    overflow:hidden;
    transition:.3s;
    height:100%;
}

.casting-card:hover{
    transform:translateY(-6px);
    border-color:var(--border-gold);
    box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.casting-card img{
    height:170px;
    width:100%;
    object-fit:cover;
}

.casting-card .card-body{
    padding:22px;
}

.casting-card h5{
    font-size:1.05rem;
    font-weight:700;
    color:var(--text-high);
}

.casting-card p{
    color:var(--text-low);
    font-size:.9rem;
}

.casting-meta{
    font-size:.85rem;
    color:var(--text-low);
    display:flex;
    gap:16px;
    margin:12px 0 16px;
}

.casting-meta span{
    display:flex;
    align-items:center;
    gap:5px;
}

.casting-meta svg{ width:14px; height:14px; color:var(--gold); }

.badge-destacado{
    background:var(--gold-grad);
    color:#1a1300;
    font-weight:700;
}

/* ==========================================================================
   PREMIUM BANNER (franja inferior)
   ========================================================================== */
.premium-home{
    background:linear-gradient(135deg,#1a1306,#0d0e13 55%,#0a0a0d);
    border-top:1px solid var(--border-gold);
    border-bottom:1px solid var(--border-gold);
    padding:35px 0;
    position:relative;
    overflow:hidden;
}

.premium-home::before,
.premium-home::after{ content:none; }

.premium-home .premium-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:20px;
    text-align:left;
}

.premium-home .premium-text{
    display:flex;
    align-items:center;
    gap:18px;
}

.premium-icon{
    width:50px;
    height:50px;
    border-radius:50%;
    background:rgba(255,193,7,.1);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
    flex:none;
}

.premium-icon svg{ width:26px; height:26px; }

.premium-home h2{
    font-size:1.4rem;
    margin:0;
}

.premium-home p{
    margin:0;
    color:var(--text-low);
    font-size:.9rem;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-home{
    background:var(--bg-0);
    min-height:auto;
    padding:90px 0;
}

.cta-home .overlay{
    min-height:auto;
    background:transparent;
    display:block;
}

.cta-home h2{
    color:var(--text-high);
    font-size:2.3rem;
    font-weight:800;
}

.cta-home p{
    color:var(--text-low);
    font-size:1.05rem;
}

/* ==========================================================================
   CARD GENÉRICA (compatibilidad con otras vistas)
   ========================================================================== */
.card{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.3);
    transition:.35s;
    color:var(--text-mid);
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,.45);
}

.card-body{ padding:30px; color:var(--text-mid); }
.card h5, .card h6, .card .h5, .card .h6{ color:var(--text-high); }

.card-footer{
    background:transparent;
    border-top:1px solid var(--border-soft);
}

.card strong{ color:var(--text-high); }

/* Formularios sobre fondo oscuro */
.form-control,
.form-select{
    background:var(--bg-0);
    border:1px solid var(--border-soft);
    color:var(--text-high);
}

.form-control:focus,
.form-select:focus{
    background:var(--bg-0);
    border-color:var(--border-gold);
    color:var(--text-high);
    box-shadow:0 0 0 .2rem rgba(255,193,7,.15);
}

.form-control::placeholder{ color:var(--text-low); }

.form-label{ color:var(--text-mid); }

.card-dashboard{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    border-radius:15px;
    transition:.3s;
    color:var(--text-mid);
}

.card-dashboard:hover{ transform:translateY(-5px); }

/* ==========================================================================
   TALENTO / TALENT CARD (otras vistas)
   ========================================================================== */
.talento-card,
.talent-card{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    transition:.3s;
    border-radius:18px;
    overflow:hidden;
    color:var(--text-mid);
}

.talento-card:hover,
.talent-card:hover{
    transform:translateY(-6px);
    border-color:var(--border-gold);
    box-shadow:0 15px 40px rgba(0,0,0,.4);
}

.talento-card img,
.talent-card img{ transition:.3s; }
.talento-card:hover img,
.talent-card:hover img{ transform:scale(1.03); }

/* ==========================================================================
   GLASS CARD
   ========================================================================== */
.glass-card{
    background:rgba(255,255,255,.04);
    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(15px);
    border:1px solid var(--border-soft);
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.3);
    color:var(--text-mid);
}

.glass-card strong{ color:var(--text-high); }
.glass-card hr{ border-color:var(--border-soft); }

/* ==========================================================================
   RED DE SEGURIDAD: componentes genéricos de Bootstrap
   (evita texto oscuro por defecto sobre el fondo negro del sitio)
   ========================================================================== */
hr{ border-color:var(--border-soft); opacity:1; }

.table{ color:var(--text-mid); }
.table > :not(caption) > * > *{
    background:transparent;
    color:var(--text-mid);
    border-bottom-color:var(--border-soft);
}

.list-group-item{
    background:var(--bg-card);
    color:var(--text-mid);
    border-color:var(--border-soft);
}

.breadcrumb-item,
.breadcrumb-item a{ color:var(--text-mid); }
.breadcrumb-item.active{ color:var(--text-low); }

.pagination .page-link{
    background:var(--bg-card);
    color:var(--text-mid);
    border-color:var(--border-soft);
}
.pagination .page-item.active .page-link{
    background:var(--gold-grad);
    border-color:var(--gold);
    color:#1a1300;
}

.accordion-item{
    background:var(--bg-card);
    border-color:var(--border-soft);
}
.accordion-button{
    background:var(--bg-card);
    color:var(--text-high);
}
.accordion-button:not(.collapsed){
    background:rgba(255,193,7,.08);
    color:var(--gold);
}
.accordion-body{ color:var(--text-mid); }

.modal-content{
    background:var(--bg-card);
    color:var(--text-mid);
    border:1px solid var(--border-soft);
}
.modal-header, .modal-footer{ border-color:var(--border-soft); }

.text-secondary{ color:var(--text-low)!important; }
.text-muted{ color:var(--text-low)!important; }

label{ color:var(--text-mid); }

/* ==========================================================================
   PERFIL
   ========================================================================== */
.perfil-portada{
    height:220px;
    border-radius:25px;
    overflow:hidden;
    position:relative;
}

.perfil-portada img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.perfil-header{
    margin-top:-80px;
    text-align:center;
    position:relative;
    z-index:10;
}

.perfil-avatar{
    width:160px;
    height:160px;
    border-radius:50%;
    object-fit:cover;
    border:6px solid var(--bg-0);
    box-shadow:0 10px 35px rgba(0,0,0,.5);
}

.perfil-nombre{
    font-size:3rem;
    font-weight:800;
    margin-top:15px;
    color:var(--text-high);
}

/* ==========================================================================
   TABS
   ========================================================================== */
.nav-tabs{ border:none; gap:10px; }

.nav-tabs .nav-link{
    border:none !important;
    border-radius:30px;
    background:var(--bg-card);
    color:var(--text-mid);
    font-weight:600;
    padding:12px 22px;
    transition:.3s;
}

.nav-tabs .nav-link:hover{
    background:#22232b;
    transform:translateY(-2px);
    color:var(--text-high);
}

.nav-tabs .nav-link.active{
    background:var(--gold-grad);
    color:#1a1300 !important;
    box-shadow:0 8px 20px rgba(255,193,7,.25);
}

/* TABS KASTEANDO */
.nav-kasteando{ border:none; gap:10px; flex-wrap:wrap; }

.nav-kasteando .nav-link{
    border:none !important;
    background:var(--bg-card);
    border-radius:50px;
    padding:12px 22px;
    color:var(--text-mid);
    font-weight:600;
    transition:.25s;
}

.nav-kasteando .nav-link:hover{
    transform:translateY(-2px);
    background:#22232b;
    color:var(--text-high);
}

.nav-kasteando .nav-link.active{
    background:var(--gold-grad);
    color:#1a1300 !important;
    box-shadow:0 8px 20px rgba(255,193,7,.25);
}

.tab-content{ border:none !important; border-radius:20px; }

/* ==========================================================================
   INFO CARD
   ========================================================================== */
.info-card{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    border-radius:16px;
    padding:20px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.3);
}

.info-card h6{
    color:var(--text-low);
    font-size:.9rem;
    margin-bottom:8px;
}

.info-card strong{
    font-size:1.1rem;
    color:var(--text-high);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-kasteando{
    background:#070708;
    color:var(--text-mid);
    padding:60px 0 30px;
    border-top:1px solid var(--border-soft);
}

.footer-kasteando a{ color:var(--text-mid); }
.footer-kasteando a:hover{ color:var(--gold); }
.footer-kasteando h5{ margin-bottom:15px; color:var(--text-high); }

/* ==========================================================================
   AGENCIA
   ========================================================================== */
.agencia-card{
    background:var(--bg-card);
    border:1px solid var(--border-soft);
    border-radius:20px;
    overflow:hidden;
    transition:.3s;
}

.agencia-card:hover{
    transform:translateY(-6px);
    border-color:var(--border-gold);
}

.agencia-logo{
    width:160px;
    height:160px;
    object-fit:cover;
    border-radius:50%;
    border:6px solid var(--bg-0);
    margin-top:-80px;
    box-shadow:0 10px 30px rgba(0,0,0,.5);
}

.agencia-header{ text-align:center; margin-bottom:40px; }

.agencia-banner img{
    height:350px;
    object-fit:cover;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media(max-width:991px){
    .hero-home .hero-overlay{
        padding-left:0;
        text-align:center;
        margin:0 auto;
    }
    .hero-home .container{ text-align:center!important; }
    .premium-home .premium-inner{ justify-content:center; text-align:center; }
    .beneficio-check-list{ grid-template-columns:1fr; }
}

@media(max-width:768px){
    section{ padding:60px 0; }
    .hero-home h1{ font-size:2.1rem; }
    .cta-home h2{ font-size:1.8rem; }
    h2{ font-size:1.9rem; }
    .banner-buscas{ flex-direction:column; text-align:center; }
}
