/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --gradient-start: #2c3e50;
    --gradient-end: #3498db;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --neon-glow: rgba(37, 99, 235, 0.5);
    --neural-color-1: #00ff94;
    --neural-color-2: #00b3ff;
    --neural-color-3: #7f00ff;
    --module-bg: rgba(37, 99, 235, 0.03);
    --badge-bg: rgba(37, 99, 235, 0.1);
    --success-light: rgba(16, 185, 129, 0.1);
    --data-point-color: rgba(255, 255, 255, 0.8);
    --neural-line-color: rgba(255, 255, 255, 0.3);
    --code-bg: #1e1e1e;
    --code-text: #d4d4d4;
    --code-keyword: #569cd6;
    --code-string: #ce9178;
    --code-comment: #6a9955;
    --code-function: #dcdcaa;
    --code-variable: #9cdcfe;
    --soft-blue: #8ebde6;
    --neural-green: #00ff00;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
    position: relative;
    overflow-x: hidden;
}

/* Header y navegación - Estilos independientes */
.header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
    z-index: 1002;
}

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

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

/* Estilos de la sección Hero con fondo dinámico */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--code-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Puntos neuronales */
.data-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--neural-green);
    border-radius: 50%;
    opacity: 0;
    animation: moveData 10s infinite linear;
    z-index: 1;
    box-shadow: 0 0 8px var(--neural-green), 0 0 15px var(--neural-green);
}

/* Líneas de conexión */
.neural-line {
    position: absolute;
    height: 1px;
    background: var(--neural-green);
    transform-origin: left center;
    opacity: 0;
    animation: fadeLine 4s infinite ease-in-out;
    z-index: 1;
}

/* Capa para el fondo de datos (puntos y líneas) */
.data-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* Capa para el fondo de código */
.code-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: 0.7;
}

.code-line {
    position: absolute;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    opacity: 0;
    transform: translateZ(0);
    animation: codeFloat 20s linear infinite;
}

.code-line .keyword { color: var(--code-keyword); }
.code-line .string { color: var(--code-string); }
.code-line .comment { color: var(--code-comment); }
.code-line .function { color: var(--code-function); }
.code-line .variable { color: var(--code-variable); }

@keyframes moveData {
    0% {
        transform: translate(var(--startX, 0), var(--startY, 0));
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--endX, 0), var(--endY, 0));
        opacity: 0;
    }
}

@keyframes fadeLine {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes codeFloat {
    0% {
        transform: translateY(100vh) translateZ(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateZ(0);
        opacity: 0;
    }
}

/* Contenido del hero por encima del código */
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
    background: rgba(30, 30, 30, 0.8);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
}

/* Botones */
.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Sección Servicios */
.services {
    padding: 5rem 2rem;
    background-color: var(--section-bg);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Características de los servicios */
.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--light-text);
}

.service-features li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Sección de Tecnologías */
.technologies {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.technologies h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-group {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-group:hover {
    transform: translateY(-5px);
}

.tech-group h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-color);
}

.tech-list i {
    color: var(--success-color);
    font-size: 1.1rem;
}

/* Sección Beneficios */
.benefits {
    padding: 5rem 2rem;
    background-color: white;
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Sección Soluciones */
.solutions {
    padding: 5rem 2rem;
    background-color: var(--background);
}

.solutions h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.solution-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.erp-card {
    grid-column: 1 / -1;
    background: linear-gradient(to bottom right, var(--background), var(--section-bg));
}

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

.module-group {
    background: var(--module-bg);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.module-group:hover {
    background: var(--success-light);
    transform: translateY(-3px);
}

.module-group h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-group h4 i {
    color: var(--success-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-color);
}

.features-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.badge {
    background: var(--badge-bg);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.badge i {
    font-size: 1rem;
}

/* Sección Contacto */
.contact {
    padding: 5rem 2rem;
    background-color: var(--section-bg);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

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

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
    grid-column: 1 / -1;
}

.submit-button {
    grid-column: 1 / -1;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Footer mejorado */
.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

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

.footer-links li {
    margin: 0.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-links li:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card {
        margin: 0 1rem;
    }
    
    .features-list {
        font-size: 0.9rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .tech-container {
        grid-template-columns: 1fr;
    }
    
    .tech-group {
        margin: 0 1rem;
    }
    
    .service-features {
        margin-top: 1rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .logo-subtext {
        display: none;
    }

    .module-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .module-group {
        padding: 1rem;
    }

    .tech-badges {
        justify-content: center;
    }

    .badge {
        font-size: 0.8rem;
    }
}

/* Form message styles */
.form-message {
    grid-column: 1 / -1;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Footer link styles */
.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Disabled button state */
.submit-button:disabled {
    background-color: var(--light-text);
    cursor: not-allowed;
    transform: none;
}

/* Efecto de partículas */
.particles,
.neural-network {
    display: none;
}

/* Estilos del Logo Mejorados */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.logo-icon {
    position: relative;
    width: 45px;
    height: 45px;
    margin-right: 12px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 15px var(--neon-glow);
    animation: logoGlow 3s infinite;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: corePulse 2s infinite;
    filter: blur(1px);
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, var(--neural-color-1) 2px, transparent 2.5px),
        radial-gradient(circle at 80% 20%, var(--neural-color-2) 2px, transparent 2.5px),
        radial-gradient(circle at 50% 50%, var(--neural-color-3) 2px, transparent 2.5px),
        radial-gradient(circle at 20% 80%, var(--neural-color-2) 2px, transparent 2.5px),
        radial-gradient(circle at 80% 80%, var(--neural-color-1) 2px, transparent 2.5px);
    animation: networkFlow 8s linear infinite;
}

.logo-neural-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 45%, var(--neural-color-1) 45%, var(--neural-color-1) 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, var(--neural-color-2) 45%, var(--neural-color-2) 55%, transparent 55%),
        linear-gradient(135deg, transparent 45%, var(--neural-color-3) 45%, var(--neural-color-3) 55%, transparent 55%);
    opacity: 0.3;
    animation: neuralConnect 4s linear infinite;
}

.logo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, white 1px, transparent 1px);
    background-size: 4px 4px;
    animation: particleFlow 20s linear infinite;
    opacity: 0.2;
}

.logo-text {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--text-color) 30%, var(--neural-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 179, 255, 0.1);
}

.logo-text span {
    background: linear-gradient(135deg, var(--neural-color-1), var(--neural-color-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--light-text);
    position: absolute;
    bottom: -1.2rem;
    left: 50px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--neural-color-1), var(--neural-color-2), var(--neural-color-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo:hover .logo-subtext {
    opacity: 1;
    transform: translateY(0);
}

.logo:hover .logo-icon {
    animation: logoGlowIntense 1s infinite;
}

/* Nuevas animaciones */
@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 15px var(--neon-glow);
    }
    50% {
        box-shadow: 0 0 25px var(--neon-glow);
    }
}

@keyframes logoGlowIntense {
    0%, 100% {
        box-shadow: 0 0 20px var(--neon-glow);
    }
    50% {
        box-shadow: 0 0 30px var(--neon-glow), 0 0 50px rgba(37, 99, 235, 0.3);
    }
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
        filter: blur(1px);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
        filter: blur(2px);
    }
}

@keyframes networkFlow {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes neuralConnect {
    0% {
        opacity: 0.1;
        transform: scale(0.95) rotate(0deg);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05) rotate(180deg);
    }
    100% {
        opacity: 0.1;
        transform: scale(0.95) rotate(360deg);
    }
}

@keyframes particleFlow {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100%) rotate(360deg);
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 0;
    border: 1px solid #888;
    width: 90%; /* Could be more or less, depending on screen size */
    height: 80%; /* Adjust height as needed */
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.modal-content iframe {
    flex-grow: 1; /* Take up remaining space */
    width: 100%;
    height: 100%;
    border: none;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 10001;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.2);
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    background-color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 90%;
        margin: 2.5% auto;
    }
    .close-button {
        font-size: 24px;
        right: 10px;
        top: 5px;
    }
} 