/* Estilos principales para PROTONTECH */
:root {
    --primary-color: #00a8ff;
    --secondary-color: #7f00ff;
    --dark-color: #0a192f;
    --darker-color: #020c1b;
    --light-color: #f8f9fa;
    --gray-color: #8892b0;
    --transition: all 0.3s ease;
    --glow: 0 0 10px rgba(0, 168, 255, 0.7);
}

/* Reglas globales para responsividad */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--darker-color);
    color: var(--light-color);
    line-height: 1.6;
    position: relative;
    padding-top: 60px;
    font-size: 16px;
}

/* Estilos para la animación de fondo tecnológica */
.tech-background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Capa de ruido para añadir textura a la animación */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4zIgLAAAEW0lEQVR4AcXY2ZKlIAwGYJbIJsiqLe//nDNJFNGWvpluqvzKUrT+BRIg+vt/iKP9MdWnnDJGntxGb5SBM5W2C/yf/I9SWmvFyT+Jjcrdqk2HNlPUUgTwr+LgrCxZ/LAW0vAEU5nSI7r9HiWRbLk+lG73KAHkSEMJvUcJIBc1lNF7lDZFKvQeZwbQQZsifUWpb+aovZTxEBxUSu9QBgAdmrOQd5TxrMSLFNJ7lClAb/jMKAWDz4qRO5TpfGZQCu9QFgC9HQq0vVVGRzkSSqDXb5WlBOxQyFJiBBxECTSAF9YA7wRECbiDpnin6NzfkNwqaw2YbxUrAdZHHXWWEpQgxTbKDGCKt2kRJUfwN03fKguArV3fKgyIzb0bZXYgYDm8UfD8sSxoD4Kb1ygQAb9pnQKAiAJu5FapLEF+6FapLQq5kVtlQsCHgLmRG2UEYIREpJMbhQCBSPMEV8oIYG2RpZfXyvw8I+oyEF0pVRZqVGZUirHvDP3OWn+r5JYgnS+HE/jXSvIsqJj8XvBaGS1BPDwjrEJfK4shSKlTuFboayWxBHkg3imvlYUS5BnslZ0SJJ5QX4hX6ZACfVBwX4hX6pACfYj4Qrx+XFVGgz4kfCVeKKmF+p4wBvpCCYb+RlgL/UKZDPpb4YXSGvT3AgG5VpZUoj+TXDg/5ELBEYCcnUCfK1MAOZPxXCkOJOMAfabMAHJJxjOlOQ0kZzhT8MTAvFUOYCGAOVGKB+uTE+VoAKRuVd0qxQBMOZSWVGlvFNIBVGkNqaLaKkMHUOVQdkNK0I1SOqAqh0KG1NALBTdAVw4lD2mcFwp2gK4cyiHpdKYUAtjKoQyS0HyhDAyAKYdiSErkhVIpgCmHYiQl+kwhAtCVNLJYFEqxKcAqaewXCgLwSnqJl8DzRAFIAK+kkR8U7gCvpJEfFGaAqqSRHxRkgKqkkR8UbICqpJHvFa4CV/JovFeYClzJo8leYRDqyizdKUYGrj1ZpDtFiBB25AmF7xQtxSDoSBJWvlOkFAfpSLKbvVPkFMXcIxVUvVUcwFhHKml4p0zz/CWHVIybu4u5uf8Qc4u5r7OYshJz/yOmAHBrMqkA/5WY+yp6gZj7Ovr++P4i5r6O3ikKsb+IuRnvRczdA5JcjzF3K+ZuaW7uZpDlZox5Wpq7JSy9aaGFubsxd0NydzPmbmlubsZi7vaeYu6Wzc29i0W5dzE3d/PnO0Uu/iF4PkCeDzGeD5CeD7F4PsSYexeLD+MXxNz9IslNGXM3cTY3Q84PEeaHSH5+iDA/RJL8EInzQyTOD5EkP0Ti/BCJ80NkzQ+R3P5R/N3+Ufzd/lH82f5R/N3+Ufzd/lH80f5R/N3+Ufzd/lH83f5R/N3+Ufzd/lH83f5R/N3+Ufzd/lH8CQAAANWIxCUzMc3+Bb+Rr7/YDWXNAAAAAElFTkSuQmCC');
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(90deg, rgba(0, 168, 255, 0.1), rgba(127, 0, 255, 0.1));
    z-index: -1;
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 5;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--gray-color);
    max-width: 90%;
    margin: 0 auto;
}

section {
    padding: 5rem 1rem;
    position: relative;
    z-index: 5;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.btn.primary:hover {
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.6);
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: rgba(0, 168, 255, 0.1);
    transform: translateY(-2px);
}

/* Navegación */
header {
    background-color: var(--dark-color);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Forzar capa de composición y aceleración por hardware */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Efectos Tech para el header */
.tech-background {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* Líneas de circuito */
.circuit-lines {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

.circuit-lines span {
    position: absolute;
    display: block;
}

.circuit-lines span:nth-child(1) {
    top: 28%;
    left: -100px;
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: circuit-line-1 15s linear infinite;
    opacity: 0.6;
}

.circuit-lines span:nth-child(2) {
    top: 55%;
    right: -150px;
    width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: circuit-line-2 20s linear infinite;
    opacity: 0.6;
}

.circuit-lines span:nth-child(3) {
    bottom: 35%;
    left: -200px;
    width: 500px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: circuit-line-3 25s linear infinite;
    opacity: 0.6;
}

.circuit-lines span:nth-child(4) {
    top: 15%;
    left: 35%;
    width: 1px;
    height: 400px;
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
    animation: circuit-line-vert-1 18s linear infinite;
    opacity: 0.6;
}

.circuit-lines span:nth-child(5) {
    top: 25%;
    right: 25%;
    width: 1px;
    height: 300px;
    background: linear-gradient(180deg, transparent, var(--secondary-color), transparent);
    animation: circuit-line-vert-2 22s linear infinite;
    opacity: 0.6;
}

@keyframes circuit-line-1 {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(2000px);
    }
}

@keyframes circuit-line-2 {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-2000px);
    }
}

@keyframes circuit-line-3 {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(2000px);
    }
}

@keyframes circuit-line-vert-1 {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(1000px);
    }
}

@keyframes circuit-line-vert-2 {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-1000px);
    }
}

/* Partículas tech flotantes */
.tech-particles {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    opacity: 0.6;
    filter: blur(1px);
}

.particle:nth-child(1) {
    top: 30%;
    left: 20%;
    animation: float-particle 25s ease-in-out infinite alternate;
}

.particle:nth-child(2) {
    top: 65%;
    left: 40%;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
    animation: float-particle 30s ease-in-out infinite alternate-reverse;
}

.particle:nth-child(3) {
    top: 30%;
    right: 30%;
    animation: float-particle 20s ease-in-out infinite alternate;
}

.particle:nth-child(4) {
    bottom: 25%;
    right: 15%;
    width: 5px;
    height: 5px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
    animation: float-particle 22s ease-in-out infinite alternate-reverse;
}

.particle:nth-child(5) {
    top: 15%;
    right: 40%;
    animation: float-particle 28s ease-in-out infinite alternate;
}

.particle:nth-child(6) {
    bottom: 10%;
    left: 10%;
    width: 4px;
    height: 4px;
    animation: float-particle 24s ease-in-out infinite alternate-reverse;
}

.particle:nth-child(7) {
    top: 45%;
    left: 30%;
    width: 7px;
    height: 7px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
    animation: float-particle 26s ease-in-out infinite alternate;
}

.particle:nth-child(8) {
    top: 70%;
    right: 35%;
    animation: float-particle 32s ease-in-out infinite alternate-reverse;
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, 50px);
    }
    66% {
        transform: translate(-20px, -30px);
    }
    100% {
        transform: translate(20px, -50px);
    }
}

/* Cuadrícula tech */
.tech-grid {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 168, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    opacity: 0.6;
    animation: grid-pulse 10s ease-in-out infinite alternate;
}

@keyframes grid-pulse {
    0% {
        opacity: 0.2;
        background-size: 40px 40px;
    }
    50% {
        opacity: 0.4;
        background-size: 42px 42px;
    }
    100% {
        opacity: 0.2;
        background-size: 40px 40px;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5%;
    height: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-icon {
    margin-right: 0.5rem;
    font-size: 1.7rem;
    color: var(--primary-color);
    animation: pulse 3s infinite;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 168, 255, 0.3);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: logo-circles 4s linear infinite;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    border: 1px dashed rgba(127, 0, 255, 0.2);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: logo-circles-reverse 6s linear infinite;
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    background: linear-gradient(90deg, var(--light-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: text-shine 5s linear infinite;
}

@keyframes logo-circles {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes logo-circles-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes text-shine {
    to {
        background-position: 200% center;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

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

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* Menú Toggle - Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    position: relative;
    z-index: 5;
    padding-top: 4rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Agregado para resolver problemas con botones en pantallas pequeñas */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 963px) {
    .hero-buttons {
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
}

.hero-image {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    padding-top: 4rem;
}

/* Modelo de átomo (protón) */
.atom-model {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    margin-left: auto;
    margin-right: 2rem;
}

/* Núcleo (protón) */
.nucleus {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.6);
    z-index: 10;
    position: relative;
    animation: pulse 3s infinite;
}

/* Órbitas de electrones */
.electron-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: rotateX(80deg);
}

.electron-orbit-1 {
    width: 160px;
    height: 160px;
    animation: rotate 10s linear infinite;
}

.electron-orbit-2 {
    width: 220px;
    height: 220px;
    animation: rotate-reverse 15s linear infinite;
}

.electron-orbit-3 {
    width: 280px;
    height: 280px;
    animation: rotate 20s linear infinite;
}

/* Electrones */
.electron {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.electron-1 {
    top: -6px;
    left: calc(50% - 6px);
}

.electron-2 {
    bottom: -6px;
    left: calc(50% - 6px);
}

.electron-3 {
    left: -6px;
    top: calc(50% - 6px);
}

.electron-4 {
    right: -6px;
    top: calc(50% - 6px);
}

/* Animación de rotación inversa */
@keyframes rotate-reverse {
    from {
        transform: rotateX(80deg) rotateZ(360deg);
    }
    to {
        transform: rotateX(80deg) rotateZ(0deg);
    }
}

.tech-circle {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(127, 0, 255, 0.1));
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
    display: none;
}

.tech-circle::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px solid rgba(0, 168, 255, 0.3);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

.tech-circle::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border: 2px dashed rgba(127, 0, 255, 0.3);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

/* Servicios */
.services {
    background-color: var(--dark-color);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.service-card {
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.7), rgba(2, 12, 27, 0.9));
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(127, 0, 255, 0.1));
    clip-path: circle(50px at 100% 100%);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    clip-path: circle(300px at 100% 100%);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: var(--glow);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Proyectos */
.projects {
    background-color: var(--darker-color);
    position: relative;
    z-index: 5;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.project-card {
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.7), rgba(2, 12, 27, 0.9));
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    text-decoration: none;
    color: var(--light-color);
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px -15px rgba(0, 168, 255, 0.3);
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(127, 0, 255, 0.1));
    clip-path: circle(0% at 100% 100%);
    transition: all 0.5s ease-in-out;
    z-index: -1;
}

.project-card:hover::before {
    clip-path: circle(150% at 100% 100%);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(2, 12, 27, 0.9));
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 0.5;
}

/* Overlay con ícono de clic */
.project-image::before {
    content: '\f0a9'; /* Ícono de flecha (Font Awesome) */
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: white;
    background-color: rgba(0, 168, 255, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.project-card:hover .project-image::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.project-details {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-details {
    background-color: rgba(0, 168, 255, 0.05);
}

.project-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.project-details h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.project-card:hover .project-details h3::after {
    width: 100%;
}

.project-details p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-details p {
    color: rgba(255, 255, 255, 0.8);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 30px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.project-card:hover .project-tech span {
    background: rgba(0, 168, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
    transform: translateY(-2px);
}

/* Sobre Nosotros */
.about {
    background-color: var(--dark-color);
    position: relative;
    z-index: 5;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1 1 48%;
    min-width: 300px;
}

.about-text p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.tech-stack {
    margin-top: 2rem;
}

.tech-stack h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-icons img {
    font-size: 2rem;
    color: var(--gray-color);
    transition: var(--transition);
}

.tech-icons img:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.about-image {
    flex: 1 1 48%;
    min-width: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Contacto */
.contact {
    background-color: var(--darker-color);
    position: relative;
    z-index: 5;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-form {
    flex: 1 1 58%;
    min-width: 300px;
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.7), rgba(2, 12, 27, 0.9));
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--light-color);
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.contact-info {
    flex: 1 1 38%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item img {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

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

.social-media a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-media a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

#servicio option {
    background-color: white;
    color: black;
}

#servicio:focus, #servicio option:checked {
    background-color: #f0f0f0;
    color: black;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    padding: 3rem 2rem 1rem;
    position: relative;
    z-index: 10;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
    position: relative;
    z-index: 11;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 11;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

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

.footer-bottom p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animaciones al cargar la página */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-down {
    transform: translateY(-50px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Animación para las tarjetas con delay */
.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.project-card:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Delays para otros elementos */
.about-content > *:nth-child(1) {
    transition-delay: 0.1s;
}

.about-content > *:nth-child(2) {
    transition-delay: 0.3s;
}

.footer-content > *:nth-child(1) {
    transition-delay: 0.1s;
}

.footer-content > *:nth-child(2) {
    transition-delay: 0.2s;
}

/* Success message styles */
.form-message {
    margin-bottom: 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.success-message {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00c853;
    border: 1px solid #00c853;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    align-items: center;
    animation: pulseSuccess 2s infinite, fadeIn 0.5s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 200, 83, 0.2);
}

.success-message i {
    font-size: 28px;
    margin-right: 15px;
    animation: scaleIcon 1s ease-in-out;
}

.success-message p {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseSuccess {
    0% {
        box-shadow: 0 4px 10px rgba(0, 200, 83, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4);
    }
    100% {
        box-shadow: 0 4px 10px rgba(0, 200, 83, 0.2);
    }
}

@keyframes scaleIcon {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Estilo para el efecto de partículas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    footer {
        position: relative;
        z-index: 50;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image {
        width: 100%;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form,
    .contact-info {
        width: 100%;
    }
    
    /* Mostrar menu toggle en móvil */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 60px);
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }
    
    .nav-links a:hover {
        background-color: rgba(0, 168, 255, 0.1);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1rem 3rem;
    }
    
    .hero-content,
    .hero-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .services-grid, 
    .projects-grid,
    .tech-icons,
    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
}

/* Círculos tech */
.tech-circles {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

.tech-circles .tech-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    border: 1px solid var(--primary-color);
}

.tech-circles .tech-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 40%;
    right: -100px;
    border: 2px dashed var(--primary-color);
    animation: rotate 60s linear infinite, pulse-fade 15s ease-in-out infinite alternate;
}

.tech-circles .tech-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: 10%;
    border: 1px solid var(--secondary-color);
    animation: rotate-reverse 50s linear infinite, pulse-fade 12s ease-in-out infinite alternate-reverse;
}

.tech-circles .tech-circle:nth-child(3) {
    width: 600px;
    height: 600px;
    top: 10%;
    right: 30%;
    border: 1px dotted var(--primary-color);
    animation: rotate 80s linear infinite, pulse-fade 20s ease-in-out infinite alternate;
}

@keyframes pulse-fade {
    0% {
        opacity: 0.05;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.05;
        transform: scale(1);
    }
}

/* Flujo de datos (stream de datos) */
.data-flow {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;
}

.data-stream {
    position: absolute;
    height: 40px;
    opacity: 0.2;
}

.data-stream:nth-child(1) {
    top: 40%;
    left: -200px;
    width: 150px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        var(--primary-color) 10px,
        var(--primary-color) 20px
    );
    animation: data-stream-move 15s linear infinite;
}

.data-stream:nth-child(2) {
    bottom: 45%;
    right: -200px;
    width: 120px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 8px,
        var(--secondary-color) 8px,
        var(--secondary-color) 16px
    );
    animation: data-stream-move-reverse 12s linear infinite;
}

@keyframes data-stream-move {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(2000px);
    }
}

@keyframes data-stream-move-reverse {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-2000px);
    }
}

/* Fixed success message styles */
.fixed-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 90%;
    width: 500px;
    margin: 0;
}

.fixed-message .success-message {
    background-color: rgba(0, 200, 83, 0.95);
    color: white;
    padding: 25px;
    border: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.fixed-message .success-message i {
    color: white;
    font-size: 36px;
}

.fixed-message::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    animation: fadeIn 0.3s ease-in-out;
}

/* Simple success message */
.simple-success {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 9999;
    text-align: center;
}

.success-banner {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease-out, pulse 2s infinite;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 