/* Base monocromo B/N + acento verde Bulma. Bulma 1.x hace el resto. */
:root {
  --bulma-primary-h: 171deg;
  --bulma-primary-s: 100%;
  --bulma-primary-l: 41%;
  --bulma-primary: #00d1b2;
  --bulma-link: #00947e; /* oscurecido para AA sobre blanco */
  --page-max: 960px;
  --line: #e5e7eb;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
}

.container.is-max-desktop {
  max-width: var(--page-max);
}

/* Mono para rol y tags */
.is-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tag.is-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.80rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* Un solo color de fondo: todo usa scheme-main */
.section,
.hero,
.footer {
  background: var(--bulma-scheme-main);
}

/* Transición hero -> secciones */
.hero-accent {
  height: 1px;
  background: var(--line);
}

.hero.is-small .hero-body {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

/* Compatibilidad con .section-alt anterior: ahora mismo color, solo borde */
.section-alt {
  background: var(--bulma-scheme-main);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Espaciado generoso */
.columns.is-multiline {
  --bulma-column-gap: 1.5rem;
}

.tags {
  gap: 0.5rem;
}

.box + .box {
  margin-top: 1.25rem;
}

/* Presentación */
.profile-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius:10%;
  border: 2px solid #0a0a0a;
}

.profile-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bulma-primary);
  border: 3px solid var(--bulma-scheme-main);
}

/* Proyectos: hover con verde, acento solo en borde superior */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-top-color: var(--bulma-primary);
  transform: translateY(-3px);
}

.project-card .card-content {
  flex-grow: 1;
}

/* Experiencia compacta */
.exp-box {
  border-left: 3px solid var(--line);
}

.exp-box.is-current {
  border-left-color: var(--bulma-primary);
}

/* Estudios: lista de bloques individuales */
.study-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.study-box .study-main {
  flex: 1;
  min-width: 220px;
}

/* Accesibilidad: tamaños mínimos y foco visible */
.is-size-7 {
  font-size: 0.875rem !important; /* antes 0.75rem, ahora >=14px */
}

.has-text-grey {
  color: #4b5563 !important; /* gris más oscuro para AA sobre blanco */
}

*:focus-visible {
  outline: 2px solid var(--bulma-primary);
  outline-offset: 2px;
}

/* Tag En curso: verde Bulma, texto negro para contraste */
.tag.is-primary {
  background: var(--bulma-primary);
  color: #0a0a0a;
  font-weight: 700;
}

/* Footer monocromo (un solo color, no negro) */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Tema oscuro: Bulma 1.x usa [data-theme="dark"] */
html[data-theme="dark"] {
  --line: #2a2a2a;
}

html[data-theme="dark"] .profile-photo {
  border-color: #f5f5f5;
}

html[data-theme="dark"] .has-text-grey {
  color: #9ca3af !important;
}

@media (max-width: 768px) {
  .hero.is-small .hero-body {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
