/* =========================================
   KODERTI LABS - DESIGN SYSTEM
========================================= */
:root {
    --bg-dark: #0a0a0a;
    --bg-surface: #111111;
    --bg-elevated: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --text-muted: #52525b;
    --accent: #e4e4e7;
    --accent-glow: rgba(255,255,255,0.1);
    
    --font-main: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

body.dark-mode {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.lab-tag {
    font-weight: 400;
    color: var(--text-gray);
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:not(.btn) {
    color: var(--text-gray);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--text-white);
}

.nav-product-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    color: var(--text-white);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--text-white);
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.2rem;
}

.btn-primary:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

/* Abstract Tech Background */
.abstract-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.primary-orb {
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.secondary-orb {
    width: 400px;
    height: 400px;
    background: rgba(100,100,255,0.02);
    bottom: 10%;
    right: 20%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
}

/* =========================================
   NUESTRO ADN SECTION
========================================= */
.adn-section {
    padding: 120px 0;
    background-color: var(--bg-dark);
}

.adn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.adn-card {
    background: var(--bg-surface);
    border: 1px solid #333333;
    padding: 3rem;
    border-radius: 12px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.adn-card:hover {
    border-color: #555555;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.04); /* Ligero resplandor */
    transform: translateY(-3px);
}

.adn-icon {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    display: inline-block;
    opacity: 0.8;
}

.adn-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.adn-text {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* =========================================
   SOLUTIONS SECTION (PORTAFOLIO)
========================================= */
.solutions-section {
    padding: 120px 0;
    background-color: var(--bg-surface);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.portfolio-card {
    background: var(--bg-elevated);
    border: 1px solid #27272a;
    padding: 3rem;
    border-radius: 16px;
    text-align: left;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.rylvi-card {
    border-top: 4px solid #06B6D4;
}

.rylvi-card:hover {
    border-color: rgba(255,255,255,0.2);
    border-top-color: #7C3AED; /* Morado de Rylvi al hacer hover */
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.logo-placeholder span:not(.heart-icon) {
    font-size: 32px;
    color: var(--text-white);
}

.logo-placeholder .heart-icon {
    font-size: 16px;
    color: #06B6D4;
    position: absolute;
    bottom: -2px;
    right: -2px;
}

.logo-placeholder.blurred {
    opacity: 0.3;
    filter: blur(2px);
}

.badge.solid-badge {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #06B6D4;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    font-weight: 600;
}

.portfolio-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.portfolio-desc {
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
    flex-grow: 1;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.active-link {
    color: var(--text-white);
}

.active-link:hover {
    color: #06B6D4;
    gap: 0.8rem;
}

.disabled-card {
    opacity: 0.6;
    background: rgba(26, 26, 26, 0.5);
    border: 1px dashed #27272a;
}

.disabled-link {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* =========================================
   FOOTER KODERTI
========================================= */
.koderti-footer {
    padding: 100px 0 40px;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    margin-bottom: 80px;
}

.footer-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

.footer-left .logo {
    margin-bottom: 0.5rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-right a:hover {
    color: var(--text-white);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .nav-links { display: none; }
    
    .adn-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 2rem;
    }
}
