:root{
  --primary: #010f4c;
  --secondary: #ffffff;
  --tersary: #ffd700;
  --muted-text: #3e443d;
  --hover-accent: #0000ff;  
  --alert-color: #ff0000;
}


.contact1 {
  width: 100%;
  min-height: 100%;
  padding: 15px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.container-contact1 {
  width: 1163px;
  background: var(--secondary);
  overflow: hidden;

  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

  padding: 90px 130px 88px 148px;
}


.contact1-pic {
  width: 480px;
}

.contact1-pic img {
  max-width: 100%;
}



.contact1-form {
  width: 390px;
}

.contact1-form-title {
  display: block;
  font-size: 24px;
  color: var(--primary);
  line-height: 1.2;
  text-align: center;
  padding-bottom: 44px;
}


input.input1 {
  height: 50px;
  padding: 0 30px;
  border-width: 2px;
}


/* Placeholder */
.input::placeholder {
  color: #888;
  opacity: 1; /* Safari */
}


textarea.input1 {
  min-height: 150px;
  padding: 12px 30px;
  border-width: 2px;
}

/*---------------------------------------------*/
.wrap-input1 {
  position: relative;
  width: 100%;
  z-index: 1;
  margin-bottom: 20px;
}

.input1 {
  display: block;
  width: 100%;
  font-size: 15px;
  line-height: 1.5;
}

.shadow-input1 {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  box-shadow: 0px 0px 0px 0px;
  color: var(--primary);
}

.input1:focus+.shadow-input1 {
  -webkit-animation: anim-shadow 0.5s ease-in-out forwards;
  animation: anim-shadow 0.5s ease-in-out forwards;
}

@-webkit-keyframes anim-shadow {
  to {
    box-shadow: 0px 0px 80px 30px;
    opacity: 0;
  }
}

@keyframes anim-shadow {
  to {
    box-shadow: 0px 0px 80px 30px;
    opacity: 0;
  }
}

/*---------------------------------------------*/
.container-contact1-form-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.contact1-form-btn {
  min-width: 193px;
  height: 50px;
  border-radius: 25px;
  background: var(--primary);
  font-size: 15px;
  line-height: 1.5;
  color: var(--secondary);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 25px;

  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;
}

.contact1-form-btn i {
  margin-left: 7px;

  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;
}

.contact1-form-btn:hover {
  background: var(--muted-text);
}

.contact1-form-btn:hover i {
  -webkit-transform: translateX(10px);
  -moz-transform: translateX(10px);
  -ms-transform: translateX(10px);
  -o-transform: translateX(10px);
  transform: translateX(10px);
}




/*------------------------------------------------------------------
[ Responsive ]*/

@media (max-width: 1200px) {
  .contact1-pic {
    width: 33.5%;
  }

  .contact1-form {
    width: 44%;
  }
}

@media (max-width: 992px) {
  .container-contact1 {
    padding: 90px 80px 88px 90px;
  }

  .contact1-pic {
    width: 35%;
  }

  .contact1-form {
    width: 55%;
  }
}

@media (max-width: 768px) {
  .container-contact1 {
    padding: 90px 80px 88px 80px;
  }

  .contact1-pic {
    display: none;
  }

  .contact1-form {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .container-contact1 {
    padding: 90px 15px 88px 15px;
  }
}


/*------------------------------------------------------------------
[ Alert validate ]*/

.validate-input {
  position: relative;
}

.alert-validate::before {
  content: attr(data-validate);
  position: absolute;
  max-width: 70%;
  background-color: var(--secondary);
  border: 1px solid var(--alert-color);
  border-radius: 13px;
  padding: 4px 25px 4px 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 8px;
  pointer-events: none;

  color: var(--alert-color);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;

  visibility: hidden;
  opacity: 0;

  -webkit-transition: opacity 0.4s;
  -o-transition: opacity 0.4s;
  -moz-transition: opacity 0.4s;
  transition: opacity 0.4s;
}

.alert-validate::after {
  content: "\f06a";
  display: block;
  position: absolute;
  color: var(--alert-color);
  font-size: 15px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 13px;
}

.alert-validate:hover:before {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 992px) {
  .alert-validate::before {
    visibility: visible;
    opacity: 1;
  }
}

.project-platforms {
  display: flex;
  justify-content: flex-start;
  /* alineadas a la izquierda */
  flex-wrap: nowrap;
  /* una sola fila */
  margin: 1px 0;
  gap: 4px;
  overflow: hidden;
  /* ocultamos cualquier desbordamiento */
}

.project-platform {
  flex: 1 1 auto;
  /* se encogen proporcionalmente */
  min-width: 0;
  /* permite que se var(--alert-color)uzcan más allá de su contenido */
  text-align: center;
  white-space: nowrap;
  /* evita salto de línea dentro de la caja */
  overflow: hidden;
  /* corta cualquier exceso de contenido */
  text-overflow: ellipsis;
  /* agrega "..." si el texto se queda corto */
  border: 1px solid var(--muted-text);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: clamp(6px, 1vw, 10px);
  /* fuente que se ajusta a la pantalla */
  background-color: var(--secondary);
  box-sizing: border-box;
  /* incluye padding en ancho total */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  /* espacio entre iconos si hay varios */
}

/* Forzamos tamaño máximo a todos los SVG e icon fonts dentro */
.project-platform svg,
.project-platform i {
  width: 1.5em;
  /* igual que la altura de la fuente */
  height: 1.5em;
  max-width: 100%;
  /* que no desborde la caja */
  max-height: 100%;
  vertical-align: text-top;
  fill: currentColor;
  /* el SVG toma el color del texto */
}


.project-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
  border: 1px solid var(--primary);
  border-radius: 10px;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary);
  color: var(--secondary);
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}



/* Ajuste visual del grid */
.cert-card {
  cursor: pointer;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  position: relative;
  transition: transform .2s ease;
}

.cert-card:hover {
  transform: scale(1.03);
  outline: 2px dashed var(--hover-accent);
}

/* Lightbox */
.cert-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--muted-text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cert-lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
}

.cert-lightbox .close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 28px;
  color: var(--secondary);
  cursor: pointer;
}










.recommendation-card {
  position: relative;
  color: var(--secondary);
  /* Texto en blanco */
  border: 1px solid var(--secondary);
  /* Borde blanco fino y elegante */
  border-radius: 12px;
  /* Esquinas var(--alert-color)ondeadas */
  padding: 15px;
  cursor: pointer;
  overflow: hidden;
  background: var(--primary);
  /* Fondo muy sutil para no romper el estilo */
  box-shadow: 0 6px 15px var(--primary);
  /* Sombra ligera para efecto de profundidad */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  height: 500px;
  margin-bottom: 35px;
}

.recommendation-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px var(--primary);
  background: var(--primary);
  outline: 2px dashed var(--hover-accent);
}

.recommendation-card img {
  width: 100%;
  height: 160px;
  /* Altura uniforme */
  object-fit: cover;
  /* Ajuste elegante de la imagen */
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.recommendation-card:hover img {
  transform: scale(1.05);
  /* Zoom ligero en la imagen al pasar el ratón */
}

.recommendation-card h3,
.recommendation-card p {
  margin: 5px 0;
  color: var(--secondary);
  /* Texto en blanco */
  font-size: 1.2em;
}

.recommendation-card span {
  color: var(--secondary);
  /* Texto en blanco */
  font-size: 0.8em;
}

/* Modal */
.recommendation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--muted-text);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.recommendation-modal-content {
  position: relative;
  width: 90%;
  height: 90%;
}

.recommendation-modal iframe,
.recommendation-modal img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.close-modal {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 0 10px var(--muted-text);
  transition: background 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
  background: var(--primary);
  transform: scale(1.2);
}

/* Media query para móviles */
@media (max-width: 1000px) {
  #letters-list {
    display: flex;             /* fila horizontal */
    overflow-x: auto;          /* scroll horizontal */
    scroll-snap-type: x mandatory; /* encaje de cartas */
    -webkit-overflow-scrolling: touch; /* suavizado en iOS */
    gap: 15px;                 /* separación entre cartas */
    padding-bottom: 10px;
  }

  #letters-list .recommendation-card {
    flex: 0 0 80%;             /* ancho de cada carta */
    max-width: 300px;          /* opcional: limitar ancho */
    scroll-snap-align: start;  /* encaje al inicio */
    margin-bottom: 0;          /* quitar margen inferior */
  }

  /* Ajuste de altura para evitar scroll vertical */
  .recommendation-card {
    height: auto;
  }
}



















.pm-testimonials-wrapper {
  overflow-x: hidden;
  /* ocultar scroll manual */
  position: relative;
  padding: 20px 60px;
}

.pm-testimonials-carousel {
  display: flex;
  gap: 20px;
  min-width: max-content;
  /* fila horizontal */
}


.pm-testimonial-card {
  flex: 0 0 500px;
  display: flex;
  background: var(--primary);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 2px 4px var(--secondary);
  border: 1px solid var(--secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: default;
  position: relative;
  gap: 15px;
}

/* Contenedor izquierdo (imagen + info) */
.testimonial-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

/* Imagen circular */
.testimonial-left .testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
  margin-bottom: 10px;
}

/* Info debajo de la imagen */
.testimonial-left .testimonial-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: var(--secondary);
  text-align: center;
}

.testimonial-left .testimonial-position-company,
.testimonial-left .testimonial-date {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-top: 2px;
  text-align: center;
}

/* Contenedor derecho (comentario) */
.testimonial-right {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Comentario en comillas */
.testimonial-right p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--secondary);
  position: relative;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--primary);
  font-style: italic;
}

.testimonial-right p::before {
  top: -10px;
  left: 5px;
}

.testimonial-right p::after {
  bottom: -10px;
  right: 5px;
}

/* Hover efecto */
.pm-testimonial-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 25px var(--primary);
  background: var(--primary);
  outline: 2px dashed var(--hover-accent);
}


/* Flechas */
.pm-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px var(--primary);
  opacity: 0;
  /* invisibles por defecto */
  transition: opacity 0.3s ease;
}

.pm-testimonials-wrapper:hover .pm-carousel-arrow {
  opacity: 1;
  /* aparecen al hover */
}

.pm-left-arrow {
  left: 20px;
  opacity: 1;
}

.pm-right-arrow {
  right: 20px;
  opacity: 1;
}

.pm-left-arrow {
  left: 20px;
  opacity: 1;
}

.pm-right-arrow {
  right: 20px;
  opacity: 1;
}








/* Tarjetas de cursos */
.course-card {
  background: var(--secondary);
  border: 1px solid var(--primary);
  border-radius: 12px;
  overflow: hidden;
  color: var(--muted-text);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  margin: 10px;
}

.course-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px var(--primary);
  outline: 2px dashed var(--hover-accent);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-card .course-content {
  padding: 10px;
}

.course-card .course-content h3 {
  font-size: 1rem;
  margin: 5px 0;
  color: var(--primary);
}

.course-card .course-content p {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin: 3px 0;
}

/* Modal PDF */
.course-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.course-modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--secondary);
}

.course-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.course-modal .close-modal {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 0 10px var(--primary);
}

/* Paginación */
#courses-pagination {
  margin-top: 20px;
}

.page-btn {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.page-btn.active {
  background: var(--muted-text);
  color: var(--secondary);
  border-color: var(--muted-text);
}

.page-btn:hover {
  background: var(--muted-text);
  color: var(--secondary);
}


















.blogs-search-input {
  width: 60%;
  max-width: 400px;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--secondary);
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.95rem;
  margin: 0 auto;
  display: block;
}

.blogs-search-input::placeholder {
  color: var(--secondary);
}

/* Grid artículos */
#blogs-list .col-md-3 {
  margin-bottom: 20px;
}

/* Card tipo artículo con esquina partida */
.blog-pin-card {
  position: relative;
  background: var(--secondary);
  border-radius: 16px;
  padding: 25px 20px 15px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--primary);
  height: 100%;
}

.blog-pin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px var(--primary);
  outline: 2px dashed var(--hover-accent);
}

.blog-pin-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 5px;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.blog-pin-card p {
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.5;
  margin: 0;
}

/* Chincheta emoji */
.blog-pin-card .blog-pin {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
}

/* Paginación moderna y legible */
.blogs-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.pagination-btn {
  background: var(--secondary);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pagination-btn.active {
  background: var(--secondary);
  border: 2px solid var(--hover-accent);
  color: var(--primary);
}

.pagination-btn:hover {
  border-color: var(--hover-accent);
  color: var(--primary);
}









#fh5co-skills-modern {
  background: var(--secondary);
  padding: 60px 0;
}

.skills-group {
  border: 1px solid var(--secondary);
  border-radius: 18px;
  padding: 25px;
  margin-bottom: 30px;
}

.skills-group h3 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Grid de tecnologías */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Tarjeta de skill */
.skill-card {
  background: var(--secondary);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid var(--primary);
}

.skill-card i {
  font-size: 1.3rem;
}

.skill-card:hover {
  transform: translateY(-3px);
  background: var(--primary);
  color: var(--secondary);
}


.skills-group {
  background: var(--secondary);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 25px 25px 15px 25px;
  margin-bottom: 25px;
  position: relative;
}

/* Línea decorativa superior */
.skills-group::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary);
  border-radius: 20px 20px 0 0;
}



.skill-filter-btn {
  background: var(--secondary);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 6px;
  cursor: pointer;
}

.skill-filter-btn:hover {
  background: var(--primary);
  color: var(--secondary);
}







/* ========================= */
/* IMPACT & RESULTS SECTION  */
/* ========================= */

#fh5co-impact {
  padding: 40px 0 60px 0;
}

/* Tarjetas de impacto */
.impact-card {
  background: var(--secondary);
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
  margin-bottom: 25px;
  border: 1px solid var(--primary);
  box-shadow: 0 6px 14px var(--tersary);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  position: relative;
}

/* efecto hover */
.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px var(--primary);
}

/* etiqueta tipo logro */
.impact-tag {
  position: absolute;
  top: -10px;
  left: 15px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
}

/* título */
.impact-card h4 {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 6px;
}

/* descripción */
.impact-card p {
  font-size: 13px;
  color: var(--muted-text);
  margin-bottom: 8px;
}

/* resultados */
.impact-result {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

/* tecnologías */
.impact-tech {
  font-size: 12px;
  color: var(--muted-text);
  font-style: italic;
}

/* icono arriba */
.impact-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary);
}

/* grid 3 columnas */
@media(min-width:992px) {
  .impact-col {
    width: 33.3333%;
    float: left;
    padding: 0 10px;
  }
}










/* Tarjetas de hobbies */
.hobby-card {
  background: var(--secondary);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 20px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.hobby-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px var(--primary);
  border-color: var(--hover-accent);
  outline: 2px dashed var(--hover-accent);
}

.hobby-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.hobby-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--primary);
}

.hobby-card p {
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Carrusel de imágenes */
.hobby-carousel {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 10px;
}

.hobby-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.6s ease-in-out;
  opacity: 0;
}

.hobby-carousel img.active {
  opacity: 1;
}

/* Grid 3 por fila en desktop */
#hobbies-list .col-md-4 {
  display: flex;
}






/* MEDIA QUERY PARA MÓVIL */
@media (max-width: 1000px) {
  #hobbies-list {
    display: flex;          /* fila horizontal */
    overflow-x: auto;       /* scroll horizontal */
    scroll-snap-type: x mandatory; /* "snap" al elemento */
    -webkit-overflow-scrolling: touch; /* suavizado en iOS */
    gap: 15px;              /* separación entre cards */
    padding-bottom: 10px;   /* espacio debajo */
  }

  #hobbies-list .col-md-4 {
    flex: 0 0 80%;         /* cada card ocupa 80% del ancho del contenedor */
    max-width: 300px;      /* opcional: limitar ancho máximo */
    scroll-snap-align: start;
    display: block;         /* quitar display flex */
  }

  .hobby-card {
    height: auto;           /* ajustar altura para scroll horizontal */
    margin-bottom: 0;       /* eliminar margen inferior */
  }

  /* Opcional: ocultar paginación en móvil */
  #hobbies-pagination {
    display: none;
  }
}




















#fh5co-footer {
  padding: 40px 0;
  background: var(--primary);
  color: var(--secondary);
}

#fh5co-footer a {
  color: var(--secondary);
  text-decoration: none;
  transition: 0.3s;
}

#fh5co-footer a:hover {
  color: var(--tersary);
}

.btn-footer {
  display: inline-block;
  margin: 5px 10px;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
  font-size: 1.2rem;
  transition: 0.3s;
}

.btn-footer:hover {
  background: var(--muted-text);
  color: var(--primary);
}

#footer-socials {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

#footer-madeby {
  color: var(--secondary);
  margin-bottom: 10px;
}

#footer-socials li a {
  font-size: 2.5rem;
}










#contact-character {
  position: fixed;
  left: -150px;
  /* start off-screen */
  bottom: 100px;
  width: 120px;
  /* ancho visible del personaje */
  height: 160px;
  /* altura para mostrar solo la cabeza */
  margin-left: -20px;
  padding: 15px;

  overflow: hidden;
  /* recorta todo lo que sobresalga */
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

#contact-character img {
  width: 120px;
  /* escala la imagen para que se ajuste al contenedor */
  height: auto;
  transform: rotate(45deg);
  /* rota la imagen */
  transform-origin: center top;
  /* pivote en la base de la cabeza */
  display: block;
  margin-bottom: -220px;
  /* mueve la imagen hacia arriba para centrar la cabeza */
}

/* Speech bubble */
#contact-character .speech-bubble {
  position: relative;
  background: var(--primary);
  color: var(--secondary);
  padding: 2px 13px;
  border-radius: 16px;
  margin-top: 79px;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#contact-character .speech-bubble::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 10px 8px;
  border-style: solid;
  border-color: transparent transparent var(--primary) transparent;
}



/* ================================
   Stretchy Nav – LI hover background
   ================================ */

.cd-stretchy-nav ul {
  list-style: none;

}


.cd-stretchy-nav ul li {

  border-radius: 0px 0px 30px 0px;
  background-color: var(--muted-text);
}

/* Hover sobre el li */
.cd-stretchy-nav ul li:hover {
  background-color: var(--muted-text);
}

/* Asegurar que el link ocupa todo el li */
.cd-stretchy-nav ul li a {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--secondary);
}

.cd-stretchy-nav ul li a {
  color: var(--secondary);
}

/* Mantener color del texto */
.cd-stretchy-nav ul li:hover a span {
  color: var(--secondary);
}



.grade-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 1.2rem;
}

.show-more-btn {
  margin-top: 10px;
  padding: 6px 15px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: var(--secondary);
  cursor: pointer;
  transition: 0.3s;
}

.show-more-btn:hover {
  background: var(--primary);
}
















/* ===== EDUCATION CARDS ===== */


.timeline-badge img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 6px;
}






.experience-years {
  margin-top: 10px;
  padding: 6px 15px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: var(--secondary);
  cursor: pointer;
  transition: 0.3s;
  font-size: 12px;
}

.experience-years:hover {
  background: var(--primary);
}











.awards-section {
  background: var(--secondary);
  padding: 80px 0;
}

.awards-header h2 {
  font-size: 42px;
  font-weight: 700;
}

.awards-subtitle {
  color: var(--muted-text);
  margin-top: 10px;
  font-size: 18px;
}

/* Layout */
.awards-showcase {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  perspective: 1200px;
}

/* Central trophy */
.award-trophy {
  position: relative;
  font-size: 140px;
  color: var(--tersary);
  transform-style: preserve-3d;
  animation: float 5s ease-in-out infinite;
}

.award-trophy i {
  position: relative;
  z-index: 2;
}

.trophy-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--tersary), transparent 30%);
  filter: blur(30px);
  z-index: 1;
}

/* Floating animation with subtle bounce */
/* Floating animation with smooth infinite bounce */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-4px);
  }

  50% {
    transform: translateY(-8px);
  }

  75% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Aplicación */
.element {
  animation: float 3s ease-in-out infinite alternate;
}




/* Award cards */
.award-card {
  width: 420px;
  background: var(--secondary);
  backdrop-filter: blur(5px);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 15px 15px var(--primary);
  cursor: pointer;
  transition: all 0.35s ease;
}

.award-card:hover {
  transform: scale(1.08) translateY(-10px);
  box-shadow: 0 2px 22px var(--tersary);
}

/* Text */
.award-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.award-card .award-meta {
  font-size: 14px;
  color: var(--primary);
  margin: 6px 0 6px;
}

.award-card p {
  font-size: 14px;
  color: var(--primary);
}



/* Media query para móviles */
@media (max-width: 768px) {
  /* Ocultar el trofeo central */
  .award-trophy {
    display: none;
  }

  /* Mostrar las tarjetas en bloque vertical */
  .awards-showcase {
    display: block; /* quitar flex */
    margin-top: 30px;
    gap: 0; /* ya no hace falta */
    perspective: none; /* opcional, si quieres quitar el efecto 3D */
  }

  .award-card {
    width: 100%; /* que ocupen todo el contenedor */
    margin: 20px 0; /* margen superior e inferior */
    box-sizing: border-box;
  }
}







.emoji-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-color: var(--muted-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.emoji-badge:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px var(--primary);
}

/* Tooltip personalizado */
.emoji-tooltip {
  position: absolute;
  bottom: 15%;
  left: 93%;
  transform: translateY(50%) translateX(10px);
  background-color: var(--muted-text);
  color: var(--secondary);
  padding: 6px 12px;
  border-radius: 0px 6px 6px 0px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9;
}

/* Aparece con animación desde la izquierda hacia la derecha */
.emoji-badge:hover+.emoji-tooltip {
  opacity: 1;
  transform: translateY(50%) translateX(0);
}







.accessible-link {
  color: var(--hover-accent);
  /* DodgerBlue - WCAG compliant */
  text-decoration: underline;
  font-weight: 500;
}

.accessible-link:hover,
.accessible-link:focus {
  color: var(--hover-accent);
  outline: 2px dashed var(--hover-accent);
  text-decoration: underline;
}




