@font-face {
  font-family: 'Quicksand';
  src: url("../fonts/Quicksand-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
*{
    font-family: 'Quicksand';

}
/* Asegúrate de usar el mismo nombre que declaraste en @font-face */
body {
  font-family: 'Quicksand', sans-serif;
    background-color: #f4f4f8 !important;
  color: #2b1e4f;
      margin: 0;
  padding: 0;
  line-height: 1.6;
}
 
header {
  color: white;
  text-align: center;
  padding: 2rem;
}
/* Estilo base */
.bg-custom {
  background-color: #f4f4f8;
  transition: background-color 0.3s ease;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.3rem;
}

.nav-link {
  color: #2b1e4f !important;
  font-weight: 500;
  position: relative;
}

/* Línea animada al pasar el mouse */
.animated-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #662ae6;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.animated-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Animación del botón hamburguesa */
.navbar-toggler {
  transition: transform 0.2s ease-in-out;
}

.navbar-toggler:active {
  transform: scale(0.95);
}

/* Cambia el fondo al hacer scroll */
.navbar.scrolled {
  background-color: #662ae6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

main {
  padding: 0rem;
}
 .bg-os{
  background-color: #2b1e4f;
  color: #ccc;
 }

footer {
  text-align: center;
  padding: 1rem;
  background-color: #222;
  color: #fff;
}
/* Máquina de escribir */
.typewriter {
  overflow: hidden;
  border-right: 2px solid white;
  white-space: nowrap;
  animation: typing 3s steps(30, end), blink 0.7s step-end infinite;
  font-family: 'Quicksand', sans-serif;
}

.sobre-mi-section h2 {
  font-size: 1.8rem;
  font-weight: bold;
}

.sobre-mi-section .highlight {
  color: #8c52ff;
}

.sobre-mi-section .lead {
  font-size: 1.05rem;
  line-height: 1.7;
}




/* Iconos personalidad */
.icono-personal {
  background-color: #2b1e4f;
  border-radius: 12px;
  padding: 0.7rem;
  text-align: center;
  color: #fff;
  min-width: 80px;
  flex-grow: 1;
  transition: all 0.3s ease;
}
.icono-personal i {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  display: block;
}
.icono-personal small {
  font-size: 0.8rem;
  display: block;
}
.icono-personal:hover {
  background-color: #8c52ff;
  transform: translateY(-4px);
}

/* Responsive ajustes */
@media (max-width: 576px) {
  .sobre-mi-section h2 {
    font-size: 1.5rem;
  }
  .lead {
    font-size: 0.95rem;
  }
}


/* Fade-in en orden */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 3.2s; }
.delay-2 { animation-delay: 4.4s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

/*SERVICIOS*/

.section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #8c52ff;
  position: relative;
}

.service-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.service-card .icono {
  font-size: 2.8rem;
  color: #8c52ff;
  margin-bottom: 1rem;
}

.service-card h5 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Responsive título */
@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
}

/* Proyectos*/
.proyectos-cool-section {
  color: rgba(255, 255, 255, 0.06);
}

.section-title-cool {
  font-size: 2.3rem;
  color: #8c52ff;
  font-weight: bold;
  position: relative;
}

.cool-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(140, 82, 255, 0.2);
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(140, 82, 255, 0.6);
}

.preview-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-content {
  padding: 1.5rem;
}

.card-content h4 {
  margin-bottom: 0.5rem;
  color: #2b1e4f;
}

.card-content p {
  font-size: 0.95rem;
  color:#2b1e4f;
  margin-bottom: 1rem;
}

/* Botón */
.cool-btn {
  background-color: transparent;
  border: 2px solid #8c52ff;
  color: #8c52ff;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}
.cool-btn:hover {
  background-color: #8c52ff;
  color: #fff;
}

.contacto-section {
  background-color: #f4f4f8;
  padding: 4rem 1rem;
  text-align: center;
}

.contacto-contenedor {
  max-width: 600px;
  margin: 0 auto;
}

.contacto-section h2 {
  color: rgb(43, 30, 79);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contacto-section p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 1rem;
  border: 2px solid #ccc;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  resize: none;
  background-color: #fff;
  color: rgb(43, 30, 79);
  transition: border 0.3s ease;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  border-color: #8c52ff;
  outline: none;
}

.formulario-contacto button {
  padding: 1rem;
  background-color: #8c52ff;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #6d3ddb;
}


.section {
  height: 100vh;
  padding: 2rem;
  background-color: #f4f4f8;
  border-bottom: 1px solid #ccc;
}

.image-box {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) translateX(100%);
  opacity: 0;
  filter: blur(10px);
  transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
  width: 250px;
  z-index: 999;
}

.image-box.visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  filter: blur(0);
}

.image-box img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.site-footer {
  background-color: #2b1e4f;
  color: #f0f0f0;
  padding: 30px 0;
  text-align: center;
  position: relative; /* Para el efecto de "reluciente" */
  overflow: hidden; /* Para que el "reluciente" no se desborde */
 }

 .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
 }

 .social-links {
  margin-top: 20px;
 }
 
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 10px;
  color: #f0f0f0;
  background-color: #2b1e4f;
  border-radius: 50%;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Para el efecto de brillo */
  overflow: hidden; /* Para ocultar el brillo fuera del icono */
 }
 
 footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Para el efecto de brillo */
  overflow: hidden; /* Para ocultar el brillo fuera del icono */
 }

 .social-icon:hover {
  background-color: #6d3ddb; /* Un color llamativo al hacer hover */
  transform: scale(1.1);
  box-shadow: 0 0 10px #6d3ddb;
  color: #fff;
 }

 /* Animación "reluciente" */
 .social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease-in-out;
 }

 .social-icon:hover::before {
  left: 150%;
 }