@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-cyrillic-400-normal.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
:root {
    color-scheme: light dark;
}

html {
    font-family: "Onest", sans-serif;
    scroll-behavior: smooth;
}

body {
    background: rgb(10, 10, 10);
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-behavior: smooth;
}
.fondo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;

  background-color: #0a0a0a; /* equivalente a bg-neutral-950 */
  background-image: radial-gradient(
    ellipse 80% 80% at 50% -20%,
    rgba(120, 119, 198, 0.3),
    rgba(255, 255, 255, 0)
  );
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}


.my-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 8px; /* Reduce el espacio debajo de la imagen */
}
.nav {
  display: flex;
  flex-direction: row;   /* opcional, es el valor por defecto */
  column-gap: 40px;      /* equivalente a gap-x-10 */
  opacity: 0.8;          /* equivalente a opacity-80 */
}
.nav a {
  margin-left: 10px;
  text-decoration: none;
  color: #ffffff;
}

.presentacion {
    width: 100%;
    max-width: 740px;
    margin: 80px auto 0 auto;
    padding-top: 44px;
    padding-bottom: 44px;
}

.titulo {
  color: white;
  font-size: 3rem;        /* Aproximado a text-5xl */
  font-weight: bold;
  display: flex;
  flex-direction: row;
  gap: 16px;              /* gap-x-4 (4 * 4px) */
  align-items: center;
  margin-top: 0;      /* Elimina espacio arriba del título */
}

.linkedin-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.badge {
  background-color: #ffffff; /* color personalizado o el que uses */
  color: rgb(0, 89, 255);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.875rem;
  transition:  
    transform 0.2s ease, 
    background-color 0.2s ease, 
    border-color 0.2s ease;
}
.badge:hover {
  background-color: rgb(0, 89, 255); /* color personalizado o el que uses */
  color: rgb(255, 255, 255);
}
.subtitulo {
  font-size: 1.25rem;     /* text-xl */
  opacity: 0.8;           /* opacity-80 */
  color: rgb(255, 255, 255);
}

.texto-destacado {
  color: rgb(226, 188, 75); /* similar a text-yellow-200/90 */
}

#experience h3.texto-destacado {
  color: rgb(226, 188, 75); /* igual que .texto-destacado */
}

.texto-rojo {
  color: rgba(239, 68, 68, 0.9); /* similar a text-red-200/90 */
}

.texto-opaco {
  opacity: 0.75; /* similar a opacity-75 */
}

.icon {
  width: 19px;
  height: 19px;
}

.link-boton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  padding: 7px 14px; 
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;

  color: white;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.05); 

  transition: 
    transform 0.2s ease, 
    background-color 0.2s ease, 
    border-color 0.2s ease;
}

.link-boton:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.link-botones {
  margin-top: 20px;
  display: flex;
  gap: 16px; 
}


#experience, #projects {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

#experience {
  margin-bottom: 10px; /* o el valor que prefieras */
}

#projects {
  margin-top: 1px;
}
#sobre-mi {
  margin-top: 10px;
}
.timeline {
  position: relative;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.timeline-point {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  z-index: 1;
}

#experience time {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

#experience h3 {
  font-size: 1.125rem;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
}

#experience p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.5;
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.timeline-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.arrow-icon {
  width: 12px;
  height: 12px;
}


.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;                 /* gap-x-2 */
  font-size: 1.5rem;        /* text-2xl ≈ 24px */
  font-weight: 600;         /* font-semibold */
  margin-bottom: 24px;      /* mb-6 */
  color: white;
}

.section-heading .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.timeline-link-invertido {
  background-color: #fff;
  color: #222;
  border: 1px solid #bbb;
}

.timeline-link-invertido:hover {
  background-color: #f3f3f3;
  color: #111;
  border-color: #888;
}

/* Imagen de cada proyecto */
#projects-list img {
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(255,255,255,0.10);
  max-width: 100%;
  display: block;
}

/* h3 de cada proyecto */
#projects-list h3 {
  font-size: 1.5rem;        /* text-2xl ≈ 24px */
  font-weight: 600;         /* font-semibold */
  color: rgb(254, 240, 138);/* text-yellow-200 */
  margin-bottom: 8px;       /* mb-2 */
  margin-top: 0;
}

/* p de cada proyecto */
#projects-list p {
  font-size: 1.125rem;      /* text-lg ≈ 18px */
  margin-bottom: 16px;      /* mb-4 */
  line-height: 1.7;
  text-wrap: pretty;        /* text-pretty, soportado en navegadores modernos */
  color: #f3f3f3;
}

#projects-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px 0;
}

#projects-list ul li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-tags {
  display: flex;
  gap: 8px;           /* gap-x-2 */
  flex-direction: row;
  margin-bottom: 8px; /* mb-2 */
  list-style: none;
  padding: 0;
}

.tag-badge {
  display: flex;
  align-items: center;
  gap: 6px;           /* gap-x-2 */
  border-radius: 9999px; /* rounded-full */
  font-size: 0.75rem; /* text-xs */
  padding: 4px 10px;  /* py-1 px-2 */
  font-weight: 500;
  line-height: 1;
}

/* Ejemplo de clases para los tags, puedes personalizar más */
.bg-yellow {
  background: #f7e025;
}
.text-darkgray {
  color: #383836;
}
.bg-orange {
  background: #e44b20;
}
.bg-blue {
  background: #00589d;
}
.text-white {
  color: #fff;
}

/* Tamaño del icono dentro del tag */
.tag-badge .icon {
  width: 1em;
  height: 1em;
  min-width: 1em;
  min-height: 1em;
}

footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(45, 45, 45, 0.3) 100%);
    border-radius: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 40px auto;
    padding: 8px 48px; /* menos altura (8px vertical), más espacio horizontal (48px) */
}

/* Contenedor del footer */
footer .w-full {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Texto del copyright */
footer span {
    font-size: 14px;
    text-align: center;
    color: rgb(254, 240, 138); /* text-yellow-200/90 */
    opacity: 0.9;
}

/* Enlaces del copyright */
footer span a {
    color: rgb(254, 240, 138);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer span a:hover {
    text-decoration: underline;
}

/* Lista de navegación */
footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

footer ul li {
    margin: 0;
}

/* Enlaces de navegación */
footer ul a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 6px;
}

footer ul a:hover {
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    footer .w-full {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    footer ul {
        margin-top: 8px;
        justify-content: center;
    }
    
    footer ul a {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    footer {
        margin: 0 10px 10px 10px;
        border-radius: 12px;
    }
    
    footer .w-full {
        padding: 15px;
    }
    
    footer span {
        font-size: 12px;
    }
    
    footer ul {
        font-size: 12px;
    }
}

.text-yellow-200\/90 {
    color: rgb(254, 240, 138);
    opacity: 0.9;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.bg-black\/20 {
    background-color: rgba(0, 0, 0, 0.2);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.xl\:w-\[1120px\] {
    max-width: 1120px;
}

@media (min-width: 1280px) {
    .xl\:w-\[1120px\] {
        width: 1120px;
    }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0;
  padding: 0;
}

.footer-links a:hover {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-links .link-boton {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(45, 45, 45, 0.3) 100%);
  border: none;
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .project-card {
    flex-direction: row;
    gap: 32px;
    align-items: stretch;
  }
}

.project-img-col {
  width: 100%;
  max-width: 480px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;      /* Apila verticalmente */
  align-items: center;         /* Centra horizontalmente */
  justify-content: flex-start; /* Comienza desde arriba */
}
@media (min-width: 768px) {
  .project-img-col {
    width: 50%;
  }
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(255,255,255,0.10);
  background: transparent;
  transition: transform 0.5s, box-shadow 0.5s;
}

.project-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,255,255,0.2);
}

.project-image {
  object-fit: cover;
  width: 100%;
  object-position: top;
  border-radius: 16px;
  transition: transform 0.5s;
}

@media (min-width: 640px) {
  .project-image {
    height: 220px;
  }
}

@media (min-width: 768px) {
  .project-image {
    transform: scale(1.10);
  }
  .group:hover .project-image {
    transform: scale(1.05);
  }
}

.project-info-col {
  width: 100%;
  max-width: 1800px; 
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .project-info-col {
    width: 100%;         /* antes: 50% */
    max-width: 1800px;   /* antes: 480px */
  }
}

.project-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fef08a;
  margin-bottom: 8px;
}

.project-tags {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 8px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.tag-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  font-size: 0.75rem;
  padding: 4px 10px;
  font-weight: 500;
  line-height: 1;
}

.project-description {
  margin-top: 8px;
  font-size: 1.1rem;
  color: #d1d5db;
  line-height: 1.7;
}

.project-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  background: none;      /* Quita cualquier fondo */
  box-shadow: none;      /* Quita cualquier sombra */
  padding: 0;            /* Quita padding extra */
  border-radius: 0;      /* Quita bordes redondeados */
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: none;                /* Sin fondo */
  color: #fff !important;          /* Texto blanco */
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  font-size: 1rem;
}

.project-link-btn .icon {
  color: #fff !important;          /* Icono blanco */
  fill: #fff !important;
  stroke: #fff !important;
}

.project-link-btn:hover {
  background: rgba(255,255,255,0.08);
  transform: scale(1.07);
}

.about-me-img {
  float:right;
  order: 1;
  width: 16rem;           /* w-64 */
  height: 100%;
  padding: 0.25rem;       /* p-1 */
  border-radius: 1rem;    /* rounded-2xl */
  background-color: rgba(0,0,0,0.2); /* bg-black/20 */
  box-shadow: none;
  aspect-ratio: 1 / 1;    /* aspect-square */
  transform: rotate(3deg);
  margin-left: 50px;
  margin-bottom: 70px;
}

@media (min-width: 768px) {
  .about-me-img {
    order: 2;             /* md:order-2 */
  }
}

@media (min-width: 1024px) {
  .about-me-img {
    padding: 0.5rem;      /* lg:p-2 */
    width: 16rem;         /* lg:w-64 */
  }
}

@media (prefers-color-scheme: dark) {
  .about-me-img {
    background-color: rgba(253, 224, 71, 0.05); /* dark:bg-yellow-500/5 */
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2); /* dark:ring-white/20 */
  }
}

/* =====================
   Responsive Improvements
   ===================== */

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    width: 100%;
    padding: 12px 16px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    column-gap: 20px;
  }

  .titulo {
    font-size: 2rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .subtitulo {
    font-size: 1rem;
    text-align: center;
  }

  .link-botones {
    flex-direction: column;
    align-items: center;
  }

  #experience,
  #projects,
  #sobre-mi {
    padding: 20px;
  }

  .about-me-img {
    margin-left: 0;
    margin-bottom: 20px;
    float: none;
    display: block;
    margin: 0 auto;
  }

  #sobre-mi > div {
    flex-direction: column;
    gap: 20px;
  }

  .project-card {
    flex-direction: column !important;
  }

  .project-img-col,
  .project-info-col {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .titulo {
    font-size: 1.6rem;
  }

  .link-boton {
    font-size: 0.875rem;
    padding: 6px 12px;
  }

  .project-description {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.25rem;
  }

  .timeline-link {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

/* Responsive para la sección sobre-mi */
#sobre-mi > div {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

@media (max-width: 900px) {
  #sobre-mi > div {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  #sobre-mi > div {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }
  #sobre-mi p {
    text-align: center;
    font-size: 1rem;
  }
  .about-me-img {
    margin: 0 auto 16px auto !important;
    float: none;
    width: 140px;
    height: 140px;
    padding: 0.15rem;
  }
}

@media (max-width: 480px) {
  .about-me-img {
    width: 100px;
    height: 100px;
    padding: 0.1rem;
  }
  #sobre-mi h2 {
    font-size: 1.2rem;
  }
  #sobre-mi p {
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}