:root {
    /* Colors */
    --bg-main: #06090f;
    --bg-secondary: #0d1117;
    --bg-glass: rgba(13, 17, 23, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);

    --primary: #00ff41;
    /* Hacker Green */
    --primary-dim: rgba(0, 255, 65, 0.2);
    --secondary: #00bfff;
    /* Cyber Blue */

    --text-main: #f0f6fc;
    --text-muted: #8b949e;

    --matrix-red: #ff3b30;
    --matrix-blue: #0a84ff;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --glow-primary: 0 0 20px var(--primary-dim);
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --bg-main: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.1);

    --primary: #008a22;
    /* Hacker Green (Darkened for contrast) */
    --primary-dim: rgba(0, 138, 34, 0.1);
    --secondary: #0056b3;
    /* Cyber Blue (Darkened) */

    --text-main: #2d3748;
    --text-muted: #5e6d82;
    /* Slightly darker for readability in light mode */

    --glow-primary: 0 0 15px var(--primary-dim);

    /* Softer glass for light mode */
    --bg-glass-nav: rgba(226, 232, 240, 0.85);
    /* Slightly darker slate for better acrylic feel */
}

[data-theme="light"] .brand-text,
[data-theme="light"] .hero-text h1,
[data-theme="light"] .feature-card h3,
[data-theme="light"] .p-title,
[data-theme="light"] .acc-header h4,
[data-theme="light"] .team-info h4,
[data-theme="light"] .contact-info h2,
[data-theme="light"] .info-item h5,
[data-theme="light"] .f-name {
    color: var(--text-main);
}

[data-theme="light"] .brand-logo {
    /* Extreme visibility filters for absolute contrast */
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.9)) brightness(1.2) contrast(1.4);
    transition: var(--transition);
}

[data-theme="light"] .footer-links h4 {
    color: var(--text-main);
}

[data-theme="light"] .cyber-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

[data-theme="light"] .hero-bg-canvas {
    background: radial-gradient(circle at 50% 50%, rgba(0, 138, 34, 0.05) 0%, var(--bg-main) 70%);
}

[data-theme="light"] .footer {
    background: #e2e8f0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-bottom {
    background: #cbd5e1;
    color: #475569;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .terminal-header {
    background: #cbd5e1;
}

[data-theme="light"] .terminal-body {
    background: #ffffff;
    color: #008a22;
    /* Hacker green that matches light mode primary */
}

/* Cyber Alert Styling */
.cyber-alert {
    background: rgba(255, 59, 48, 0.1);
    border-left: 4px solid #ff3b30;
    padding: 15px;
    border-radius: 4px;
}

.cyber-alert p {
    font-size: 0.9rem;
    color: #ffcccc;
    /* For dark mode */
}

[data-theme="light"] .cyber-alert {
    background: rgba(255, 59, 48, 0.08);
}

[data-theme="light"] .cyber-alert p {
    color: #a41c14;
    /* Dark red for readability in light mode */
}

[data-theme="light"] .emergency-trigger:hover {
    color: #ffffff !important;
}

/* Base Emergency hover fix for both modes */
.emergency-trigger:hover::after {
    background: #ff3b30 !important;
}

.emergency-trigger:hover {
    color: #ffffff !important;
    border-color: #ff3b30 !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.text-center {
    text-align: center;
}

.text-gray {
    color: var(--text-muted);
}

.highlight {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.cyber-loader {
    width: 60px;
    height: 60px;
    border: 3px solid var(--bg-secondary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite, glowPulse 2s infinite alternate;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

.cyber-border {
    border: 1px solid var(--border-glass);
    background: var(--bg-secondary);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: 0.5s ease;
}

.cyber-border:hover::before {
    transform: translateX(100%);
}

.cyber-border:hover {
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: var(--glow-primary);
    transform: translateY(-5px);
}

/* Buttons */
.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.3s ease, 
                color 0.3s ease, 
                background 0.3s ease, 
                filter 0.3s ease;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cyber-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--primary);
    z-index: -1;
    transition: 0.3s ease;
}

.cyber-btn:hover::after {
    height: 100%;
}

.cyber-btn:hover {
    color: var(--bg-main);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.cyber-btn.primary {
    background: var(--primary);
    color: var(--bg-main);
}

.cyber-btn.primary:hover {
    background: var(--primary);
    filter: brightness(1.1) saturate(1.1);
    color: var(--bg-main);
    box-shadow: 0 0 30px var(--primary-dim);
    transform: translateY(-2px);
    transition: 0.3s ease;
}

.cyber-btn.secondary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.cyber-btn.secondary::after {
    background: var(--secondary);
}

.cyber-btn.secondary:hover {
    color: var(--bg-main);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.cyber-btn.sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.with-bg {
    background: linear-gradient(180deg, var(--bg-main), var(--bg-secondary));
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
}

[data-theme="light"] .navbar.scrolled {
    background: var(--bg-glass-nav);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 45px;
    height: auto;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links li a:not(.cyber-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links li a:not(.cyber-btn):hover::after {
    width: 100%;
}

.nav-links li a:not(.cyber-btn):hover {
    color: var(--primary);
}

.badge {
    background: #ffd700;
    color: #000;
    font-size: 0.6rem;
    padding: 2px 6px;
    position: absolute;
    top: -10px;
    right: -15px;
    border-radius: 4px;
    font-weight: bold;
    animation: bounce 2s infinite;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

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

.hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.05) 0%, var(--bg-main) 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cyber-tag {
    display: inline-block;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

/* Terminal Visal */
.hero-visual {
    perspective: 1000px;
}

.glass-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    overflow: hidden;
}

.glass-panel:hover {
    transform: rotateY(-5deg) rotateX(2deg);
    box-shadow: var(--glow-primary);
    border-color: rgba(0, 255, 65, 0.3);
}

.terminal-header {
    background: #1a1e26;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.8rem;
}

.terminal-body {
    padding: 25px;
    height: 300px;
    overflow-y: hidden;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    position: relative;
}

.terminal-body::after {
    content: '|';
    animation: blink 1s infinite;
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 30px 0;
    position: relative;
    display: flex;
}

.marquee-content {
    display: flex;
    gap: 80px;
    align-items: center;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content img {
    height: 50px;
    filter: grayscale(100%) opacity(0.5);
    transition: 0.4s;
    user-select: none;
}

.marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Shared Sections */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Features (Empresa) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: var(--primary-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    border: 1px solid rgba(0, 255, 65, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

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

/* Program Concientizacion */
.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.program-item {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.program-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(0, 191, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.p-icon img {
    height: 70px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.5));
}

.program-item h4 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.program-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    padding: 40px;
    text-align: center;
    position: relative;
    transition: 0.4s;
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.08);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-main);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

.p-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.p-dur {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.p-price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
}

.p-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.p-features {
    margin-bottom: 30px;
    text-align: left;
}

.p-features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-features i {
    color: var(--primary);
}

.highlight-feature {
    color: #ffd700;
    font-weight: 600;
}

.highlight-feature i {
    color: #ffd700;
}

/* Pentest Split Section */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.img-wrapper {
    padding: 20px;
    border-radius: 12px;
}

.floating {
    animation: float 6s ease-in-out infinite;
    border-radius: 8px;
}

.accordion {
    margin-top: 30px;
}

.acc-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    overflow: hidden;
}

.acc-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.acc-header h4 {
    font-size: 1.1rem;
    color: white;
    margin: 0;
}

.acc-header i {
    transition: transform 0.3s;
    color: var(--primary);
}

.acc-body {
    padding: 0 20px 20px;
    display: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.acc-item.active .acc-header {
    background: rgba(0, 255, 65, 0.05);
}

.acc-item.active .acc-body {
    display: block;
}

.acc-item.active .acc-header i {
    transform: rotate(180deg);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-card {
    text-align: center;
}

.team-img-wrapper {
    border-radius: 50%;
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.team-img-wrapper:hover img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 65, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
    border-radius: 50%;
}

.team-img-wrapper:hover .team-overlay {
    opacity: 1;
}

.cyber-social-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: 0.3s;
}

.cyber-social-btn:hover {
    background: white;
    transform: translateY(-5px);
}

.team-info h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: white;
}

.team-info .role {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Certifications */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.cert-img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    transition: 0.4s;
}

.cert-img:hover {
    transform: scale(1.1);
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    padding: 0;
    overflow: hidden;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 50px;
    border-right: 1px solid var(--border-glass);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.contact-info p {
    color: var(--text-muted);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-dim);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.info-item h5 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    padding: 50px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.half {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cyber-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 14px 20px;
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.cyber-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    background: rgba(0, 255, 65, 0.05);
}

.cyber-input option {
    background: #0d1117;
    /* Match bg-secondary for dark mode */
    color: #f0f6fc;
    /* Match text-main for dark mode */
}

[data-theme="light"] .cyber-input option {
    background: #ffffff;
    color: #2d3748;
}

/* Footer */
.footer {
    background: #040608;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    container: auto;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.f-logo {
    width: 60px;
    margin-bottom: 15px;
}

.f-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.4rem;
    margin-right: 15px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    display: inline-block;
}

.footer-links h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    background: #000;
    padding: 25px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating WS */
.wsp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: 0.3s;
}

.wsp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Matrix Quiz Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cyber-modal {
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.2);
}

#modalMatrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
}

.close-modal:hover {
    color: var(--matrix-red);
}

.modal-inner {
    position: relative;
    z-index: 1;
}

.pill-choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.pill-btn {
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.pill-btn.blue {
    background: var(--matrix-blue);
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.4);
}

.pill-btn.blue:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(10, 132, 255, 0.7);
    filter: brightness(1.1);
}

.pill-btn.red {
    background: var(--matrix-red);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.4);
}

.pill-btn.red:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 59, 48, 0.7);
    filter: brightness(1.1);
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--primary);
    }

    100% {
        box-shadow: 0 0 20px var(--primary), inset 0 0 10px var(--primary);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(44px, 9999px, 86px, 0);
    }

    20% {
        clip: rect(32px, 9999px, 49px, 0);
    }

    40% {
        clip: rect(69px, 9999px, 95px, 0);
    }

    60% {
        clip: rect(9px, 9999px, 58px, 0);
    }

    80% {
        clip: rect(21px, 9999px, 12px, 0);
    }

    100% {
        clip: rect(11px, 9999px, 79px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(25px, 9999px, 68px, 0);
    }

    20% {
        clip: rect(8px, 9999px, 32px, 0);
    }

    40% {
        clip: rect(53px, 9999px, 87px, 0);
    }

    60% {
        clip: rect(15px, 9999px, 44px, 0);
    }

    80% {
        clip: rect(72px, 9999px, 19px, 0);
    }

    100% {
        clip: rect(38px, 9999px, 60px, 0);
    }
}

/* Scroll Animation Classes */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(6, 9, 15, 0.97);
        /* Casi sólido para que el contenido de fondo no ensucie la navegación */
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        gap: 15px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        border-left: none;
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
        /* Casi sólido en modo claro para máxima legibilidad sobre cualquier sección */
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        transition: 0.5s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered entrance animation */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(8) {
        transition-delay: 0.45s;
    }

    .nav-links li a {
        font-size: 1.8rem;
        font-family: var(--font-heading);
        font-weight: 700;
        padding: 10px;
        display: block;
        letter-spacing: 1px;
    }

    /* Adjust specific buttons in mobile menu */
    .theme-toggle {
        margin: 20px 0;
        transform: scale(1.2);
    }

    .nav-links .emergency-trigger {
        width: 80%;
        margin: 15px auto 0;
        /* Forzamos centrado con auto */
        display: inline-flex;
        justify-content: center;
        padding: 15px;
        font-size: 1.1rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .features-grid,
    .pricing-cards,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .split-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .program-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .p-price {
        font-size: 2rem;
    }

    .pill-choices {
        flex-direction: column;
    }
}