/*body {
    background-color: #0E1419;
    color: #F8F8F2;
    font-family: monospace;
}*/

body {
  /*background-color: rgb(31, 41, 55);*/
  background-color: #0E1419;
  color: rgb(241 245 249);
  font-family: Jakarta, sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue;
}

.container {
  max-width: 50%;
  margin: auto;
  background-color: transparent;
}

.container header {
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

.container header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  background-color: transparent;
  height: 48px;
  cursor: default;
}

.container header p {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  margin: 0;
  background-color: transparent;
  height: 48px;
  cursor: default;
}

.profile {
  display: flex;
  align-items: center;
  gap: 25px;
  background-color: transparent;
  padding-top: 48px;
  padding-bottom: 48px;
  padding-left: 24px;
  padding-right: 24px;
}

.profile img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.container hr {
  margin: 0px 25px ;
  color: white;
}

.skills {
  padding-top: 48px;
  padding-bottom: 48px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: transparent;
}

.skills h2 {
  display: flex;
  align-items: center;
  height: 48px;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  margin-bottom: 24px;
  background-color: transparent;
  cursor: default;
}

.skills p {
  margin-top: 25px;
  background-color: transparent;
}

.skills-carousel {
  overflow: hidden;
}

.skills-carousel a {
  pointer-events: none;
  cursor: default;
}

.skills-inner {
  display: flex;                
  width: max-content;           
  animation: skills-scroll 45s linear infinite; 
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}

.skills-strip {
  display: block; 
  height: 48px;    
  width: auto;
  pointer-events: none;
  margin-right: 9px;
}

@keyframes skills-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .skills-inner { animation: none; transform: none; }
}

.projects {
  padding: 48px 24px;
  background-color: transparent;
}

.projects h2 {
  display: flex;
  align-items: center;
  height: 48px;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  margin-bottom: 48px;
  background-color: transparent;
  cursor: default;
}

.projects-grid-1, .projects-grid-2, .projects-grid-3, .projects-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin: 0px;
  background-color: transparent;
  margin-bottom: 48px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s;
  border: solid 2px white;
  will-change: transform;
  backface-visibility: hidden;
}

.project-card:hover {
  transform: translateY(-6px); /* remove scale to avoid text rasterization changes */
}

.project-card img {
  width: 100%;
  height: 156px;
  object-fit: cover;
}

.project-card .loading-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.project-info {
  background-color: transparent;
  padding: 24px;
  border-top: solid 2px white;
  display: flex;
  flex-direction: column;
}

.project-info h2 {
  height: 24px;
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.project-info p {
  margin: 0;
  font-size: 0.95rem;
  color: white;
  min-height: 24px; 
  margin-bottom: 16px;
}

/* --- Nuevos estilos para las etiquetas de tecnologías --- */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 16px;
  white-space: nowrap;
}
/* -------------------------------------------------------- */


.contacto {
  padding: 48px 24px;
  background-color: transparent;
}

#titulo-contacto {
  display: flex;
  align-items: center;
  height: 48px;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  cursor: default;
  margin-bottom: 48px;
}

.grid-contacto {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin: 0px;
}

.card {
  display: inline-block;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s;
  margin: 0px;
}

#linkedin {
  border: solid 2px white;
  padding: 12px;
}

#gmail {
  border: solid 2px white;
  padding: 12px;
}

#github {
  border: solid 2px white;
  padding: 12px;
}

.card:hover {
  transform: translateY(-4px); /* remove scale to avoid text rasterization changes */
}

.card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  will-change: transform;
  backface-visibility: hidden;
}

.card-icon {
  flex: 0 0 25%;
  max-width: 25%;
  width: 25%;
  display: block;
  object-fit: contain;
  max-height: 48px;
}

.card-text {
  flex: 1 1 75%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  height: 24px;
}

.card-text {
  font-size: 1rem;
  font-weight: 600;
  margin: 0px;
  color: white;
}

#cv {
  border: solid 2px white;
  padding: 12px;
}

@media (max-width: 1620px) {
  .project-info p {
    font-size: 0.9rem;
  }
}

@media (max-width: 1556px) {
  .project-info p {
    font-size: 0.8rem;
  }
}

@media (max-width: 1430px) {
  .project-info p {
    font-size: 0.7rem;
  }
}

@media (max-width: 1314px) {
  .projects-grid-1, .projects-grid-2, .projects-grid-3, .projects-grid-4{
    grid-template-columns: 1fr;
  }
  .project-info p {
    font-size: 0.95rem;
  }
  .grid-contacto {
    grid-template-columns: 1fr;
  }
  .card-text {
    font-size: 1rem;
  }
}

@media (max-width: 1083px) {
  .profile img {
    width: 125px;
    height: 125px;
  }
  .container header h1 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 1020px) {
  .card {
    justify-content: flex-start;
  }
  .card-icon {
    flex: 0 0 auto;
    width: 56px;
    max-width: 56px;
    object-position: left center;
    display: block;
  }
}

@media (max-width: 1000px){
  .container {
    max-width: 65%;
  }
}

@media (max-width:705px) {
  .container {
    max-width: 80%;
  }
}

@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    text-align: center;
  }
  .profile img {
    width: 140px;
    height: 140px;
  }
  .profile p {
    justify-content: center;
  }
  .skills h2{
    font-size: 1.25rem;
  }
  .projects h2{
    font-size: 1.25rem;
  }
  #titulo-contacto {
    font-size: 1.25rem;
  }
  .card-text {
    font-size: 1rem;
  }
}

@media (max-width: 517px) {
  .project-info p {
    font-size: 0.85rem;
  }
}

@media (max-width: 470px){
  .container {
    max-width: 95%;
  }
}

@media (max-width: 405px) {
  .project-info h2 {
    font-size: 1.05rem;
  }
  .project-info p {
    font-size: 0.8rem;
  }
}

@media (max-width:388px){
  .skills h2{
    font-size: 1.1rem;
  }
  #titulo-proyectos {
    font-size: 1.1rem;
  }
  #titulo-otros-proyectos {
    font-size: 1.1rem;
  }
  #titulo-contacto {
    font-size: 1.1rem;
  }
  .project-info p {
    font-size: 0.75rem;
  }
}