* ========================================
   SECCIÓN PORTFOLIO (TARJETAS DESTACADAS)
   ======================================== */
.portfolio-hero { padding: 80px 0 50px; text-align: center; }
.portfolio-hero h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 800; margin-bottom: 20px; }
.hero-desc { color: var(--cloud-grey); max-width: 700px; font-size: 1.1rem; margin: 0 auto; }

.project-display { display: flex; justify-content: center; padding-bottom: 100px; }

/* Tarjeta Gigante del Portfolio */
.card-featured {
    background: var(--slate-grey);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 650px;
    width: 100%;
    transition: all 0.4s ease;
}

.card-featured:hover {
    border-color: var(--electric-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 209, 255, 0.1);
}

.status-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(0, 255, 148, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--neon-mint);
}

.card-featured h3 { margin-bottom: 15px; font-size: 1.8rem; }
.card-featured p { color: var(--cloud-grey); font-size: 1.05rem; margin-bottom: 30px; }

.card-footer-featured {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
}

/* Ajustes móvil específicos del Portfolio */
@media (max-width: 768px) {
    .portfolio-hero { padding: 50px 0 30px; }
    .portfolio-hero h1 { font-size: 2.2rem; }
    .card-featured { padding: 30px; }
}

@media (max-width: 640px) {
    .portfolio-hero { padding: 44px 0 24px; }
    .portfolio-hero h1 { font-size: clamp(1.9rem, 8vw, 2.2rem); }
    .hero-desc { font-size: 0.975rem; }
    .card-featured { padding: 24px 20px; }
    .card-featured h3 { font-size: 1.55rem; }
    .card-featured p { font-size: 0.975rem; }
}

@media (max-width: 480px) {
    .portfolio-hero { padding: 36px 0 20px; }
    .portfolio-hero h1 { font-size: clamp(1.7rem, 7vw, 2rem); }
    .hero-desc { font-size: 0.925rem; }
    .card-featured { padding: 20px 16px; border-radius: 14px; }
    .card-featured h3 { font-size: 1.35rem; }
    .card-featured p { font-size: 0.9rem; margin-bottom: 20px; }
    .card-footer-featured { padding-top: 18px; }
}

/* ========================================
   PORTFOLIO / RESEARCH: ESTILOS ESPECÍFICOS
   ======================================== */
.doc-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.math-box {
    background: rgba(0, 209, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--electric-cyan);
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.code-block {
    background: #000;
    padding: 25px;
    border-radius: 12px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--neon-mint);
    position: relative;
    margin: 25px 0;
    line-height: 1.6;
}

.code-header {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 0.7rem;
    color: #4A5568;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 4px;
}

.interactive-demo {
    background: var(--slate-grey);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    margin: 30px 0;
}

.demo-input {
    width: 100%;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(11, 15, 20, 0.5);
    color: var(--pure-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.demo-input:focus {
    outline: none;
    border-color: var(--electric-cyan);
    box-shadow: 0 0 0 3px var(--electric-cyan-glow);
}

.btn-demo {
    background: var(--electric-cyan);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-demo:hover {
    background: #00e5ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--electric-cyan-glow);
}

.results-display {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 255, 148, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--neon-mint);
    display: none;
}

.results-display.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 255, 148, 0.2);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-label {
    color: var(--neon-mint);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.result-value {
    color: var(--pure-white);
    font-size: 1.2rem;
    font-weight: 600;
}
