/* ============================================================================
   BIO & TERMINAL v1.1 — Estilos del nuevo bio + sección 07B AI Orchestration
   Adaptado al markup REAL: .about-ai-card.claude-terminal, .ai-card-*,
   .code-line / .code-prompt, .skill-bar-item, .skill-bar-fill[--fill-width]
   ============================================================================ */

/* ============================ ABOUT GRID SIN FOTO (limpio, full-width) ============================ */
.about-grid.about-grid-no-photo {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.about-grid.about-grid-no-photo .about-text-block {
    max-width: 100%;
}

.bio-highlight-box-clean {
    position: relative;
    padding: 28px 28px 28px 36px;
    background: linear-gradient(135deg, rgba(20, 37, 64, 0.55) 0%, rgba(10, 22, 40, 0.85) 100%);
    border: 1px solid rgba(201, 162, 75, 0.22);
    border-radius: 18px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.bio-highlight-box-clean::before {
    content: '';
    position: absolute;
    left: 0; top: 12%; bottom: 12%;
    width: 4px;
    background: linear-gradient(180deg, #C9A24B 0%, transparent 100%);
    border-radius: 0 4px 4px 0;
}

.bio-highlight-box-clean .bio-quote-mark {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 36px;
    color: rgba(201, 162, 75, 0.18);
    pointer-events: none;
}

/* RESPONSIVE: stack en móvil */
@media (max-width: 900px) {
    .about-grid.about-grid-no-photo {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .bio-highlight-box-clean {
        padding: 22px 20px 22px 26px;
        border-radius: 14px;
    }
    .bio-highlight-box-clean .bio-quote-mark {
        font-size: 28px; top: 10px; right: 12px;
    }
}

@media (max-width: 600px) {
    .bio-highlight-box-clean { padding: 18px 16px 18px 22px; }
}

/* DAY MODE */
body.day-mode .bio-highlight-box-clean {
    background: var(--day-card, #FFFFFF);
    border-color: var(--day-border, #E8DEC4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

body.day-mode .bio-highlight-box-clean .bio-quote-mark {
    color: rgba(201, 162, 75, 0.25);
}

/* ============================ BIO STATEMENT PRO ============================ */
.bio-statement-pro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 28px;
    max-width: 720px;
}

.bio-statement-pro p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.72;
    color: rgba(245, 241, 232, 0.85);
    margin: 0;
    position: relative;
    padding-left: 14px;
    border-left: 2px solid rgba(201, 162, 75, 0.35);
    transition: border-color .3s ease, color .3s ease;
}

.bio-statement-pro p:first-child {
    font-size: 16.5px;
    font-weight: 500;
    color: #F5F1E8;
    border-left-color: #C9A24B;
}

.bio-statement-pro p:hover {
    border-left-color: #E8C766;
    color: #F5F1E8;
}

.bio-statement-pro strong {
    color: #C9A24B;
    font-weight: 600;
}

/* ============================ PERFIL TÉCNICO ESTRATÉGICO ============================ */
.justify-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #F5F1E8;
    margin: 28px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 162, 75, 0.2);
}

.justify-title i {
    color: #C9A24B;
    font-size: 16px;
}

/* ============================ SECCIÓN 07B — AI ORCHESTRATION TERMINAL ============================ */
#ai-terminal {
    position: relative;
    padding: 60px 0 50px;
    background:
        radial-gradient(ellipse at 70% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 100%, rgba(201, 162, 75, 0.06) 0%, transparent 55%),
        linear-gradient(180deg, #0A1628 0%, #050B16 100%);
    overflow: hidden;
}

#ai-terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 95%, rgba(201, 162, 75, 0.04) 95%);
    background-size: 100% 24px;
    pointer-events: none;
}

#ai-terminal .section-container { position: relative; z-index: 2; }

/* GRID terminal + skills */
.ai-terminal-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    margin-top: 32px;
    align-items: stretch;
}

/* ============================ TERMINAL CARD (.about-ai-card.claude-terminal) ============================ */
.about-ai-card.claude-terminal {
    position: relative;
    background: linear-gradient(180deg, #0A0F1E 0%, #04080F 100%);
    border: 1px solid rgba(201, 162, 75, 0.3);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
}

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #1A2540 0%, #131C30 100%);
    border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}

.ai-card-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.ai-card-dot.red    { background: #FF5F57; }
.ai-card-dot.yellow { background: #FEBC2E; }
.ai-card-dot.green  { background: #28C840; }

.ai-card-title {
    margin-left: 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(245, 241, 232, 0.7);
    letter-spacing: 0.04em;
    font-family: 'JetBrains Mono', monospace;
}

.ai-card-body {
    padding: 20px 22px 22px;
    color: #D4D4D4;
    font-size: 12.5px;
    line-height: 1.78;
    flex: 1 1 auto;
    min-height: 280px;
}

.ai-card-body code {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    background: transparent;
    color: inherit;
    white-space: normal;
}

.code-line {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.code-prompt   { color: #C9A24B; font-weight: 700; margin-right: 6px; }
.code-comment  { color: rgba(255, 255, 255, 0.42); font-style: italic; }
.code-keyword  { color: #34D399; font-weight: 700; margin-right: 6px; }
.code-string   { color: #F5F1E8; }
.code-number   { color: #FBBF24; }
.code-function { color: #60A5FA; }

.code-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #C9A24B;
    margin-left: 2px;
    vertical-align: text-bottom;
    color: transparent;
    animation: term-blink 1.1s steps(2, start) infinite;
}

@keyframes term-blink { to { visibility: hidden; } }

/* ============================ SKILLS RADAR CARD ============================ */
.skills-radar-card {
    background: linear-gradient(135deg, rgba(20, 37, 64, 0.7) 0%, rgba(10, 22, 40, 0.9) 100%);
    border: 1px solid rgba(201, 162, 75, 0.25);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skills-radar-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #F5F1E8;
    margin: 0 0 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 162, 75, 0.2);
}

.skills-radar-card h4 i { color: #C9A24B; }

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12.5px;
    color: rgba(245, 241, 232, 0.9);
}

.skill-bar-label > span:first-child { font-weight: 600; }

.skill-bar-label > span:last-child {
    color: #C9A24B;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
}

.skill-bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #C9A24B, #E8C766, #C9A24B);
    background-size: 200% 100%;
    box-shadow: 0 0 12px rgba(201, 162, 75, 0.5);
    animation: skill-shine 3s ease-in-out infinite, skill-grow 1.4s cubic-bezier(.4,0,.2,1) both;
    width: var(--fill-width, 0%);
}

.skill-bar-fill.claude-fill {
    background: linear-gradient(90deg, #7C3AED, #C9A24B, #7C3AED);
    background-size: 200% 100%;
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.55);
}

@keyframes skill-shine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes skill-grow {
    from { width: 0%; }
    to   { width: var(--fill-width, 0%); }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
    .ai-terminal-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 20px;
    }
    .ai-card-body {
        padding: 16px 14px;
        font-size: 11.5px;
        min-height: 240px;
    }
    .skills-radar-card { padding: 16px; }
    .bio-statement-pro p { font-size: 14px; padding-left: 12px; }
    .bio-statement-pro p:first-child { font-size: 15px; }
}

@media (max-width: 600px) {
    #ai-terminal { padding: 40px 0 30px; }
    .ai-card-title { font-size: 10.5px; }
    .ai-card-body { font-size: 10.8px; }
    .skill-bar-label { font-size: 11.5px; }
}

/* ============================ DAY MODE ============================ */
body.day-mode .bio-statement-pro p {
    color: var(--day-fg, #1A1A2E);
    border-left-color: var(--day-accent, #C9A24B);
}

body.day-mode .bio-statement-pro strong { color: var(--day-accent, #C9A24B); }

body.day-mode .justify-title {
    color: var(--day-fg, #1A1A2E);
    border-bottom-color: var(--day-border, #E8DEC4);
}

body.day-mode #ai-terminal {
    background: var(--day-bg, #FBF8F0);
}

/* La terminal mantiene siempre look "consola" (dark) incluso en day-mode */
body.day-mode .about-ai-card.claude-terminal {
    box-shadow: 0 16px 44px rgba(10, 22, 40, 0.18), 0 0 0 1px var(--day-border, #E8DEC4);
}

body.day-mode .skills-radar-card {
    background: var(--day-card, #FFFFFF);
    border-color: var(--day-border, #E8DEC4);
}

body.day-mode .skills-radar-card h4 {
    color: var(--day-fg, #1A1A2E);
    border-bottom-color: var(--day-border, #E8DEC4);
}

body.day-mode .skill-bar-label { color: var(--day-fg, #1A1A2E); }
body.day-mode .skill-bar-label > span:last-child { color: var(--day-accent, #C9A24B); }
body.day-mode .skill-bar-track { background: var(--day-bg, #FBF8F0); }
body.day-mode .skill-bar-fill {
    background: linear-gradient(90deg, var(--day-accent, #C9A24B), #E8C766);
}
