/* Estilos propios de la pagina de inicio */

.hero {
    padding: 96px 0 72px;
    background: radial-gradient(ellipse at 80% 20%, rgba(var(--accent-rgb), 0.12), transparent 55%),
                radial-gradient(ellipse at 10% 80%, rgba(var(--accent-2-rgb), 0.08), transparent 50%);
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
}

.hero-lead {
    font-size: 1.15rem;
    max-width: 560px;
    margin-top: 20px;
}

.hero-lead strong {
    color: var(--text);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    padding: 6px 14px;
    border-radius: 999px;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

/* Panel tipo terminal */
.terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 30px 60px var(--shadow), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.terminal-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ef4444;
}

.terminal-bar span:nth-child(2) { background: #f5b942; }
.terminal-bar span:nth-child(3) { background: #10b981; }

.terminal-bar p {
    margin-left: auto;
    font-size: 0.8rem;
}

.terminal-body {
    padding: 24px;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(var(--accent-rgb), 0.5);
    flex-shrink: 0;
}

.code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text);
    white-space: pre;
    overflow-x: auto;
}

.code .kw { color: var(--accent-2); }
.code .str { color: var(--accent); }

.chart {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
}

.chart svg {
    width: 100%;
    height: 110px;
    display: block;
}

.chart-value {
    font-size: 0.85rem;
    color: var(--accent);
}

.chart-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 2s ease-out forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

/* Cinta de tecnologias */
.ticker {
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    padding: 14px 0;
    animation: ticker 40s linear infinite;
}

.ticker-track span {
    margin: 0 28px;
    font-size: 0.85rem;
    color: var(--muted);
}

.ticker-track b {
    color: var(--accent);
    font-weight: 500;
}

/* Pausa al pasar el mouse por encima */
.ticker:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Indicadores */
.stat {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--text);
}

/* Llamado a la accion */
.cta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-2-rgb), 0.08));
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track, .pulse, .chart-line { animation: none; }
    .chart-line { stroke-dashoffset: 0; }
}

@media (max-width: 576px) {
    .hero { padding: 56px 0 48px; }
    .profile-photo { width: 72px; height: 72px; }
    .code { font-size: 0.75rem; }
    .cta-panel { padding: 28px; }
}

/* El grafico toma el color de acento de la paleta */
.chart svg {
    color: var(--accent);
}

/* Cifras de la cinta, como en una pizarra de bolsa */
.ticker-track .quote strong {
    color: var(--text);
    font-weight: 500;
}

/* Años bajo la grafica de certificaciones */
.chart-years {
    display: flex;
    justify-content: space-between;
    padding: 0 1.5%;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--muted);
}

/* ---------- Terminal interactiva ---------- */
.console {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.console-output p {
    margin: 0 0 4px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.console-output .console-echo {
    color: var(--text);
}

.console-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-prompt {
    color: var(--accent);
    margin: 0;
}

.console-input {
    flex: 1;
    min-width: 0;
    min-height: 32px;
    border: 0;
    border-bottom: 1px dashed var(--border);
    background: transparent;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 16px;
    caret-color: var(--accent);
}

.console-input::placeholder {
    color: var(--muted);
}

.console-input:focus-visible {
    border-bottom: 1px solid var(--accent);
}
