:root {
    --bg-color: #060840; /* Azul Profundo */
    --bg-card: #0A0D5B; /* Azul un poco más claro para contraste */
    --text-primary: #FFFFFF;
    --text-secondary: #ADB5BD;
    --primary: #4FAA2C; /* Verde XHOST */
    --primary-hover: #3E8F21;
    --accent: #97DF77; /* Verde claro */
    --success: #4FAA2C;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    padding: 24px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(6, 8, 64, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
}

.brand-x { color: var(--primary); }
.brand-host { color: #fff; }

.badge {
    background: rgba(79, 170, 44, 0.15);
    color: var(--accent);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(79, 170, 44, 0.4);
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: white;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: white;
    color: var(--bg-color);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
}

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

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 170, 44, 0.15) 0%, rgba(6, 8, 64, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tagline {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-size: 14px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.stat-item strong {
    font-family: var(--font-heading);
    font-size: 36px;
    display: block;
    color: white;
}

.stat-item span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Sections */
section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.grid {
    display: grid;
    gap: 24px;
}

/* Features */
.features .grid {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px -6px rgba(79, 170, 44, 0.3);
}

.icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 16px;
}

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

/* Clients */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.client-card {
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.client-card:hover {
    color: white;
    border-color: var(--primary);
    background: rgba(79, 170, 44, 0.1);
}

/* Pricing */
.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.pricing-toggle span {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    font-weight: 500;
}

.pricing-toggle span.active {
    background: var(--primary);
    color: white;
}

.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.pricing-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 16px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 8px;
}

.price span {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-annual {
    color: var(--success);
    font-size: 14px;
    margin-bottom: 32px;
    font-weight: 500;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.features-list li strong {
    color: white;
}

/* Technology */
.tech-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.tech-content h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 24px;
}

.tech-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 18px;
}

.tech-list {
    list-style: none;
    margin-bottom: 24px;
}

.tech-list li {
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.tech-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.tech-list li strong {
    color: white;
}

.tech-note {
    font-size: 14px;
    padding: 16px;
    background: rgba(79, 170, 44, 0.1);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}

.server-rack {
    background: var(--bg-card);
    padding: 80px 40px;
    border-radius: 12px;
    border: 2px solid #2a3441;
    position: relative;
    text-align: center;
    font-family: monospace;
    color: #64748b;
    font-size: 14px;
    letter-spacing: 2px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.server-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 20px;
}

.server-led.green { background: #4FAA2C; left: 20px; box-shadow: 0 0 10px #4FAA2C; }
.server-led.blue { background: #17A2B8; left: 40px; box-shadow: 0 0 10px #17A2B8; }
.server-led.blink { 
    background: #DC3545; 
    left: 60px; 
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #DC3545; }
    50% { opacity: 0.3; box-shadow: none; }
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 64px 0 24px;
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.footer-links h4 {
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: #475569;
    font-size: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 40px; }
    .features .grid, .pricing-grid, .tech-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
    .stats { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 40px; }
}
