:root {
    --bg-color: #030303;
    --card-bg: #111111;
    --primary: #00f2ff;
    --secondary: #7000ff;
    --text-white: #ffffff;
    --text-dim: #cbd5e1;
}

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

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

/* Fondo decorativo */
.bg-glow {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, #1a0033 0%, transparent 50%);
    z-index: -1;
}

/* --- NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 10%;
    align-items: center;
    position: sticky;
    top: 0;
    backdrop-filter: blur(15px);
    background: rgba(3, 3, 3, 0.7);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #c99ff0, #7000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span { color: var(--primary); -webkit-text-fill-color: var(--primary); }

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

/* Botones con animaciones creativas */
.btn-primary, .btn-main {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
    overflow: hidden;
    display: inline-block;
}

.btn-primary:hover, .btn-main:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.nav-btn-secondary, .btn-sub {
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn-secondary:hover, .btn-sub:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

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

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
}

.gradient-text {
    background: linear-gradient(90deg, #00f2ff, #7000ff, #00f2ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    filter: drop-shadow(0 0 15px rgba(112, 0, 255, 0.7));
}

@keyframes shine { to { background-position: 200% center; } }

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns { display: flex; gap: 1.5rem; }

/* --- VISUAL ELEMENTS --- */
.floating-sphere {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    filter: blur(80px);
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: -100px;
    animation: float 8s ease-in-out infinite;
    opacity: 0.4;
}

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

/* --- CARDS ACTUALIZADAS CON H3 RESALTANTE --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 5rem 10% 10rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 4rem 2.5rem;
    border-radius: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-25px) scale(1.05);
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.15) 0%, rgba(0, 242, 255, 0.05) 100%);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(112, 0, 255, 0.3);
}

.card .icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.5));
}

/* --- MEJORA CRÍTICA DEL H3 --- */
.card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    
    /* Gradiente de alto contraste */
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Resplandor de neón para que no se pierda */
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.8));
    
    transition: all 0.4s ease;
}

.card:hover h3 {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 15px var(--primary));
    transform: scale(1.05);
}

.card p {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* --- WIDGET DE CONTACTO --- */
.card-contact {
    text-decoration: none;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.2) 0%, rgba(3, 3, 3, 0.8) 100%) !important;
}

.contact-link {
    margin-top: auto;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 1rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .card h3 { font-size: 1.8rem; }
}