/* ============================================
   PORTAFOLIO.CSS — Bloom & Bits Style
   Match exacto con referencia visual
   ============================================ */

/* ========== HERO BLOOM ========== */
.port-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 1.5rem 40px;
}

.hero-bloom-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 3.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-bloom-card { 
        grid-template-columns: 1fr; 
        padding: 2.5rem 1.8rem; 
        gap: 2rem;
    }
}

/* ========== TAG VIOLETA (como Bloom) ========== */
.retro-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(196, 181, 253, 0.2);
    color: #6D28D9;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(196, 181, 253, 0.35);
    letter-spacing: 0.2px;
}
[data-theme="dark"] .retro-tag {
    background: rgba(196, 181, 253, 0.1);
    color: #C4B5FD;
    border-color: rgba(196, 181, 253, 0.25);
}

.tag-dot {
    width: 8px; 
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 10px #22C55E;
    animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* ========== TÍTULO GRANDE PIXEL (Bloom style) ========== */
.retro-title {
    font-family: 'Press Start 2P', 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
    font-weight: 400;
    letter-spacing: -1.5px;
}

.retro-title-small {
    font-family: 'Press Start 2P', 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-weight: 400;
    letter-spacing: -1px;
}

.gradient-word {
    background: linear-gradient(135deg, var(--verde-pastel), var(--verde-oscuro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.italic-em {
    font-style: italic;
    font-family: 'Poppins', serif;
    background: linear-gradient(135deg, var(--verde-pastel), var(--verde-oscuro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ========== DESCRIPCIÓN ========== */
.bloom-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 1.8rem;
}

/* ========== STATS ========== */
.port-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: fit-content;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--verde-oscuro);
    line-height: 1;
}
[data-theme="dark"] .stat-num { color: var(--verde-pastel); }
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.3rem;
}
.stat-divider {
    width: 1px;
    height: 35px;
    background: var(--border);
}

/* ========== BOTONES HERO (Bloom style) ========== */
.hero-ctas {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-retro {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all .3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary-retro {
    background: #C4B5FD;
    color: #312E81;
    border: 1px solid rgba(167, 139, 250, 0.3);
}
.btn-primary-retro:hover {
    background: #A78BFA;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.35);
}

.btn-secondary-retro {
    background: #fff;
    color: #1F2937;
    border: 1px solid #E5E7EB;
}
.btn-secondary-retro:hover {
    border-color: var(--verde-pastel);
    color: var(--verde-oscuro);
    transform: translateY(-2px);
}
[data-theme="dark"] .btn-secondary-retro {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}
[data-theme="dark"] .btn-secondary-retro:hover { 
    color: var(--verde-pastel); 
    border-color: var(--verde-pastel);
}

/* ========== CHIPS TRUST ========== */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4B5563;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
[data-theme="dark"] .chip {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}
.chip i {
    color: #22C55E;
    font-size: 0.8rem;
}
.chip:nth-child(2) i { color: #FACC15; }
.chip:nth-child(3) i { color: #6B7280; }

/* ============================================
   ESCENA HERO (pipe + flor + nubes + colinas)
   ============================================ */
.bloom-right {
    position: relative;
    min-height: 420px;
}

.bloom-scene {
    position: relative;
    width: 100%;
    height: 420px;
    background: linear-gradient(180deg, #E8F0FF 0%, #F0F4FF 100%);
    border-radius: 24px;
    overflow: hidden;
}
[data-theme="dark"] .bloom-scene {
    background: linear-gradient(180deg, #0F1B35 0%, #101829 100%);
}

/* Nubes */
.sky-cloud {
    position: absolute;
    background: #fff;
    border-radius: 50px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
    animation: floatCloud 7s ease-in-out infinite;
}
.sky-cloud::before, 
.sky-cloud::after {
    content: ''; 
    position: absolute; 
    background: #fff; 
    border-radius: 50%;
}
.cloud-1 { width: 70px; height: 26px; top: 18%; left: 18%; }
.cloud-1::before { width: 26px; height: 26px; top: -12px; left: 12px; }
.cloud-1::after { width: 20px; height: 20px; top: -10px; right: 12px; }

.cloud-2 { width: 55px; height: 22px; top: 22%; right: 20%; animation-delay: 2.5s; }
.cloud-2::before { width: 22px; height: 22px; top: -10px; left: 10px; }
.cloud-2::after { width: 18px; height: 18px; top: -8px; right: 10px; }

@keyframes floatCloud {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Colinas pastel claras */
.hill {
    position: absolute;
    bottom: 0;
    box-shadow: inset -12px -8px 20px rgba(0,0,0,0.05);
}
.hill-back {
    width: 70%;
    height: 50%;
    left: -10%;
    background: linear-gradient(180deg, #C1F0D5 0%, #A6E6BE 100%);
    border-radius: 55% 55% 0 0;
    z-index: 1;
}
.hill-front {
    width: 75%;
    height: 42%;
    right: -15%;
    background: linear-gradient(180deg, #A6E6BE 0%, #7ED7A6 100%);
    border-radius: 55% 55% 0 0;
    z-index: 2;
}

/* Ocultar monitor e íconos en hero (solo pipe + flor) */
.port-hero .monitor-scene,
.port-hero .float-icon {
    display: none;
}

/* Pipe Mario */
.pipe-scene {
    position: absolute;
    bottom: 22%;
    left: 28%;
    z-index: 3;
    animation: pipeBounce 3.5s ease-in-out infinite;
}

.pipe-top {
    width: 72px;
    height: 22px;
    background: linear-gradient(180deg, #6FCB9A 0%, #2B7A54 100%);
    border-radius: 6px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.18);
    position: relative;
}
.pipe-top::before {
    content: '';
    position: absolute;
    top: 4px; 
    left: 8px;
    width: 8px; 
    height: 14px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.pipe-body {
    width: 58px;
    height: 70px;
    background: linear-gradient(180deg, #2B7A54 0%, #1A5C3C 100%);
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
    box-shadow: inset -6px 0 12px rgba(0,0,0,0.25);
    position: relative;
}
.pipe-body::before {
    content: '';
    position: absolute;
    top: 6px; 
    left: 6px;
    width: 5px; 
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}
@keyframes pipeBounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Flor rosa con centro amarillo */
.flower {
    position: absolute;
    bottom: 24%;
    right: 30%;
    z-index: 3;
    animation: swayFlower 3.5s ease-in-out infinite;
}
.flower-stem {
    width: 4px;
    height: 55px;
    background: linear-gradient(180deg, #6FCB9A, #2B7A54);
    margin: 0 auto;
    border-radius: 3px;
}
.flower-head {
    width: 32px;
    height: 32px;
    background: #FFB3D9;
    border-radius: 50%;
    margin: -14px auto 0;
    box-shadow: 0 4px 12px rgba(255, 179, 217, 0.5);
    position: relative;
}
.flower-head::before {
    content: '';
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%,-50%);
    width: 10px; 
    height: 10px;
    background: #FFD86A;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 216, 106, 0.5);
}
@keyframes swayFlower {
    0%,100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

/* Sparkles sutiles */
.sparkle {
    position: absolute;
    font-size: 1rem;
    z-index: 4;
    opacity: 0.5;
    animation: sparkleFloat 2.5s infinite;
}
.sp1 { top: 15%; right: 32%; animation-delay: 0s; }
.sp2 { top: 45%; left: 10%; font-size: 0.9rem; animation-delay: 0.8s; }
@keyframes sparkleFloat {
    0%,100% { opacity: 0.3; transform: scale(0.7) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(15deg); }
}

/* ============================================
   PICK YOUR PATCH (sección intermedia Bloom)
   ============================================ */
.pick-patch {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 1rem;
}

.section-head-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}
.section-head-center p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ============================================
   FILTROS
   ============================================ */
.filters-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
}

.filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.fb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all .3s;
    border-radius: 50px;
    white-space: nowrap;
}
.fb i { font-size: 0.85rem; }
.fb:hover {
    border-color: var(--verde-pastel);
    color: var(--verde-oscuro);
}
[data-theme="dark"] .fb:hover { color: var(--verde-pastel); }

.fb.on {
    background: linear-gradient(135deg, var(--verde-pastel), #4FAF7F);
    color: var(--azul-marino);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(126, 215, 166, 0.4);
}

.fb:focus-visible,
.btn-retro:focus-visible {
    outline: 2px solid var(--verde-pastel);
    outline-offset: 3px;
}

/* ============================================
   PROYECTOS GRID
   ============================================ */
.projects-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.3rem;
}

.project-card {
    border-radius: 24px;
    padding: 1.3rem;
    border: 1px solid var(--border);
    transition: all .4s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: none;
}
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* Variantes de color (Bloom pastel) */
.card-mint  { background: linear-gradient(180deg, #E8FFF0 0%, #C4FFD9 100%); }
.card-lilac { background: linear-gradient(180deg, #F0E8FF 0%, #DDD0FF 100%); }
.card-blue  { background: linear-gradient(180deg, #E8F4FF 0%, #D0E8FF 100%); }
.card-peach { background: linear-gradient(180deg, #FFF1E0 0%, #FFE0C4 100%); }
.card-coral { background: linear-gradient(180deg, #FFE5E5 0%, #FFCFCF 100%); }
.card-pink  { background: linear-gradient(180deg, #FFE8F5 0%, #FFD0E8 100%); }

[data-theme="dark"] .card-mint  { background: linear-gradient(180deg, #0F2A1A 0%, #081F12 100%); }
[data-theme="dark"] .card-lilac { background: linear-gradient(180deg, #1F1A2E 0%, #15102A 100%); }
[data-theme="dark"] .card-blue  { background: linear-gradient(180deg, #0F1B35 0%, #152442 100%); }
[data-theme="dark"] .card-peach { background: linear-gradient(180deg, #2A1F15 0%, #1F160D 100%); }
[data-theme="dark"] .card-coral { background: linear-gradient(180deg, #2A1515 0%, #1F0D0D 100%); }
[data-theme="dark"] .card-pink  { background: linear-gradient(180deg, #2A1522 0%, #1F0D1A 100%); }

.proj-tag {
    display: inline-block;
    background: rgba(255,255,255,0.7);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--azul-marino);
    margin-bottom: 1rem;
    width: fit-content;
}
[data-theme="dark"] .proj-tag { 
    background: rgba(0,0,0,0.3); 
    color: var(--verde-pastel); 
}

/* Mockup retro con barras */
.mockup-retro {
    width: 100%;
    height: 170px;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="dark"] .mockup-retro { background: var(--bg-card); }

.bars-bg {
    position: absolute;
    inset: 0;
    background-size: 10px 100%;
    opacity: 0.4;
}
.bars-mint  { background-image: repeating-linear-gradient(90deg, #7ED7A6 0px, #7ED7A6 4px, transparent 4px, transparent 10px); }
.bars-lilac { background-image: repeating-linear-gradient(90deg, #C4B5FD 0px, #C4B5FD 4px, transparent 4px, transparent 10px); }
.bars-blue  { background-image: repeating-linear-gradient(90deg, #A8D8FF 0px, #A8D8FF 4px, transparent 4px, transparent 10px); }
.bars-peach { background-image: repeating-linear-gradient(90deg, #FFB88C 0px, #FFB88C 4px, transparent 4px, transparent 10px); }
.bars-coral { background-image: repeating-linear-gradient(90deg, #FF9E9E 0px, #FF9E9E 4px, transparent 4px, transparent 10px); }
.bars-pink  { background-image: repeating-linear-gradient(90deg, #FF9ECB 0px, #FF9ECB 4px, transparent 4px, transparent 10px); }

.placeholder-sm {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    margin: 1.5rem;
    height: calc(100% - 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .placeholder-sm { background: rgba(0,0,0,0.4); }
.placeholder-sm i {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--verde-pastel);
}
.placeholder-sm small {
    font-size: 0.75rem;
    font-weight: 600;
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}
.project-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

/* Chips stack */
.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.chip-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.6);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
[data-theme="dark"] .chip-tag { background: rgba(0,0,0,0.3); }
.chip-tag.highlight-chip {
    background: var(--verde-pastel);
    color: var(--azul-marino);
    border-color: transparent;
    font-weight: 700;
}

/* Metrics */
.proj-metrics {
    display: flex;
    gap: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .proj-metrics { border-top-color: rgba(255,255,255,0.06); }

.metric {
    display: flex;
    flex-direction: column;
}
.metric-num {
    font-size: 1rem;
    font-weight: 900;
    color: var(--verde-oscuro);
    line-height: 1;
}
[data-theme="dark"] .metric-num { color: var(--verde-pastel); }
.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Card Próximamente */
.card-coming {
    background: transparent;
    border: 2px dashed var(--verde-pastel);
    opacity: 0.8;
    transition: .3s;
}
.card-coming:hover {
    opacity: 1;
    background: rgba(126,215,166,0.05);
    transform: translateY(-5px);
}
.coming-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 380px;
    gap: 0.8rem;
}
.plus-icon {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--verde-pastel);
    line-height: 1;
    margin-bottom: 1rem;
}
.coming-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--verde-oscuro);
    background: rgba(126,215,166,0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 1px;
}
[data-theme="dark"] .coming-tag { color: var(--verde-pastel); }
.card-coming h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.card-coming p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 220px;
    text-align: center;
}

/* ============================================
   MOCKUP VIDEO
   ============================================ */
.mockup-video {
    background: linear-gradient(135deg, #1F0D0D 0%, #2A1515 100%);
}
.video-preview {
    position: relative;
    z-index: 2;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    margin: 1rem;
    background: linear-gradient(135deg, #2A1515, #0F0F1A);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.video-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255,158,158,0.2), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,216,106,0.15), transparent 50%);
    animation: videoGlow 3s ease-in-out infinite;
}
@keyframes videoGlow {
    0%,100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.video-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #FF9ECB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    box-shadow: 
        0 8px 20px rgba(255,107,157,0.5),
        inset 0 -4px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
    animation: playPulse 2s ease-in-out infinite;
    padding-left: 3px;
}
@keyframes playPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.video-timeline {
    width: 75%;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.timeline-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #FF9ECB, #FFD86A);
    border-radius: 10px;
    animation: timelineProgress 3s ease-in-out infinite;
}
@keyframes timelineProgress {
    0% { width: 10%; }
    50% { width: 75%; }
    100% { width: 100%; }
}

/* ============================================
   MOCKUP CANVA
   ============================================ */
.mockup-canva {
    background: linear-gradient(135deg, #FFF0F8 0%, #FFE0ED 100%);
}
[data-theme="dark"] .mockup-canva {
    background: linear-gradient(135deg, #1F0D1A 0%, #2A1522 100%);
}
.canva-grid {
    position: relative;
    z-index: 2;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    margin: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}
.canva-tile {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    animation: tileFloat 3s ease-in-out infinite;
}
.canva-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
}
.canva-tile::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 15%;
    right: 15%;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    box-shadow: 0 6px 0 rgba(255,255,255,0.3);
}
.t1 { background: linear-gradient(135deg, #FF9ECB, #E980B2); animation-delay: 0s; }
.t2 { background: linear-gradient(135deg, #A8D8FF, #4DABF7); animation-delay: 0.3s; }
.t3 { background: linear-gradient(135deg, #FFD86A, #FFB347); animation-delay: 0.6s; }
.t4 { background: linear-gradient(135deg, #B19CD9, #9B8CE0); animation-delay: 0.9s; }
@keyframes tileFloat {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.02); }
}

/* ============================================
   EXISTING DASHBOARD SECTION (But what if...)
   ============================================ */
.existing-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 900px) {
    .showcase-grid { grid-template-columns: 1fr; }
}

.showcase-text .mini-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(126,215,166,0.15);
    color: var(--verde-oscuro);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(126,215,166,0.3);
}
[data-theme="dark"] .showcase-text .mini-tag { color: var(--verde-pastel); }

.dot-live {
    width: 7px; 
    height: 7px;
    background: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 8px #22C55E;
    animation: livePulse 1.5s infinite;
}

.showcase-text p {
    color: var(--text-muted);
    margin: 1rem 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.showcase-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}
.showcase-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
}
.showcase-list i {
    color: var(--verde-pastel);
    font-size: 1.1rem;
}

/* Dashboard Mockup animado */
.dashboard-mockup {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
}
.dash-header {
    background: var(--bg-body);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.dash-dot {
    width: 10px; 
    height: 10px;
    border-radius: 50%;
}
.dash-dot:nth-child(1) { background: #FF6B6B; }
.dash-dot:nth-child(2) { background: #FFD93D; }
.dash-dot:nth-child(3) { background: #6BCB77; }
.dash-url {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}
.dash-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1rem;
}
.dash-metric {
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.m1 { background: linear-gradient(135deg, #E8FFF0, #C4FFD9); }
.m2 { background: linear-gradient(135deg, #E8F4FF, #D0E8FF); }
[data-theme="dark"] .m1 { background: linear-gradient(135deg, #0F2A1A, #081F12); }
[data-theme="dark"] .m2 { background: linear-gradient(135deg, #0F1B35, #152442); }

.dash-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--verde-oscuro);
    line-height: 1;
}
[data-theme="dark"] .dash-val { color: var(--verde-pastel); }
.dash-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-chart {
    grid-column: 1 / -1;
    background: var(--bg-body);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    gap: 0.4rem;
}
.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--verde-pastel), var(--verde-oscuro));
    border-radius: 6px 6px 0 0;
    animation: chartRise 1.5s ease-out;
    transition: all 0.3s;
}
.chart-bar:hover {
    background: linear-gradient(180deg, #A78BFA, #6D28D9);
    transform: scaleY(1.05);
    transform-origin: bottom;
}
.b1 { height: 30%; animation-delay: 0s; }
.b2 { height: 50%; animation-delay: 0.1s; }
.b3 { height: 70%; animation-delay: 0.2s; }
.b4 { height: 45%; animation-delay: 0.3s; }
.b5 { height: 85%; animation-delay: 0.4s; }
.b6 { height: 60%; animation-delay: 0.5s; }
.b7 { height: 95%; animation-delay: 0.6s; }
@keyframes chartRise {
    from { height: 0; }
}

/* ============================================
   STACK SECTION
   ============================================ */
.stack-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}
.stack-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    transition: .3s;
    text-align: center;
}
.stack-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--verde-pastel);
}
.s-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.1));
}
.stack-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--text-primary);
}
.stack-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
    max-width: 900px;
    margin: 4rem auto 2rem;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-dark);
    color: var(--beige);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: '';
    position: absolute;
    top: -30%; 
    left: -10%;
    width: 500px; 
    height: 500px;
    background: radial-gradient(circle, var(--verde-pastel) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(60px);
}
.cta-final h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.2;
}
.cta-final h2 em {
    font-style: italic;
    color: var(--verde-pastel);
}
.cta-sub {
    opacity: 0.85;
    margin-bottom: 2rem;
    position: relative;
    font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer.footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}
footer.footer strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
html {
    scroll-behavior: smooth;
}

@media (max-width: 1024px) {
    .port-hero .retro-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 768px) {
    .port-hero {
        padding-top: 100px;
    }
    .port-hero .bloom-scene {
        min-height: 320px;
        height: 320px;
    }
    .pipe-scene {
        left: 28%;
    }
    .flower {
        right: 28%;
    }
}

@media (max-width: 600px) {
    .port-hero { 
        padding: 100px 1rem 20px; 
    }
    .hero-bloom-card { 
        padding: 2rem 1.5rem; 
    }
    .filter-bar { 
        padding: 0.8rem; 
    }
    .fb { 
        font-size: 0.75rem; 
        padding: 0.5rem 0.9rem; 
    }
    .projects-grid { 
        grid-template-columns: 1fr; 
        gap: 1rem; 
    }
    .project-card { 
        padding: 1.2rem; 
    }
    .bloom-scene { 
        min-height: 300px; 
        height: 300px;
    }
    .port-stats { 
        padding: 1rem; 
        gap: 0.8rem; 
    }
    .stat-num { 
        font-size: 1.2rem; 
    }
    .stat-label { 
        font-size: 0.7rem; 
    }
    .stat-divider { 
        height: 28px; 
    }
}

@media (max-width: 500px) {
    .port-hero .retro-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    .port-hero .bloom-desc {
        font-size: 0.95rem;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .hero-ctas .btn-retro {
        width: 100%;
        justify-content: center;
    }
    .bloom-scene {
        min-height: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .proj-metrics { 
        flex-direction: column; 
        gap: 0.5rem; 
    }
    .metric { 
        flex-direction: row; 
        gap: 0.5rem; 
        align-items: baseline; 
    }
    .chip-tag { 
        font-size: 0.65rem; 
        padding: 0.2rem 0.55rem; 
    }
}