:root {
    --bg-dark: #07070a;
    --bg-card: rgba(18, 18, 26, 0.85);
    --bg-card-hover: rgba(28, 28, 40, 0.95);
    --purple-primary: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.4);
    --yellow-accent: #facc15;
    --yellow-glow: rgba(250, 204, 21, 0.4);
    --neon-green: #00ff66;
    --neon-green-glow: rgba(0, 255, 102, 0.4);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(168, 85, 247, 0.25);
    --border-highlight: rgba(250, 204, 21, 0.5);
    --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Matrix Background Canvas */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
}

/* Content wrapper above canvas */
.site-content {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--yellow-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--yellow-glow);
}

.navbar-brand .cloud-icon {
    color: var(--purple-primary);
    filter: drop-shadow(0 0 8px var(--purple-primary));
}

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

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--yellow-accent);
    text-shadow: 0 0 8px var(--yellow-glow);
    background: rgba(250, 204, 21, 0.1);
}

.btn-cyber {
    background: linear-gradient(135deg, var(--purple-primary), #7e22ce);
    color: #fff;
    border: 1px solid var(--yellow-accent);
    padding: 0.6rem 1.4rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--purple-glow);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--yellow-glow), 0 0 15px var(--purple-primary);
    background: linear-gradient(135deg, #c084fc, var(--purple-primary));
    color: #fff;
}

.btn-cyber-outline {
    background: transparent;
    color: var(--yellow-accent);
    border: 1px solid var(--yellow-accent);
    padding: 0.6rem 1.4rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-cyber-outline:hover {
    background: rgba(250, 204, 21, 0.15);
    color: #fff;
    box-shadow: 0 0 20px var(--yellow-glow);
}

/* Hero Section */
.hero-section {
    padding: 6rem 2rem 4rem;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 255, 102, 0.12);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-mono);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--yellow-accent) 70%, var(--purple-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

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

/* Cards & Grid */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.section-title {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 0.8rem;
}

.title-glow-purple {
    color: var(--purple-primary);
    text-shadow: 0 0 15px var(--purple-glow);
}

.title-glow-yellow {
    color: var(--yellow-accent);
    text-shadow: 0 0 15px var(--yellow-glow);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.cyber-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-primary), var(--yellow-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--purple-glow);
    background: var(--bg-card-hover);
}

.cyber-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--yellow-accent);
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px var(--yellow-glow);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--purple-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid var(--purple-primary);
    color: var(--purple-primary);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* Forms */
.cyber-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(7, 7, 10, 0.8);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--yellow-accent);
    box-shadow: 0 0 10px var(--yellow-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Admin Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(168, 85, 247, 0.15);
    color: var(--yellow-accent);
    font-family: var(--font-mono);
}

.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-nuevo { background: rgba(0, 255, 102, 0.2); color: var(--neon-green); border: 1px solid var(--neon-green); }
.status-leido { background: rgba(250, 204, 21, 0.2); color: var(--yellow-accent); border: 1px solid var(--yellow-accent); }
.status-respondido { background: rgba(168, 85, 247, 0.2); color: var(--purple-primary); border: 1px solid var(--purple-primary); }

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: rgba(7, 7, 10, 0.95);
    padding: 3rem 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--yellow-accent);
}
