@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.7);
    --text-main: #e0e0e0;
    --text-muted: #8b8b8b;
    --gold: #d4af37;
    --gold-muted: #9e8125;
    --border-color: rgba(212, 175, 55, 0.2);
    
    --font-heading: 'Cinzel', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #151515 0%, #050505 50%);
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; color: #fff; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: linear-gradient(180deg, rgba(15,15,15,0.98) 0%, rgba(5,5,5,0.92) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 -1px 15px rgba(212,175,55,0.05);
    padding: 15px 0;
    transition: padding 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-content {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand-signature-img { height: 140px; filter: brightness(0) invert(1); transition: height 0.3s ease, transform 0.3s ease; }
.brand-signature-img:hover { transform: scale(1.05); }
.nav-links { display: flex; gap: 45px; align-items: center; transition: gap 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.nav-item { font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); position: relative; }
.nav-item:hover, .nav-item.active { color: var(--gold); }
.nav-item::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background-color: var(--gold); transition: width 0.3s ease;
}
.nav-item:hover::after, .nav-item.active::after { width: 100%; }

.nav-btn {
    padding: 8px 20px; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase;
    border: 1px solid var(--gold); color: var(--gold); border-radius: 30px;
    transition: all 0.3s ease;
}
.nav-btn:hover, .nav-btn.active { background: var(--gold); color: var(--bg-dark); }

/* UTIL */
.container { max-width: 1200px; margin: 0 auto; padding: 190px 20px 40px; transition: padding-top 0.3s ease; }

/* FADE ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* GLASSMORPHISM CARDS */
.glass-card {
    background: rgba(25, 25, 25, 0.4); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px;
    padding: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.glass-card:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.3); }

/* HERO SECTIONS (Index) */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; padding: 0 20px;
    background: linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,1) 100%), url('assets/aura_mine.png') center/cover;
}
.hero::before { content:''; position:absolute; inset:0; background: rgba(0,0,0,0.6); }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-label { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero-title { font-size: 5rem; letter-spacing: 5px; margin-bottom: 20px; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.hero-subtitle { font-family: var(--font-serif); font-size: 1.8rem; color: #ccc; font-weight: 300; line-height: 1.5; margin-bottom: 40px; font-style: italic; }
.btn-primary {
    display: inline-block; padding: 15px 40px; background: transparent; border: 1px solid var(--gold);
    color: var(--gold); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.9rem; transition: all 0.4s ease; cursor: pointer;
}
.btn-primary:hover { background: var(--gold); color: var(--bg-dark); }

/* ARTICLE LAYOUTS */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin: 80px 0; }
.article-grid.reverse { direction: rtl; }
.article-grid.reverse > * { direction: ltr; }
.article-img-wrap { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.article-img-wrap::after { content:''; position:absolute; inset:0; border: 1px solid rgba(212,175,55,0.2); pointer-events:none; border-radius: 8px; }

.article-text h2 { font-size: 2.5rem; color: var(--gold); margin-bottom: 30px; letter-spacing: 1px; }
.article-text p { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.8; color: #d1d5db; margin-bottom: 25px; }
.article-text .dropcap:first-letter { font-family: var(--font-heading); font-size: 4rem; color: var(--gold); float: left; line-height: 0.8; padding-top: 4px; padding-right: 15px; }

/* PULL QUOTES */
.pull-quote {
    text-align: center; max-width: 800px; margin: 100px auto; padding: 40px 0;
    border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.pull-quote p { font-family: var(--font-serif); font-size: 2.2rem; font-style: italic; color: var(--gold); line-height: 1.4; }

/* TIMELINE PREMIUM */
.premium-timeline { position: relative; margin: 80px 0; padding-left: 40px; }
.premium-timeline::before { content:''; position:absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--gold), transparent); }
.timeline-block { position: relative; padding: 40px; margin-bottom: 40px; background: rgba(20,20,20,0.5); border: 1px solid rgba(255,255,255,0.03); border-radius: 8px; transition: all 0.3s ease; }
.timeline-block:hover { border-color: rgba(212,175,55,0.3); background: rgba(30,30,30,0.6); }
.timeline-block::before { content:''; position:absolute; left: -44px; top: 40px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.timeline-date { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; display: block; }
.timeline-role { font-family: var(--font-heading); font-size: 1.8rem; color: #fff; margin-bottom: 5px; }
.timeline-company { font-family: var(--font-serif); font-size: 1.3rem; color: #aaa; font-style: italic; margin-bottom: 20px; }
.timeline-desc { font-family: var(--font-serif); font-size: 1.15rem; color: #ccc; line-height: 1.7; }

/* PROJECTS GRID */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin: 80px 0; }
.project-card { border-radius: 8px; overflow: hidden; position: relative; group; }
.project-img { width: 100%; height: 350px; object-fit: cover; filter: brightness(0.4) grayscale(50%); transition: all 0.6s ease; }
.project-card:hover .project-img { filter: brightness(0.8) grayscale(0%); transform: scale(1.03); }
.project-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 30px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.project-info h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--gold); }
.project-info p { font-family: var(--font-serif); font-size: 1.1rem; color: #ddd; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; }
.project-card:hover .project-info p { opacity: 1; transform: translateY(0); }
.project-tags { margin-top: 15px; display: flex; gap: 10px; flex-wrap: wrap; opacity: 0; transition: all 0.4s ease 0.1s; }
.project-card:hover .project-tags { opacity: 1; }
.tag { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border: 1px solid rgba(212,175,55,0.5); color: var(--gold); border-radius: 20px; }

/* UTILS & ANIMATIONS */
@keyframes slowBreath {
    0% { transform: scale(1); filter: grayscale(50%); }
    50% { transform: scale(1.02); filter: grayscale(30%); }
    100% { transform: scale(1); filter: grayscale(50%); }
}
.article-img-wrap img { width: 100%; display: block; animation: slowBreath 8s infinite ease-in-out; transition: filter 1s ease, transform 1s ease; }
.article-img-wrap:hover img { filter: grayscale(0%) !important; transform: scale(1.05) !important; animation: none; }

.text-center { text-align: center; }
.page-header { text-align: center; margin: 80px 0; }
.page-header h1 { 
    font-family: var(--font-heading); 
    font-size: 4.5rem; 
    color: var(--gold); 
    letter-spacing: 4px; 
    margin-bottom: 25px; 
    font-weight: 400;
    text-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    background: linear-gradient(to right, #fff, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-header p { font-family: var(--font-serif); font-size: 1.6rem; color: #a1a1aa; font-style: italic; max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* FOOTER */
footer { text-align: center; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; color: #555; margin-top: 100px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .article-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 3rem; }
    .page-header h1 { font-size: 3rem; }
    
    .nav-content { flex-direction: column; gap: 15px; padding: 10px; align-items: center; }
    .brand-signature-img { height: 110px; }
    .nav-links { 
        display: flex; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        width: 100%; 
        justify-content: flex-start;
        padding-bottom: 10px; 
        gap: 25px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-item, .nav-btn { white-space: nowrap; font-size: 0.85rem; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.2rem; letter-spacing: 2px; }
    .page-header h1 { font-size: 2.2rem; letter-spacing: 2px; margin-bottom: 15px; }
    .page-header p { font-size: 1.1rem; padding: 0 10px; }
    .brand-signature-img { height: 80px; }
    .nav-item, .nav-btn { font-size: 0.75rem; padding: 6px 12px; }
}

/* SCADA PRESERVACION */
.page-dashboard { font-family: 'Share Tech Mono', monospace !important; background: linear-gradient(135deg, #010409 0%, #0d1117 100%) !important; color: #c9d1d9 !important; }
.page-dashboard h1, .page-dashboard h2, .page-dashboard h3, .page-dashboard .card-header { font-family: 'Share Tech Mono', monospace !important; color: #c9d1d9 !important; letter-spacing: normal; text-shadow: none; background: none; -webkit-text-fill-color: initial; }
.page-dashboard .scada-section-title { color: #c9d1d9 !important; letter-spacing: 1px; }
.page-dashboard .scada-card { 
    background: rgba(13, 17, 23, 0.6); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(48, 54, 61, 0.5); 
    border-top: 4px solid rgba(88, 166, 255, 0.6); 
    border-radius: 12px; 
    padding: 20px; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-dashboard .scada-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px 0 rgba(88, 166, 255, 0.15);
}
.page-dashboard .kpi-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; color: #8b949e; align-items: center; }
.page-dashboard .scada-val { font-weight: bold; font-size: 1rem; color: #58a6ff; }
.page-dashboard .val-green { color: #3fb950; text-shadow: 0 0 8px rgba(63, 185, 80, 0.4); } .page-dashboard .val-red { color: #f85149; text-shadow: 0 0 8px rgba(248, 81, 73, 0.4); } .page-dashboard .val-gold { color: #e3b341; text-shadow: 0 0 8px rgba(227, 179, 65, 0.4); } .page-dashboard .val-blue { color: #58a6ff; text-shadow: 0 0 8px rgba(88, 166, 255, 0.4); }
.page-dashboard .expert-card { 
    border-top: 4px solid #d4af37 !important; 
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(13, 17, 23, 0.8) 100%) !important; 
}
.page-dashboard .expert-card:hover {
    box-shadow: 0 12px 40px 0 rgba(212, 175, 55, 0.2);
}
.page-dashboard .cam-card { text-align: center; padding: 15px; border-top-color: #58a6ff; }
.scada-container { max-width: 1600px; margin: 190px auto 40px; padding: 20px; font-family: 'Share Tech Mono', monospace; transition: margin-top 0.3s ease; }
.scada-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(48, 54, 61, 0.5); padding-bottom: 20px; margin-bottom: 10px; }
.status-badge { padding: 6px 18px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s ease; }
.scada-section-title { font-size: 1.4rem; border-left: 4px solid #58a6ff; padding-left: 15px; margin: 40px 0 20px 0; text-shadow: 0 0 10px rgba(88, 166, 255, 0.3); }
.scada-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.scada-grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.tank-container { width: 100%; } .t-bar { background: rgba(33, 38, 45, 0.6); border-radius: 6px; position: relative; overflow: hidden; box-shadow: inset 0 2px 6px rgba(0,0,0,0.5); } .t-fill { height: 100%; background: linear-gradient(90deg, #2ea043, #3fb950); transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s, height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.tanks-grid { display: flex; gap: 12px; justify-content: space-between; align-items: flex-end; height: 100px; margin-top: 20px; }
.t-item { display: flex; flex-direction: column; align-items: center; flex: 1; } .t-item .t-bar { width: 24px; height: 80px; display: flex; align-items: flex-end; } .t-item .t-fill { width: 100%; background: linear-gradient(0deg, #2ea043, #3fb950); } .t-item .t-lbl { font-size: 0.75rem; color: #c9d1d9; margin-top: 8px; font-weight: bold; }
.status-box { padding: 15px; border-radius: 8px; border: 1px solid rgba(48, 54, 61, 0.8); background: rgba(1, 4, 9, 0.5); margin-bottom: 20px; text-align: center; box-shadow: inset 0 2px 10px rgba(0,0,0,0.3); transition: all 0.3s ease; }
.cam-header { font-size: 0.85rem; color: #c9d1d9; margin-bottom: 8px; font-weight: bold; } .cam-color { width: 100%; height: 20px; border-radius: 6px; margin-bottom: 12px; background: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.4); } .cam-stat { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 6px; }

/* CATALOG LAYOUT FOR INNOVATION */
.catalog-item { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin: 120px 0; }
.catalog-item.reverse { direction: rtl; }
.catalog-item.reverse > * { direction: ltr; }
.catalog-img-wrap { 
    position: relative; 
    border-radius: 4px; 
    padding: 10px; 
    border: 1px solid rgba(212,175,55,0.3); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    background: #0a0a0a;
}
.catalog-img-wrap img { 
    width: 100%; 
    display: block; 
    filter: grayscale(80%) sepia(20%) brightness(0.7); 
    transition: all 1s ease; 
    border-radius: 2px;
}
.catalog-img-wrap:hover img { 
    filter: grayscale(0%) sepia(0%) brightness(1); 
    transform: scale(1.02); 
}
.catalog-text h2 { 
    font-family: var(--font-heading); 
    font-size: 3.5rem; 
    color: var(--gold); 
    margin-bottom: 20px; 
    line-height: 1.1; 
}
.catalog-text hr { 
    border: none; 
    border-top: 1px solid rgba(212,175,55,0.2); 
    width: 50px; 
    margin-bottom: 30px; 
}
.catalog-text p { 
    font-family: var(--font-serif); 
    font-size: 1.4rem; 
    color: #c1c1c1; 
    line-height: 1.7; 
    margin-bottom: 25px; 
}
.catalog-tags { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}
/* HMI FLOWSHEET */
.hmi-flowsheet {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: relative;
    font-family: 'Share Tech Mono', monospace;
}

.hmi-stage {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hmi-pipe-vertical {
    width: 6px;
    background: linear-gradient(90deg, #1f2428 0%, #58a6ff 50%, #1f2428 100%);
    box-shadow: 0 0 10px rgba(88,166,255,0.5);
    position: relative;
    z-index: 1;
}

.hmi-pipe-horizontal {
    height: 6px;
    background: linear-gradient(0deg, #1f2428 0%, #58a6ff 50%, #1f2428 100%);
    box-shadow: 0 0 10px rgba(88,166,255,0.5);
    position: relative;
    z-index: 1;
}

.hmi-node {
    background: rgba(13, 17, 23, 0.85);
    border: 2px solid #58a6ff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(88,166,255,0.15);
    position: relative;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.hmi-node-title {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
    padding-bottom: 5px;
    color: #fff;
    letter-spacing: 1px;
}








/* =========================================
   F1 TELEMETRY SCADA (Red Bull Racing Theme)
   ========================================= */
.hmi-premium-board {
    position: relative;
    width: 100%;
    min-width: unset;
    padding: 30px 40px;
    /* Red Bull Carbon / Navy */
    background: #111827; 
    background-image: 
        linear-gradient(rgba(31,41,55, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31,41,55, 0.5) 1px, transparent 1px);
    background-size: 50px 50px;
    border-radius: 12px;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hmi-premium-board::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(232,0,32,0.02) 0%, rgba(2,11,28,0) 70%);
    pointer-events: none;
}

/* F1 Typography */
.f1-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0 #000;
}

.f1-val {
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    color: #FDE100; /* Red Bull Yellow */
    font-size: 1.1rem;
}
.f1-val.red { color: #E80020; }
.f1-val.cyan { color: #00e5ff; }
.f1-val.green { color: #00ff66; }

/* F1 Telemetry Panels (Skewed) */
.f1-panel {
    background: rgba(31, 41, 55, 0.85);
    backdrop-filter: blur(8px);
    border: 2px solid #0B1B36;
    border-top: 3px solid #E80020; /* Red Bull Red Accent */
    padding: 12px 15px;
    color: #c9d1d9;
    font-size: 0.85rem;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.7);
    width: 100%;
    min-width: 220px;
    z-index: 10;
    transform: skewX(-8deg); /* Speed slant */
}
.f1-panel > * { transform: skewX(8deg); } /* Un-skew content */

.f1-panel.expert { border-top-color: #FDE100; }
.f1-panel.flot { border-top-color: #00e5ff; }

.f1-row {
    display: flex; justify-content: space-between; margin-bottom: 4px;
    align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px;
}
.f1-row:last-child { border-bottom: none; }
.f1-lbl { color: #8b949e; text-transform: uppercase; font-size: 0.75rem; font-weight: bold; }

/* RACING LINES (Pipes) */
.p-pipe-v, .p-pipe-h {
    background: rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}
.p-pipe-v { width: 4px; margin: 0 auto; }
.p-pipe-h { height: 4px; }

.pipe-flow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #00e5ff; /* Laser cyan */
    box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
    border-radius: 4px;
}
.pipe-flow.f-red { background: #E80020; box-shadow: 0 0 10px #E80020, 0 0 20px #E80020; }
.pipe-flow.f-yellow { background: #FDE100; box-shadow: 0 0 10px #FDE100, 0 0 20px #FDE100; }
.pipe-flow.f-green { background: #00ff66; box-shadow: 0 0 10px #00ff66, 0 0 20px #00ff66; }
.pipe-flow.f-gray { background: #8b949e; box-shadow: 0 0 5px #8b949e; }

/* MILL AS ENGINE BLOCK */
.t-engine {
    width: 160px; height: 80px;
    background: linear-gradient(135deg, #151e2b 0%, #0a0f18 100%);
    border: 2px solid #0B1B36;
    border-bottom: 4px solid #E80020;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    margin-bottom: -15px; /* Overlap slightly with panel */
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    transform: skewX(-8deg);
    z-index: 15;
}
.t-engine > * { transform: skewX(8deg); }
.t-engine.expert { border-bottom-color: #FDE100; }

.rpm-indicator {
    display: flex; gap: 4px; padding: 5px 10px; background: rgba(0,0,0,0.5); border-radius: 4px;
}
.rpm-led { width: 10px; height: 20px; background: #333; border-radius: 2px; }
@keyframes rpmPulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
.rpm-led.active { animation: rpmPulse 0.5s infinite; }

/* RPM LED FOAM TANKS */
.led-tank-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 15px;
}
.led-tank-col {
    display: flex; flex-direction: column; align-items: center;
}
.led-bar-wrap {
    width: 100%; height: 24px; background: #0b1524; border: 1px solid #1a2a44;
    border-radius: 4px; position: relative; overflow: hidden; transform: skewX(-15deg);
}
.led-bar-fill {
    position: absolute; top: 0; left: 0; bottom: 0; width: 0%;
    background: linear-gradient(90deg, #00ff66 0%, #FDE100 70%, #E80020 100%);
    box-shadow: 0 0 10px rgba(255,255,255,0.5) inset;
    transition: width 0.3s;
}
.led-lbl { color: #fff; font-size: 0.7rem; font-weight: bold; margin-top: 4px; text-transform: uppercase; }

/* Status Box */
.f1-status {
    text-align: center; padding: 5px; margin-bottom: 8px;
    background: rgba(0,0,0,0.4); border: 1px solid #1a2a44; font-weight: bold; font-family: 'Outfit';
    color: #fff;
}

/* =========================================
   F1 TELEMETRY SCADA (Exact Image Match)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Rajdhani:wght@500;700&display=swap');

.hmi-premium-board {
    position: relative;
    width: 100%;
    min-width: unset;
    padding: 30px 40px;
    background: #0f1015; /* Exact dark background from image */
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

/* F1 Typography */
.f1-title {
    font-family: 'Michroma', sans-serif; /* Wide futuristic font like the image */
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.f1-val {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #ffffff; /* Default white for numbers */
    font-size: 1.2rem;
}
.f1-val.red { color: #d62828; }
.f1-val.cyan { color: #ffffff; } /* Reverted cyan to white for clean look */
.f1-val.green { color: #00ff41; } /* Exact F1 neon green */
.f1-val.yellow { color: #f9a826; }

/* F1 Telemetry Panels (Clean, flat, red top border) */
.f1-panel {
    background: transparent;
    border-top: 2px solid #d62828; /* Thin red border from the image */
    border-radius: 4px;
    padding: 15px 20px;
    color: #c9d1d9;
    font-size: 0.9rem;
    width: 100%;
    min-width: 220px;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}
.f1-panel.flot, .f1-panel.expert {
    border-top-color: #d62828;
}

.f1-row {
    display: flex; justify-content: space-between; margin-bottom: 6px;
    align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px;
}
.f1-row:last-child { border-bottom: none; }
.f1-lbl { color: #8b949e; text-transform: capitalize; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px; }

/* RACING LINES (Pipes - simplified) */
.p-pipe-v, .p-pipe-h {
    background: rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}
.p-pipe-v { width: 2px; margin: 0 auto; }
.p-pipe-h { height: 2px; }

.pipe-flow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #58a6ff; 
    border-radius: 2px;
}
.pipe-flow.f-red { background: #d62828; }
.pipe-flow.f-yellow { background: #f9a826; }
.pipe-flow.f-green { background: #00ff41; }
.pipe-flow.f-gray { background: #8b949e; }

/* MILL AS ENGINE BLOCK (Cleaned up) */
.t-engine {
    width: 160px; height: 50px;
    background: transparent;
    border-bottom: 2px solid #58a6ff;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    margin-bottom: 5px; 
    z-index: 15;
}
.t-engine.expert { border-bottom-color: #f9a826; }

/* LED TANKS (Cleaned up) */
.led-tank-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 15px;
}
.led-tank-col {
    display: flex; flex-direction: column; align-items: center;
}
.led-bar-wrap {
    width: 100%; height: 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px; position: relative; overflow: hidden;
}
.led-bar-fill {
    position: absolute; top: 0; left: 0; bottom: 0; width: 0%;
    background: #00ff41; /* Default to F1 green */
    transition: width 0.3s;
}
.led-lbl { color: #8b949e; font-size: 0.75rem; font-weight: 500; margin-top: 4px; text-transform: uppercase; }

/* Status Box */
.f1-status {
    text-align: center; padding: 5px; margin-bottom: 12px;
    background: transparent; border: 1px solid rgba(255,255,255,0.1); border-radius: 2px;
    font-weight: 500; font-family: 'Rajdhani', sans-serif;
    color: #fff;
    font-size: 0.9rem;
}

/* =========================================
   GEMELO DIGITAL — PREMIUM SCADA REDESIGN
   Full visual upgrade: cards, glow, depth
   ========================================= */

/* ── Board base ───────────────────────────── */
.hmi-premium-board {
    background: radial-gradient(ellipse at 30% 10%, #112240 0%, #0a1428 50%, #060c18 100%) !important;
    border: 1px solid rgba(88,166,255,0.22) !important;
    border-radius: 10px !important;
    box-shadow:
        inset 0 0 100px rgba(0,0,0,0.4),
        0 0 0 1px rgba(88,166,255,0.05),
        0 20px 60px rgba(0,0,0,0.8) !important;
    padding: 30px 35px !important;
}

/* ── Panel cards ──────────────────────────── */
.f1-panel {
    background: linear-gradient(145deg, #1e2d47 0%, #162035 60%, #0f1928 100%) !important;
    border-top: 4px solid #e80020 !important;
    border-left: 1.5px solid rgba(88,166,255,0.55) !important;
    border-right: 1.5px solid rgba(88,166,255,0.25) !important;
    border-bottom: 1.5px solid rgba(88,166,255,0.35) !important;
    border-radius: 8px !important;
    padding: 18px 22px !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.95),
        0 0 20px rgba(88,166,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 0 30px rgba(88,166,255,0.05) !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
}
.f1-panel::before {
    content: '' !important;
    position: absolute !important;
    top: 0; left: 0; right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(232,0,32,0.7), transparent) !important;
    pointer-events: none !important;
}
.f1-panel:hover {
    transform: translateY(-2px) skewX(-8deg) !important;
    border-left-color: rgba(232, 0, 32, 0.45) !important;
    border-right-color: rgba(232, 0, 32, 0.25) !important;
    border-bottom-color: rgba(232, 0, 32, 0.3) !important;
    box-shadow:
        0 16px 50px rgba(0,0,0,0.9),
        0 0 30px rgba(232, 0, 32, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
.f1-panel.flot:hover {
    transform: translateY(-2px) skewX(-8deg) !important;
    border-left-color: rgba(0, 229, 255, 0.55) !important;
    border-right-color: rgba(0, 229, 255, 0.35) !important;
    border-bottom-color: rgba(0, 229, 255, 0.4) !important;
    box-shadow:
        0 16px 50px rgba(0,0,0,0.9),
        0 0 30px rgba(0, 229, 255, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
.f1-panel.expert:hover {
    transform: translateY(-2px) skewX(-8deg) !important;
    border-left-color: rgba(227, 179, 65, 0.55) !important;
    border-right-color: rgba(227, 179, 65, 0.35) !important;
    border-bottom-color: rgba(227, 179, 65, 0.4) !important;
    box-shadow:
        0 16px 50px rgba(0,0,0,0.9),
        0 0 30px rgba(227, 179, 65, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.12) !important;
}

/* Flotation panels — cyan accent */
.f1-panel.flot {
    border-top: 4px solid #00e5ff !important;
    background: linear-gradient(145deg, #102030 0%, #0a1a28 60%, #071420 100%) !important;
    border-left-color: rgba(0,229,255,0.55) !important;
    border-right-color: rgba(0,229,255,0.25) !important;
    border-bottom-color: rgba(0,229,255,0.35) !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.95),
        0 0 20px rgba(0,229,255,0.08),
        inset 0 1px 0 rgba(0,229,255,0.15),
        inset 0 0 30px rgba(0,229,255,0.05) !important;
}
.f1-panel.flot::before {
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.6), transparent) !important;
}

/* Expert panels — gold accent */
.f1-panel.expert {
    border-top: 4px solid #e3b341 !important;
    background: linear-gradient(145deg, #221e0e 0%, #181508 60%, #100f06 100%) !important;
    border-left-color: rgba(227,179,65,0.55) !important;
    border-right-color: rgba(227,179,65,0.25) !important;
    border-bottom-color: rgba(227,179,65,0.35) !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.95),
        0 0 20px rgba(227,179,65,0.08),
        inset 0 1px 0 rgba(227,179,65,0.15),
        inset 0 0 30px rgba(227,179,65,0.05) !important;
}
.f1-panel.expert::before {
    background: linear-gradient(90deg, transparent, rgba(227,179,65,0.6), transparent) !important;
}


/* ── Typography ───────────────────────────── */
.f1-title {
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #8b949e !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.f1-val {
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 1.5px !important;
    text-shadow: 0 0 16px rgba(255,255,255,0.22), 0 1px 3px rgba(0,0,0,0.8) !important;
    line-height: 1.1 !important;
}
.f1-val.green  { color: #00ff66 !important; text-shadow: 0 0 18px rgba(0,255,102,0.6), 0 0 6px rgba(0,255,102,0.8) !important; }
.f1-val.red    { color: #ff6b6b !important; text-shadow: 0 0 18px rgba(255,107,107,0.6) !important; }
.f1-val.cyan   { color: #33eeff !important; text-shadow: 0 0 18px rgba(51,238,255,0.6) !important; }
.f1-val.yellow { color: #ffd166 !important; text-shadow: 0 0 18px rgba(255,209,102,0.6) !important; }

.f1-lbl {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    color: #6e7681 !important;
}

.f1-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.f1-row:last-child { border-bottom: none !important; }

/* ── Status box ───────────────────────────── */
.f1-status {
    background: rgba(0,0,0,0.45) !important;
    border: 1px solid rgba(88,166,255,0.18) !important;
    border-radius: 5px !important;
    padding: 8px 14px !important;
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: #f0f6fc !important;
    letter-spacing: 1px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

/* ── Mill engine blocks ───────────────────── */
.t-engine {
    background: linear-gradient(180deg, #161f2e 0%, #0d1520 100%) !important;
    border: 1px solid rgba(88,166,255,0.22) !important;
    border-bottom: 2px solid #58a6ff !important;
    border-radius: 5px !important;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.6),
        0 0 10px rgba(88,166,255,0.05),
        inset 0 1px 0 rgba(88,166,255,0.08) !important;
}
.t-engine.expert {
    border-color: rgba(227,179,65,0.22) !important;
    border-bottom-color: #e3b341 !important;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.6),
        0 0 10px rgba(227,179,65,0.05),
        inset 0 1px 0 rgba(227,179,65,0.08) !important;
}

/* ── LED Bars ─────────────────────────────── */
.led-bar-wrap {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 3px !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4) !important;
}
.led-bar-fill {
    background: linear-gradient(90deg, #00ff41 0%, #e3b341 75%, #f85149 100%) !important;
    box-shadow: 0 0 8px rgba(0,255,65,0.4) !important;
    border-radius: 3px !important;
}

/* ── SVG flowsheet boxes ──────────────────── */
.crusher  { filter: drop-shadow(0 0 6px rgba(88,166,255,0.4)); }
.screener { filter: drop-shadow(0 0 4px rgba(139,148,158,0.3)); }
.crusher-primary   { filter: drop-shadow(0 0 6px rgba(212,175,55,0.5)); }
.crusher-secondary { filter: drop-shadow(0 0 6px rgba(248,81,73,0.5)); }

/* ── SCADA connection status ──────────────── */
#conn-status {
    background: rgba(0,0,0,0.4) !important;
    border: 1px solid rgba(88,166,255,0.15) !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
}

/* ── Tab buttons ──────────────────────────── */
#btn-tab-cu, #btn-tab-trit {
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 0.95rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    transition: all 0.25s ease !important;
    border-radius: 5px !important;
    backdrop-filter: blur(6px) !important;
}

/* ── SCADA Header ─────────────────────────── */
.scada-container {
    background: transparent !important;
}
.scada-header {
    background: linear-gradient(90deg, rgba(20,32,55,0.98), rgba(12,20,38,0.99)) !important;
    border: 1px solid rgba(88,166,255,0.25) !important;
    border-radius: 8px !important;
    padding: 18px 25px !important;
    box-shadow: 0 6px 30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    margin-bottom: 15px !important;
}

/* ── Flotación section grid ───────────────── */
.flot-section-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 8px;
    align-items: flex-start;
}
.flot-col-left  { flex: 1.4; min-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.flot-col-right { flex: 1;   min-width: 280px; display: flex; flex-direction: column; gap: 14px; }

/* ── IA Predictiva accent ─────────────────── */
[id="ia-state"]       { text-shadow: 0 0 16px currentColor !important; }
[id="ia-bottleneck"]  { text-shadow: 0 0 12px rgba(227,179,65,0.5) !important; }
[id="ia-risk"]        { text-shadow: 0 0 12px rgba(248,81,73,0.4) !important; }

/* ── Status table ─────────────────────────── */
#txt-st-41502b, #txt-st-41503, #txt-st-42501, #txt-st-42504,
#txt-st-42505, #txt-st-42506, #txt-st-42507, #txt-st-42511 {
    font-family: 'Share Tech Mono', monospace !important;
}

/* =========================================
   GEMELO DIGITAL — RESPONSIVE MOBILE
   ========================================= */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .scada-container { margin-top: 150px; padding: 15px; }
    .hmi-premium-board { min-width: unset !important; padding: 20px 15px !important; }
    
    /* Tab buttons stack nicely */
    #btn-tab-cu, #btn-tab-trit { font-size: 0.85rem !important; padding: 9px 16px !important; }
    
    /* Cards full width */
    .f1-panel { min-width: unset !important; width: 100% !important; }
    
    /* Status table scroll */
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    
    /* Flotacion layout vertical */
    .flot-section-wrap { flex-direction: column !important; }
    .flot-col-left, .flot-col-right { min-width: unset !important; width: 100% !important; }
    
    /* SVG flowsheet scrollable */
    .hmi-premium-board svg { min-height: 350px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    /* Navbar mobile compact style */
    .navbar { padding: 5px 0 !important; }
    .nav-content { flex-direction: column !important; gap: 6px !important; padding: 4px 15px !important; }
    .nav-links { gap: 8px 12px !important; flex-wrap: wrap !important; justify-content: center !important; }
    .nav-item { font-size: 0.72rem !important; letter-spacing: 0.5px !important; padding: 4px 6px !important; }
    .nav-btn { font-size: 0.68rem !important; padding: 5px 10px !important; }
    .brand-signature-img { height: 44px !important; }

    /* SCADA main container layout - reduced margin due to compact navbar */
    .scada-container { margin-top: 95px !important; padding: 8px !important; }
    .scada-header { padding: 10px 12px !important; flex-wrap: wrap !important; gap: 8px !important; text-align: center !important; justify-content: center !important; }
    .scada-header h1 { font-size: 1.15rem !important; width: 100% !important; margin: 0 !important; }
    
    /* Tab bar buttons */
    div[style*="justify-content: center"][style*="gap: 10px"] {
        gap: 6px !important;
        padding: 0 5px !important;
        margin-top: 8px !important;
        margin-bottom: 10px !important;
    }
    #btn-tab-cu, #btn-tab-trit {
        font-size: 0.75rem !important;
        padding: 7px 10px !important;
        letter-spacing: 0.5px !important;
    }

    /* FORCE THE SCADA HMI BOARDS TO SCROLL HORIZONTALLY (PAN VIEW) */
    /* This preserves the gorgeous full desktop SCADA console layout and lets operators scroll left/right naturally */
    #tab-cu, #tab-trit {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }
    
    .hmi-premium-board {
        min-width: 1280px !important;
        width: 1280px !important;
        padding: 20px 15px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        transform: none !important;
    }
    
    /* Reset vertical stacking rules for elements inside HMI to prevent them from squishing */
    .hmi-premium-board div {
        box-sizing: border-box !important;
    }
    
    /* Mills & Flotacion responsive grid tweaks - Keep original columns since container is 1280px */
    .led-tank-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .t-engine { width: 140px !important; }
    #tab-cu div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Status table */
    #tab-trit table {
        font-size: 0.85rem !important;
        white-space: nowrap;
    }
    
    /* Fixed connection status box placement */
    #conn-status { 
        position: fixed !important;
        bottom: 8px !important; right: 8px !important;
        top: unset !important;
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
        z-index: 100 !important;
    }
    
    /* Compact login overlay style */
    #auth-overlay > div {
        padding: 25px 20px !important;
        gap: 20px !important;
    }
    #auth-overlay input, #auth-overlay button { font-size: 0.85rem !important; }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
    .brand-signature-img { height: 60px; }
    .nav-links { gap: 8px; }
    .nav-item { font-size: 0.7rem; }
    .scada-container { margin-top: 160px; padding: 8px; }
    .scada-header h1 { font-size: 1rem !important; letter-spacing: 1px !important; }
    
    #btn-tab-cu, #btn-tab-trit {
        font-size: 0.72rem !important;
        padding: 7px 10px !important;
        letter-spacing: 0.5px !important;
    }

    .f1-val { font-size: 1.1rem !important; }
    .hmi-premium-board { padding: 10px 8px !important; }
    
    /* Courier table: 2 column on tiny phones */
    div[style*="grid-template-columns: 2fr 2fr 2fr 2fr"] {
        grid-template-columns: 1fr 1fr !important;
        font-size: 0.85rem !important;
    }

    /* LED tank 2 columns */
    .led-tank-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Smooth scroll & touch performance */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
.hmi-premium-board, #tab-cu, #tab-trit {
    -webkit-overflow-scrolling: touch;
    will-change: auto;
}

/* Prevent text scaling on mobile */
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* =========================================
   NUEVAS REGLAS DE RESPONSIVIDAD AUTOMÁTICA
   ========================================= */

/* Adaptación intermedia para laptops/monitores medianos (≤1200px) */
@media (max-width: 1200px) {
    .brand-signature-img { height: 100px; }
    .navbar { padding: 10px 0; }
    .container { padding-top: 150px; }
    .scada-container { margin-top: 150px; }
}

@media (max-width: 900px) {
    .brand-signature-img { height: 90px; }
    .navbar { padding: 8px 0; }
    .container { padding-top: 140px; }
    .scada-container { margin-top: 140px; }
}

/* Clases responsivas de SCADA */
.hmi-row-responsive {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 15px;
    margin-bottom: 0px;
}
.trit-row-responsive {
    display: flex;
    gap: 20px;
    width: 90%;
    margin: 0 auto 15px auto;
    justify-content: space-between;
}

@media (max-width: 1200px) {
    .hmi-row-responsive {
        flex-direction: column !important;
        align-items: center !important;
    }
    .hmi-row-responsive > div {
        width: 100% !important;
        max-width: 1000px !important;
    }
    .trit-row-responsive {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    .trit-row-responsive > div {
        width: 100% !important;
        max-width: 1000px !important;
    }
}

/* Divisiones de Flotación responsivas */
.flot-col-foams, .flot-col-spc {
    border-left: 1px dashed #1a2a44;
}

@media (max-width: 1100px) {
    /* Permitir apilamiento en la sección de flotación */
    .f1-panel.flot {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    .f1-panel.flot > div {
        width: 100% !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px dashed #1a2a44 !important;
        margin-top: 15px !important;
        padding: 15px 0 0 0 !important;
    }
    .f1-panel.flot > div:first-child {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Efecto de encogimiento dinámico de la barra (Scroll Shrink) */
.navbar.navbar-shrunk {
    padding: 6px 0;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.96) 0%, rgba(3, 3, 3, 0.93) 100%) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.9), inset 0 -1px 15px rgba(212,175,55,0.02);
}
.navbar.navbar-shrunk .brand-signature-img {
    height: 50px;
}
.navbar.navbar-shrunk .nav-links {
    gap: 28px;
}

/* Efecto hover interactivo para expandir ligeramente al pasar el cursor */
.navbar.navbar-shrunk:hover {
    padding: 10px 0;
    background: linear-gradient(180deg, rgba(15,15,15,0.98) 0%, rgba(5,5,5,0.92) 100%) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.85), inset 0 -1px 15px rgba(212,175,55,0.04);
}
.navbar.navbar-shrunk:hover .brand-signature-img {
    height: 90px;
}
.navbar.navbar-shrunk:hover .nav-links {
    gap: 38px;
}
