:root {
  --dark-bg: #0d011f;
  --primary-color: #7dd3fa; 
  --secondary-color: #0585c4;
  --text-light: #ffffff;
  --text-gray: #a9a9a9;
  --dark-bg: #0d011f; /* Tono base, casi negro con violeta */
  --grid-color: rgba(68, 62, 188, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif; /* Se recomienda enlazar una fuente como Poppins */
  background: var(--dark-bg);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--dark-bg); /* Paso 1: Color de fondo base */
  color: var(--text-light);

  /* Efecto de Gradientes Radiales */
  background-image: radial-gradient(
      circle at 80% 10%,
      color-mix(in srgb, var(--primary-color) 40%, transparent) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 20% 95%,
      color-mix(in srgb, var(--secondary-color) 40%, transparent) 0%,
      transparent 40%
    );

  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed; /* fija el fondo mientras el contenido se desplaza */
  position: relative;
}

/* Simulación de Rejilla con un Pseudo-Elemento */
body::before {
  content: "";
  position: fixed; /* Para cubrir toda la vista */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Asegura que esté detrás del contenido */
  pointer-events: none; /* Ignora clics */

  /* Simulación de patrón de rejilla sutil */
  background-image: linear-gradient(
      to right,
      var(--grid-color) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px; /* Tamaño de la cuadrícula */
  opacity: 0.3; /* Hace que el grid sea muy sutil */
}

/* ===================== SECCION DE HEADER ========================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* Ajuste para borde a borde */
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(13, 1, 31, 0.5); /* Fondo semitransparente oscuro */
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.logo {
  padding: 0px;

}

/* Ocultar el ícono de menú por defecto en escritorio */
.menu-icon {
  display: none;
}

/* Estilos de escritorio (Mantener Navbar horizontal) */
.navbar a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-gray);
  text-decoration: none;
  margin-left: 25px;
  transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
  /* Puedes usar .active para el elemento actual */
  color: var(--text-light);
  text-shadow: 0 0 5px var(--primary-color);
}

/* ---------------------------------------------------------------- */
/* === MEDIA QUERY: Estilos Exclusivos para Celulares (768px y menos) === */
/* ---------------------------------------------------------------- */

@media (max-width: 768px) {

  .header{
    background: transparent;
  }

  /* 1. Mostrar el ícono de menú */
  .menu-icon {
    display: inline-block;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10001; /* Siempre encima */
    /* Efecto neón sutil */
    text-shadow: 0 0 10px rgba(146, 62, 188, 0.5);
  }

  /* 2. Transformar el Navbar en un Menú Lateral (Cerrado por defecto) */
  .navbar {
    position: fixed;
    top: 0;
    right: -100%; /* CLAVE: Oculto a la derecha */
    width: 70%; /* Ancho del menú lateral */
    height: 100vh;

    /* Estilos llamativos: Fondo oscuro con blur/transparencia y neón */
    background-color: rgba(13, 1, 31, 0.95);
    backdrop-filter: blur(15px);
    border-left: 2px solid var(--primary-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);

    /* Estilos Flex para centrar enlaces verticalmente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;

    /* Transición suave para abrir y cerrar */
    transition: right 0.4s ease-in-out;
    z-index: 10000;
  }

  /* 3. Clase para Abrir el Menú (Se añade con JavaScript) */
  .navbar.active {
    right: 0; /* Mueve el menú a la vista */
  }

  /* 4. Estilos de Enlaces dentro del Menú Móvil */
  .navbar a {
    display: block;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s, transform 0.3s;
    /* Estilo para que el enlace se destaque */
    text-shadow: 0 0 5px var(--secondary-color);
  }

  .navbar a:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
  }
}

/* ======================= SECCIÓN DE PRINCIPAL =========================== */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 8% 50px;
  min-height: 100vh;
  position: relative;
  gap: 10px;
}

.hero-content {
  margin-top: 150px;
  max-width: 60%;
  z-index: 10;
}

.greeting {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 0px;

}

/* Estilo que GSAP aplicará a cada palabra */
.animated-word {
    display: inline-block; /* Es crucial para que la transformación funcione */
}

.role {
  font-size: 30px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  background-image: linear-gradient(90deg, #066d9d, #00b4d8 35%, #7dd3fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  /* Animaciones */
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

.description {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.6;

  /* Animaciones */
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.7s;
}

/* --- Botón y Redes Sociales --- */
.cta-links {
  display: flex;
  align-items: center;
  gap: 15px;

  /* Animaciones */
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.9s;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-light);
  border-radius: 100px;
  background-image: linear-gradient(90deg, #066d9d, #00b4d8 35%, #7dd3fa);
  box-shadow: 0 0 10px rgba(29, 50, 187, 0.5);
  transition: 0.4s;
}

.btn-download:hover {
  box-shadow: 0 0 25px rgba(229, 77, 111, 0.8);
}

.cta-links__iconos {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 50%;
  color: #7dd3fa;
  border: 1px solid #7dd3fa;
  transition: 0.3s;
  text-decoration: none;
}

.social-link:hover {
  background-color: #7dd3fa;
  color: var(--dark-bg);
  box-shadow: 0 0 5px #7dd3fa;
}

.hero-image-container {
  margin-top: 150px;
  width: 400px;
  height: 400px;
  position: relative;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* El borde y el glow */
  background: radial-gradient(
    circle at center,
    transparent 70%,
    rgba(146, 62, 188, 0.5) 90%,
    rgba(229, 77, 111, 0.5) 100%
  );
  box-shadow: 0 0 10px rgba(146, 62, 188, 0.6), 0 0 20px rgba(229, 77, 111, 0.4);

  /* Animaciones */
    animation: fadeInScale 1s ease forwards;
    animation-delay: 0.2s;
}

.hero-image {
  width: 98%;
  height: 98%;
  object-fit: cover;
  border-radius: 50%;
  /* Asegurar que la imagen no tenga un borde visible */
  border: 5px solid var(--dark-bg);
}

/* --- Iconos de Tecnología Flotantes --- */
.tech-icon-orbital-wrapper {
    position: absolute;
    width: 100%; 
    height: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;

    /*animaciones */
    animation: rotateOrbit 20s linear infinite;
}


.tech-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);

  /* Animaciones */
  animation: antiRotate 20s linear infinite;

}

.icon-react {
  top: 85%;
  left: 15%;
  color: #61dafb;
  box-shadow: 0 0 1px #61dafb;
}
.icon-js {
  top: 5%;
  left: 80%;
  color: #f7df1e;
  box-shadow: 0 0 1px #f7df1e;
}
.icon-node {
  top: 75%;
  left: 85%;
  color: #68a063;
  box-shadow: 0 0 1px #68a063;
}
.icon-html5 {
  top: 5%;
  left: 10%;
  font-size: 24px;
  color: red;
  box-shadow: 0 0 1px red;
}

/* Ocultando par preparar animaciones */
.hero-content > *,
.hero-image-container {
    opacity: 0;
}

.greeting{
  opacity: 1;
}

/* Media Query para tabletas y dispositivos móviles pequeños */
@media (max-width: 768px) {

  .hero {
    flex-direction: column; /* Cambiar a columna*/
    flex-direction: column-reverse;
    text-align: center;
    padding: 120px 5% 0px;
    min-height: auto;
    gap: 40px;
  }

  /* 2. Contenido de Texto */
  .hero-content {
    max-width: 100%;
    margin-top: 0px;
  }

  /* 3. Tipografía (Ajuste del tamaño de la fuente para que no sea demasiado grande) */
  .greeting {
    font-size: 40px;
    margin-top: 0px;
  }

  .role {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Botones y Redes Sociales */
  .cta-links {
    margin-top: 40px;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }

  .hero-image-container {
    width: 200px;
    height: 200px;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .tech-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  /* Opcional: si quieres eliminar los iconos flotantes para un diseño más limpio: */
  /* .tech-icon { display: none; } */
}

/* ======================= SECCIÓN DE ACERCA DE MI =========================== */
.about {
  padding: 100px 8%;
}

.about-container {
  display: flex;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start; /* Alinea el contenido al inicio */
}

/* --- Columna de Servicios/Línea de Tiempo (Izquierda) --- */
.about-services {
  flex: 0 0 350px; /* Ancho fijo para la columna de servicios */
  padding-right: 40px;
  position: relative;
}

/* La línea vertical de la línea de tiempo */
.about-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px; /* Posición X de la línea */
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0.3; /* Hacemos la línea un poco más sutil */
}

.service-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 50px;
    opacity: 0; /* invisible hasta que aparezca */
}

/* cuando se vea en pantalla */
.service-item.animate {
  animation: fadeUp 0.8s ease forwards;
}

/* El punto circular en la línea */
.dot {
  position: absolute;
  left: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.icon-text {
  display: flex;
  align-items: center;
  margin-left: 50px; /* Espacio para el punto y la línea */
}

.icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  margin-right: 20px;
  box-shadow: 0 0 10px rgba(146, 62, 188, 0.3);
  background-color: rgba(146, 62, 188, 0.05);
}

.service-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-light);
  margin: 0;
}

/* --- Columna de Contenido y Estadísticas (Derecha) --- */
.about-content-area {
  flex: 1; /* Ocupa el espacio restante */
  padding-top: 20px; /* Alineación vertical con la línea de tiempo */
}

.about-heading {
  font-size: 45px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 30px;
  position: relative;
  /* Línea sutil debajo del título si es necesario */
}

.about-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 40px;
}

/* --- Estadísticas --- */
.about-stats {
  display: flex;
  gap: 50px;
  margin-top: 30px;
}

.stat-box {
  text-align: left;
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-color); /* Usamos el color de acento (fucsia) */
  margin-bottom: 5px;
  line-height: 1;
}

.stat-number .plus,
.stat-number .percent {
  font-size: 30px;
  font-weight: 600;
}

.stat-label {
  font-size: 16px;
  color: var(--text-gray);
  text-transform: capitalize;
}

/* Media Query para pantallas pequeñas (tabletas y móviles, hasta 768px) */
@media (max-width: 768px) {
    
    .about {
        padding: 60px 5%; /* Reducimos el padding vertical y horizontal */
    }

    /* 1. Contenedor Principal: Cambiar de fila a columna y centrar el texto */
    .about-container {
        flex-direction: column-reverse;
        gap: 40px; /* Reducimos el espacio entre las dos columnas ahora apiladas */
        align-items: center; /* Centramos el contenido de la columna de la derecha */
        text-align: center; /* Centramos el texto dentro del contenedor principal */
    }

    /* --- Columna de Servicios/Línea de Tiempo (Izquierda) --- */
    .about-services {
        flex: 0 0 auto; /* Eliminamos el ancho fijo */
        width: 100%; /* Ocupa todo el ancho disponible */
        padding-right: 0;
        margin-left: 0;
    }

    /* Centramos la línea de tiempo horizontalmente para que se vea mejor */
    .about-services::before {
        left: 50%; /* Movemos la línea al centro */
        margin-left: -1px; /* Ajuste fino */
    }

    /* Centramos los puntos de la línea de tiempo */
    .service-item {
        justify-content: center;
        text-align: center;
        flex-direction: column; /* Apilamos el icono sobre el título */
        margin-bottom: 40px;
    }

    .dot {
        left: 50%; /* Movemos el punto al centro */
        transform: translateX(-50%);
        top: -10px; /* Ajustamos la posición vertical si apilamos */
    }
    
    .icon-text {
        flex-direction: column;
        margin-left: 0;
        margin-top: 20px; /* Espacio entre el punto y el icono */
    }
    
    .icon-wrapper {
        margin-right: 0;
        margin-bottom: 10px; /* Espacio entre el icono y el título */
    }


    /* --- Columna de Contenido y Estadísticas (Derecha) --- */
    .about-content-area {
        width: 100%;
        padding-top: 0; /* Ya no es necesario alinearse con la línea de tiempo */
        text-align: center; /* Centramos el contenido */
    }

    .about-heading {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .about-text {
        font-size: 16px;
        margin-bottom: 30px;
    }
    /* --- Estadísticas ---*/
    .about-stats {
        justify-content: center; 
        gap:10px; 
    }

    .stat-box {
        text-align: center; /* Centramos el texto dentro de cada caja de estadística */
        flex: 1 1 30%; /* Permite 2 o 3 en una fila, luego envuelve */
        max-width: 100px;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-number .plus,
    .stat-number .percent {
      font-size: 25px;
      font-weight: 600;
    }

    .stat-label {
      font-size: 14px;
      margin-top: 10px;
    }  
}

/* ======================= SECCIÓN DE HABILIDADES =========================== */
.skills-area {
  padding: 100px 8%;
}

.skills-heading {
  font-size: 45px;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 60px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background-color: rgba(
    255,
    255,
    255,
    0.03
  ); /* Fondo muy oscuro y sutilmente transparente */
  border-radius: 15px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(146, 62, 188, 0.2); /* Borde sutil del color primario */
}

/* Efecto hover moderno */
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(62, 135, 188, 0.4); /* Sombra con glow */
}

.card-icon {
  font-size: 35px;
  color: var(--secondary-color); /* Color de acento (fucsia) para los iconos */
  margin-bottom: 20px;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 15px;
}

.card-description {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 25px;
  min-height: 100px; /* Para mantener la altura uniforme si el texto varía */
}

/* --- Tags de Habilidades --- */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;

  /* Estilo de tag neón/gradiente */
  background: linear-gradient(
    90deg,
    rgba(146, 62, 188, 0.3),
    rgba(229, 77, 111, 0.2)
  );
  border: 1px solid var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 0 5px rgba(146, 62, 188, 0.5);
  transition: background-color 0.3s;
}

/* --- Complemento Opcional: Stack Técnico --- */
.tech-stack-container {
  text-align: center;
  padding-top: 40px;
}

.tech-stack-container h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
  font-weight: 600;
  color: #ffffff;
}

.stack-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-chip {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  /* Estilo más sutil para el stack, como un tag */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cccccc;
  transition: background 0.3s;
}

.stack-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Media Query para tabletas y dispositivos móviles (hasta 768px) */
@media (max-width: 768px) {

    .skills-area {
        padding: 60px 5%; /* Reduce el padding horizontal y vertical */
        padding-top: 10px;
    }

    /* 1. Encabezado */
    .skills-heading {
        font-size: 25px; /* Reduce el tamaño del título principal */
        margin-bottom: 40px;
        margin-top: 0;
    }

    /* 2. Grid de Habilidades */
    .skills-grid {
        /*
          Nota: 'auto-fit' con 'minmax(300px, 1fr)' ya se encarga de que
          solo haya una columna si la pantalla es menor de 300px.
          Podemos forzar una sola columna si lo deseamos con '1fr'.
        */
        grid-template-columns: 1fr; /* Forzamos una sola columna en móvil */
        gap: 30px; /* Mantenemos un buen espacio entre las tarjetas apiladas */
        padding: 0 10px; /* Añadimos un pequeño padding interno para que no toque los bordes */
    }

    /* 3. Tarjetas de Habilidad */
    .skill-card {
        padding: 30px 20px; /* Reduce el padding interno de la tarjeta */
    }

    .card-title {
        font-size: 22px; /* Reduce el tamaño del título de la tarjeta */
    }

    .card-description {
        min-height: auto; /* Elimina la altura mínima, permitiendo que el texto se ajuste libremente */
        font-size: 15px; /* Ligera reducción del tamaño del texto de la descripción */
    }
    
    /* 4. Tags de Habilidades */
    .skill-tags {
        gap: 8px; /* Reduce el espacio entre los tags */
    }

    .skill-tags span {
        font-size: 13px; /* Reduce el tamaño de la fuente de los tags */
        padding: 5px 10px;
    }
    
    /* --- Complemento Opcional: Stack Técnico --- */
    .tech-stack-container {
        padding-top: 30px;
    }

    .stack-chip {
        font-size: 0.8em;
    }
}




/* ======================= SECCIÓN DE PROYECTOS =========================== */
.projects-area {
  padding: 100px 8%;
}

.projects-heading {
  font-size: 45px;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
}

/* --- Botones de Filtro --- */
.project-filters {
  text-align: center;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 25px;
  margin: 0 10px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
  color: var(--text-gray);
  border: 1px solid var(--text-gray);
}

.filter-btn:not(.active):hover{
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  padding: 10px 25px;
  margin: 0 10px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  background-image: linear-gradient(90deg, #066d9d, #00b4d8 35%, #7dd3fa);
  box-shadow: 0 0 10px rgba(29, 50, 187, 0.5);
  transition: 0.4s;
  color: white;
  border: none;
}

.filter-btn:hover{
  box-shadow: 0 0 10px rgba(29, 50, 187, 0.5);
}

/* --- Grid de Proyectos --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.3s;
  /* Efecto de borde sutil y glow */
  border: 1px solid rgba(146, 62, 188, 0.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(146, 62, 188, 0.4);
}

.project-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
}

.project-description {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 25px;
  min-height: 100px; /* Para uniformidad de las tarjetas */
}

/* --- Links (Repository y Demo) --- */
.project-links {
  display: flex;
  gap: 15px;
  margin-top: auto; /* Empuja los enlaces hacia abajo */
}

.btn-repo {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

/* Estilo para el botón 'Repository' (Borde violeta/oscuro) */
.btn-repo {
  background-color: rgba(146, 62, 188, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-repo:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(146, 62, 188, 0.7);
}

/* Media Query para tabletas y dispositivos móviles (hasta 768px) */
@media (max-width: 768px) {

    .projects-area {
        padding: 60px 5%;
        padding-top: 0;
    }

    /* 1. Encabezado */
    .projects-heading {
        font-size: 30px; /* Reducimos el tamaño del título */
        margin-bottom: 30px;
    }

    /*Botones de Filtro */
    .project-filters {
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .filter-btn, .filter-btn.active {
        padding: 8px 14px; 
        font-size: 12px;
        margin: 5px; 
    }

    /* Grid de Proyectos */
    .projects-grid {
        /* Forzamos una sola columna para que las tarjetas ocupen todo el ancho */
        grid-template-columns: 1fr; 
        gap: 25px; /* Reducimos el espacio entre las tarjetas apiladas */
    }

    /* 4. Tarjetas de Proyecto */
    .project-card {
        padding: 15px; /* Reducimos el padding interno de la tarjeta */
    }

    .project-description {
        font-size: 15px; /* Reducimos ligeramente el tamaño del texto */
        min-height: auto; /* Eliminamos la altura mínima para que se ajuste al contenido */
        margin-bottom: 20px;
    }

    /* 5. Botones (Repository y Demo) */
    .project-links {
        /* Hacemos que los botones ocupen el 100% del ancho si es necesario o se alineen */
        flex-direction: column; /* Apilamos los botones verticalmente para hacerlos más fáciles de tocar */
        gap: 10px; /* Reducimos el espacio entre los botones apilados */
    }
    
    .btn-repo {
        width: 100%; /* Hacemos que ocupen todo el ancho de la tarjeta */
        text-align: center;
        padding: 12px 0; /* Ajustamos el padding para la nueva disposición */
        font-size: 16px;
    }
}


/* ======================= SECCIÓN DE SERVICIOS =========================== */
.offer-section-services {
    padding: 20px 8%;
    text-align: center;
}

.offer-main-heading {
    font-size: 45px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Contenedor de la Cuadrícula --- */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

/* --- Estilo de Tarjeta de Servicio --- */
.service-card-item {
    background-color: rgba(255, 255, 255, 0.03); /* Fondo oscuro semitransparente */
    border-radius: 15px;
    padding: 35px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(146, 62, 188, 0.2); 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.service-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(146, 62, 188, 0.5); 
}

.service-icon-wrapper {
    font-size: 30px;
    color: var(--primary-color); /* Icono en color violeta */
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(146, 62, 188, 0.5);
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

.service-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ------------------ Estilos de Llamada a la Acción CTA ------------------ */
.service-cta-block {
    margin-top: 0px;
    text-align: center;
}

.service-cta-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-service-quote {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-light);
    border-radius: 100px; /* Borde redondo */
    
    /* Degradado de neón consistente con tus otros botones */
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 15px rgba(229, 77, 111, 0.5);
    transition: all 0.3s ease;
}

.btn-service-quote:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 25px rgba(229, 77, 111, 0.8);
    transform: translateY(-2px);
}



/* ------------------ Media Queries (Responsive) ------------------ */

@media (max-width: 1024px) {
    .services-grid-container {
        /* Permite 2 columnas en tablets */
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .offer-main-heading {
        font-size: 25px;
    }
    
    .services-grid-container {
        /* Una sola columna en móvil */
        grid-template-columns: 1fr;
    }
    
    .offer-section-services {
        padding: 60px 5%;
    }

    @media (max-width: 600px) {
    .service-cta-block {
        padding: 20px;
        margin-top: 40px;
    }
    .service-cta-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .btn-service-quote {
        padding: 10px 20px;
        font-size: 16px;
    }
}
}


/* ------------------ Sección Línea de Tiempo (Experiencia/Certificados) ------------------ */
.timeline-area {
  padding: 100px 8%;
  text-align: center;
}

.timeline-heading {
  font-size: 45px;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 10px;
}

.timeline-intro-text {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

/* La línea central vertical */
.timeline-container::after {
  content: "";
  position: absolute;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  opacity: 0.5;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  margin-bottom: 30px; /* Espacio entre elementos */
}

/* Posicionar elementos a la izquierda y derecha */
.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

/* El punto en la línea de tiempo */
.timeline-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: var(--primary-color);
  border: 3px solid var(--dark-bg); /* Un borde del color de fondo para que resalte */
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 15px var(--primary-color);
}

/* Posición del punto para elementos izquierdos */
.timeline-item.left .timeline-dot {
  right: -9px; /* Mitad del ancho del punto hacia afuera */
  top: 30px;
}

/* Posición del punto para elementos derechos */
.timeline-item.right .timeline-dot {
  left: -9px; /* Mitad del ancho del punto hacia afuera */
  top: 30px;
}

/* --- Contenido de las tarjetas --- */
.timeline-content {
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(146, 62, 188, 0.2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(146, 62, 188, 0.4);
}

.timeline-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 10px;
  display: block;
}

.timeline-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 5px;
}

.timeline-company {
  font-size: 16px;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.timeline-description {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 15px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  display: inline-block;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(146, 62, 188, 0.2),
    rgba(229, 77, 111, 0.1)
  );
  border: 1px solid var(--primary-color);
  color: var(--text-light);
}

/* Flechas indicadoras para los elementos de la línea de tiempo */
.timeline-item.left .timeline-content::after {
  content: " ";
  height: 0;
  position: absolute;
  top: 30px;
  width: 0;
  z-index: 1;
  right: -10px;
  border: medium solid rgba(255, 255, 255, 0.03);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.03);
}

.timeline-item.right .timeline-content::after {
  content: " ";
  height: 0;
  position: absolute;
  top: 30px;
  width: 0;
  z-index: 1;
  left: -10px;
  border: medium solid rgba(255, 255, 255, 0.03);
  border-width: 10px 10px 10px 0;
  border-color: transparent rgba(255, 255, 255, 0.03) transparent transparent;
}

/* === RESPONSIVE DESIGN === */
@media screen and (max-width: 900px) {

  .timeline-area {
  padding-top: 0;
}

.projects-heading{
  font-size: 30px;
}

  .timeline-container::after {
    left: 10px; /* Línea se mueve al lado izquierdo */
  }

  .timeline-item {
    width: 100%;
    padding-left: 30px;
    padding-right: 10px;
    margin-bottom: 40px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-dot {
    left: 0;
    right: auto;
  }

  .timeline-item .timeline-content {
    text-align: left;
    margin-left: 10px; /* Se separa del punto */
  }

  .timeline-item .timeline-content::after {
    display: none; /* Quita las flechas */
  }
}

/* === Ajuste visual adicional para pantallas muy pequeñas === */
@media screen and (max-width: 500px) {

   .timeline-area {
  padding-top: 0;
  }

  .timeline-heading {
    font-size: 30px;
  }

  .timeline-intro-text {
    font-size: 16px;
  }

  .timeline-content {
    padding: 20px;
  }
}

/* ========================= SECCION DE CONTACTO ====================== */
.contact-area {
  padding: 100px 8%;
  text-align: center; /* Centra el título y descripción */
}

.contact-heading {
  font-size: 45px;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 10px;
}

.contact-description-text {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* Para que las columnas se apilen en pantallas pequeñas */
}

/* --- Wrapper del Formulario --- */
.contact-form-wrapper {
  flex: 1; /* Ocupa el espacio disponible */
  min-width: 350px; /* Ancho mínimo para el formulario */
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 40px;
  border: 1px solid rgba(146, 62, 188, 0.2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.form-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 30px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(146, 62, 188, 0.4);
  background-color: rgba(146, 62, 188, 0.08); /* Fondo con un toque violeta */
  color: var(--text-light);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-gray);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(229, 77, 111, 0.5);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 10px;
}

.btn-send-message {
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  border-radius: 100px;
  background: linear-gradient(90deg, #066d9d 10%, #00b4d8 35%, #7dd3fa);
  transition: 0.4s;
}

.btn-send-message:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(229, 77, 111, 0.8);
}

/* --- Wrapper de Redes Sociales --- */
.contact-social-wrapper {
  flex: 1; /* Ocupa el espacio disponible */
  min-width: 300px; /* Ancho mínimo */
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 40px;
  border: 1px solid rgba(146, 62, 188, 0.2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: center; /* Centra el contenido */
  display: flex; /* Para centrar verticalmente si el formulario es más alto */
  flex-direction: column;
  justify-content: center;
}

.social-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 15px;
}

.social-text {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.6;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas para los iconos */
  gap: 20px;
  max-width: 300px; /* Limita el ancho de la cuadrícula de iconos */
  margin: 0 auto; /* Centra la cuadrícula */
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(68, 170, 255, 0.15),
    rgba(155, 89, 182, 0.15)
  );
  border: 1px solid rgba(155, 89, 182, 0.5);
  transition: transform 0.25s ease;
  box-shadow: none;
}

.social-icon-btn:hover {
  transform: scale(1.05); /* Escala más sutil */
  /* El hover puede intensificar el borde o añadir un box-shadow muy muy sutil */
  box-shadow: 0 0 5px rgba(68, 170, 255, 0.5);
  border-color: rgba(
    68,
    170,
    255,
    0.7
  ); /* Borde de color azul al pasar el ratón */
}

.social-icon-btn i {
  font-size: 24px;
  line-height: 1;
  color: #e0e0f0;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Media Queries para responsividad */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form-wrapper,
  .contact-social-wrapper {
    width: 100%;
    max-width: 500px; /* Limita el ancho en pantallas más pequeñas */
    margin-bottom: 30px;
  }
}


/* Media Query para tabletas y dispositivos móviles (hasta 768px) */
@media (max-width: 768px) {
    
    .contact-area {
        padding: 60px 5%; /* Reducimos el padding general */
        padding-top: 0;
    }

    /* 1. Títulos y Descripción */
    .contact-heading {
        font-size: 36px; /* Reducimos el tamaño del título */
        margin-bottom: 5px;
    }
    
    .contact-description-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* 2. Contenedor Principal: Aseguramos el apilamiento */
    .contact-container {
        flex-direction: column;
        gap: 30px; /* Reducimos el espacio entre los dos bloques */
    }

    /* 3. Wrappers de Formulario y Redes Sociales */
    .contact-form-wrapper,
    .contact-social-wrapper {
        width: 100%;
        max-width: 95%; /* CLAVE: Usa un ancho más flexible que 500px, adaptándose al 95% del contenedor */
        min-width: auto;
        padding: 30px 20px; /* Reducimos el padding interno de las cajas */
        margin: 0 auto; /* Asegura que la caja esté centrada si no usa el 100% del ancho */
    }

    /* --- Formulario --- */
    .form-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .contact-form {
        gap: 15px; /* Aumentamos ligeramente el espacio entre los campos para ser más touch-friendly */
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px 15px; /* Reducimos el padding interno de los inputs */
        font-size: 15px;
    }
    
    .btn-send-message {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* --- Redes Sociales --- */
    .social-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .social-text {
        margin-bottom: 30px;
    }

    /* 4. Grid de Iconos Sociales */
    .social-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); /* Hace que el grid sea más flexible */
        gap: 15px; /* Reducimos el espacio entre iconos */
        max-width: 100%; /* Permite que el grid crezca si hay más iconos */
    }

    .social-icon-btn {
        width: 48px; /* Ligeramente más pequeños */
        height: 48px;
    }
    
    .social-icon-btn i {
        font-size: 22px;
    }
}

/* =========================== FOOTER =============================== */

.site-footer {
  padding: 40px 0 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* Distribución de las 3 Columnas con CSS Grid */
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

/* Estilos de Títulos y Enlaces */
.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section a {
  color: #a0a0b0; /* color-muted */
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.3s ease;
}

/* Efecto Hover Cristalino */
.footer-section a:hover {
  color: #e0e0f0; /* color-text-light */
  text-shadow: 0 0 5px rgba(68, 170, 255, 0.5); /* Sombra sutil azul al pasar */
}

/* Estilos de Contacto/Información Personal */
.footer-info p {
  margin: 5px 0;
  color: #a0a0b0; /* color-muted */
}
.footer-info strong {
  color: #e0e0f0; /* color-text-light */
}

/* Enlaces Sociales (Iconos) */
.social-links {
  margin-top: 15px;
}

.social-links a {
  font-size: 1.5rem;
  margin-right: 15px;
  color: var(--primary-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Estilos de la Sección de Derechos de Autor */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Divisor sutil */
  padding: 20px 20px;
  text-align: center;
}

.footer-bottom small {
  color: #a0a0b0; /* color-muted */
  font-size: 0.9rem;
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


/* Media Query para tabletas y dispositivos móviles (hasta 768px) */
@media (max-width: 768px) {
    
    .site-footer {
        padding: 30px 0 0; /* Reducimos el padding superior */
    }
    
    /* 1. Grid (ya colapsado a una columna) */
    .footer-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center; /* CLAVE: Centra todo el texto dentro de cada columna */
        gap: 30px; /* Reducimos el espacio entre las secciones apiladas */
        padding: 0 5%; /* Aseguramos que tenga padding horizontal adecuado */
        padding-bottom: 30px;
    }
    
    /* 2. Títulos y Espaciado */
    .footer-title {
        margin-bottom: 10px; /* Reducimos el espacio debajo del título */
    }

    /* 3. Listas de Enlaces (Explora y Legal) */
    .footer-section ul {
        /* Centramos la lista al no estar alineada a la izquierda por defecto */
        display: inline-block; 
        text-align: center;
    }
    
    .footer-section li {
        margin-bottom: 5px; /* Reducimos el espacio entre ítems de la lista */
    }

    /* 4. Enlaces Sociales (Iconos) */
    .social-links {
        /* Centramos el contenedor de iconos */
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
    
    .social-links a {
        margin: 0 8px; /* Ajustamos el margen horizontal entre los iconos */
    }
    
    /* 5. Derechos de Autor */
    .footer-bottom {
        padding: 15px 5%; /* Ajustamos el padding para la línea de copyright */
    }
    
    .footer-bottom small {
        line-height: 1.4;
    }
}




/* ===================== ANIMACIONES kayframes ========================= *]/

/* Animación para subir elementos*/
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación para que aparezca zoom/fade */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* Animación de Rotación para el contenedor orbital */
@keyframes rotateOrbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animación de Anti-Rotación para los iconos (opcional, para mantenerlos derechos) */
@keyframes antiRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* animación */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}