/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  font-family: 'Poppins', sans-serif;
  background-color: #1f1f1f;
  color: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  padding: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2b2b2b;
  padding: 10px 20px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: #ece468;
  text-decoration: none;
}

.logo {
  font-weight: bold;
  color: gold;
}

.search-box {
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: #2e2e2e;
  color: #fff;
  font-size: 1em;
  resize: none;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.hero-text h1 {
  font-size: 2.5em;
}
.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-text h1 .highlight {
  color: #f5c242; /* dorado */
}

.hero-text p {
  font-size: 1.2rem;
  color: #c7c7c7;
  margin-top: 10px;
}

.highlight {
  color: gold;
}

/* Botón de contacto */
.contact-button {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #f5c242;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  color: #1e1e1e;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.hero-section {
  background-color: #444242;
  padding: 60px 40px;
  border-radius: 20px;
  margin-top: 60px;
}
.hero-image img {
  max-width: 300px;
  border-radius: 15px;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Espacio entre texto e imagen */
  padding: 40px 0;
}
/* Estilos generales de títulos */
h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}
.hero-text {
  /* Opcional: ajusta el ancho si lo deseas */
  max-width: 400px;
}

.hero-image img {
  width: 180px; /* Ajusta el tamaño de la imagen si es necesario */
  border-radius: 0%; /* Opcional: hace la imagen circular */
  /*box-shadow: 0 2px 8px rgb(255, 255, 255); /* Opcional: sombra suave */
}
.contact-button:hover {
  background-color: #e0ac29;
}
.about {
  margin-top: 30px;
  padding-left: 20%;
  width: 70% ;

  display: block;      /* Cambia de flex a block */ 

}
.about-title {
  text-align: center;
  font-size: 2rem;
  color: #f5c242;
  margin-bottom: 40px;
  
}
/* .about h2 {
  font-size: 2rem;
  color: #ffffff;
  position: relative;
} */
/* Esta es la linea del about */
.about h2::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  opacity: 0;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #f5c242 20%,
    #f5c242 80%,
    transparent 100%
  );
  /* animation: aboutLineCascade 1s ease-out forwards; */
  transition: all 1s ease-out;

}
.about-title.animate::after {
  width: 100%;
  opacity: 1;
}
@keyframes aboutLineCascade {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}


/* .vertical-line {
  width: 2px;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #f5c242, #f5c242);
  margin-bottom: 15px;
} */
.about p {
  color: #c0c0c0;
  text-align: justify;
  margin-top: 20px;
  font-size: 1.05rem;
}
.about h2 {
  font-size: 2em;
  margin-bottom: 10px;
  text-align: left;    /* Asegura que el título esté alineado a la izquierda */
}
.skills {
  margin-top: 40px;
}
.skill-box {
  transition: 
    color 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  /*border: 1px solid #ccc;*/
  height: 100px;
  padding: 16px 24px;
  border-radius: 8px;
  background: #2e2e2e;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
}
.skills-title {
  text-align: center;
  font-size: 2rem;
  color: #f5c242;
  margin-bottom: 40px;
}
/* .skill-box {
  background-color: #2e2e2e;
  padding: 15px;
  text-align: center;
  border-radius: 10px;
  font-weight: bold;
} */
/* .skill-box:hover {
  transform: translateY(-5px);
  background-color: #3a3a3a;
  cursor:default;
} */
.skill-box:hover {
  color: gold;
  border-color: gold;
  box-shadow: 0 0 16px 4px rgba(255, 255, 255, 0.5);
  background: #ffd609d5;
}
.skills h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); */
  grid-template-columns: repeat(6, 1fr); /* Fuerza 3 columnas */
  gap: 15px;
  justify-content: center;      /* Centra las columnas incompletas */
  max-width: 900px;             /* Ajusta el ancho máximo según tu diseño */
  margin: 0 auto;      
}
/* ...existing code... */
footer {
  margin-top: 60px;
  padding: 40px 0 20px 0;
  background: #232323;
  border-radius: 12px 12px 0 0;
}

.contact-section {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-section h2 {
  color: #f5c242;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: #2e2e2e;
  color: #fff;
  font-size: 1em;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #f5c242;
}

.contact-form button {
  background: #f5c242;
  color: #232323;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: gold;
}
.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: #f5c242;
  font-weight: 500;
  text-align: left;
  margin-top: 10px;
}
/* ...existing code... */
::selection {
  background: #ffe066;   /* Amarillo suave */
  color: #232323;        /* Texto oscuro para contraste */
}
/* Contenedor general alineado al lado derecho de la imagen */
.vertical-line-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 20px;
  position: relative;
}

/* Línea vertical con gradiente difuminado arriba */
.vertical-line {
  width: 2px;
  height: 0px;
  background: linear-gradient(to bottom, transparent, #f5c242, #f5c242);
  margin-bottom: 15px;
  opacity: 0;
  transform: scaleY(0.8);
  transition: all 1s ease-out;
  /* animation: verticalCascade 0.2s ease-out forwards;
  animation-delay: 0.3s; */
}
@keyframes verticalCascade {
  from {
    height: 0;
    opacity: 0;
    transform: scaleY(0.8);
  }
  to {
    height: 150px;
    opacity: 1;
    transform: scaleY(1);
  }
}
.vertical-line.animate {
  height: 150px;
  opacity: 1;
  transform: scaleY(1);
}
/* Íconos sociales en vertical */
.social-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Estilos de íconos placeholder (puedes poner íconos reales luego) */
.icon-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background-color: #2e2e2e;
  color: #ffffff;
  border-radius: 50%;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.icon-link:hover {
  background-color: #f5c242;
  color: #1e1e1e;
}
/* === Portfolio Section === */
.portfolio-section {
  background-color: #242424;
  padding: 60px 40px;
  border-radius: 20px;
  margin-top: 60px;
}

.portfolio-title {
  text-align: center;
  font-size: 2rem;
  color: #f5c242;
  margin-bottom: 40px;
  
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fuerza 3 columnas */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card styles */
.portfolio-card {
  perspective: 1000px;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  background-color: #3a3a3a;
  cursor:default;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 300px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* .portfolio-card:hover .card-inner {
  transform: rotateY(180deg);
} */
.portfolio-card.flipped .card-inner {
  transform: rotateY(180deg);
}
/* Card front (image) */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  overflow: hidden;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

/* Card back (description) */
.card-back {
  background-color: #333333;
  color: #ffffff;
  transform: rotateY(180deg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-back h3 {
  margin-bottom: 10px;
  color: #f5c242;
  font-size: 1.2rem;
}

.card-back p {
  font-size: 0.95rem;
  color: #dddddd;
}
/* === Experience Section === */
.experience-section {
  background-color: #2a2a2a; /* gris menos opaco */
  padding: 60px 40px;
  margin-top: 60px;
  border-radius: 20px;
  position: relative;
}

.experience-title {
  text-align: center;
  font-size: 2rem;
  color: #f5c242;
  margin-bottom: 40px;
}

/* Timeline Layout */
.timeline {
  position: relative;
  margin-left: 60px;
  padding-left: 40px;
  border-left: 2px solid #f5c24255; /* línea con opacidad */
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -11px;
  top: 5px;
  width: 18px;
  height: 18px;
  background-color: #f5c242;
  border-radius: 50%;
  box-shadow: 0 0 10px #f5c242, 0 0 20px #f5c24266;
  z-index: 1;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 194, 66, 0.7), 0 0 10px #f5c242, 0 0 20px #f5c24266;
  }
  70% {
    box-shadow: 0 0 0 15px rgba(245, 194, 66, 0), 0 0 10px #f5c242, 0 0 20px #f5c24266;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 194, 66, 0.7), 0 0 10px #f5c242, 0 0 20px #f5c24266;
  }
}

.timeline-year {
  position: absolute;
  left: -60px;
  top: 0;
  font-weight: bold;
  color: #f5c242;
  font-size: 0.95rem;
}

.timeline-content {
  margin-left: 20px;
  max-width: 600px;
}

.timeline-role {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
}

.timeline-company {
  font-size: 1rem;
  font-style: italic;
  color: #c7c7c7;
  margin-bottom: 10px;
}

.timeline-description {
  font-size: 0.95rem;
  color: #dddddd;
  text-align: justify;
  line-height: 1.6;
}
/* === Academic Section === */
.academic-section {
  background-color: #2a2a2a; /* gris menos opaco */
  padding: 60px 40px;
  margin-top: 60px;
  border-radius: 20px;
  position: relative;
}

.academic-title {
  text-align: center;
  font-size: 2rem;
  color: #f5c242;
  margin-bottom: 40px;
}
.academic-timeline {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  border-right: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.academic-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #f5c24255;
  z-index: 0;
}
/* Ajusta los items para que estén alineados justo a la derecha de la línea */
.academic-timeline .timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
  width: 100%;
  /* justify-content: flex-start;  <-- puedes omitirlo, es el valor por defecto */
}

.academic-timeline .timeline-content {
  max-width: 500px;      /* Ajusta según tu diseño */
  margin-left: 0px;     /* Espacio entre la línea y el contenido */
}

.academic-timeline .timeline-dot {
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
}
/* ...existing code... */
.download-cv-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(90deg, #f5c242 60%, gold 100%);
  color: #232323;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(245, 194, 66, 0.2);
  transition: background 0.2s, transform 0.2s;
  margin-left: 20px;
  cursor: pointer;
}
.download-cv-button:hover {
  background: linear-gradient(90deg, gold 60%, #f5c242 100%);
  transform: translateY(-2px) scale(1.04);
  color: #1f1f1f;
}
/* ...existing code... */
