/* ----------- BASE ----------- */
body {
  background-color: #000;
  color: #eee;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  padding-top: 80px; /* espacio para navbar fijo */
}

/* ----------- NAVBAR ----------- */
header nav .navbar-brand h1 {
  color: #fca311;
  font-weight: 700;
  font-size: 1.8rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: #eee;
  font-weight: 600;
}
.navbar-dark .navbar-nav .nav-link.active {
  color: #fca311;
}

.navbar-dark {
  background-color: rgba(0, 0, 0, 0.95); /* color oscuro semisólido */
  backdrop-filter: blur(20px);           /* difuminado sutil */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9); /* sombra para destacar */
}



/* --- FIX desplegado en mobile --- */
@media (max-width: 768px) {
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.9); /* fondo difuminado oscuro */
    backdrop-filter: blur(4px);           /* efecto difuminado */
    border-radius: 8px;
    padding: 10px 20px;
    margin-top: 10px;
    text-align: right;                    /* alinea el contenido del menú a la derecha */
    position: absolute;
    right: 15px;
    top: 100%;
    z-index: 999;
    width: calc(100% - 30px);
    max-width: 280px;
  }

  .navbar-collapse .nav-link {
    text-align: right;
    padding-right: 10px;
  }
}



/* ----------- HERO SECTION GENERAL ----------- */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* Imagen de fondo como capa */

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* RELLENA en escritorio */
  z-index: 0;
}

/* En celulares: mostrar la imagen entera sin recorte */
@media (max-width: 768px) {
  .hero-bg-img {
    object-fit: contain; /* en celular, prioriza mostrar todo aunque haya bordes */
    background-color: #000; /* relleno si sobra espacio */
  }
}

/* ----------- AJUSTE DE IMAGEN EN HERO PARA CELULARES----------- */
@media (max-width: 768px) {
  .hero-bg-img {
    transform: translateY(-30%);
  }
}

/* ----------- AJUSTE DE IMAGEN EN HERO PARA ESCRITORIO ----------- */
@media (min-width: 769px) {
  .hero-bg-img {
    transform: translateY(-10%);
  }
}




/* Capa oscura sobre la imagen */
#hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* oscurece la imagen */
  z-index: 1;
}

/* ----------- PARTICLES ----------- */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2; /* por encima de la imagen y filtro oscuro */
  pointer-events: none;
}

/* ----------- HERO CONTENT ----------- */
.hero-content {
  position: relative;
  z-index: 3; /* encima de todo lo anterior */
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fca311;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 700px;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* --- BOTÓN PERSONALIZADO --- */
.btn-custom {
  background-color: #fca311;
  color: #000;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-custom:hover {
  background-color: #e59300;
  color: #fff;
}

/* --- Corrección para que los estilos generales no afecten al botón personalizado --- */
/* Aplica solo a links que NO sean el botón personalizado */
.mt-4.text-center a:not(.btn-custom) {
  color: #fca311aa;
  font-size: 1.1rem;
  transition: color 0.25s ease;
}

.mt-4.text-center a:not(.btn-custom):hover {
  color: #fca311;
}




/* ----------- INTRO INFO SECTION ----------- */
#intro-info {
  max-width: 900px;
  margin: 0 auto;
  color: #ccc;
  padding: 40px 20px 60px;
  text-align: center;
  z-index: 1;
  position: relative;
}
#intro-info p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

#intro-info .features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}


#intro-info .feature-item {
  min-width: 150px;
  color: #ccc;
}
#intro-info .feature-item h5 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #fca311;
  font-weight: 700;
  font-size: 1.1rem;
}
#intro-info .feature-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}
#intro-info .feature-item i {
  color: #fca311;
  font-size: 2rem;
}

/* ----------- FOOTER ----------- */
footer {
  background: #111;
  color: #ccc;
  padding: 20px 0;
  border-top: 1px solid #444;
  position: relative;
  z-index: 1;
}
footer a {
  color: #ccc;
  margin: 0 8px;
  font-size: 1.2rem;
}
footer a:hover {
  color: #fca311;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  #intro-info .features {
    gap: 1.5rem;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #fca311;
  color: #000;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: none; /* oculto inicialmente */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(252, 163, 17, 0.4);
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 9999;
}
.back-to-top:hover {
  background-color: #e59300;
  color: #fff;
}
.back-to-top i {
  font-size: 1.3rem;
}

/* ----------- ABOUT SECTION ----------- */
.about-container {
  max-width: 900px;
  margin: 0 auto;
  background: #121212; /* fondo negro puro */
  border-radius: 12px;
  padding: 40px 30px;
  border: 1px solid #444444; /* línea gris clara suave */
  text-align: center;
}

/* Foto de perfil */
.profile-photo {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid #444;
  box-shadow: none;
  margin-bottom: 30px;
}

/* Nombre */
h2.name {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fca311;
  text-align: center;
}

/* Título */
h3.title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: #70a1ff;
  text-align: center;
}

/* Títulos secciones (unificados para Skills, Projects, Contact) */
.section-title {
  font-weight: 700;
  font-size: 1.8rem;
  margin-top: 30px !important; /* margen superior fijo y forzado */
  margin-bottom: 20px;
  color: #fca311;
  border-bottom: 2px solid #fca311;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.section-title i {
  font-size: 1.5rem;
  color: #fca311;
}

/* Párrafos */
p {
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #ddd;
}

/* Caja educación */
.education-box {
  display: flex;
  gap: 20px;
  background: #000000;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  align-items: center;
  border: 1px solid #555555;
  transition: background-color 0.3s ease;
}
.education-box:hover {
  background: #111111;
  color: #fca311;
}
.education-box img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease;
}

ul.text-start strong {
  color: #fca311;
}

/* ----------- EDUCATION SECTION ----------- */

.education-box:hover img {
  transform: scale(1.05);
}
.education-content h3 {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 1.2rem;
  color: inherit;
}
.education-content p {
  font-style: italic;
  margin-bottom: 4px;
  color: inherit;
}
.education-content h4 {
  font-weight: 600;
  font-size: 0.9rem;
  color: inherit;
}


/* CERTIFICADOS */
.certificates {
  padding: 60px 20px;
  background-color: #0f0f0f;
  text-align: center;
}

.certificates .section-title {
  font-size: 2rem;
  color: #ffc107; /* Amarillo */
  margin-bottom: 40px;
  text-transform: uppercase;
}

.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.certificate-item {
  width: 100%;
  max-width: 600px; /* ↔ Aumentá este valor para hacerlos más anchos */
  margin: 10px;
  padding: 5px; /* ↔ Aumenta si querés más espacio interno */
  background-color: #1a1a1a;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 1px rgba(255, 208, 0, 0.2); /* sombra suave amarilla */
  transition: transform 0.3s;
}


.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.certificate-item img {
  width: 100%;
  height: 200px; /* Altura fija para todas */
  object-fit: contain; /* Ajusta sin recortar */
  background-color: white; /* Rellena el espacio en blanco */
  border-radius: 8px;
  border: 1px solid #333;
  margin-bottom: 10px;
  padding: 5px;
}

.certificate-item p {
  margin: 10px 0 5px;
  font-weight: bold;
  color: #f0f0f0;
  font-size: 0.95rem;
}

.certificate-item a {
  color: #ffc107;
  font-size: 0.9rem;
  text-decoration: none;
}

.certificate-item a:hover {
  text-decoration: underline;
}




/* Skills Section */

.skills-section {
  background: #000;
  color: #eee;
  padding: 80px 15px 60px; /* espacio para evitar que tape la navbar */
  min-height: 100vh;
}

/* Título de sección */
.skills-section .section-title {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #fca311;
  border-bottom: 2px solid #fca311;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.skills-section .section-title i {
  font-size: 1.5rem;
}

/* Caja de cada skill */
.skill-box {
  background-color: #000;
  border-radius: 12px;
  padding: 20px 10px;
  box-shadow: 0 0 10px #415a77;
  width: 150px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #fca311;
}

/* Imagen del logo */
.skill-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}


/* Nombre debajo */
.skill-box p {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  color: #eee;
  font-weight: 500;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .skill-box {
    width: 120px;
    height: 110px;
    padding: 10px 8px;
  }

  .skill-box img {
    width: 60px;
    height: 60px;
  }

  .skill-box p {
    font-size: 0.8rem;
  }
}


/* Projects Section */


.projects-section {
  padding: 70px 15px 50px;
  background: #000000;
  color: #eee;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0; /* eliminar padding-top extra para evitar conflicto con margin-top en título */
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  height: 100%;
  margin: 0 auto;
}

/* Project Card */
.project-card {
  position: relative;
  background: #121212;
  border-radius: 20px;
  padding: 15px 15px 60px; /* espacio para botones */
  box-shadow: 0 0 15px #415a77;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 800px; /* altura fija */
  overflow: hidden; /* evita que se desborde el contenido */
}
.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #fca311;
}
.project-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: inherit;
  text-align: center;
}
.project-image {
  width: 85%;
  aspect-ratio: 1 / 1;         /* mantiene la relación 1:1 */
  object-fit: cover;           /* rellena manteniendo proporciones */
  border-radius: 10px;
  margin-bottom: 20px;
  transition: filter 0.3s ease;
  user-select: none;
  display: block;          /* necesario para aplicar margin auto */
  margin: 0 auto;          /* centra horizontalmente */
}
.project-card:hover .project-image {
  filter: brightness(0.7);
}
.project-desc {
  flex-grow: 1;
  font-size: 1rem;
  margin-bottom: 20px;
  color: inherit;
  line-height: 1.5;
  text-align: center;
}
.project-tech {
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  color: inherit;
  margin-bottom: 5px;
  text-align: center;
}

/* Botones hover centrados abajo */
.hover-buttons {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}
.project-card:hover .hover-buttons {
  opacity: 1;
}
.hover-button {
  background: rgba(255 255 255 / 0.85);
  color: #0a0a23;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease, color 0.3s ease;
}
.hover-button:hover {
  background: #fca311;
  color: #162447;
}

/* Contact Section */
.contact {
  padding: 1px 15px;
  background-color: #121212; 
  color: #eee;
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 2; /* quitar padding-top para evitar conflicto con margin-top del título #D3D3D3  #121212; */
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  font-weight: 600;
  color: #eee;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #fff;
  color: #0a0a23;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.cta-button {
  background-color: #fca311;
  color: #0a0a23;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #fff;
  color: #0a0a23;
}

.link-color {
  color: #fca311;
  text-decoration: underline;
}

.social-links a {
  color: #fca311;
  font-size: 1.4rem;
}


.mt-4.text-center a {
  color: #fca311aa;          /* dorado semi-transparente */
  font-size: 1.1rem;
  transition: color 0.25s ease;
}

.mt-4.text-center a:hover {
  color: #fca311;
}

.plane-icon {
  margin-left: 10px;
  transition: transform 0.4s ease;
}

.cta-button:hover .plane-icon {
  transform: translateX(6px) rotate(15deg);
}


/* Responsive Projects */
@media (max-width: 991px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-image {
    height: 320px;
  }
}

/* Responsive Contact */
@media (max-width: 576px) {
  .github-btn {
    font-size: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
