/* =========================================
   🌿 ROBE IA - ESTILOS GLOBALES E INSTITUCIONALES
   ========================================= */

:root {
    --robe-red: #ff0000;
    --robe-dark: #050505;
    --robe-green: #00e676;
    --robe-yellow: #ffb300;
    --robe-text: #cccccc;
}

body {
    background-color: var(--robe-dark); 
    color: var(--robe-text); 
    font-family: 'Roboto', sans-serif;
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    background-image: linear-gradient(rgba(255, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* =========================================
   NAVBAR Y NAVEGACIÓN
   ========================================= */
.navbar-custom {
    background: rgba(5, 5, 5, 0.98); border-bottom: 1px solid #222; height: 90px;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center; padding: 0 5%;
}
.brand-container { display: flex; align-items: center; gap: 15px; text-decoration: none !important;}
.plant-logo { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--robe-green); box-shadow: 0 0 15px rgba(0, 230, 118, 0.4); object-fit: cover;}
.brand-text { font-size: 2.2rem; font-weight: 900; color: var(--robe-red); letter-spacing: 2px; margin: 0; text-shadow: 0 0 10px rgba(255,0,0,0.4);}

.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 5px; height: 100%; align-items: center;}
.nav-link { display: flex; align-items: center; color: #888; font-weight: 900; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; padding: 0 20px; height: 100%; border-bottom: 4px solid transparent; transition: 0.3s; text-decoration: none !important; cursor: pointer;}
.nav-link:hover { color: white; background: rgba(255,255,255,0.02);}
.nav-link.active { color: white; border-bottom: 4px solid var(--robe-red); background: linear-gradient(to top, rgba(255,0,0,0.1), transparent);}

.btn-outline-robe { border: 1px solid var(--robe-red); color: var(--robe-red); font-weight: bold; text-transform: uppercase; padding: 10px 25px; border-radius: 4px; text-decoration: none; transition: 0.3s; font-size: 0.85rem; letter-spacing: 1px;}
.btn-outline-robe:hover { background: var(--robe-red); color: white; text-decoration: none; box-shadow: 0 0 15px rgba(255,0,0,0.4);}

/* SISTEMA DE PESTAÑAS (SPA) */
.tab-content { display: none; animation: fadeIn 0.4s; padding-top: 130px; padding-bottom: 60px; flex: 1;}
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   SECCIÓN HERO
   ========================================= */
.hero-section { text-align: center; max-width: 1200px; margin: 0 auto; padding: 0 20px;}
.hero-title { font-size: 4rem; font-weight: 900; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; line-height: 1.1;}
.hero-text-box { max-width: 900px; margin: 0 auto 50px; text-align: left; background: rgba(10,10,10,0.6); padding: 30px; border-left: 4px solid var(--robe-red); border-radius: 0 8px 8px 0;}
.hero-subtitle { font-size: 1.15rem; color: #e0e0e0; line-height: 1.8; margin-bottom: 20px;}
.hero-technical { font-size: 1rem; color: #888; line-height: 1.7; font-family: 'Share Tech Mono', monospace;}

.btn-main-action { background: var(--robe-red); color: white; padding: 18px 50px; font-size: 1.2rem; font-weight: 900; text-transform: uppercase; border: none; border-radius: 4px; letter-spacing: 2px; transition: 0.3s; box-shadow: 0 10px 30px rgba(255,0,0,0.3); text-decoration: none; display: inline-block; cursor: pointer;}
.btn-main-action:hover { background: #cc0000; color: white; transform: translateY(-3px); text-decoration: none;}

/* VIDEO WRAPPERS */
.video-wrapper { max-width: 950px; border: 1px solid #333; border-radius: 8px; padding: 10px; background: #000; box-shadow: 0 15px 50px rgba(255,0,0,0.15); display: flex; align-items: center; justify-content: center; overflow: hidden;}
.video-wrapper-green { box-shadow: 0 15px 50px rgba(0, 230, 118, 0.15); border-color: var(--robe-green); }

/* PANELES GLOBALES Y LISTAS */
.panel-card { background: rgba(10, 10, 10, 0.9); border: 1px solid #222; border-radius: 8px; padding: 50px; margin: 40px auto; box-shadow: 0 10px 30px rgba(0,0,0,0.5); max-width: 1100px;}
.panel-title { color: white; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; border-bottom: 1px solid var(--robe-red); padding-bottom: 15px; text-align: center;}

.check-list, .cross-list, .list-tech { list-style: none; padding: 0; line-height: 2; font-size: 1.05rem;}
.check-list { color: #ccc; } .check-list li i { color: var(--robe-green); margin-right: 12px; }
.cross-list { color: #888; } .cross-list li i { color: var(--robe-red); margin-right: 12px; }
.list-tech { color: #aaa; } .list-tech li { margin-bottom: 15px; border-bottom: 1px solid #1a1a1a; padding-bottom: 15px;} .list-tech li strong { color: white; display: inline-block; min-width: 160px;}

/* =========================================
   ELEMENTOS DE MARKETING V63 (META BRAIN)
   ========================================= */
.scar-panel { background: rgba(255,0,0,0.05); border-left: 4px solid var(--robe-red); padding: 30px; border-radius: 0 8px 8px 0; margin-bottom: 40px; }
.scar-panel h4 { color: var(--robe-red); font-weight: 900; text-transform: uppercase; margin-bottom: 15px; font-size: 1.3rem;}

.inner-tabs-wrapper { background: rgba(10,10,10,0.9); border: 1px solid #222; border-radius: 8px; overflow: hidden; margin-bottom: 40px; }
.inner-tabs-header { display: flex; background: #050505; border-bottom: 1px solid #222; }
.inner-tab-btn { flex: 1; padding: 15px; background: transparent; border: none; border-bottom: 3px solid transparent; color: #888; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
.inner-tab-btn:hover { color: white; background: rgba(255,255,255,0.02); }
.inner-tab-btn.active-vip { color: var(--robe-green); border-bottom-color: var(--robe-green); background: rgba(0,230,118,0.05); }
.inner-tab-btn.active-shadow { color: var(--robe-yellow); border-bottom-color: var(--robe-yellow); background: rgba(255,179,0,0.05); }
.inner-tab-btn.active-blocked { color: var(--robe-red); border-bottom-color: var(--robe-red); background: rgba(255,0,0,0.05); }
.inner-tab-content { display: none; padding: 30px; animation: fadeIn 0.4s; }
.inner-tab-content.active { display: block; }

.gold-mines-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.mine-card { background: #0a0a0a; border: 1px solid #333; padding: 20px; border-radius: 6px; border-top: 3px solid var(--robe-green); }
.mine-card h5 { color: white; border-bottom: 1px solid #222; padding-bottom: 10px; margin-bottom: 15px; }
.mine-card .stat { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; color: #aaa;}
.mine-card .val { color: var(--robe-green); font-weight: bold;}

.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.pillar-card { background: rgba(10,10,10,0.9); border: 1px solid #333; padding: 25px; border-radius: 8px; }
.pillar-card i { font-size: 2rem; color: #00bcd4; margin-bottom: 15px; }
.pillar-card h4 { color: white; font-size: 1.1rem; font-weight: bold; margin-bottom: 15px;}

.faq-item { margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 15px; text-align: left;}
.faq-question { color: white; font-weight: bold; font-size: 1.1rem; margin-bottom: 8px; }
.faq-answer { color: #aaa; font-size: 0.95rem; }

/* =========================================
   🌿 ESTILOS MASCOTA (Venus Flytrap) V40
   ========================================= */
.mascot-section {
    padding: 80px 0;
    background: #111; /* Un gris muy oscuro para contrastar */
    border-top: 2px solid #222;
    border-bottom: 2px solid #222;
    margin: 60px 0;
}

.mascot-video-container {
    position: relative;
    width: 100%;
    border: 3px solid #333;
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.2); /* Brillo rojo sutil */
    overflow: hidden;
    border-radius: 8px;
}

.mascot-video-element {
    width: 100%;
    height: auto;
    display: block;
}

.mascot-fallback-img {
    width: 100%;
    height: auto;
    display: block;
}

.philosophy-text {
    padding-left: 40px;
}
.philosophy-text h3 {
    color: var(--robe-green);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.philosophy-text p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .philosophy-text { padding-left: 0; margin-top: 30px; text-align: center; }
}

/* =========================================
   SÚPER GESTOR DE KELLY Y MÉTRICAS
   ========================================= */
.g-label { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; margin-bottom: 5px;}
.g-input { background: #050505; border: 1px solid #333; color: white; font-family: 'Share Tech Mono'; text-align: center; padding: 12px; width: 100%; border-radius: 4px; transition: 0.3s;}
.g-input:focus { border-color: var(--robe-red); outline: none; box-shadow: 0 0 10px rgba(255,0,0,0.2);}
.kelly-selector { display: flex; gap: 10px; margin-top: 15px; }
.k-btn { flex: 1; background: #050505; border: 1px solid #333; color: #888; padding: 15px; text-align: center; border-radius: 4px; cursor: pointer; transition: 0.3s;}
.k-btn.active-cons { border-color: var(--robe-green); color: var(--robe-green); background: rgba(0,230,118,0.1); }
.k-btn.active-mod { border-color: var(--robe-yellow); color: var(--robe-yellow); background: rgba(255,179,0,0.1); }
.k-btn.active-arr { border-color: var(--robe-red); color: var(--robe-red); background: rgba(255,0,0,0.1); }
.k-val { font-family: 'Share Tech Mono'; font-size: 1.3rem; font-weight: bold; margin-top: 5px; display: block;}

.value-display { font-family: 'Share Tech Mono', monospace; font-size: 3rem; font-weight: bold; color: white; text-align: center; margin: 10px 0;}
.metric-box { background: #000; border: 1px solid #222; padding: 25px; border-radius: 8px; text-align: center; margin-bottom: 20px;}

/* =========================================
   💬 ESTILOS CHATBOT FLOAT V40
   ========================================= */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

#chat-widget.chat-closed { height: 45px; cursor: pointer; }
#chat-widget.chat-open { height: 400px; }

.chat-header {
    background: #dc3545; 
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-icon { font-size: 0.8em; }

.chat-body {
    height: 355px;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    max-width: 80%;
}

.bot-message {
    background: #2a2a2a;
    color: #ccc;
    align-self: flex-start;
}
/* Aseguramos que los mensajes del usuario sigan funcionando */
.user-message { 
    background: var(--robe-red); 
    color: white; 
    align-self: flex-end; 
}

.chat-input-area {
    display: flex;
    gap: 5px;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.chat-input {
    flex: 1;
    background: #333;
    border: 1px solid #444;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.chat-input:focus {
    outline: none;
    border-color: #dc3545;
}

/* =========================================
   FOOTER LEGAL
   ========================================= */
.footer-legal { background: #000; border-top: 1px solid #222; padding: 50px 20px; text-align: center; margin-top: auto;}