/* --- style.css --- */

/* VARIABLES Y ESTILOS GENERALES */
:root {
    --bg-color: #0b0f19; /* Fondo oscuro (azul casi negro) */
    --card-bg: #131a26;
    --primary-cyan: #00d4ff; /* Cian del logo */
    --accent-green: #00ff9d; /* Verde del logo */
    --text-white: #ffffff;
    --text-gray: #a0aab5;
    --font-title: 'Orbitron', sans-serif; /* Tipografía futurista */
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* BOTONES */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.btn-primary:hover {
    background: var(--primary-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(11, 15, 25, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul { display: flex; gap: 30px; }
nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-gray); }
nav a:hover { color: var(--primary-cyan); }

/* HERO SECTION */
.hero {
    height: 100vh; /* Ocupa toda la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.05) 0%, var(--bg-color) 70%);
    margin-top: 60px;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    background: linear-gradient(90deg, #fff, var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Efecto degradado en texto */
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin-bottom: 40px;
}

/* DIFERENCIACIÓN (VALORES) */
.values {
    padding: 80px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.value-card h3 {
    font-family: var(--font-title);
    margin-bottom: 15px;
    color: var(--text-white);
}

.value-card p { font-size: 0.95rem; color: var(--text-gray); }

/* SERVICIOS */
.services {
    padding: 100px 10%;
    background-color: var(--card-bg);
    position: relative;
}

/* Decoración hexagonal sutil de fondo */
.services::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="%2300d4ff" stroke-width="1"><path d="M50 0 L93 25 L93 75 L50 100 L7 75 L7 25 Z" /></svg>') no-repeat;
    opacity: 0.1;
}

.section-title {
    text-align: center;
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 60px;
}
.section-title span { color: var(--primary-cyan); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-color);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Linea decorativa inferior al pasar el mouse */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--accent-green));
    transform: scaleX(0);
    transition: 0.3s;
    transform-origin: left;
}
.service-card:hover::after { transform: scaleX(1); }

.service-card h3 { margin-bottom: 15px; font-family: var(--font-title); }
.service-card p { font-size: 0.9rem; color: var(--text-gray); }

/* SOBRE NOSOTROS */
.about {
    padding: 100px 10%;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.about-text { flex: 1; min-width: 300px; }
.about-visual { 
    flex: 1; 
    min-width: 300px; 
    height: 300px; 
    background: repeating-linear-gradient(45deg, #131a26, #131a26 10px, #0b0f19 10px, #0b0f19 20px);
    border: 2px solid var(--accent-green);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-title);
    color: var(--accent-green);
    font-size: 1.5rem;
    position: relative;
}
.about-visual::before {
    content: ''; position: absolute; top: -5px; left: -5px; width: 20px; height: 20px; border-top: 2px solid var(--primary-cyan); border-left: 2px solid var(--primary-cyan);
}

/* CONTACTO */
.contact {
    padding: 100px 10%;
    text-align: center;
    background: linear-gradient(to top, #000, var(--bg-color));
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-gray); font-size: 0.9rem; }

.form-control {
    width: 100%;
    padding: 12px;
    background: #1a2230;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

textarea.form-control { resize: vertical; min-height: 120px; }

footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* MÓVILES */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    header { flex-direction: column; gap: 15px; position: relative; }
    nav ul { gap: 15px; }
}