:root {
  --color-primary: #007bff;
  --color-secondary: #6c757d;
  --color-background: #f8f9fa;
  --color-text: #212529;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Encabezado y pie */
header, footer {
  background: #003366;
  color: white;
  padding: 1.5em 1em;
  text-align: center;
}


nav a {
  margin: 0 1em;
  color: var(--color-primary);
  text-decoration: none;
}

footer a {
  text-decoration: none;
  color: inherit;
}

/* Contenido principal */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  color: #34495e;
}

ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

ul li {
  margin-bottom: 0.5rem;
}


/* Header */
/* --- HEADER --- */
/* MENU */
header {
  background: #003366;
  color: white;
  padding: 0.8em 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}


header .logo {
  height: 48px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: white;
}

.nav-links a {
  margin-left: 1.5em;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Ocultar el checkbox */
.menu-toggle {
  display: none;
}

/* Icono hamburguesa (visible solo en móvil) */
.menu-icon {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    background: #003366;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .nav-links a {
    margin: 0.8rem 0;
    font-size: 1.1rem;
  }

  .menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }
}

/* SECTION */
/* Stack tecnológico */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
  text-align: center;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.tech-item img:hover {
  transform: scale(1.15);
}

.tech-item span {
  font-size: 0.95rem;
  margin-top: 0.3rem;
  color: #2c3e50;
}

/* Proyectos */
.projects-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #ddd;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
}

.projects-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.projects-section p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #555;
}

.projects-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-item {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.project-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.project-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-right: 1rem;
  border-radius: 6px;
  background: white;
  border: 1px solid #ccc;
}

.project-link div {
  font-size: 1rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 600px) {
  .project-item {
    flex-direction: column;
    text-align: center;
  }

  .project-logo {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}


