/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores de UnicoreHosting basados en el logo */
    --color-primary: #4A90E2;
    --color-secondary: #7B68EE;
    --color-accent: #FF6B9D;
    --color-rocket: #E63946;
    --color-purple: #9B59B6;
    --color-blue-light: #5DADE2;
    
    /* Colores del sistema */
    --color-bg-dark: #0a0a0a;
    --color-bg-darker: #000000;
    --color-text: #ffffff;
    --color-text-secondary: #b3b3b3;
    --color-text-tertiary: #808080;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    
    /* Espaciado */
    --sidebar-width: 80px;
    --menu-panel-width: 420px;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #7B68EE 100%);
    --gradient-secondary: linear-gradient(135deg, #9B59B6 0%, #FF6B9D 100%);
    --gradient-rocket: linear-gradient(135deg, #E63946 0%, #FF6B9D 100%);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   FONDO ANIMADO
   ============================================ */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0a0514 0%, #000000 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 70%);
    bottom: -300px;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* ============================================
   NAVBAR HORIZONTAL
   ============================================ */
.navbar {
    position: fixed;
    top: 5px;
    left: 10px;
    right: 10px;
    height: 80px;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 0px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 20, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-icon {
    transform: scale(1.05) rotate(5deg);
}

.navbar-brand .logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Menú desktop */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
    background: rgba(74, 144, 226, 0.1);
}

.nav-link.active::before {
    transform: scaleX(1);
}

/* Acciones navbar */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-register {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Botón menú móvil */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   PANEL MENÚ MÓVIL
   ============================================ */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .menu-logo h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.close-mobile-menu {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.close-mobile-menu svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-link svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(74, 144, 226, 0.1);
    transform: translateX(8px);
}

.mobile-menu-link.highlight {
    background: var(--gradient-primary);
    color: white;
}

.mobile-menu-link.highlight svg {
    color: white;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.main-content {
    margin-top: 80px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 80px;
    gap: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* ============================================
   HERO VISUAL - TARJETAS FLOTANTES
   ============================================ */
.hero-visual {
    flex: 3;
    position: relative;
    height: 8%;
    width: 90%;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-card {
    position: absolute;
    background: rgba(20, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: 100px;
    animation-delay: -2s;
}

.card-3 {
    bottom: 80px;
    left: 100px;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.features,
.nodes,
.cta {
    padding: 100px 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(20, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   NODES GRID
   ============================================ */
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.node-card {
    background: rgba(20, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.node-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.2);
}

.node-flag {
    font-size: 48px;
    margin-bottom: 16px;
}

.node-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.node-location {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.node-specs {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.spec-value {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    text-align: center;
    background: rgba(20, 15, 30, 0.4);
    border-radius: 30px;
    margin: 0 80px 80px;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 80px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--color-text-tertiary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 30px;
    }
    
    .navbar-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features,
    .nodes,
    .cta {
        padding: 80px 40px;
    }
    
    .footer {
        padding: 60px 40px 30px;
    }
}

@media (max-width: 768px) {
    /* Ocultar menú desktop */
    .desktop-menu,
    .desktop-actions {
        display: none;
    }
    
    /* Mostrar botón hamburguesa */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar {
        height: 70px;
    }
    
    .navbar-container {
        padding: 0 20px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid,
    .nodes-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .navbar-brand .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .navbar-brand .logo-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta {
        margin: 0 20px 40px;
        padding: 60px 30px;
    }
    
    .cta-title {
        font-size: 32px;
    }
}
