/* --------------------------------- */
/* ----- Basic Setup -----*/
/* --------------------------------- */

@font-face {
  font-family: "Mona Sans";
  src: url("assets/fonts/Mona-Sans.woff2") format("woff2 supports variations"),
    url("assets/fonts/Mona-Sans.woff2") format("woff2-variations");
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

:root {
  --h1: 3.5rem;
  --h2: 3rem;
  --h3: 2.145rem;
  --h4: 1.5rem;
  --text-large: 1.6rem;
  --text-medium: 1.275rem;
  --text-small: 1.125rem;

  
  --gradient-brand: 
    radial-gradient(at 30% 20%, #ffcc00 0px, transparent 50%), /* Amarillo */
    radial-gradient(at 70% 30%, #ff0062 0px, transparent 50%), /* Rojo */
    radial-gradient(at 40% 80%, #0077ff 0px, transparent 50%), /* Azul */
    radial-gradient(at 85% 70%, #888888 0px, transparent 50%), /* Gris medio */
    radial-gradient(at 15% 60%, #b0b0b0 0px, transparent 50%), /* Gris claro */
    radial-gradient(at 50% 50%, #222222 0px, transparent 50%); /* Gris oscuro */


  --easing: cubic-bezier(0.86, 0, 0.07, 1);

  --site-max-width: 1280px;
  --gutter-nano: 0.5rem;
  --gutter-micro: 1rem;
  --gutter-x-small: 1.5rem;
  --gutter-small: 2rem;
  --gutter-medium: 2.5rem;
  --gutter-large: 3rem;
  --gutter-x-large: 6rem;
  --gutter-huge: 12rem;

  --scroll-padding: 4.375rem;
  --radius: 85px;
}

body.dark {
  --bg-color-primary: #0c0a0a;
  --bg-color-secondary: #161211;
  --important: #fff;
  --sub: #c3c3c3;
  --body: #989898;
  --border: #c0c0c015;
  --border-dark: #c0c0c02f;
  --gradient-border: linear-gradient(to left bottom, #777, #0e0d0d);
  --shadow: 0 1rem 1rem #00000040;
}

body.light {
  --bg-color-primary: #fbfbfb;
  --bg-color-secondary: #ffffff;
  --important: #000;
  --sub: #111;
  --body: #585b63;
  --border: #62626234;
  --border-dark: #5e5e5e1f;
  --gradient-border: linear-gradient(to left bottom, #000000c6, #0e0d0d00);
  --shadow: 0 1rem 1rem rgba(0, 0, 0, 0.25);
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-family: "Mona Sans", sans-serif;
  box-sizing: border-box;
  scroll-padding-top: var(--scroll-padding);
}

@media (max-width: 1200px) {
  html {
    font-size: 90%;
  }
}

@media (max-width: 645px) {
  html {
    font-size: 80%;
  }
}

body {
  font-size: var(--text-medium);
  color: var(--body);
  background-color: var(--bg-color-primary);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Improve media defaults */
picture,
svg,
img {
  display: block;
  max-inline-size: 100%;
  object-fit: contain;
}

/* --------------------------------- */
/* ----- Typography -----*/
/* --------------------------------- */

input,
textarea,
button {
  font: inherit;
}

p,
h1,
h2,
h3,
.h4 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.h4 {
  font-stretch: 125%;
  line-height: 1.2;
  color: var(--important);
}

.h1 {
  font-size: var(--h1);
}

.h2 {
  font-size: var(--h2);
  text-align: center;
}

.h3 {
  font-size: var(--h3);
}

.h4 {
  font-size: var(--h4);
}

@media (max-width: 845px) {
  :root {
    --h1: 2.845rem;
    --h2: 2.45rem;
    --h3: 1.85rem;
  }
}

@media (max-width: 700px) {
  :root {
    --h1: 2.545rem;
  }
}

@media (max-width: 545px) {
  :root {
    --h1: 2.4rem;
    --text-large: 1.5rem;
  }
}

@media (max-width: 485px) {
  :root {
    --h1: 2.145rem;
    --h2: 1.875rem;
    --h3: 1.6rem;
    --text-large: 1.345rem;
  }
}

/* --------------------------------- */
/* ----- Utilities -----*/
/* --------------------------------- */

.container {
  max-inline-size: var(--site-max-width);
  margin-inline: auto;
}

@media (max-width: 1375px) {
  :root {
    --site-max-width: 1160px;
  }
}

@media (max-width: 1275px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

@media (max-width: 1200px) {
  .container {
    padding-inline: var(--gutter-medium);
  }
}

@media (max-width: 575px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

.lock-screen {
  overflow-y: hidden;
}

.hidden {
  visibility: hidden;
  transform: translateX(-100%);
}

/* --------------------------------- */
/* ----- Components -----*/
/* --------------------------------- */

.btn {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 18px 60px;
  border-radius: var(--gutter-nano);
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

@media (max-width: 700px) {
  .btn {
    padding: 16px 48px;
  }
}

@media (max-width: 485px) {
  .btn {
    font-size: 1.2rem;
    padding: 14px 38px;
  }
}

.btn-cta {
  color: var(--bg-color-primary);
  background-color: var(--important);
}

body.dark .btn-cta:hover,
body.dark .btn-cta:focus {
  box-shadow: #ffffff40 0 0 0 var(--gutter-nano);
}

body.light .btn-cta:hover,
body.light .btn-cta:focus {
  box-shadow: #07070733 0 0 0 var(--gutter-nano);
}

.btn-secondary {
  border: 1px solid var(--border-dark);
  color: var(--important);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--important);
}

.link {
  display: inline-block;
  font-weight: 600;
  font-size: var(--text-small);
  padding: var(--gutter-nano) 0;
  text-decoration: none;
  color: var(--important);
  position: relative;
}

.link::after,
.link::before {
  content: "";
  width: 100%;
  height: 1px;
  margin-block-start: var(--gutter-nano);
  position: absolute;
  bottom: -1px;
  left: 0;
  transition: 300ms;
}

body.dark .link::before {
  background-color: #d3d3d357;
}

body.dark .link::after {
  background-color: white;
}

body.light .link::before {
  background-color: lightgray;
}

body.light .link::after {
  background-color: black;
}

.link::after {
  background-color: white;
  transform-origin: left;
  transform: scaleX(0);
}

.link:hover::after,
.link:focus::after {
  transform: scaleX(1);
}

/* --------------------------------- */
/* ----- Layout -----*/
/* --------------------------------- */

section:not(:first-child) {
  padding-block-start: var(--gutter-huge);
}

section:first-child {
  padding-block-start: 7rem;
}

@media (max-width: 885px) {
  :root {
    --gutter-huge: 8rem;
    --gutter-x-large: 4rem;
  }
}

main {
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background-color: var(--bg-color-primary);
  transform: translateY(calc(-1 * var(--radius)));
    position: relative;
  z-index: 1;
  background-color: var(--bg-color-primary);
}

@media (max-width: 1185px) {
  :root {
    --radius: 45px;
  }
}

/* --------------------------------- */
/* ----- Menu Button -----*/
/* --------------------------------- */

.menu-btn-container {
  position: fixed;
  width: 100%;
  top: var(--gutter-x-small);
  left: 0;
  z-index: 4;
}

.menu-btn {
  display: block;
  margin-inline-start: auto;
  border: 1px solid var(--border-dark);
  inline-size: 132px;
  padding-block: var(--gutter-nano);
  border-radius: var(--gutter-large);
  text-decoration: none;
  background-color: var(--bg-color-secondary);
  color: var(--important);
  cursor: pointer;
}

.menu-btn,
.nav-items a {
  font-stretch: 125%;
  font-weight: 900;
}

/* --------------------------------- */
/* ----- Navigation -----*/
/* --------------------------------- */

.nav {
  min-block-size: 100vh;
  position: fixed;
  width: 100%;
  background:
    var(--gradient-brand),
    #ffffff; /* ← color base sólido debajo */
  background-size: 250% 250%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: moveGradients 25s linear infinite;
  transition: 450ms var(--easing);
  z-index: 3;
}

@keyframes moveGradients {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}




.nav-items {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%) translateX(-15%);
  list-style-type: none;
}

.nav-item:not(:last-child) {
  margin-block-end: var(--gutter-x-small);
}

.nav-item a {
  display: inline-block;
  font-size: var(--h2);
  text-decoration: none;
  color: #fff;
}

.nav-item a::after {
  content: "";
  display: block;
  block-size: var(--gutter-nano);
  width: 100%;
  transform: scale(0);
  transform-origin: left;
  background-color: white;
  transition: transform 250ms var(--easing);
}

.nav-item a:hover::after,
.nav-item a:focus::after {
  transform: scale(1);
}

/* --------------------------------- */
/* ----- Header -----*/
/* --------------------------------- */

.header {
  min-block-size: calc(100vh + var(--radius));
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body.dark .header {
  background-image: linear-gradient(#00000050, #000000da),
    url("assets/images/fondo.jpg");
}

body.light .header {
  background-image: linear-gradient(#ffffff34, #ffffffd0),
    url("assets/images/fondo.jpg");
}

/* Eliminamos el cambio a scroll en móviles */
@media (max-width: 768px) {
  .header {
    background-attachment: fixed;
  }
}

.header-textbox {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.h1 span {
  display: block;
}

.highlight-name {
  font-weight: 900; /* Más grueso */
  text-decoration: underline; /* subrayado */
  text-decoration-thickness: 2px; /* grosor del subrayado */
  text-underline-offset: 4px; /* separación del subrayado respecto al texto */
}

.header-text {
  font-size: var(--text-medium);
  font-weight: 400;
  max-inline-size: 700px;
  margin-block-start: var(--gutter-micro);
  margin-block-end: var(--gutter-medium);
}

@media (max-width: 1200px) {
  .header-text {
    max-inline-size: 685px;
  }
}

@media (max-width: 845px) {
  .header-text {
    max-inline-size: 585px;
  }
}

.header-btns {
  display: inline-flex;
  gap: var(--gutter-x-small);
}

@media (max-width: 400px) {
  .header-textbox {
    left: 0;
    text-align: center;
    padding-inline: 0.6rem;
  }
  .header-btns {
    flex-direction: column;
    width: 80%;
  }
}

/* --------------------------------- */
/* ----- Work -----*/
/* --------------------------------- */

.work-boxes {
  padding-block-start: var(--gutter-x-large);
}

.work-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem; /* espacio entre texto y video/imagen para evitar que estén pegados */
  max-width: 1200px; /* limita el ancho total del contenedor */
  margin-inline: auto; /* centra el contenedor horizontalmente */
  padding: 1rem;
}

.work-img,
.work-textbox {
  flex-basis: 49%;
  flex-shrink: 1; /* permite reducirse si es necesario */
  max-width: 49%; /* no crezca más allá del 49% */
  min-width: 300px; /* para evitar que se reduzca demasiado, ajusta según tu gusto */
}

.work-img {
  max-inline-size: 785px;
  margin-block-end: 2rem;
  transition: 0.6s all;
  flex: 1; /* igual que el texto para repartir el espacio */
}

/* Si usas video, asegúrate que responde al flex igual que la imagen */
.work-img video,
video.work-img {
      /* ocupa todo el ancho disponible en su columna */
  height: auto;      /* mantiene proporción */
  object-fit: cover; /* recorta sin deformar */
  max-width: 100%;
  flex-shrink: 1;    /* permite reducirse si la pantalla es pequeña */

}

@media (max-width: 1045px) {
  .work-img,video.work-img,
  .work-textbox {
    max-width: 100%;
    min-width: auto !important;
  }
  .work-img video,
  video.work-img {
    width: 100%;
    height: auto;
  }
}

body.light .work-img {
  box-shadow: var(--shadow);
}

.work-textbox {
   max-inline-size: 445px;
  flex: 1; /* permite que crezca o se reduzca */}

.work-text {
  margin-block: var(--gutter-micro);
}

.work-technologies {
  list-style-position: inside;
  list-style-type: disc;
  margin-block-end: var(--gutter-x-small);
}

.work-links {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-x-small);
}

.work-links img {
  block-size: 28px;
  inline-size: 28px;
}

body.dark .work-links img {
  filter: invert(1);
}



.work-links > a:hover,
.work-links > a:focus {
  transform: scale(1.1);
    transition: 0.3s transform ease-in;

}


@media (max-width: 1045px) {
  .work-box {
    flex-direction: column-reverse; /* Imagen abajo, texto arriba */
      align-items: center;
    text-align: center;
  }
}

@media (max-width: 1045px) {
  .work-textbox {
    max-inline-size: 100%;
    text-align: center; /* opcional, solo si quieres centrar */
  }
  .work-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem); /* tamaño fluido */
  }
}
/* --------------------------------- */
/* ----- Contact -----*/
/* --------------------------------- */

.contact-content {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;     /* Centra verticalmente */
  margin-block: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--gutter-nano);
}

.contact-textbox {
  text-align: center;
  padding: var(--gutter-large) var(--gutter-small);
  max-width: 60ch; /* Limita el ancho a unas 60 letras */
  width: 100%;
  margin-inline: auto;

  /* Fuente fluida: entre 16px y 22px según ancho pantalla */
  font-size: clamp(1rem, 2vw, 1.375rem);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .contact-textbox {
    padding: var(--gutter-medium) var(--gutter-small);
  }
}

@media (max-width: 480px) {
  .contact-textbox {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
}

@media (max-width: 1032px) {
  .contact-content {
    display: flex;
    flex-direction: column-reverse;
    max-inline-size: 845px;
    margin-inline: auto;
  }
}

.contact-textbox,
.contact-form {
  padding: var(--gutter-large) var(--gutter-small);
    align-items: center;

}

.hire-alert {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-nano);
  font-size: initial;
  padding: var(--gutter-nano) var(--gutter-micro);
  border-radius: var(--gutter-small);
  position: relative;
  z-index: 1;
  margin-block-end: var(--gutter-small);
  color: var(--important);
}

.hire-alert::before,
.hire-alert::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hire-alert::after {
  background-image: var(--gradient-border);
  z-index: -2;
}

.hire-alert::before {
  background-color: var(--bg-color-primary);
  inset: 1px;
  z-index: -1;
}

.indicator {
  display: inline-block;
  block-size: var(--gutter-nano);
  inline-size: var(--gutter-nano);
  border-radius: 50%;
  background-color: red;
  animation: blink 550ms alternate infinite var(--easing);
}

@keyframes blink {
  100% {
    opacity: 0;
  }
}

.contact-text {
  margin-block-end: var(--gutter-small);
    text-align: justify;

}

.contact-info {
 
 padding: 1rem;
}

.signatures {
  inline-size: 150px;
}

body.light .signatures {
  filter: invert(1);
}

.contact-form {
  background-color: var(--bg-color-secondary);
  border-top-right-radius: var(--gutter-nano);
  border-bottom-right-radius: var(--gutter-nano);
}

.form-field label,
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
}

.form-field label {
  color: var(--important);
}

.form-field input,
.form-field textarea {
  font-size: var(--text-small);
  color: var(--sub);
  border: none;
  outline: none;
  border-bottom: 1px solid var(--border);
  background-color: transparent;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #888;
}

.form-field input,
.form-field textarea {
  margin-block-end: var(--gutter-small);
  padding: var(--gutter-nano);
  margin-inline: var(--gutter-nano);
}

.form-field label {
  font-size: var(--text-small);
  margin-block-end: var(--gutter-nano);
  margin-inline-start: var(--gutter-nano);
}

.contact-form button[type="submit"] {
  border: none;
}

/* --------------------------------- */
/* ----- Footer -----*/
/* --------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--gutter-x-large);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 875px) {
  .footer-content {
    flex-direction: column-reverse;
    gap: var(--gutter-small);
  }
  .footer-text {
    text-align: center;
  }
}

.footer-text {
  font-size: var(--text-small);
}

.footer-text a {
  color: var(--sub);
}

.footer-links {
  display: flex;
  gap: var(--gutter-small);
  list-style-type: none;
}

@media (max-width: 1040px) {
  .footer-links {
    gap: var(--gutter-micro);
  }
}

.footer-link img {
  block-size: 32px;
  inline-size: 32px;
}

.footer-link a {
  opacity: 0.875;
  transition: 225ms ease-in opacity;
}

.footer-link a:hover {
  opacity: 1;
}

body.dark .footer-link img {
  filter: invert(1);
}

.theme-switch {
  --track-size: calc(var(--thumb-size) * 2);
  --track-padding: 0.225rem;
  --track-inactive: hsl(80 0% 80%);
  --track-active: #d7aefb;
  --track-color-inactive: var(--track-inactive);
  --track-color-active: var(--track-active);
  --thumb-position: 0%;
  --thumb-size: 1.2rem;
  --thumb: hsl(0 0% 100%);
  --thumb-highlight: hsla(0, 0%, 0%, 0.056);
  --thumb-color: var(--thumb);
  --thumb-color-highlight: var(--thumb-highlight);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 2ch;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch > span,
.theme-switch > input {
  cursor: pointer;
}

.theme-switch span {
  font-size: 1rem;
  color: var(--sub);
}

.theme-switch > input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: content-box;
  inline-size: var(--track-size);
  block-size: var(--thumb-size);
  padding: var(--track-padding);
  background-color: var(--track-color-inactive);
  border-radius: var(--track-size);
}

.theme-switch > input::after {
  display: block;
  content: "";
  inline-size: var(--thumb-size);
  block-size: var(--thumb-size);
  background-color: var(--thumb-color);
  border-radius: 50%;
  transform: translateX(var(--thumb-position));
  transition: 500ms all cubic-bezier(0.45, 0.05, 0.22, 1.3);
}

input:checked {
  --thumb-position: 100%;
  background-color: var(--track-active);
}

/* Experience Container Styles */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-box {
    background: var(--bg-color-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.experience-box:hover {
    transform: translateY(-5px);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-color-primary);
    border-bottom: 1px solid var(--border);
}

.experience-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    overflow: hidden; /* Recorta cualquier parte fuera del círculo */

    align-items: center;
    justify-content: center;
    padding: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.experience-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Rellena todo el círculo */

}

.experience-title-container {
    flex: 1;
}

.experience-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.experience-position {
    margin: 0;
    font-size: 1.5rem;
    color: var(--important);
}

.experience-type-badge {
    background: var(--important);
    color: var(--bg-color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.experience-company {
    margin: 0;
    font-size: 1.1rem;
    color: var(--sub);
    font-weight: 500;
}

.experience-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--body);
}

.meta-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.experience-content {
    padding: 1.5rem;
}

.experience-section {
    margin-bottom: 1.5rem;
}

.experience-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--important);
    margin-bottom: 1rem;
}
.experience-description {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem; /* opcional, si quieres más separación desde arriba */
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Espacio entre ítems */
}

.experience-duration,
.experience-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* Espacio entre icono y texto */
  font-size: 0.9rem;
  color: var(--body);
  line-height: 1.4;
}

.experience-duration .meta-icon,
.experience-location .meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body.dark .experience-duration .meta-icon,
body.dark .experience-location .meta-icon {
  filter: invert(1);
}

/* Si quieres separar las dos etiquetas */
.experience-duration + .experience-location {
  margin-left: 1.5rem;
}

/* Responsivo: reducir tamaño en pantallas pequeñas */
@media (max-width: 600px) {
  .experience-duration,
  .experience-location {
    font-size: 0.85rem;
    gap: 0.4rem;
  }
}

.experience-bullet {
  font-size: 1rem;
  position: relative;
  padding-left: 1.5rem; /* espacio para la viñeta */
  line-height: 1.5;
}

.bullet-icon {
    position: absolute;
    left: 0;
    color: var(--important);
}

.experience-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--border);
    color: var(--important);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.relocation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(25, 175, 100, 0.1);
    color: #19af64;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    border: 1px solid rgba(25, 175, 100, 0.3);
}

.relocation-badge img {
    width: 14px;
    height: 14px;
}

/* Education Section Styles */
.education-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 2rem;
}

.education-box {
  background: var(--bg-color-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
}

.education-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.education-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--important);
}


.category-section {
  background: var(--bg-color-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: var(--gutter-large);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* Título dentro de la categoría */
.category-section > .h2 {
  text-align: center;
  margin-top: 0;     /* elimina espacio innecesario */
  margin-bottom: 2rem;
}

/* Separación entre proyectos */
.category-section .work-box {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.category-section .work-box:last-child {
  border-bottom: none; /* Evita línea en el último */
}

/* Ajuste responsive para no romper diseño */
@media (max-width: 768px) {
  .category-section {
    padding: 1.5rem;
  }
  .category-section .work-box {
    padding: 1rem 0;
  }
}
.education-link {
    display: block;
    text-decoration: none;
    color: inherit; /* Mantiene colores originales */
}

.education-link:hover .experience-box {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.title-section {
  font-size: clamp(2.5rem, 5vw, 7rem); /* Tamaño fluido: mínimo 2.5rem, máximo 4rem */
  font-weight: 800;
  text-transform: uppercase;
  color: var(--important); /* Usa tu color destacado */
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
}

/* Línea decorativa debajo del título */
.title-section::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--border-dark);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* --------------------------------- */
/* ----- GAMES -----*/
/* --------------------------------- */

.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px; /* Evita que en pantallas enormes se disperse mucho */
   align-items: stretch; /* Asegura que todas las celdas se estiren igual */

}


.game-box {
  background: var(--bg-color-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column; /* Para que la imagen + texto se apilen bien */
  min-height: 500px; /* Ajusta este valor para igualar alturas */
}

.game-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.game-image {
  display: block;
  width: 100%;
  height: auto;
}

.game-info {
  flex-grow: 1; /* Rellena el espacio disponible */
  padding: 1.5rem;
  text-align: center;
  padding-bottom: 3rem;
}
.game-title {
  font-size: 1.5rem;
  color: var(--important);
  margin-bottom: 0.5rem;
}

.game-description {
  font-size: 1rem;
  line-height: 1.5;
  text-align:left;

}

/* Game Jam abajo a la izquierda */
.game-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

/* Premio abajo a la izquierda */
.award-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: gold;
  color: black;                /* el SVG usará este color si le pones fill: currentColor */
  font-size: 1rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.award-icon {
  height: 1.1em;
  fill: currentColor;          /* hereda el color del texto del badge */
  display: inline-block;
  flex-shrink: 0;
}

.game-jam {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: rgb(88, 88, 88);
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.game-year {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: rgb(88, 88, 88);
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.game-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.game-link:hover .game-box {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}