/* IBM VGA 8x16: fuente de pantalla clásica de PC/DOS. Licencia CC BY-SA 4.0; fuente y atribución: https://fontpixel.com/en/fonts/ibm-vga/ */
@font-face {
  font-family: "IBM VGA";
  src: url("https://fontpixel.com/downloads/ibm-vga-16px-square.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Únicas tipografías visibles del sitio */
:root {
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-handwritten: "IBM VGA", monospace;
}

/* Selector válido y con prioridad sobre las reglas antiguas de cada página */
html:root body * ,
html:root body *::before,
html:root body *::after {
  font-family: var(--font-main) !important;
}

/* IBM VGA para el nombre CINTIA BONINO en todas las páginas */
html:root body .nav .brand,
html:root body header .title,
html:root body header .name-title,
html:root body header h1 {
  font-family: var(--font-handwritten) !important;
}

/* Helvetica Neue para títulos generales, navegación y controles */
html:root body h1,
html:root body h2,
html:root body h3,
html:root body h4,
html:root body h5,
html:root body h6,
html:root body button,
html:root body input,
html:root body select,
html:root body textarea,
html:root body .nav-inner a,
html:root body .language-switch,
html:root body .project-filters button {
  font-family: var(--font-main) !important;
}

/* El listado de servicios es el lugar principal para mostrar la tipografía manuscrita */
html:root body .services-top li,
html:root body .services-top li a {
  font-family: var(--font-handwritten) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* IBM VGA en detalles breves, además del listado de servicios */
html:root body .eyebrow,
html:root body .image-title,
html:root body .handwritten {
  font-family: var(--font-handwritten) !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.1;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@media (max-width: 600px) {
  html:root body .services-top li,
  html:root body .services-top li a {
    font-size: 16px !important;
  }
  html:root body .eyebrow,
  html:root body .image-title,
  html:root body .handwritten {
    font-size: 16px !important;
  }
}

/* Servicios como botones de una pantalla clásica de DOS */
html:root body .intro-layout .services-top ul {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

html:root body .intro-layout .services-top li {
  width: auto !important;
  margin: 0 !important;
  text-align: center !important;
}

html:root body .intro-layout .services-top li a {
  display: inline-block !important;
  box-sizing: border-box !important;
  padding: 9px 13px !important;
  min-width: min(100%, 260px);
  background: #080808 !important;
  color: #fff !important;
  border: 1px solid #858585 !important;
  border-radius: 0 !important;
  box-shadow: inset 1px 1px 0 #444, inset -1px -1px 0 #000 !important;
  font-family: var(--font-handwritten) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  transition: background-color .12s linear, color .12s linear !important;
}

html:root body .intro-layout .services-top li a:hover,
html:root body .intro-layout .services-top li a:focus-visible {
  background: #9cff2e !important;
  color: #080808 !important;
  border-color: #9cff2e !important;
  outline: 1px solid #fff !important;
  outline-offset: 2px !important;
}

@media (max-width: 600px) {
  html:root body .intro-layout .services-top ul {
    gap: 7px !important;
  }
  html:root body .intro-layout .services-top li a {
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px !important;
    font-size: 14px !important;
  }
}


/* Nombre de inicio: prompt y cursor de terminal DOS en ambas versiones */
html:root body .intro-layout header h1.title {
  color: #080808 !important;
  -webkit-text-fill-color: #080808 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

html:root body .intro-layout header h1.title .dos-prompt {
  font-family: "IBM VGA", monospace !important;
  color: #9cff2e !important;
  -webkit-text-fill-color: #9cff2e !important;
  font-size: .48em !important;
  vertical-align: .18em;
  margin-right: .28em;
}

html:root body .intro-layout header h1.title .dos-cursor {
  display: inline-block;
  width: .72em;
  height: .10em;
  margin-left: .14em;
  vertical-align: .02em;
  background: #9cff2e;
  animation: dos-cursor-blink 1.1s steps(2, start) infinite;
}

@keyframes dos-cursor-blink {
  to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html:root body .intro-layout header h1.title .dos-cursor {
    animation: none;
  }
}

/* Botones de servicios: fondo blanco y tipografía DOS negra, sin sombra */
html:root body .intro-layout .services-top li a,
html:root body .intro-layout .services-top li a:link,
html:root body .intro-layout .services-top li a:visited {
  background: #fff !important;
  color: #080808 !important;
  -webkit-text-fill-color: #080808 !important;
  border: 1px solid #111 !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 #111 !important;
  font-family: "IBM VGA", monospace !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  text-decoration: none !important;
  text-transform: none !important;
}

html:root body .intro-layout .services-top li a:hover,
html:root body .intro-layout .services-top li a:focus-visible {
  background: #9cff2e !important;
  color: #080808 !important;
  -webkit-text-fill-color: #080808 !important;
  text-shadow: none !important;
  border-color: #111 !important;
  outline: 1px solid #111 !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  html:root body .intro-layout .services-top li a,
  html:root body .intro-layout .services-top li a:link,
  html:root body .intro-layout .services-top li a:visited {
    font-family: "IBM VGA", monospace !important;
    font-size: 14px !important;
    padding: 8px 10px !important;
  }
}

/* En las páginas de servicio, el nombre pequeño conserva solo la sombra verde */
html:root body .nav .brand {
  text-shadow: 2px 2px 0 #9cff2e !important;
  -webkit-text-stroke: 0 !important;
}

/* Category filters: preserve the DOS typeface in every interaction state
   on desktop and mobile (hover, focus, pressed and selected). */
html:root body .project-filters button,
html:root body .project-filters button:hover,
html:root body .project-filters button:focus,
html:root body .project-filters button:focus-visible,
html:root body .project-filters button:active,
html:root body .project-filters button[aria-pressed="true"],
html:root body .project-filters button[aria-pressed="false"] {
  font-family: "IBM VGA", monospace !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-weight: 400 !important;
  font-stretch: normal !important;
}

/* Mobile category filters: larger DOS lettering and tighter vertical rhythm. */
@media screen and (max-width: 760px) {
  html:root body .project-filters {
    gap: 4px !important;
  }
  html:root body .project-filters button,
  html:root body .project-filters button:hover,
  html:root body .project-filters button:focus,
  html:root body .project-filters button:focus-visible,
  html:root body .project-filters button:active,
  html:root body .project-filters button[aria-pressed="true"],
  html:root body .project-filters button[aria-pressed="false"] {
    font-family: "IBM VGA", monospace !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
  }
}
