/* === BASE === */
:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --accent: #c1121f; /* rojo/cranberry */
  --card: #f8f8f8;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 24px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  border-bottom: 2px solid #eee;
  padding-bottom: 18px;
  margin-bottom: 22px;
}

header .left {
  flex: 1;
}

.foto {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg,#eee,#ddd);
  flex-shrink: 0;
  border-radius: 12px;
}

/* Titulos */
h1 { margin: 0; font-size: 1.6rem; }
h2 { margin: 0 0 8px 0; font-size: 1.1rem; color: var(--text); }
h3 { margin: 0; font-size: 1rem; color: var(--muted); }

/* info */
.info { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.info a { color: var(--accent); text-decoration: none; }
.info a:hover { text-decoration: underline; }

/* Section cards */
section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.03);
}

/* Proyecto list */
.proyecto {
  padding: 16px;
  border-radius: 10px;
  background: white;
  margin-bottom: 14px;
  border: 1px solid #e8e8e8;
}
.proyecto-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.nombre { font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.stack { font-size: 0.85rem; color: var(--muted); }
.proyecto-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proyecto-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proyecto-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.proyecto-item span:last-child {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.5;
}

/* list styles */
ul { margin: 8px 0 0 1.1rem; padding: 0; }
.lugar { font-style: italic; color: var(--muted); }
.fecha { font-size: 0.9rem; color: #999; }

/* Idioma selector */
.lang-select {
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom: 14px;
}
.lang-select button {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: transparent;
  cursor:pointer;
  font-weight:600;
}
.lang-select button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* responsive */
@media (max-width:720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .foto { width: 96px; height: 96px; }
}

/* Screenshots */
.proyecto-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.ss-thumb {
  width: 100px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ss-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Lightbox */
.ss-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}
.ss-full {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.ss-close {
  position: fixed;
  top: 20px;
  right: 28px;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  line-height: 1;
}
.ss-close:hover { opacity: 1; }
