:root {
    --primary-color: #0ff;
    --secondary-color: #f0f;
    --accent-color: #ff0;
    --dark-bg: #000;
    --text-color: #fff;
    --metal-gradient: linear-gradient(135deg, #2a2a2a 0%, #000 20%, #333 40%, #000 60%, #2a2a2a 80%, #000 100%);
    --metal-border: 1px solid rgba(255, 255, 255, 0.1);
    --glow-effect: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: var(--metal-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c0c0c0 0%, #8a8a8a 25%, #e8e8e8 50%, #8a8a8a 75%, #c0c0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Secciones generales */
section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Sección Inicio */
#inicio {
    position: relative;
    background: var(--metal-gradient);
    overflow: hidden;
    padding: 0 0 60px 0; /* Cero padding superior */
    margin-top: 0;
    min-height: calc(100vh - 70px); /* Ajusta según la altura del header */
}

#inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 10s infinite alternate;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    mix-blend-mode: lighten;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 0; /* Elimina cualquier margen superior */
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 0; /* Cambia a 0 para eliminar espacio */
    display: block;
    margin-left: auto;
    margin-right: auto;
    mix-blend-mode: lighten;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem; /* Reduce este valor para acercar el texto */
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ccc;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    /*background: var(--metal-gradient);*/
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border: var(--metal-border);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.btn:hover {
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    transform: translateY(-3px);
}

.btn:hover::before {
    animation: shine 1.5s infinite;
}

/* Sección Servicios */
#servicios {
    background-color: rgba(0, 0, 0, 0.9);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--metal-gradient);
    border: var(--metal-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-effect);
}

.service-card:hover::before {
    animation: shine 1.5s;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-description {
    font-size: 1rem;
    color: #ccc;
}

/* Sección Quiénes Somos */
#quienes-somos {
    background: var(--metal-gradient);
    position: relative;
}

#quienes-somos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2300ffff' fill-opacity='0.1' d='M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,224C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-text {
    max-width: 800px;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 40px;
}

.value-item {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: var(--metal-border);
}

.value-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Sección Contáctanos */
#contactanos {
    background-color: rgba(0, 0, 0, 0.95);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--metal-gradient);
    padding: 40px;
    border-radius: 10px;
    border: var(--metal-border);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.7);
    border: var(--metal-border);
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    color: #ff3860;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 5px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.form-success {
    display: none;
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 5px;
    margin-top: 20px;
}

/* Footer */
footer {
    background: var(--metal-gradient);
    padding: 40px 0;
    text-align: center;
    border-top: var(--metal-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* Animaciones */
@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}