body {
    font-family: 'Poppins', sans-serif;

}


#inicio {
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #615b79, #2a2e1a);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

#inicio .container {
    z-index: 1; 
}



.navbar .nav-link {
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: #ff8c42 !important;
}
.navbar{
    font-size: 20px;
}

.skill-card {

    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 200, 50, 0.3);
}

.skill-card i {
    transition: transform 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.2);
}

.ver-mas {
    color: #ffc107;       
    text-decoration: underline;
    cursor: pointer;
    margin-left: 4px;     
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
}

.ver-mas:hover {
    color: #ffec75;       
    transform: scale(1.05);
}

/* iconos circulares para contacto y redes */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    flex-shrink: 0; /* evita que se encoja */
    transition: transform 0.3s ease;
    text-align: center; /* asegura que los iconos estén centrados */
}

/* redes sociales más grandes */
#contacto .icon-circle.fs-4 {
    width: 55px;
    height: 55px;
    font-size: 1.7rem; /* iconos un poco más grandes */
}

/* Aseguramos que los iconos se ajusten bien al centro del círculo */
.icon-circle i {
    display: flex; /* cambia a flex para alinear correctamente */
    align-items: center; /* alinea verticalmente */
    justify-content: center; /* alinea horizontalmente */
    margin: 0; /* elimina cualquier margen extra */
    width: 100%; /* hace que el icono ocupe todo el espacio del círculo */
    height: 100%; /* asegura que ocupe toda la altura del círculo */
}

/* Animación suave para las cards */
.position-relative.p-4.bg-white.rounded.shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.position-relative.p-4.bg-white.rounded.shadow:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    cursor: pointer;
}

/* Ajustes responsivos */
@media (max-width: 992px) {
    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    #contacto .icon-circle.fs-4 {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .icon-circle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    #contacto .icon-circle.fs-4 {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .icon-circle {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    #contacto .icon-circle.fs-4 {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Reducir el padding de la card en pantallas muy pequeñas */
    .card {
        padding: 1.5rem !important; /* reduce un poco el padding */
    }
}

/* Forzar que el texto se rompa dentro del li (para evitar que se desborde) */
#contacto ul li {
    word-wrap: break-word; /* fuerza el salto de línea si el texto es largo */
    overflow-wrap: anywhere; /* asegura que incluso emails largos se rompan */
}

/* Asegurar que los enlaces no se salgan de la card */
#contacto a {
    display: inline-block;
    max-width: 100%; /* evita que sobresalga */
    word-break: break-all; /* corta el email largo si es necesario */
}


/* Animación suave para las cards de proyectos */
.card.h-100.shadow.position-relative {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.h-100.shadow.position-relative:hover {
    transform: translateY(-10px) scale(1.03); /* sube y crece ligeramente */
    box-shadow: 0 15px 30px rgba(0,0,0,0.25); /* sombra más intensa */
    cursor: pointer;
}

#scrollTopBtn {
    display: none; /* Oculto por defecto */
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    font-size: 26px; /* Flecha más grande */
    border: none;
    outline: none;
    background-color: #FFD700; /* Amarillo brillante */
    color: #000000; /* Flecha negra */
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Redondo perfecto */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  /* Efecto al pasar el ratón */
  #scrollTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  }
  

  .animate-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.animate-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Aseguramos que todo esté centrado en cualquier dispositivo */
#inicio {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado vertical */
    align-items: center; /* Centrado horizontal */
    text-align: center;
    padding: 0;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

#inicio .container {
    max-width: 800px; /* Ajustar el tamaño del contenedor */
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 1; /* Mantener el contenido encima de las partículas */
}

#inicio img {
    max-width: 300px;
    width: 100%;
}

#inicio h1 {
    font-size: 3rem;
}

#inicio .lead {
    font-size: 1.25rem;
}

/* Responsivo */
@media (max-width: 992px) {
    #inicio img { max-width: 250px; }
    #inicio h1 { font-size: 2.5rem; }
    #inicio .lead { font-size: 1rem; }
}

@media (max-width: 768px) {
    #inicio img { max-width: 200px; }
    #inicio h1 { font-size: 2rem; }
    #inicio .lead { font-size: 1rem; }
}

@media (max-width: 576px) {
    #inicio img { max-width: 180px; }
    #inicio h1 { font-size: 1.8rem; }
    #inicio .lead { font-size: 0.9rem; }
}

/* Overlay centrado tipo lightbox con animación */
.image-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 90%; /* Ajustamos el máximo al 90% del ancho */
    max-height: 90%; /* Ajustamos el máximo al 90% del alto */
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    z-index: 1055;
    cursor: pointer;
  }
  
  .image-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .image-overlay.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  
  /* Estilos adicionales para móvil */
  @media (max-width: 576px) {
    .image-overlay {
      max-width: 95%;  /* Más grande en pantallas pequeñas */
      max-height: 95%;
    }
    .image-overlay img {
      object-fit: contain;
    }
  }
  
  .timeline-section {
    padding: 80px 20px;
    background: #fff;
  }
  
  .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 50px;
    text-align: center;
  }
  
  .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
  }




  
  .timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #000;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
  }
  
  .timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
  }
  


  
  .timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
  }
  
  .timeline-content {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid #FFD700;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 320px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
  }
  
  .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  }
  


  
  .timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
  }
  
  .timeline-content .titulo {
    font-weight: 600;
    color: #444;
  }
  
  /* Detalle con animación */
  .timeline-content .detalle {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
  }
  
  .timeline-content:hover .detalle {
    max-height: 200px; /* ajusta según lo que ocupen tus descripciones */
    opacity: 1;
  }
  
  .timeline-date {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .timeline::after {
      left: 20px;
    }
  
    .timeline-item {
      width: 100%;
      padding-left: 60px;
      text-align: left !important;
    }
  }

/* Solo aplica a las secciones del portfolio */
main .reveal,
.portfolio-section.reveal,
.section.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Cuando se active la animación */
main .reveal.active,
.portfolio-section.reveal.active,
.section.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
