* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #1e252c;
  color: white;
  user-select: none;
}

/* Barra de navegación */
header{
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-top: 10px;
}

.container {
  max-width: 599px;
  margin:0 auto;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 15px;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #0a0a0a;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  transform: translateX(-8px);
}

nav:hover {
  background-color: #111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

nav a {
  text-decoration: none;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: #cfd8dc;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a:focus {
  background-color: #258125;
  color: white;
}

.nav__logo {
  width: 48px;
  height: 48px;
  margin-top: 0.2rem;
  border-radius: 50%;
  object-fit: cover;
}

#duplicate-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

/* Sección de incio */

.inicio{
  display: flex;
  justify-content: center;
  max-width: 599px;
  margin: 0 auto;
  align-items: center;
  padding: 2rem;
}

.inicio_container {
  display: grid;
  grid-template-columns: minmax(300px, 600px) minmax(300px, 600px);
  grid-template-areas: 
  "ft_perfil titulos"
  "ft_perfil botones"
  ;
  align-content: center ; 

  background-color: #141414; 
  border-radius: 1rem; 
  padding: 1rem; 
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 
}

.ft_perfil{
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover; 
  margin-top: -5px; 
}

.perfil {
  grid-area: ft_perfil;
  align-items: center;
  display: flex;
  justify-content: center; 
}



.info {
  grid-area: titulos;
}

.redes {
  grid-area: botones;
  border-radius: 0.75rem;
  margin-top: 0.9rem;

  display: flex;
  justify-content: flex-start; 
  gap: 0.3rem;
  flex-wrap: wrap;
}


.btn-descargar {
  background-color: white;
  color: #141414;
  height: 35px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 0.40rem;
  text-decoration: none;
}

.btn-descargar:hover {
  background-color: #258125;
  color: white;
  transform: scale(0.95);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s;
  cursor: pointer;

}

.contenido{
  margin-top: 1rem;
}

.link_lgo{
width: 35px;
height: 35px;
}

.link_lgo:hover{
  transform: scale(0.9);
  transition: transform 0.2s;
}

.gh_lgo{
width: 35px;
height: 35px;
}

.gh_lgo:hover{
  transform: scale(0.9);
  transition: transform 0.2s;
}

/*Seccion proyectos*/

.proyectos {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  position: relative;
  max-width: 635px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  background: #141414;
}

.proyectos_body{
  display: flex;
  flex-direction: column;
}

.titulo_principal{
  text-align: center;
  padding: 10px;
  color: #fff;
}

/* Slider de imágenes */
.slider {
  position: relative;
  display: flex;
  width: 100%;
  height: 340px;          
  overflow: hidden;
  justify-content: center;
  align-items: center;
  
}

.slider img {
  max-width: 85%;      
  max-height: 100%;
  object-fit: contain;
  
}

.slider_wrapper {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: auto;
}


/* Texto debajo del slider */
.proyectos_texts {
  max-width: 90%;
  margin: auto;
  color: #fff;
}

.proyectos_texts .Titulo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 30px;
  margin-bottom: 10px;
}

.branch_wrapper {
  margin-top: 5px;
  position: relative;
  display: inline-block;
}

.branch_lgo {
  width: 25px;
  height: 25px;
  transition: transform 0.2s;
}

.branch_wrapper:hover .branch_lgo {
  transform: scale(0.9);
}

.tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.branch_wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
}


.proyectos_descripcion {
  font-size: 19px;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 10px;
}

.proyectos_texts h3 {
  margin-bottom: 10px;
}

.tecnologias{
  gap: 0.3rem;
  margin-bottom: 1.4rem;
}

.ver_mas{
  text-align: right;
  margin-right: 35px;
  margin-bottom: 15px;
}

.ver_mas a{
  color: rgb(173, 173, 173);
  font-weight: bold;
}

.ver_mas a:hover{
  color: #258125;  
}

/* Dots debajo de las imágenes */
.dots {
  position: absolute;
  bottom: 0.50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 0;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
  background-color: #fff;
}

/*Certificaciones*/

.certificaciones{
  position: relative;
  background-color: #6a7683;
  opacity: 0.9;
  background-image:  linear-gradient(30deg, #0b0b0b 12%, transparent 12.5%, transparent 87%, #0b0b0b 87.5%, #0b0b0b), linear-gradient(150deg, #0b0b0b 12%, transparent 12.5%, transparent 87%, #0b0b0b 87.5%, #0b0b0b), linear-gradient(30deg, #0b0b0b 12%, transparent 12.5%, transparent 87%, #0b0b0b 87.5%, #0b0b0b), linear-gradient(150deg, #0b0b0b 12%, transparent 12.5%, transparent 87%, #0b0b0b 87.5%, #0b0b0b), linear-gradient(60deg, #0b0b0b77 25%, transparent 25.5%, transparent 75%, #0b0b0b77 75%, #0b0b0b77), linear-gradient(60deg, #0b0b0b77 25%, transparent 25.5%, transparent 75%, #0b0b0b77 75%, #0b0b0b77);
  background-size: 22px 39px;
  background-position: 0 0, 0 0, 11px 19px, 11px 19px, 0 0, 11px 19px;
  border-radius: 15px;
  max-width: 635px;
  margin: 0 auto;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  padding-bottom: 10px;
}


.slider_wrapper_certificaciones {
  position: relative;
  width: 100%;
  height: 400px; 
}

.slider_carts {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider_carts img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  z-index: 0;
}

.slider_carts img.active {
  opacity: 1;
  z-index: 1;
}


.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  cursor: pointer;
  z-index: 20;
}

.arrow:hover {
  transform: translateY(-50%) scale(0.9);
  transition: transform 0.2s;
}

.leftarrow {
  left: 10px;
}

.rightarrow {
  right: 10px;
}

/*Modal del boton ver mas certificados*/

/* Botón Ver Más */

.ver-mas-btn {
    position: relative;
    background: #141414;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    margin-top: 10px;
}
.ver-mas-btn:hover {
    background: #1e252c;
    transform: scale(0.95);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s;
    cursor: pointer;
}

/* Modal */
body.modal-open {
    overflow: hidden;
}


.modal {
    display: none; 
    position: fixed;
    inset: 0;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;   
    overflow-y: auto;   
    box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

/* Botón cerrar */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Galería de certificados dentro del modal */
.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.modal-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}
.modal-grid img:hover {
    transform: scale(1.05);
}

/* Animación de entrada */
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}


























