:root {
    --primary: #00f0ff;
    --secondary: #7b2dff;
    --dark: #0a0a1a;
	--darkerTitle: #787878;
	--lightTitle: #f0f0f0;
    --darker: #050510;
    --light: #f0f0f0;
    --gradient: linear-gradient(0deg, var(--darkerTitle), var(--lightTitle));
    --glass: rgba(255, 255, 255, 0.05);
	--glass-box: rgba(10, 10, 10, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary); }
    100% { box-shadow: 0 0 20px var(--primary); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon {
    position: absolute;
    width: 60px;
    height: 35px;
    background-color: var(--primary);
    animation: rotate 3s linear infinite;
}

.hexagon:before, .hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.hexagon:before {
    bottom: 100%;
    border-bottom: 17.5px solid var(--primary);
}

.hexagon:after {
    top: 100%;
    border-top: 17.5px solid var(--primary);
}

.hexagon:nth-child(1) {
    animation-delay: 0s;
}

.hexagon:nth-child(2) {
    animation-delay: 0.5s;
    width: 40px;
    height: 23px;
    opacity: 0.7;
}

.hexagon:nth-child(2):before, .hexagon:nth-child(2):after {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
}

.hexagon:nth-child(2):before {
    border-bottom-width: 11.5px;
}

.hexagon:nth-child(2):after {
    border-top-width: 11.5px;
}

.hexagon:nth-child(3) {
    animation-delay: 1s;
    width: 20px;
    height: 11px;
    opacity: 0.4;
}

.hexagon:nth-child(3):before, .hexagon:nth-child(3):after {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.hexagon:nth-child(3):before {
    border-bottom-width: 5.5px;
}

.hexagon:nth-child(3):after {
    border-top-width: 5.5px;
}

.loading-text {
    margin-top: 100px;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

/* Header */
header {
    background-color: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    /*position: fixed;*/
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1600px;
    margin: 0 auto;
	z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu-background-layout {
	left: -50px;
	height: 0px;
}

nav ul {
	text-align: right;
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    position: fixed;
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light);
}

/* Hero Section */
.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.floating-tech {
    position: relative;
    width: 100%;
    height: 100%;
}

.tech-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.tech-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

.tech-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 40%;
    animation: float 5s ease-in-out infinite reverse;
}

.tech-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 30%;
    animation: float 4s ease-in-out infinite 0.5s;
}

.tech-grid {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: 
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: rotate 60s linear infinite;
}

.tech-cube {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    background: rgba(123, 45, 255, 0.1);
    border: 1px solid rgba(123, 45, 255, 0.3);
    animation: float 5s ease-in-out infinite 1s;
}

/* Secciones generales */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/*  Listado de Servicios */
.service-list {                
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;                
}

/* Estilo para las opciones */
.service-list option {
  background-color: rgba(10, 10, 10, 0.8);
  color: #fff;               
}

/* Servicios */
.services {
    padding: 6rem 5%;
    position: relative;
	background: var(--glass-box);
    background-size: 100% 10%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    /* background: var(--glass); */
	background: var(--glass-box);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    z-index: -1;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    /* border-color: var(--primary); */
	border-color: var(--gradient);
}

.service-card:hover::before {
    opacity: 0.3;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--lightTitle);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-service {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-service:hover {
    color: var(--light);
    transform: translateX(5px);
}

/* Nosotros */
.about {
    padding: 6rem 5%;
	background: var(--glass-box);
    position: relative;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 1;
}

.about-text {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.about-image {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.hologram {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hologram-content {
    position: relative;
    width: 80%;
    height: 80%;
    padding: 2rem;
}

.hologram-line {
    position: absolute;
    background: rgba(0, 240, 255, 0.1);
}

.hologram-line:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
}

.hologram-line:nth-child(2) {
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
}

.hologram-line:nth-child(3) {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
}

.hologram-data {
    margin-top: 2rem;
}

.data-item {
    margin-bottom: 1.5rem;
}

.data-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.data-bar {
    height: 6px;
    background: rgba(0, 240, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.data-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--width);
    background: var(--gradient);
    animation: loadBar 2s ease-out forwards;
}

@keyframes loadBar {
    from { width: 0; }
    to { width: var(--width); }
}

/* Portafolio */
.portfolio {
    padding: 6rem 5%;
	background: var(--glass-box);
    background-size: 100% 10%;
}

.portfolio-container {
	heigth: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
}

.portfolio-image {
    width: 100%;
    height: 100%;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.btn-portfolio {
    padding: 0.6rem 1.5rem;
    background: var(--gradient);
    color: var(--dark);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-portfolio:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

/* Contacto */
.contact {
    padding: 6rem 5%;
    background: var(--glass-box);
    position: relative;
}

.contact-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    font-size: 1rem;
    outline: none;
}

.form-group textarea {
    resize: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
}

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: -0.8rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--primary);
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .underline,
.form-group textarea:focus ~ .underline,
.form-group select:focus ~ .underline {
    width: 100%;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--gradient);
    color: var(--dark);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.info-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #050510;
    padding: 4rem 5% 0;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-logo .logo {
    margin-bottom: 1.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.tech-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge span {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 30px 0 0 30px;
    color: var(--light);
    outline: none;
}

.footer-newsletter button {
    padding: 0 1.2rem;
    background: var(--gradient);
    border: none;
    border-radius: 0 30px 30px 0;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary);
}

.back-to-top {
    position: absolute;
    right: 5%;
    bottom: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-container,
    .contact-container {
        flex-direction: column;
    }
    
    .about-image {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.5s ease;
        z-index: 999;
    }
    
    nav ul.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        min-height: 300px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}