/* ==========================================
   REPORT DEFENSE LTDA - STYLES.CSS [FIXED ACCORDION & LOGO]
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body, html {
    height: 100%;
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

.split-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ==========================================
   TERMINAL PANEL (SIMULATION)
   ========================================== */
.terminal-panel {
    width: 0%; 
    background-color: #020202;
    border-right: 0px dashed #142c1b;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    position: relative;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease, border-right 0.3s ease;
}

.terminal-panel.active {
    width: 45%;
    padding: 25px;
    padding-top: 235px;
    border-right: 2px dashed #142c1b;
}

.terminal-badge-title {
    position: absolute;
    top: 20px;
    left: 25px;
    max-width: calc(100% - 75px); 
    background-color: #050505;
    color: #00ff66;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 3px solid #00ff66; 
    border-radius: 4px;
    box-shadow: 4px 4px 0px #00ff66; 
    z-index: 15;
    letter-spacing: 1px;
    white-space: normal; 
    word-break: keep-all;
    display: none;
}

.terminal-panel.active .terminal-badge-title { display: block; }
.terminal-badge-title span { color: #ffffff; }

.terminal-badge-desc {
    position: absolute;
    top: 75px;
    left: 25px;
    max-width: calc(100% - 50px);
    color: #00ff66; 
    font-size: 0.85rem;
    line-height: 1.4;
    display: none;
    z-index: 15;
}
.terminal-panel.active .terminal-badge-desc { display: block; }

.terminal-close-btn {
    display: none; 
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;  
    height: 34px; 
    background-color: #050505; 
    border: 3px solid #00ff66; 
    border-radius: 6px;
    box-shadow: 3px 3px 0px #00ff66; 
    z-index: 250; 
    cursor: pointer;
    justify-content: center;
    align-items: center;
    transition: all 0.1s ease;
}

.terminal-close-btn::before, .terminal-close-btn::after {
    content: '';
    position: absolute;
    width: 15px; 
    height: 3px; 
    background-color: #ffffff; 
    border-radius: 2px;
}
.terminal-close-btn::before { transform: rotate(45deg); }
.terminal-close-btn::after { transform: rotate(-45deg); }

.terminal-close-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px transparent;
}

.terminal-panel.active .terminal-close-btn {
    display: flex;
}

/* CRT Scanlines */
.terminal-panel::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 0, 0.06));
    z-index: 10;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

.terminal-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.terminal-line {
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    color: #ffffff !important;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.terminal-line.cmd { color: #00ff66 !important; font-weight: bold; }

.status-highlight {
    background-color: #33537a;
    color: #ffffff !important;
    display: inline-block;      
    padding: 0 4px;
    font-weight: bold;
}

/* ==========================================
   MAIN PANEL: CORPORATE ENVIRONMENT
   ========================================== */
.main-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    background: radial-gradient(circle, rgba(10,10,10,0.4) 0%, rgba(5,5,5,1) 90%);
    z-index: 5;
    height: 100%;
    overflow-y: auto;
}

.main-container {
    max-width: 600px;
    text-align: center;
    width: 100%;
}

.terminal-header {
    color: #00ff66;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

h1 span {
    color: #00ff66;
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.5);
}

p {
    color: #888888;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Language Matrix Buttons */
.lang-matrix {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.lang-btn {
    background-color: #050505;
    color: #00ff66;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 12px 20px;
    cursor: pointer;
    letter-spacing: 1px;
    border: 3px solid #142c1b;
    border-radius: 4px;
    box-shadow: 4px 4px 0px rgba(0, 255, 102, 0.15);
    transition: all 0.15s ease;
    user-select: none;
}

.lang-btn:hover { border-color: #00ff66; box-shadow: 4px 4px 0px rgba(0, 255, 102, 0.4); }
.lang-btn.active {
    background-color: #050505;
    color: #00ff66;
    border-color: #00ff66;
    box-shadow: 5px 5px 0px #00ff66, 0 0 15px rgba(0, 255, 102, 0.4);
    pointer-events: none;
}

/* Contact Box */
.contact-box {
    border: 1px solid #222222;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    margin-bottom: 30px;
}

.contact-label {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.email-link {
    color: #00ff66;
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.email-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.8);
    transform: translateY(-2px);
}

/* Unified Control Grid */
.control-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    background-color: #050505;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 14px 22px;
    cursor: pointer;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.15s ease;
    text-transform: uppercase;
}

.services-btn {
    color: #bb66ff;
    border: 3px solid #bb66ff;
    box-shadow: 4px 4px 0px rgba(187, 102, 255, 0.2);
}
.services-btn:hover { box-shadow: 4px 4px 0px #bb66ff, 0px 0px 15px rgba(187, 102, 255, 0.4); }

.about-btn {
    color: #00e5ff;
    border: 3px solid #00e5ff;
    box-shadow: 4px 4px 0px rgba(0, 229, 255, 0.2);
}
.about-btn:hover { box-shadow: 4px 4px 0px #00e5ff, 0px 0px 15px rgba(0, 229, 255, 0.4); }

.sim-btn {
    color: #ff3366;
    border: 3px solid #ff3366;
    box-shadow: 4px 4px 0px rgba(255, 51, 102, 0.2);
    padding-right: 45px; 
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23ff3366'><polygon points='0,4 8,4 8,0 14,7 8,14 8,10 0,10'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
}
.sim-btn:hover { box-shadow: 4px 4px 0px #ff3366, 0px 0px 15px rgba(255, 51, 102, 0.4); }

.action-btn:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px transparent; }

/* ==========================================
   RIGHT MENU PANEL (SERVICES & VECTORS)
   ========================================== */
.menu-panel-right {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 450px !important;
    height: 100vh !important;
    background-color: #050505 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in-out !important;
    z-index: 99999 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    visibility: hidden !important;
    padding: 30px 20px !important;
}

.menu-panel-right.open {
    transform: translateX(0) !important;
    visibility: visible !important;
}

.menu-panel-right.vector-style { border-left: 2px dashed #ff3366; }
.menu-panel-right.services-style { border-left: 2px dashed #bb66ff; }

/* Right Menu Close Button */
.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    background-color: #050505;
    border: 3px solid #bb66ff;
    border-radius: 6px;
    box-shadow: 3px 3px 0px #bb66ff;
    z-index: 250;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.1s ease;
}

.menu-panel-right.vector-style .menu-close-btn {
    border-color: #ff3366;
    box-shadow: 3px 3px 0px #ff3366;
}

.menu-panel-right.services-style .menu-close-btn {
    border-color: #bb66ff;
    box-shadow: 3px 3px 0px #bb66ff;
}

.menu-close-btn::before, .menu-close-btn::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}
.menu-close-btn::before { transform: rotate(45deg); }
.menu-close-btn::after { transform: rotate(-45deg); }

.menu-close-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px transparent;
}

.menu-right-title {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    margin-right: 40px;
    border-bottom: 2px solid transparent;
    padding-bottom: 8px;
}

.menu-panel-right.vector-style .menu-right-title { color: #ff3366; border-color: #ff3366; }
.menu-panel-right.services-style .menu-right-title { color: #bb66ff; border-color: #bb66ff; }

/* Dropdown Simulation Items */
.sim-dropdown-item {
    color: #00ff66;
    background-color: #050505;
    padding: 14px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #142c1b;
    border-radius: 4px;
    box-shadow: 3px 3px 0px rgba(0, 255, 102, 0.1);
    transition: all 0.15s ease;
    line-height: 1.4;
    margin-bottom: 12px;
}

.menu-panel-right.vector-style .sim-dropdown-item:hover {
    background-color: #ff3366;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 3px 3px 0px #ffffff;
}
.menu-panel-right.services-style .sim-dropdown-item:hover {
    background-color: #bb66ff;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 3px 3px 0px #ffffff;
}

/* ==========================================
   SERVICES ACCORDION & SCHEMA BOX STYLING (FIXED HEIGHT/SCROLL)
   ========================================== */
.service-item-accordion {
    border: 3px solid #bb66ff;
    margin: 12px 0;
    background-color: #050505;
    box-shadow: 6px 6px 0px #bb66ff;
    transition: all 0.15s ease;
    border-radius: 0;
}

.service-header {
    padding: 14px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: rgba(187, 102, 255, 0.03);
    padding: 0 16px;
}

.service-item-accordion.active .service-content {
    max-height: 1000px;
    overflow-y: auto;   
    padding: 12px 16px 16px 16px;
    border-top: 2px solid #bb66ff;
}

.service-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.5;
    text-align: justify;
}

/* Schema Box Integration */
.service-schema-box {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 255, 102, 0.03);
    border: 1px solid rgba(0, 255, 102, 0.25);
    border-left: 3px solid #00ff66;
    font-size: 0.75rem;
    color: #cccccc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
    box-shadow: inset 0 0 10px rgba(0, 255, 102, 0.05);
}

.schema-title {
    color: #00ff66;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.7rem;
}

.schema-row {
    line-height: 1.4;
}

.schema-row span {
    color: #ff3366;
    font-weight: bold;
}

/* ==========================================
   MODAL "ABOUT US"
   ========================================== */
.about-modal {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: #050505;
    border: 3px solid #00e5ff;
    box-shadow: 12px 12px 0px #00e5ff;
    padding: 35px;
    z-index: 1000;
    border-radius: 0;
    font-family: 'Courier New', Courier, monospace;
}
.about-modal.show { display: block; }

.about-modal-title {
    color: #00e5ff;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #00e5ff;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.about-modal-body {
    color: #f0f0f0;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 30px;
}

.about-close-btn {
    display: block;
    margin-left: auto;
    background-color: #000;
    color: #00e5ff;
    border: 2px solid #00e5ff;
    box-shadow: 4px 4px 0px #005566;
    padding: 10px 25px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}
.about-close-btn:hover {
    background-color: #00e5ff;
    color: #000;
    box-shadow: 4px 4px 0px #00e5ff;
}

/* Terminal Cursor */
.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: #00ff66;
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes blink {
    0%, 49% { background-color: #00ff66; }
    50%, 100% { background-color: transparent; }
}

/* Sedes / Global Nodes */
.locations-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid #222222;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #aaaaaa;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.location-badge:hover {
    border-color: #00ff66;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.2);
    transform: translateY(-2px);
}

.node-status {
    width: 6px;
    height: 6px;
    background-color: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff66;
    animation: blink 2s infinite;
}

/* ==========================================
   LOGO STYLING (AJUSTADO: TAMAÑO Y ESPACIADO)
   ========================================== */
.main-container img, 
.main-container svg, 
.footer-logo, 
.logo {
    max-width: 260px !important; /* Tamaño equilibrado: ni tan gigante como antes, ni tan pequeño */
    width: 100% !important;
    height: auto !important;
    margin: 40px auto 20px auto; /* Mayor separación superior (margin-top) para que no esté pegado a los botones */
    display: block;
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVE VIEWPORT)
   ========================================== */
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column;
    }

    .terminal-panel.active {
        width: 100% !important;
        height: 100% !important;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 100;
        padding: 20px;
        padding-top: 265px; 
        border-right: 0px;
    }

    .terminal-badge-title {
        top: 20px;
        left: 20px;
        max-width: calc(100% - 65px); 
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .terminal-badge-desc {
        top: 95px;
        left: 20px;
        max-width: calc(100% - 40px);
    }

    .terminal-panel.active ~ .main-panel {
        display: none !important;
    }

    .main-panel {
        width: 100%;
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
        transform: translateY(40px); 
    }

    h1 { font-size: 1.8rem; margin-bottom: 12px; }
    p { font-size: 0.85rem; margin-bottom: 20px; line-height: 1.5; }
    .lang-matrix { gap: 8px; margin-bottom: 25px; }
    .lang-btn { padding: 10px 14px; font-size: 0.75rem; }
    .contact-box { padding: 15px; margin-bottom: 25px; }
    .email-link { font-size: 1rem; }
    .control-grid { gap: 8px; }
    .action-btn { font-size: 0.75rem; padding: 10px 12px; }
    .sim-btn { padding-right: 32px; background-position: right 10px center; }

    /* Mobile Side Menu */
    .menu-panel-right.open {
        width: 100% !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateX(0) !important;
        background-color: #050505 !important;
        border-radius: 0 !important;
        padding: 80px 20px 30px 20px !important;
        z-index: 99999 !important;
        visibility: visible !important;
        overflow-y: auto !important;
        border-left: none !important;
    }

    .menu-panel-right.open .menu-close-btn {
        display: flex !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 100000 !important;
    }

    .about-modal {
        width: 90%;
        padding: 20px;
        box-shadow: 8px 8px 0px #00e5ff; 
    }
    .about-modal-title {
        font-size: 1.2rem;
    }
}