/* =====================================================
   STYLES QUANTUM - Estilos Base
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #00d4ff;
    --color-secondary: #7c3aed;
    --color-dark: #0a0e27;
    --color-darker: #1a1a3e;
    --color-bg: #0d1b2a;
    --color-text: #e0e0e0;
    --color-text-light: #d0d0d0;
    --color-text-muted: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #00d4ff, #7c3aed);
    --gradient-dark: linear-gradient(135deg, #0a0e27, #1a1a3e);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-darker) 50%, var(--color-bg) 100%);
    min-height: 100vh;
}

/* =====================================================
   HEADER & NAVEGACIÓN
   ===================================================== */

header {
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 26, 62, 0.95) 100%);
    border-bottom: 2px solid var(--color-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    vertical-align: top;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    cursor: pointer;
}

nav a {
    color: var(--color-primary);
    text-decoration: none;
    margin-left: 2rem;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

nav a:hover::after {
    width: 100%;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(0,212,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    font-weight: 900;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { text-shadow: 0 0 40px rgba(124, 58, 237, 0.5); }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* =====================================================
   CONTAINER & SECCIONES
   ===================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

section h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* =====================================================
   GRILLAS Y CARDS
   ===================================================== */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-secondary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.card:hover::before {
    left: 100%;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card h3 {
    color: var(--color-secondary);
}

.card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 26, 62, 0.95) 100%);
    border-top: 2px solid var(--color-primary);
    color: var(--color-text-muted);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--color-secondary);
}

/* =====================================================
   UTILIDADES
   ===================================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.opacity-hover {
    transition: opacity 0.3s ease;
}

.opacity-hover:hover {
    opacity: 0.8;
}
