:root {
    --bg-dark: #0f1113;        /* Negro cinematográfico */
    --bg-card: #1a1d20;        /* Gris de interfaz de edición */
    --accent: #00a8ff;         /* Azul técnico/tecnológico */
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --border: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-main);
    scroll-behavior: smooth;
}

/* Navegación Estilo Cristal */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255 255 255 / 10%);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.2rem;
}
.logo-container {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 70px; /* Ajusta el tamaño a tu gusto */
    width: auto;
    transition: all 0.4s ease;
    /* Si tu logo es negro, este filtro lo vuelve blanco para el modo oscuro 
    filter: brightness(0) invert(1); */
}
.main-logo:hover {
    /* Este filtro convierte el blanco en el azul tecnológico (#00a8ff) y añade brillo */
    filter: invert(53%) sepia(87%) saturate(2838%) hue-rotate(174deg) brightness(101%) contrast(107%) 
            drop-shadow(0 0 8px rgba(0, 168, 255, 0.8));
    transform: scale(1.05); /* Un ligero aumento de tamaño al pasar el ratón */
}
.software-stack {
    margin-top: 40px;
    animation: fadeIn 1.5s ease;
}

.stack-title {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.logos-grid {
    display: flex;
    gap: 25px;
    align-items: center;
}

.software-item {
    font-size: 1.8rem;
    color: var(--text-dim);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(1) brightness(0.8);
    cursor: help;
}

/* Estilo para los que son imágenes SVG/PNG */
.svg-icon {
    height: 30px;
    width: auto;
    filter: grayscale(1) brightness(0.8);
    transition: inherit;
}

/* Efecto Hover: Iluminación azul tecnológica */
.software-item:hover {
    color: var(--accent);
    filter: grayscale(0) brightness(1.2) drop-shadow(0 0 8px var(--accent));
    transform: translateY(-5px) scale(1.1);
}

.software-item:hover .svg-icon {
    filter: grayscale(0) brightness(1.2) drop-shadow(0 0 5px var(--accent));
}

/* Animación simple de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


nav ul { display: flex; list-style: none; }
nav ul li a {
    text-decoration: none;
    color: var(--text-dim);
    margin-left: 30px;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav ul li a:hover { color: var(--accent); }

/* Header Cinematográfico */
header {
    padding: 120px 8% 80px 8%;
    background: radial-gradient(circle at top right, #1e272e 0%, #0f1113 70%);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
}

.header-text { flex: 1.2; }
h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 25px;
    font-weight: 800;
}

.header-text p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

/* Imagen con diseño rectangular y efecto glow */
.header-image { flex: 0.8; position: relative; }
.header-image img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5; /* Formato retrato fotográfico */
    object-fit: cover;
    border-radius: 4px; /* Esquinas casi rectas, muy profesional */
    border: 1px solid var(--border);
    filter: grayscale(20%); /* Toque artístico */
    transition: 0.5s;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.1);
}

.header-image img:hover {
    filter: grayscale(0%);
    box-shadow: 0 0 40px rgba(0, 168, 255, 0.2);
}
/* Enlaces limpios y destacados con efecto de iluminación inversa */
.simple-link {
    color: #ffffff; /* Color blanco por defecto */
    text-decoration: none;
    transition: all 0.3s ease; /* Transición suave para el color y el brillo */
    position: relative;
    border-bottom: 1px solid transparent; /* Preparar el borde inferior */
}

.simple-link strong {
    font-weight: 700;
}

/* Efecto hover: se ilumina con el azul del borde */
.simple-link:hover {
    color: var(--accent); /* Cambia al azul tecnológico (#00a8ff) */
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.8), 
                 0 0 20px rgba(0, 168, 255, 0.4); /* Efecto neón/iluminación */
    border-bottom: 1px solid var(--accent); /* Aparece una línea sutil azul */
}

/* Ajuste para la sección de formación avanzada para mantener coherencia */
.p-advanced .simple-link {
    color: #ffffff;
}

.p-advanced .simple-link:hover {
    color: var(--accent);
}

/* Secciones */
section { padding: 100px 8%; }

h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Tarjetas de Servicios */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.card h3 { color: var(--accent); margin-bottom: 15px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Trayectoria Estilo Lista */
.timeline .item {
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.item h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.item p { color: var(--text-dim); }

/* Botones y Footer */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}

footer {
    padding: 100px 8%;
    background: #050505;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p { color: var(--text-dim); }
/* Contenedor del Formulario */
.container-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header p {
    color: var(--text-dim);
}

/* Estética de los campos (Glassmorphism sutil) */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    background: #0f1113; /* Fondo más oscuro para los campos */
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 168, 255, 0.3);
}

/* Botón de envío */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #0086cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}



/* Responsive */
@media (max-width: 900px) {
    .header-content { flex-direction: column-reverse; text-align: center; }
    h1 { font-size: 2.5rem; }
    .header-image img { width: 80%; }
}/* Contenedor del Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* La línea vertical central */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

/* Contenedor de cada item */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Alternancia izquierda/derecha */
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

/* Los puntos del timeline */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
    top: 25px;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
}

.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

/* Contenido de la tarjeta del timeline */
.timeline-content {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: 0.4s;
}

.timeline-date {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Efecto interactivo al pasar el ratón */
.timeline-item:hover .timeline-content {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

/* Ajustes para móviles */
@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 22px !important; }

    .logos-grid { justify-content: center; }
}


/* Responsive para el formulario */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}