:root {
    --tema-azul: #3b82f6;
    --tema-glow: rgba(59, 130, 246, 0.8);
    --fondo-oscuro: #010206;
}

/* NUEVO FONDO CON DEGRADADO */
.main-gradient-bg {
    background-color: #010107;
    background-image: radial-gradient(
        circle at 60% 10%, 
        rgba(65, 79, 134, 0.355) 0%, 
        rgb(0, 0, 3) 30%
    );
    background-attachment: fixed;
    min-height: 100vh;
}

/* =========================================
   1. NAVEGACIÓN
   ========================================= */
.navbar-custom {
    background: rgba(0, 1, 4, 0.707);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    font-family: 'Poppins', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-custom {
    font-size: 26px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-shadow: none;
}
.logo-custom span { 
    color: var(--tema-azul); 
    text-shadow: 0 0 10px var(--tema-glow); 
}

.nav-links-custom { display: flex; align-items: center; gap: 25px; }

.nav-item-custom { 
    color: #9ca3af; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 13.5px; 
    transition: 0.3s; 
}
.nav-item-custom:hover, .nav-item-custom.active { color: white; }

.btn-pill-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 7px 18px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 13.5px;
    display: flex;
    align-items: center; gap: 8px;
    text-decoration: none;
    transition: all 0.4s ease;
}
.btn-pill-custom:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.nav-ia-custom { color: #a78bfa; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }

.streak-badge {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    color: #ff8c00;
    font-weight: 700;
    display: flex;
    align-items: center; gap: 6px; font-size: 14px;
}
.streak-badge i { color: #ff4500; filter: drop-shadow(0 0 5px #ff4500); }

.user-panel-custom { display: flex; align-items: center; gap: 20px; }
.profile-trigger-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s;
}

.profile-trigger-custom:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-trigger-custom img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

#miDiv {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   2. ESTILOS RESPONSIVE Y HEADER
   ========================================= */
.btn-efect:hover .cont-btn-one { transform: translateX(-200px); }
.cont-btn-one { transition: all 0.3s ease-in-out; transform: translateX(0); }
.cont-btn-two { transition: all 0.3s ease-in-out; transform: translateX(0); }
.btn-efect:hover .cont-btn-two { transform: translateX(200px); }

@media (max-width: 1140px){
    .cont-character .character{ width: 510px; height: 510px; object-fit: cover; right: 30px; }
    .cont-text-header h1{ font-size: 50px; } 
}

@media (max-width: 914px){
    .header-cont{ height: 1200px; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding-top: 100px; }
    .header-cont .puntos{ top: 180px; right:0; position: absolute; }
    .header-cont-layout{ display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; }
    .line{ top: 0; left: 0; }
    .cont-character{ width: 100%; display: flex; justify-content: center; align-items: end; overflow: hidden; height: 700px; }
    .cont-character .character{ position: relative; width: 100%; max-width: 600px; height: auto; object-fit: cover; }
    .header-cont-layout .cont-text-header{ left: 0; width: 85%; }
    .cont-character .figure{ display: none; }
}

@media (max-width: 768px){
    .header-cont{ top: -5px; }
    .marquee-container{ margin-top: -65px; position: relative; }
    .nav-links-custom { display: none; }
}

@media (max-width: 626px){
    .header-cont{ height: 1200px; gap: 20px; }
    .cont-character .character{ width: 500px; height: 500px; left: 10px; }
}

/* MARQUEE Y REVEAL */
.marquee-container { top: 60px; left: 0; width: 100%; padding: 20px 0; position: relative; }
.marquee-track { display: inline-block; white-space: nowrap; animation: scroll-left 35s linear infinite; font-size: 2rem; font-weight: 700; color: white; }
@keyframes scroll-left { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }

@keyframes reveal { from { opacity: 0; scale: 0.8; transform: translateY(200px); } to { opacity: 1; scale: 1; transform: translateY(0px); } }
.reveal { opacity: 0; }
.reveal.visible { animation: reveal 0.7s ease-in-out forwards; }

.btn-secction { font-size: 17px; color: #fff; border: 2px solid gray; padding: 8px 0px; border-radius: 70px; transition: 0.3s; cursor: pointer; }
.btn-secction:hover { background: #ffffff0e; }
.btn-secction.active { border: 2px solid #4d87fb; background: #293c9c44; color: #4d87fb; }

/* =========================================
   3. CARDS ESTILO NEÓN
   ========================================= */
.card-glow {
    background: #0b102142;
    border: 1px solid rgba(30, 64, 175, 0.4);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.card-glow:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.card-img-holder {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-glow:hover .card-img-holder img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.card-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-author {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 20px;
}

.card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #111827;
    color: white;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 8px;
    border: 1px solid #374151;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 15px;
}

.card-btn:hover {
    background: #1f2937;
    border-color: #60a5fa;
    color: #60a5fa;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.heart-container {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #9ca3af;
    font-weight: 600;
    font-size: 14px;
}

.heart-container.active { color: #ef4444; }

/* =========================================
   4. ESTILOS DEL BUSCADOR (Nuevos)
   ========================================= */
.custom-search-input {
    background: rgba(11, 16, 33, 0.282);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    color: #e5e7eb;
    font-family: 'Poppins', sans-serif;
}

.custom-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
    outline: none;
}

.hidden-by-search {
    display: none !important;
}

/* =========================================
       FOOTER PROFESIONAL (GRILLA)
       ========================================= */
    footer { 
        background: #080808; 
        border-top: var(--border); 
        padding: 80px 5% 40px; 
        margin-top: 80px;
         color: #888;
     }

    .footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; max-width: 1400px; margin-left: auto; margin-right: auto; }
    
    .footer-brand h2 { font-size: 1.5rem; color: white; margin: 0 0 20px; font-weight: 800; letter-spacing: -1px; }
    .footer-brand h2 span { color: var(--tema); }
    .footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 300px; }
    
    .footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
    .footer-col a { display: block; color: #888; margin-bottom: 12px; font-size: 0.9rem; transition: 0.3s; }
    .footer-col a:hover { color: white; transform: translateX(5px); }
    
    .footer-bottom { border-top: var(--border); padding-top: 30px; text-align: center; font-size: 0.85rem; display: flex; justify-content: space-between; max-width: 1400px; margin: 0 auto; }
