/* ==========================================================================
   e2esystem Landing Page CSS
   Theme: Premium Cyber Tech Dark Mode
   ========================================================================== */

/* 1. Variables Globales & Reset */
:root {
    --bg-primary: #08070d;
    --bg-secondary: #13111f;
    --bg-navbar: rgba(8, 7, 13, 0.7);
    --text-primary: #f5f5f7;
    --text-secondary: #9ea0ab;
    --text-muted: #676975;
    
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    --accent-cyan-glow: rgba(6, 182, 212, 0.3);
    
    --glass-bg: rgba(19, 17, 31, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(139, 92, 246, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* 2. Estilos de Fondo y Esferas de Brillo (Glow) */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 50%;
    left: -200px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

.bg-glow-3 {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

/* 3. Componentes Comunes y Layouts */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 7rem 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botones Premium */
.btn-primary, .btn-secondary, .btn-primary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-purple-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-purple);
}

.btn-primary-outline:hover {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.btn-block {
    width: 100%;
}

/* Tarjetas Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Cabeceras de Sección */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 4. Barra de Navegación */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
}

.navbar-wrapper.scrolled {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-accent {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Menú Móvil Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu-drawer.open {
    right: 0;
}

.mobile-menu-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

/* 5. HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    animation: pulse 1.8s infinite;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Visualizaciones en la Hero Section */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
}

.hero-preview-card {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: var(--transition-smooth);
    border-color: rgba(255, 255, 255, 0.12);
}

.hero-preview-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
    box-shadow: 0 15px 45px rgba(139, 92, 246, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #f59e0b; }
.window-dot.green { background-color: #10b981; }

.window-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    margin-left: 6px;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.card-body pre {
    overflow-x: auto;
}

.code-keyword { color: #f472b6; }
.code-class { color: #60a5fa; }
.code-string { color: #34d399; }
.code-method { color: #fbbf24; }
.code-comment { color: var(--text-muted); font-style: italic; }

/* Insignias Tecnológicas Flotantes */
.floating-tech-badge {
    position: absolute;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --parallax-x: 0px;
    --parallax-y: 0px;
    transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tech-docker {
    top: 10px;
    left: -20px;
    border-color: rgba(36, 150, 237, 0.3);
    color: #2496ed;
    animation: float-y 4.2s ease-in-out infinite;
}

.tech-aws {
    bottom: 40px;
    left: -30px;
    border-color: rgba(255, 153, 0, 0.3);
    color: #ff9900;
    animation: float-x 5s ease-in-out infinite;
}

.tech-react {
    top: 30px;
    right: -25px;
    border-color: rgba(97, 218, 251, 0.3);
    color: #61dafb;
    animation: float-rot 6.2s ease-in-out infinite;
}

.tech-nextjs {
    bottom: 60px;
    right: -20px;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    animation: float-diag 4.5s ease-in-out infinite;
}

.tech-nestjs {
    top: 45%;
    left: -50px;
    border-color: rgba(234, 40, 69, 0.3);
    color: #ea2845;
    animation: float-rot 5.5s ease-in-out infinite;
}

.tech-mantenimiento {
    top: 40%;
    right: -40px;
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    animation: float-y 4.8s ease-in-out infinite;
}

.tech-database {
    bottom: -20px;
    left: 40px;
    border-color: rgba(51, 103, 145, 0.3);
    color: #336791;
    animation: float-x 4.6s ease-in-out infinite;
}

.tech-python {
    top: -30px;
    right: 80px;
    border-color: rgba(55, 118, 171, 0.3);
    color: #3776ab;
    animation: float-diag 5.2s ease-in-out infinite;
}

/* 6. SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-focus);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.service-card-full {
    grid-column: span 2;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.icon-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.icon-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.icon-pink {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.icon-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.service-features i {
    color: var(--accent-cyan);
}

/* 7. METHODOLOGY / FLOW SECTION (Timeline) */
.flow-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-cyan);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple-glow);
}

.timeline-content {
    padding: 2rem;
    margin-left: 1rem;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.timeline-step {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-item:nth-child(even) .timeline-step {
    color: var(--accent-purple);
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* 8. STATS SECTION */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 2.5rem 1.5rem;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 9. CONTACT SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-purple);
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-form-wrapper {
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    transition: var(--transition-smooth);
}

.contact-form.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1rem 1rem 2.8rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-textarea {
    resize: none;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-select option {
    background-color: #13111f;
    color: #ffffff;
}

/* Estilo para los inputs con labels flotantes */
.form-label {
    position: absolute;
    left: 2.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.form-textarea ~ .form-label {
    top: 1.5rem;
    transform: none;
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

.form-textarea ~ .form-icon {
    top: 1.2rem;
    transform: none;
}

/* Efectos al enfocar o rellenar input */
.form-input:focus,
.form-input:not(:placeholder-shown) {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.03);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-select:valid ~ .form-label {
    top: -8px;
    left: 0.8rem;
    transform: scale(0.85);
    background-color: #13111f;
    padding: 0 0.4rem;
    color: var(--accent-purple);
    font-weight: 500;
}

.form-input:focus ~ .form-icon {
    color: var(--accent-purple);
}

/* Mensaje de Éxito del Formulario */
.form-status-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-status-msg.hidden {
    display: none;
}

.status-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.status-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.status-desc {
    color: var(--text-secondary);
    max-width: 320px;
    font-size: 0.95rem;
}

/* 10. FOOTER */
.footer-wrapper {
    background-color: #040306;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 380px;
    margin-bottom: 1.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-purple-glow);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* 11. Animaciones y Clases Auxiliares */

/* Animación de Entrada al Hacer Scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos de Entrada Directos */
.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up:nth-child(1) { animation-delay: 0.1s; }
.animate-slide-up:nth-child(2) { animation-delay: 0.2s; }
.animate-slide-up:nth-child(3) { animation-delay: 0.3s; }
.animate-slide-up:nth-child(4) { animation-delay: 0.4s; }

/* Keyframes */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

@keyframes float-y {
    0% { transform: translate(var(--parallax-x), var(--parallax-y)); }
    50% { transform: translate(var(--parallax-x), calc(var(--parallax-y) - 15px)); }
    100% { transform: translate(var(--parallax-x), var(--parallax-y)); }
}

@keyframes float-x {
    0% { transform: translate(var(--parallax-x), var(--parallax-y)); }
    50% { transform: translate(calc(var(--parallax-x) + 12px), var(--parallax-y)); }
    100% { transform: translate(var(--parallax-x), var(--parallax-y)); }
}

@keyframes float-diag {
    0% { transform: translate(var(--parallax-x), var(--parallax-y)); }
    50% { transform: translate(calc(var(--parallax-x) + 10px), calc(var(--parallax-y) - 10px)); }
    100% { transform: translate(var(--parallax-x), var(--parallax-y)); }
}

@keyframes float-rot {
    0% { transform: translate(var(--parallax-x), var(--parallax-y)) rotate(0deg); }
    50% { transform: translate(var(--parallax-x), calc(var(--parallax-y) - 10px)) rotate(3deg); }
    100% { transform: translate(var(--parallax-x), var(--parallax-y)) rotate(0deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 12. Media Queries (Responsive Design) */

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7rem;
        gap: 4rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        height: 380px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card-full {
        grid-column: span 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Mobile performance: render critical content immediately. */
    .animate-slide-up,
    .animate-fade-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .bg-glow {
        display: none;
    }

    .glass-card,
    .navbar-wrapper.scrolled,
    .mobile-menu-drawer,
    .lang-toggle-btn {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    main > section:not(#inicio) {
        content-visibility: auto;
        contain-intrinsic-size: 1px 900px;
    }

    .pulse-dot,
    .whatsapp-pulse-ring {
        animation: none !important;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 8px;
    }
    
    .timeline-dot {
        left: -2.3rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-tech-badge {
        display: none; /* Ocultar badges flotantes en pantallas muy pequeñas */
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 6.5rem;
        padding-bottom: 3rem;
        gap: 0;
    }

    .hero-visual {
        display: none;
    }

    .hero-preview-card {
        transform: none;
    }
    
    .hero-preview-card:hover {
        transform: translateY(-5px);
    }
}

/* 13. Chatbot Widget Styles */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-body);
}

.chatbot-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-purple-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.chatbot-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    animation: pulseGlow 2s infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.chatbot-container {
    position: fixed;
    right: 30px;
    bottom: 110px;
    width: min(360px, calc(100dvw - 32px));
    height: min(500px, calc(100dvh - 130px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-smooth);
    transform-origin: bottom right;
}

.chatbot-container.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* Chat Header */
.chat-header {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-bot-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.chat-bot-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-bot-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

/* Messages Area */
.chat-messages {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: messageFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-bubble.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-top-left-radius: 4px;
}

.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: #fff;
    border-top-right-radius: 4px;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Quick Replies */
.chat-quick-replies {
    padding: 0.5rem 1.2rem 1rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reply-chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.reply-chip:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.05);
}

/* Chat Input Form */
.chat-input-form {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 8px;
    background: rgba(8, 7, 13, 0.3);
}

.chat-input-form input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 0.7rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input-form input:focus {
    border-color: var(--accent-purple);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.chat-send-btn:hover {
    background: var(--accent-cyan);
    transform: scale(1.05);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.5rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingPulse 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chatbot-container {
        right: 16px;
        bottom: 92px;
        width: calc(100dvw - 32px);
        height: min(450px, calc(100dvh - 112px));
    }
}

/* 10. CATALOG / PORTFOLIO SECTION */
.portfolio-section {
    position: relative;
    z-index: 10;
}

.catalog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-section .section-title {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
}

.portfolio-section .section-subtitle {
    max-width: 720px;
}

.catalog-group {
    margin-top: 3.5rem;
}

.catalog-group + .catalog-group {
    margin-top: 5rem;
}

.catalog-group-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

.catalog-group-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.16), rgba(59, 130, 246, 0.08));
    color: var(--accent-cyan);
    box-shadow: 0 12px 34px rgba(6, 182, 212, 0.1);
    font-size: 1.25rem;
}

.catalog-group-icon-purple {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.08));
    color: #a78bfa;
    box-shadow: 0 12px 34px rgba(139, 92, 246, 0.1);
}

.catalog-group-header span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.catalog-services .catalog-group-header span {
    color: #a78bfa;
}

.catalog-group-header h3 {
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
}

.catalog-group-header p {
    color: var(--text-secondary);
    font-size: 0.96rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.catalog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 318px;
    padding: 1.65rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.11), transparent 38%),
        linear-gradient(145deg, rgba(24, 22, 38, 0.92), rgba(12, 11, 20, 0.94));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
    transition: var(--transition-smooth);
}

.catalog-card::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--accent-cyan);
    opacity: 0.035;
    filter: blur(8px);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.catalog-card:hover {
    transform: translateY(-7px);
    border-color: rgba(6, 182, 212, 0.32);
    box-shadow: 0 18px 48px rgba(6, 182, 212, 0.1);
}

.catalog-card:hover::after {
    transform: scale(1.2);
    opacity: 0.07;
}

.catalog-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.catalog-card-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 1.2rem;
}

.catalog-badge {
    padding: 0.32rem 0.66rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalog-card h4 {
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.25;
}

.catalog-card > p {
    margin-bottom: 1.3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.catalog-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    list-style: none;
}

.catalog-features li {
    padding: 0.32rem 0.58rem;
    border: 1px solid rgba(6, 182, 212, 0.14);
    border-radius: 7px;
    background: rgba(6, 182, 212, 0.06);
    color: #b7cbd0;
    font-size: 0.72rem;
    font-weight: 600;
}

.catalog-service-card {
    min-height: 245px;
}

.catalog-services .catalog-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.09), transparent 38%),
        linear-gradient(145deg, rgba(24, 22, 38, 0.92), rgba(12, 11, 20, 0.94));
}

.catalog-services .catalog-card:hover {
    border-color: rgba(139, 92, 246, 0.34);
    box-shadow: 0 18px 48px rgba(139, 92, 246, 0.11);
}

.catalog-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2.5rem;
    margin-top: 4rem;
    padding: 2.5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.16), transparent 28%),
        radial-gradient(circle at 10% 100%, rgba(139, 92, 246, 0.18), transparent 34%),
        rgba(19, 17, 31, 0.72);
}

.catalog-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    color: var(--accent-cyan);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-cta h3 {
    margin-bottom: 0.55rem;
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.2;
}

.catalog-cta p {
    max-width: 700px;
    color: var(--text-secondary);
}

.catalog-cta-button {
    min-width: 155px;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .catalog-group {
        margin-top: 2.75rem;
    }

    .catalog-group + .catalog-group {
        margin-top: 3.5rem;
    }

    .catalog-group-header {
        gap: 0.9rem;
    }

    .catalog-group-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-card,
    .catalog-service-card {
        min-height: auto;
        padding: 1.4rem;
    }

    .catalog-cta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem;
    }

    .catalog-cta-button {
        width: 100%;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 24px rgba(18, 140, 126, 0.6);
    color: #fff;
}

.whatsapp-float i {
    margin-top: 1px;
}

/* WhatsApp Pulse Ring */
.whatsapp-pulse-ring {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    left: 0;
    top: 0;
    opacity: 0;
    animation: whatsappPulse 2s infinite;
    pointer-events: none;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* Language Selector Styles */
.lang-selector-wrapper {
    margin-left: 1.5rem;
    margin-right: 0.5rem;
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    color: #fff;
}

@media (max-width: 991px) {
    .lang-selector-wrapper {
        margin-left: auto;
        margin-right: 1rem;
    }
}

/* 17. VISUAL REFRESH 2026 */
section[id] {
    scroll-margin-top: 96px;
}

body {
    background:
        radial-gradient(circle at 82% 5%, rgba(139, 92, 246, 0.08), transparent 26rem),
        radial-gradient(circle at 8% 45%, rgba(6, 182, 212, 0.055), transparent 28rem),
        var(--bg-primary);
}

.container {
    max-width: 1260px;
    padding-right: 2rem;
    padding-left: 2rem;
}

.section-padding {
    padding-top: 5.75rem;
    padding-bottom: 5.75rem;
}

.section-header {
    margin-bottom: 3.25rem;
}

.section-title {
    font-size: clamp(2.25rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.navbar-wrapper {
    padding: 0.75rem 0;
    background: rgba(8, 7, 13, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.16);
}

.navbar-wrapper.scrolled {
    padding: 0.55rem 0;
    background: rgba(8, 7, 13, 0.92);
}

.navbar {
    min-height: 62px;
}

.logo-img {
    height: 46px;
}

.nav-links {
    gap: 1.55rem;
}

.nav-links a {
    font-size: 0.9rem;
}

.hero-section {
    min-height: min(900px, 100vh);
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: clamp(3rem, 7vw, 6rem);
    padding-top: 9rem;
    padding-bottom: 5rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -5rem;
    left: -8rem;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.08);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.hero-tag {
    margin-bottom: 1.4rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.13), rgba(6, 182, 212, 0.08));
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    letter-spacing: 0.04em;
}

.hero-title {
    max-width: 680px;
    margin-bottom: 1.5rem;
    background: linear-gradient(112deg, #ffffff 10%, #dbeafe 48%, #67e8f9 78%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(4rem, 6.7vw, 6.4rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 620px;
    margin-bottom: 2rem;
    color: #b5b7c3;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-buttons {
    margin-bottom: 1.6rem;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    min-height: 52px;
    padding-right: 1.7rem;
    padding-left: 1.7rem;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.48rem 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
}

.hero-highlights i {
    color: var(--accent-cyan);
}

.hero-visual {
    height: 520px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(139, 92, 246, 0.13);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.045) 48%, transparent 70%);
    box-shadow: 0 0 0 70px rgba(6, 182, 212, 0.015);
    pointer-events: none;
}

.hero-preview-card {
    max-width: 480px;
    background: linear-gradient(145deg, rgba(22, 19, 38, 0.94), rgba(10, 9, 17, 0.9));
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44), 0 0 50px rgba(139, 92, 246, 0.08);
}

.services-section,
.flow-section,
.stats-section,
.portfolio-section,
.contact-section,
.institution-section {
    position: relative;
}

.services-section::before,
.portfolio-section::before,
.institution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.16), rgba(139, 92, 246, 0.16), transparent);
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 2rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.1), transparent 36%),
        linear-gradient(150deg, rgba(20, 18, 34, 0.94), rgba(10, 9, 17, 0.92));
    border-radius: 18px;
}

.service-card:nth-child(2),
.service-card:nth-child(5) {
    background:
        radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.1), transparent 36%),
        linear-gradient(150deg, rgba(20, 18, 34, 0.94), rgba(10, 9, 17, 0.92));
}

.service-card:nth-child(3),
.service-card:nth-child(6) {
    background:
        radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.085), transparent 36%),
        linear-gradient(150deg, rgba(20, 18, 34, 0.94), rgba(10, 9, 17, 0.92));
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(139, 92, 246, 0.34);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32), 0 0 26px rgba(139, 92, 246, 0.08);
}

.service-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1.45rem;
    border-radius: 14px;
    font-size: 1.35rem;
}

.service-card-title {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.service-card-description {
    margin-bottom: 1.4rem;
    font-size: 0.89rem;
    line-height: 1.65;
}

.service-features {
    gap: 0.68rem;
    margin-top: auto;
}

.service-features li {
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.45;
}

.service-features i {
    margin-top: 0.22rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: none;
    padding-left: 0;
}

.timeline::before {
    display: none;
}

.timeline-item {
    grid-column: span 2;
    min-width: 0;
    margin-bottom: 0;
}

.timeline-item:nth-child(4) {
    grid-column: 2 / span 2;
}

.timeline-item:nth-child(5) {
    grid-column: 4 / span 2;
}

.timeline-dot {
    top: 1.25rem;
    right: 1.25rem;
    left: auto;
    width: 34px;
    height: 34px;
    background: rgba(6, 182, 212, 0.11);
    border-color: rgba(6, 182, 212, 0.5);
}

.timeline-item:nth-child(even) .timeline-dot {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.5);
}

.timeline-content {
    height: 100%;
    min-height: 225px;
    margin-left: 0;
    padding: 1.75rem;
    padding-right: 4.2rem;
    background: linear-gradient(145deg, rgba(21, 18, 35, 0.9), rgba(10, 9, 17, 0.88));
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.22);
}

.timeline-step {
    margin-bottom: 1.1rem;
}

.stats-section {
    padding-top: 2.25rem;
    padding-bottom: 5.75rem;
}

.stats-grid {
    gap: 1rem;
}

.stat-card {
    min-height: 205px;
    display: grid;
    place-content: center;
    padding: 2rem 1.25rem;
    background:
        linear-gradient(145deg, rgba(21, 18, 35, 0.9), rgba(10, 9, 17, 0.88));
}

.stat-number {
    font-size: clamp(2.15rem, 3.2vw, 3.15rem);
}

.portfolio-section .section-title {
    max-width: 980px;
}

.catalog-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.catalog-card {
    grid-column: span 2;
}

.catalog-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.catalog-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.catalog-cta {
    border-color: rgba(139, 92, 246, 0.22);
    border-radius: 24px;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.contact-grid {
    gap: 3.25rem;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.09), transparent 32%),
        linear-gradient(145deg, rgba(16, 14, 27, 0.9), rgba(8, 7, 13, 0.92));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.contact-form-wrapper {
    padding: clamp(1.75rem, 4vw, 3rem);
    background: rgba(19, 17, 31, 0.78);
}

.contact-details {
    gap: 1.4rem;
}

.detail-item {
    padding: 0.75rem;
    border-radius: 14px;
    transition: var(--transition-fast);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.025);
}

.institution-section {
    padding-top: 4.5rem;
}

.institution-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.institution-card {
    position: relative;
    min-height: 300px;
    padding: 2.3rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.13), transparent 34%),
        linear-gradient(145deg, rgba(21, 18, 35, 0.92), rgba(10, 9, 17, 0.9));
    transition: var(--transition-smooth);
}

.institution-card:last-child {
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(21, 18, 35, 0.92), rgba(10, 9, 17, 0.9));
}

.institution-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
}

.institution-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    font-size: 1.4rem;
}

.institution-icon-purple {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.institution-card > span {
    color: var(--accent-cyan);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.institution-card:last-child > span {
    color: #a78bfa;
}

.institution-card h3 {
    margin: 0.45rem 0 0.9rem;
    font-family: var(--font-heading);
    font-size: 1.7rem;
}

.institution-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.75;
}

.footer-wrapper {
    padding-top: 4rem;
    background:
        radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.055), transparent 22rem),
        #040306;
}

.footer-content {
    grid-template-columns: 1.6fr repeat(3, minmax(0, 0.8fr));
    gap: 2.5rem;
    margin-bottom: 2.75rem;
}

.footer-desc {
    max-width: 420px;
    line-height: 1.7rem;
}

.footer-title {
    margin-bottom: 1.15rem;
    font-size: 0.95rem;
}

.footer-nav ul {
    gap: 0.65rem;
}

.social-links a:nth-child(1):hover {
    background: #0a66c2;
}

.social-links a:nth-child(2):hover {
    background: #1877f2;
}

.social-links a:nth-child(3):hover {
    background: linear-gradient(135deg, #6f3cc3, #db2777, #f59e0b);
}

@media (max-width: 1100px) {
    .hero-section {
        grid-template-columns: 1fr 0.9fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(3.6rem, 6.4vw, 5rem);
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-item,
    .timeline-item:nth-child(4),
    .timeline-item:nth-child(5) {
        grid-column: auto;
    }

    .timeline-item:last-child {
        grid-column: 1 / -1;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-card,
    .catalog-card:nth-child(4),
    .catalog-card:nth-child(5) {
        grid-column: auto;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .section-padding {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .navbar-wrapper,
    .navbar-wrapper.scrolled {
        padding: 0.45rem 0;
    }

    .hero-section {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 7.25rem;
        padding-bottom: 3.5rem;
        text-align: center;
    }

    .hero-tag,
    .hero-highlights,
    .hero-buttons {
        justify-content: center;
    }

    .hero-subtitle {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-title {
        margin-right: auto;
        margin-left: auto;
        font-size: clamp(3.15rem, 12vw, 4.3rem);
    }

    .hero-visual {
        height: 390px;
    }

    .services-grid,
    .timeline,
    .catalog-grid,
    .institution-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item,
    .timeline-item:last-child,
    .catalog-card,
    .catalog-card:nth-child(4),
    .catalog-card:nth-child(5) {
        grid-column: auto;
    }

    .service-card {
        min-height: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        padding: 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-highlights {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-highlights span {
        justify-content: center;
    }

    .hero-buttons {
        align-items: stretch !important;
    }

    .hero-buttons a {
        width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .institution-card {
        min-height: auto;
        padding: 1.65rem;
    }
}


/* 18. SINGLE SCROLL & MOBILE RESPONSIVENESS */
html {
    max-width: 100%;
    overflow-x: clip;
    overflow-y: auto;
}

body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
}

body > main,
.navbar-wrapper,
.footer-wrapper {
    max-width: 100%;
}

.mobile-menu-drawer {
    width: min(300px, 88vw);
    max-width: 100%;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.social-links a:nth-child(4):hover {
    background: #181717;
}

@media (max-width: 768px) {
    .navbar {
        min-width: 0;
        gap: 0.65rem;
    }

    .logo-img {
        height: 40px;
    }

    .lang-selector-wrapper {
        margin-left: auto;
        margin-right: 0.35rem;
    }

    .lang-toggle-btn {
        padding: 0.55rem 0.7rem;
    }

    .mobile-menu-btn {
        flex: 0 0 auto;
    }

    .contact-grid,
    .contact-info,
    .contact-form-wrapper,
    .footer-content,
    .footer-brand,
    .detail-item > div:last-child {
        min-width: 0;
    }

    .detail-item {
        align-items: flex-start;
    }

    .detail-value,
    .footer-desc,
    .catalog-group-header p {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .section-padding {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }

    .navbar {
        min-height: 56px;
    }

    .logo-img {
        height: 38px;
    }

    .mobile-menu-drawer {
        width: min(320px, 100vw);
        padding: 1.5rem;
        gap: 1.75rem;
    }

    .hero-title {
        font-size: clamp(2.4rem, 13vw, 3rem);
    }

    .contact-grid {
        padding: 1rem;
        border-radius: 20px;
    }

    .contact-form-wrapper,
    .service-card,
    .catalog-card,
    .institution-card {
        padding: 1.35rem;
    }
}


/* 19. PROFESSIONAL HORIZONTAL BRAND LOCKUP */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0.34rem 0.78rem 0.34rem 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(19, 17, 31, 0.82), rgba(10, 9, 17, 0.72));
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
    transition: var(--transition-fast);
}

.brand-lockup:hover {
    border-color: rgba(103, 232, 249, 0.28);
    background: linear-gradient(145deg, rgba(24, 22, 40, 0.94), rgba(12, 11, 20, 0.88));
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.09);
    transform: translateY(-1px);
}

.brand-mark {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 38px;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.brand-mark-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    max-width: none;
    object-fit: contain;
    transform: translate(-50%, -32%);
}

.brand-wordmark {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-wordmark strong {
    color: #f8fafc;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.brand-wordmark strong em {
    color: #67e8f9;
    font-style: normal;
}

.brand-wordmark small {
    margin-top: 0.3rem;
    color: #8f93a3;
    font-family: var(--font-body);
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    white-space: nowrap;
}

.footer-brand .brand-lockup {
    display: inline-flex;
    width: auto;
    height: auto;
    margin-bottom: 1.35rem;
    padding: 0.42rem 0.9rem 0.42rem 0.45rem;
    border-color: rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    background: rgba(14, 12, 24, 0.82);
}

.footer-brand .brand-mark {
    width: 58px;
    height: 44px;
}

.footer-brand .brand-mark-image {
    width: 68px;
    height: 68px;
}

.footer-brand .brand-wordmark strong {
    font-size: 1.08rem;
}

@media (max-width: 1050px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .lang-selector-wrapper {
        margin-left: auto;
        margin-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .brand-lockup {
        gap: 0.52rem;
        padding: 0.28rem 0.58rem 0.28rem 0.3rem;
        border-radius: 12px;
    }

    .brand-mark {
        width: 44px;
        height: 35px;
        border-radius: 8px;
    }

    .brand-mark-image {
        width: 54px;
        height: 54px;
    }

    .brand-wordmark strong {
        font-size: 0.82rem;
    }

    .brand-wordmark small {
        margin-top: 0.24rem;
        font-size: 0.46rem;
        letter-spacing: 0.22em;
    }

    .lang-toggle-btn {
        padding-right: 0.62rem;
        padding-left: 0.62rem;
    }

    .footer-brand .brand-lockup {
        padding: 0.36rem 0.72rem 0.36rem 0.38rem;
    }
}

