/* ==========================================
   DESIGN SYSTEM & CUSTOM STYLING (KorevX)
   ========================================== */

/* Variables and Tokens */
:root {
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Color Palette */
    --color-bg-base: #08080a;
    --color-bg-card: #121217;
    --color-bg-glass: rgba(14, 14, 19, 0.65);
    --color-border-glass: rgba(255, 255, 255, 0.07);
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0aec0;
    --color-text-muted: #718096;
    
    /* Accents (Teal / Cyan / Silver Metallics) */
    --color-cyan: #00e5ff;
    --color-cyan-glow: rgba(0, 229, 255, 0.45);
    --color-blue: #0070f3;
    --color-grey-dark: #1a202c;
    --color-grey-light: #e2e8f0;
    --color-red: #ff3366; /* for PDF icon red details */
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-circle: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
    background: #23232f;
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: #040406;
}

.text-cyan {
    color: var(--color-cyan) !important;
}

/* Dynamic Ambient Glow */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.glow-bg {
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 140vw;
    height: 140vh;
    background: radial-gradient(circle at 70% 30%, rgba(0, 112, 243, 0.08) 0%, rgba(0, 229, 255, 0.03) 30%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(8, 8, 10, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-glass);
    padding: 12px 0;
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 3D Rotating Logo Container */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    perspective: 1000px;
}

.logo-3d-wrapper {
    perspective: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-coin-inner {
    position: relative;
    width: 48px;
    height: 48px;
    transform-style: preserve-3d;
    animation: spinLogo3D 7s infinite linear;
}

.logo-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.logo-face-front {
    transform: rotateY(0deg);
}

.logo-face-back {
    transform: rotateY(180deg);
}

.logo-img-3d {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.75)) drop-shadow(0 0 4px rgba(0, 112, 243, 0.9));
    border: 1.5px solid rgba(0, 229, 255, 0.5);
    background: #080d1a;
}

@keyframes spinLogo3D {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 1.5px;
    color: var(--color-text-primary);
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 40%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--color-cyan);
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-cyan);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-text-primary);
    color: var(--color-bg-base);
}

.btn-primary:hover {
    background-color: var(--color-cyan);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}

.btn-secondary {
    background-color: var(--color-cyan);
    color: var(--color-bg-base);
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--color-cyan);
    background-color: rgba(0, 229, 255, 0.05);
    color: var(--color-cyan);
}

.btn-glow {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.btn-glow:hover {
    background-color: var(--color-cyan);
    color: var(--color-bg-base);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}

.btn-text {
    background: transparent;
    color: var(--color-cyan);
    padding: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--color-text-primary);
}

.btn-text i {
    transition: var(--transition-fast);
}

.btn-text:hover i {
    transform: translateX(5px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #030305;
}

/* Starry Universe Parallax Background */
.universe-depth-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/universe_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* parallax scroll depth */
    z-index: 0;
    opacity: 0.45;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-cyan);
    background-color: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.badge-logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 229, 255, 0.5);
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.8));
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.scroll-helper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-cyan);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Interactive Globe Container */
.hero-interactive {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Hand Overlay */
.hand-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
    filter: brightness(0.85) contrast(1.1);
}

/* Three.js Canvas */
#globe-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: grab;
}

#globe-canvas:active {
    cursor: grabbing;
}

/* 3D Projected Navigation Nodes */
.globe-nodes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Interactive Node Elements: Icon ONLY by default */
.globe-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    background: rgba(14, 14, 19, 0.7);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-text-primary);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.08);
    transition: 
        border-color 0.3s ease, 
        box-shadow 0.3s ease, 
        background 0.3s ease,
        border-radius 0.3s ease,
        padding 0.3s ease,
        width 0.3s ease;
    overflow: hidden;
}

/* Hover State: Node expands into a Pill with the label visible */
.globe-node:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
    background: rgba(14, 14, 19, 0.9);
    border-radius: 30px;
    padding: 0 16px 0 10px;
    width: auto; /* Expand width dynamically for text */
}

/* Icon Inside Node */
.node-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.globe-node:hover .node-dot {
    background: var(--color-cyan);
    color: #000;
    border-color: var(--color-cyan);
}

/* Text Label inside Node: Hidden by default, slides out on hover */
.globe-node .node-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    transition: 
        max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
        opacity 0.3s ease, 
        margin-left 0.3s ease;
    margin-left: 0;
}

.globe-node:hover .node-label {
    max-width: 200px;
    opacity: 1;
    margin-left: 8px;
}

/* Sections Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.25rem;
    margin-top: 8px;
    letter-spacing: -0.5px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-cyan);
    margin: 20px auto;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* Lines of Business Cards */
.lineas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.linea-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.linea-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-image-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.08);
    transition: var(--transition-slow);
}

.linea-card:hover .card-img {
    transform: scale(1.06);
    filter: brightness(0.95) contrast(1.12);
}

.card-icon {
    position: absolute;
    bottom: -20px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-cyan);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.card-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Structure Showcase Section */
.structure-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 80px;
    background: rgba(18, 18, 23, 0.45);
    border: 1px solid var(--color-border-glass);
    padding: 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.structure-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.structure-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.structure-info p {
    color: var(--color-text-secondary);
}

.structure-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.structure-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.structure-image-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-glass);
}

.structure-img {
    width: 100%;
    height: auto;
    filter: brightness(0.95) contrast(1.05);
}

/* Value Proposition Section */
.valor-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.valor-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.valor-text .lead {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--color-text-primary);
    border-left: 3px solid var(--color-cyan);
    padding-left: 20px;
}

.roi-points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 15px;
}

.roi-point {
    display: flex;
    gap: 15px;
}

.roi-point i {
    font-size: 1.5rem;
    color: var(--color-cyan);
    margin-top: 4px;
}

.roi-point h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 5px;
}

.roi-point p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.valor-side-card {
    height: 100%;
}

.glass-panel {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-glass);
    padding: 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.valor-emblem-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.valor-logo-emblem {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 229, 255, 0.45);
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.6));
    box-shadow: 0 0 20px rgba(0, 112, 243, 0.4);
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(0, 229, 255, 0.15);
}

.quote-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
}

.quote-author {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-cyan);
    letter-spacing: 2px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    gap: 20px;
    background: rgba(18, 18, 23, 0.4);
    border: 1px solid var(--color-border-glass);
    padding: 24px;
    border-radius: var(--radius-md);
}

.info-card i {
    font-size: 1.75rem;
    color: var(--color-cyan);
}

.info-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.info-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.glow-link:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 8px var(--color-cyan-glow);
}

.documentos-downloads {
    margin-top: 20px;
}

.documentos-downloads h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.doc-download-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-dl-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border-glass);
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.doc-dl-btn:hover {
    border-color: rgba(255, 51, 102, 0.3);
    background: rgba(255, 51, 102, 0.03);
}

.doc-dl-btn i {
    font-size: 1.5rem;
}

.doc-dl-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.text-red {
    color: var(--color-red);
}

/* Forms */
.contact-form-panel {
    width: 100%;
}

.glass-form {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-glass);
    padding: 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.form-group select option {
    background-color: var(--color-bg-card);
    color: var(--color-text-primary);
}

/* Footer Section */
#main-footer {
    border-top: 1px solid var(--color-border-glass);
    padding: 30px 0;
    background-color: #040406;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 229, 255, 0.45);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 40%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-socials {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    color: var(--color-cyan);
}

/* ==========================================
   FLOATING GLASS WINDOWS (MODALS)
   ========================================== */
.glass-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.glass-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(4, 4, 6, 0.7);
    backdrop-filter: blur(8px);
}

.modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    z-index: 1002;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.glass-modal.active .modal-wrapper {
    transform: scale(1);
}

.modal-container {
    background: rgba(14, 14, 19, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 1010;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-cyan);
    color: #000;
    border-color: var(--color-cyan);
}

.modal-banner {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-banner-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(14, 14, 19, 0.2), rgba(14, 14, 19, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.modal-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.modal-banner h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.services-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.services-list-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.services-list-details li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.4;
}

.services-list-details.compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.services-list-details li .num {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-cyan);
    font-size: 0.8rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Highlight Box */
.academic-highlight-box {
    background: rgba(0, 229, 255, 0.02);
    border: 1px solid rgba(0, 229, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 25px 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-cyan);
}

.box-header i {
    font-size: 1.5rem;
}

.box-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.academic-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0;
}

.academic-features span {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
}

.academic-call {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-secondary);
}

.modal-action-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.valor-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.val-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.val-card i {
    font-size: 1.5rem;
    color: var(--color-cyan);
}

.val-card h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.val-card p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ==========================================
   DUAL FLOATING CHAT SYSTEM STYLING
   ========================================== */
#dual-chats-widget {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 900;
    pointer-events: none; /* Let clicks pass unless targeting child buttons/windows */
    width: 450px;
    height: 100vh;
}

.chat-widget-wrapper {
    position: fixed;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto; /* Clickable */
}

.tech-chat-pos {
    bottom: 110px;
}

.student-chat-pos {
    bottom: 30px;
}

/* Permanently Visible Differentiating Labels */
.chat-floating-label {
    background: rgba(14, 14, 19, 0.85);
    border: 1px solid var(--color-border-glass);
    color: var(--color-text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
    opacity: 0.95;
    text-transform: uppercase;
}

.tech-chat-pos .chat-floating-label {
    border-left: 3px solid var(--color-cyan);
}

.student-chat-pos .chat-floating-label {
    border-left: 3px solid #a78bfa; /* Academic Purple border */
}

/* Floating Chat Buttons */
.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-glass);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: var(--transition-fast);
}

.btn-tech {
    color: var(--color-cyan);
    border-color: rgba(0, 229, 255, 0.2);
}

.btn-tech:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px var(--color-cyan-glow);
    transform: scale(1.05);
}

.btn-student {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.2);
}

.btn-student:hover {
    border-color: #a78bfa;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
    transform: scale(1.05);
}

.chat-btn i {
    font-size: 1.5rem;
}

.chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background-color: var(--color-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-base);
}

/* Chat Containers */
.chat-container {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 370px;
    height: 480px;
    background: rgba(14, 14, 19, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: 
        opacity var(--transition-normal), 
        transform var(--transition-normal);
    z-index: 950;
}

.chat-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-tech {
    background-color: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.2);
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ff66;
    border: 1px solid var(--color-bg-base);
}

.chat-status h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.chat-status p {
    font-size: 0.65rem;
    color: var(--color-cyan);
    font-weight: 600;
}

.student-chat-pos .chat-status p {
    color: #a78bfa;
}

.chat-header-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
}

.chat-header-close:hover {
    color: var(--color-text-primary);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.4;
}

.bot .msg-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary);
    border-top-left-radius: 0;
}

.user .msg-bubble {
    background: var(--color-cyan);
    color: #000;
    border-top-right-radius: 0;
    font-weight: 500;
}

.student-chat-pos .user .msg-bubble {
    background: #a78bfa;
    color: #000;
}

.msg-time {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    margin-left: 4px;
}

.user .msg-time {
    align-self: flex-end;
    margin-right: 4px;
}

.chat-footer-options {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-opt-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tech-chat-pos .chat-opt-btn:hover {
    border-color: var(--color-cyan);
    color: var(--color-text-primary);
    background: rgba(0, 229, 255, 0.04);
}

.student-chat-pos .chat-opt-btn:hover {
    border-color: #a78bfa;
    color: var(--color-text-primary);
    background: rgba(167, 139, 250, 0.04);
}

/* ==========================================
   RESPONSIVE LAYOUT (MEDIA QUERIES)
   ========================================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-description {
        margin: 0 auto;
    }
    
    .hero-interactive {
        height: 450px;
    }
    
    .structure-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .valor-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .header-actions {
        margin-left: auto;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .roi-points-grid {
        grid-template-columns: 1fr;
    }
    
    .services-list-details.compact {
        grid-template-columns: 1fr;
    }
    
    .modal-action-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-banner {
        height: 160px;
    }
    
    .modal-banner h2 {
        font-size: 1.5rem;
    }
    
    /* Hide floating chat labels on tiny screens to avoid overlaps */
    .chat-floating-label {
        display: none;
    }
}
