/* ============================================================
   BIGCODE CUSTOM CSS
   Potencia el tema existente sin romper ningún estilo base.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Hero: subtítulo motivador ────────────────────────────── */
.hs-line-6 {
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Typewriter gradient color */
.color-linear {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Stats en About ────────────────────────────────────────── */
.bc-stat-item {
    padding: 32px 16px;
    position: relative;
}

.bc-stat-number {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.bc-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

/* ── Features: highlight accent en título ─────────────────── */
.alt-features-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 10px !important;
}

.alt-features-descr {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* Hover glow en feature icons */
.alt-features-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.alt-features-item:hover .alt-features-icon {
    transform: scale(1.12);
    filter: drop-shadow(0 0 8px rgba(6,182,212,0.4));
}

/* ── News section ─────────────────────────────────────────── */
.bc-news-badge {
    display: inline-block;
    font-size: 11px !important;
    font-weight: 600;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: white !important;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 16px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    animation: bcPulse 2s ease-in-out infinite;
}

@keyframes bcPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.bc-news-placeholder-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06b6d4;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.bc-news-item:hover .bc-news-placeholder-img {
    transform: scale(1.02);
}

.bc-news-source {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.post-prev-title a {
    transition: color 0.2s ease;
}
.post-prev-title a:hover {
    color: #06b6d4 !important;
}

/* ── Chatbot Widget ────────────────────────────────────────── */
#bc-chatbot-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    font-family: 'Inter', sans-serif;
}

#bc-chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 8px 28px rgba(6,182,212,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
#bc-chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(6,182,212,0.6);
}

.bc-chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bcBounce 1.5s ease-in-out infinite;
}
@keyframes bcBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

#bc-chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(6,182,212,0.15);
    animation: bcSlideUp 0.25s ease-out;
}
@media (max-width: 400px) {
    #bc-chat-panel {
        width: calc(100vw - 40px);
        right: -14px;
    }
}

@keyframes bcSlideUp {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#bc-chat-header {
    background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(139,92,246,0.15));
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bc-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
}

.bc-chat-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bc-chat-header-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
}

.bc-chat-header-info span {
    font-size: 11px;
    color: #34d399;
}

.bc-online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    margin-right: 4px;
    animation: bcPulse 2s ease-in-out infinite;
}

#bc-chat-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
#bc-chat-close:hover {
    color: #f8fafc;
    background: rgba(255,255,255,0.08);
}

#bc-chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #1e293b transparent;
}
#bc-chat-messages::-webkit-scrollbar { width: 4px; }
#bc-chat-messages::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 2px; }

.bc-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: bcFadeIn 0.25s ease;
}
@keyframes bcFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bc-msg.bc-user {
    flex-direction: row-reverse;
}

.bc-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-line;
}

.bc-msg.bc-bot .bc-msg-bubble {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.05);
    color: #e2e8f0;
    border-top-left-radius: 4px;
}

.bc-msg.bc-user .bc-msg-bubble {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: white;
    border-top-right-radius: 4px;
}

.bc-msg-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
}

.bc-msg.bc-user .bc-msg-icon {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Options (quick reply buttons) */
.bc-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 36px;
    animation: bcFadeIn 0.3s ease;
}

.bc-option-btn {
    text-align: left;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(6,182,212,0.25);
    background: rgba(6,182,212,0.07);
    color: #22d3ee;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: 'Inter', sans-serif;
}
.bc-option-btn:hover {
    background: rgba(6,182,212,0.15);
    transform: translateX(3px);
}

/* Typing indicator */
.bc-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #1e293b;
    border-radius: 16px;
    border-top-left-radius: 4px;
    width: 54px;
}
.bc-typing span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: bcTyping 1.2s ease-in-out infinite;
}
.bc-typing span:nth-child(2) { animation-delay: 0.2s; }
.bc-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bcTyping {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%       { transform: translateY(-4px); opacity: 1; }
}

/* Input area */
#bc-chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #0f172a;
}

#bc-chat-input {
    flex: 1;
    background: #1e293b;
    border: 1px solid #2d3748;
    border-radius: 10px;
    padding: 9px 14px;
    color: #f8fafc;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}
#bc-chat-input:focus {
    border-color: rgba(6,182,212,0.5);
}
#bc-chat-input::placeholder { color: #475569; }

#bc-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}
#bc-chat-send:hover { transform: scale(1.08); }
#bc-chat-send:disabled { opacity: 0.4; cursor: default; }

/* Footer del chat */
.bc-chat-footer {
    text-align: center;
    padding: 8px;
    font-size: 11px;
    color: #475569;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: #0a1628;
}
.bc-chat-footer strong {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Smooth hover en nav ────────────────────────────────────── */
.main-nav .scroll-nav a {
    transition: color 0.2s ease !important;
}

/* ── Sección About: divider stat ───────────────────────────── */
.bc-stat-item + .bc-stat-item {
    border-left: 1px solid #eee;
}
@media (max-width: 767px) {
    .bc-stat-item + .bc-stat-item { border-left: none; border-top: 1px solid #eee; }
    .bc-stat-number { font-size: 40px; }
}
