:root {
    --primary-bg: #272727;
    --secondary-bg: #1a1a1a;
    --accent-green: #99ffa6;
    --accent-light: #72ff90;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --card-bg: #333333;
    --border-color: #444444;
    --danger-red: #ff6666;
    --warning-yellow: #ffeb3b;
}

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

body {
    font-family: Arial, 'Arial Nova', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
}

/* Typography Mix - IBM Plex Mono for titles, Arial Nova for content */
h1, h2, h3, .hero-content h1, .section-title, .service-title, .feature-title, .cta-title, .nav-menu a {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

.dashboard-header h3, .monitor-title, .status-label {
    font-family: 'IBM Plex Mono', monospace;
}

/* Buttons with tech typography */
.cta-button, .btn-secondary, button {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
}

/* Arial Nova variations for better readability */
p, .hero-subtitle, .section-subtitle {
    font-family: Arial, 'Arial Nova', sans-serif;
    font-weight: 300; /* Light weight for main content */
    font-size: 0.95rem; /* Slightly smaller */
}

.service-description, .feature-description, .cta-subtitle {
    font-family: Arial, 'Arial Nova', sans-serif;
    font-weight: 400; /* Normal weight for descriptions */
    font-size: 0.9rem; /* Smaller for descriptions */
}

.service-features li, .footer-description {
    font-family: Arial, 'Arial Nova', sans-serif;
    font-weight: 300; /* Light weight for lists */
    font-size: 0.85rem; /* Even smaller for lists */
}

.footer-links a, .hero-feature span {
    font-family: Arial, 'Arial Nova', sans-serif;
    font-weight: 400; /* Normal weight for links */
    font-size: 0.9rem; /* Smaller for links */
}

/* TECH EFFECTS */

/* Terminal Prompt Styles */
.terminal-prompt {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--accent-green);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.terminal-prompt::before {
    content: "user@seguridad72:~$ ";
    color: var(--accent-green);
}

/* Code Comments as Subtitles */
.code-comment {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.code-comment::before {
    content: "// ";
    color: var(--accent-green);
}

/* Glitch Effects */
.glitch-hover {
    position: relative;
    transition: all 0.3s ease;
}

.glitch-hover:hover {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-hover:hover::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    color: #333;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-1 0.3s infinite linear alternate-reverse;
}

.glitch-hover:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    color: #00ff00;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-2 0.3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    50% { clip: rect(12px, 9999px, 59px, 0); }
    100% { clip: rect(70px, 9999px, 18px, 0); }
}

@keyframes glitch-2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    50% { clip: rect(29px, 9999px, 98px, 0); }
    100% { clip: rect(103px, 9999px, 67px, 0); }
}

/* CRT Scanlines */
.scanlines {
    position: relative;
    overflow: hidden;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 50%, rgba(153, 255, 166, 0.03) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ASCII Art */
.ascii-art {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-green);
    opacity: 0.3;
    white-space: pre;
    line-height: 1;
}

/* Terminal Commands Animation */
.terminal-command {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.terminal-command::before {
    content: "root@security-monitor:~# ";
    color: var(--accent-green);
}

.typing-effect {
    border-right: 2px solid var(--accent-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--accent-green); }
    51%, 100% { border-color: transparent; }
}

/* Network Traffic Simulation */
.network-traffic {
    background: var(--secondary-bg);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid var(--accent-green);
}

.traffic-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
    opacity: 0;
    animation: fadeInOut 3s infinite;
}

.traffic-line:nth-child(1) { animation-delay: 0s; }
.traffic-line:nth-child(2) { animation-delay: 0.5s; }
.traffic-line:nth-child(3) { animation-delay: 1s; }
.traffic-line:nth-child(4) { animation-delay: 1.5s; }

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateX(-10px); }
    20%, 80% { opacity: 1; transform: translateX(0); }
}

.threat-status {
    color: var(--danger-red);
}

.safe-status {
    color: var(--accent-green);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(39, 39, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-light));
    color: var(--secondary-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(153, 255, 166, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23444" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.hero-feature i {
    color: var(--accent-green);
    width: 20px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-dashboard {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(153, 255, 166, 0.1);
    border-radius: 20px;
    border: 1px solid var(--accent-green);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.threat-monitors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.monitor-item {
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-green);
}

.monitor-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.monitor-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-green);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-light));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-green);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--accent-green);
    width: 16px;
}

/* Why Choose Us Section */
.why-choose {
    padding: 6rem 0;
    background: var(--primary-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--secondary-bg);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
}

/* Security Status Section */
.security-status {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

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

.status-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.status-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.status-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-green);
    color: var(--secondary-bg);
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

    /* Ocultar dashboard de seguridad en móviles */
    .security-dashboard {
        display: none;
    }

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

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

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

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block !important;
    }
    
    .nav-menu.mobile-open {
        display: flex !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(39, 39, 39, 0.98);
        flex-direction: column;
        padding: 2rem;
        backdrop-filter: blur(20px);
    }
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
}

.contact-modal-content {
    position: relative;
    margin: 2rem auto;
    background: var(--card-bg);
    border-radius: 16px;
    width: 95%;
    max-width: 800px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.contact-modal-header {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-light));
    color: var(--secondary-bg);
    padding: 2rem;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--secondary-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.contact-modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
}

.contact-modal-body {
    padding: 2rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.required {
    color: var(--danger-red);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: Arial, 'Arial Nova', sans-serif;
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(153, 255, 166, 0.1);
}

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

.contact-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0 2rem 2rem 2rem;
}

.btn-cancel {
    font-family: 'IBM Plex Mono', monospace;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-submit {
    font-family: 'IBM Plex Mono', monospace;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-light));
    color: var(--secondary-bg);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(153, 255, 166, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .contact-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-modal-header,
    .contact-modal-body {
        padding: 1.5rem;
    }
    
    .contact-modal-footer {
        padding: 0 1.5rem 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .contact-modal-header h2 {
        font-size: 1.5rem;
    }
}