:root {
    /* Paleta de colores Dark Theme Tecnológico */
    --bg-dark: #030508;
    --primary-glow: #00f0ff;    /* Cyan/Neon */
    --secondary-glow: #7000ff;  /* Deep Purple */
    --accent: #ff0055;
    
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(16px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo, .badge {
    font-family: 'Space Grotesk', sans-serif;
}

/* Background Interactive Elements */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: var(--bg-dark);
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Un gradiente radial que añade profundidad */
    background: radial-gradient(circle at 50% 50%, rgba(3,5,8,0.2) 0%, rgba(3,5,8,0.9) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(3, 5, 8, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
}

.logo .dot {
    color: var(--primary-glow);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-glow);
}

.btn-nav {
    border: 1px solid rgba(0, 240, 255, 0.5);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.05);
}

.btn-nav:hover {
    background: rgba(0, 240, 255, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 0;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: var(--primary-glow);
    display: inline-block;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.glow-text {
    background: linear-gradient(135deg, #ffffff 0%, #b4c4d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
}

.cta-button.primary {
    background: var(--primary-glow);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
    background: #fff;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
}

.cta-button.secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Services */
.services {
    padding: 8rem 5%;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Neon glow line top of cards */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0.3;
    transition: opacity 0.4s;
}

/* Glow behind on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(0, 240, 255, 0.2);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Colored Icons */
.icon-wrapper.rpa { color: #00f0ff; box-shadow: 0 0 20px rgba(0,240,255,0.2); }
.icon-wrapper.auto { color: #ff0055; box-shadow: 0 0 20px rgba(255,0,85,0.2); }
.icon-wrapper.ia { color: #7000ff; box-shadow: 0 0 20px rgba(112,0,255,0.2); }
.icon-wrapper.cloud { color: #0088ff; box-shadow: 0 0 20px rgba(0,136,255,0.2); }
.icon-wrapper.cons { color: #ffc800; box-shadow: 0 0 20px rgba(255,200,0,0.2); }
.icon-wrapper.power { color: #ff00ea; box-shadow: 0 0 20px rgba(255,0,234,0.2); }
.icon-wrapper.data { color: #00ff73; box-shadow: 0 0 20px rgba(0,255,115,0.2); }

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: white;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Bottom CTA */
.bottom-cta {
    padding: 5rem 5%;
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 900px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 50%;
    height: 100%;
    background: var(--secondary-glow);
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.cta-input-group input {
    flex-grow: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    color: white;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.cta-input-group input:focus {
    border-color: var(--primary-glow);
}

.cta-input-group button {
    border: none;
    outline: none;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 2rem 5%;
    text-align: center;
    background: rgba(0,0,0,0.5);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* About Section */
.about {
    padding: 6rem 5% 2rem;
    position: relative;
    z-index: 10;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 4rem 3rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-size: 1.5rem !important;
    font-weight: 600;
    color: white !important;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.4;
    border-bottom: 2px solid var(--primary-glow);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 25px !important;
}

/* Contact Links */
.contact-info {
    margin-top: 2rem;
}

.email-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 1.2rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.email-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.25);
    border-color: rgba(0, 240, 255, 0.6);
}

.secondary-email {
    background: rgba(112, 0, 255, 0.1);
    border: 1px solid rgba(112, 0, 255, 0.3);
}

.secondary-email:hover {
    background: rgba(112, 0, 255, 0.2);
    box-shadow: 0 15px 35px rgba(112, 0, 255, 0.25);
    border-color: rgba(112, 0, 255, 0.6);
}

/* Logos */
.logo-img {
    height: 48px;
    width: auto;
    mix-blend-mode: screen; /* Oculta el fondo negro de la imagen */
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-img-footer {
    height: 70px;
    width: auto;
    mix-blend-mode: screen;
    margin-bottom: 0.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; } /* En un caso real se usa un menu hamburguesa */
    .hero-actions { flex-direction: column; width: 100%; align-items: center; }
    .hero-actions a { width: 100%; max-width: 300px; text-align: center; }
    .cta-input-group { flex-direction: column; }
    .cta-input-group button { width: 100%; }
}
