:root {
  --metal-silver: #eef2f3;
  --metal-dark: #8e9eab;
  --whatsapp-green: #25d366;
  --deep-blue: #0f172a;
  --accent-info: #0dcaf0;
  --purple-metallic: #9b59b6;
  --purple-metallic-light: #c39bd3;
  --bg-dark: #0f172a;
  --neon-cyan: #06b6d4;
  --neon-purple: #a855f7;
  --text-gray: #8e9eab;
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 50%, transparent 50%),
    linear-gradient(
      90deg,
      var(--metal-dark) 0%,
      var(--metal-silver) 50%,
      var(--metal-dark) 100%
    );
  background-size:
    100% 4px,
    100% 100%;
  color: #1a1a1a;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-attachment: fixed;
  /* ESTO ELIMINA EL SCROLL HORIZONTAL */
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* 2. Empujamos el contenido principal para que use todo el espacio sobrante */
main {
  flex: 1 0 auto;
}
/* Tipo de letra Presentación. */
/* Tipo de letra Presentación corregido */
.titulo-presentacion {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700; /* 700 es negrita, usa 400 para normal */
  font-style: normal;
}
/* Fin Tipo de Letra. */
/* Tipo Letra texto Presentación Personal. */
.texto_titulo-presentacion {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  /* 2. Cambia <weight> por un número (400=normal, 700=negrita) */
  font-weight: 700;
  font-style: normal;
}
/* Fin Tipo Letra texto Presentación Personal. */
/* --- ANIMACIONES --- */
.reveal {
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  filter: blur(5px);
}
.from-left {
  transform: translateX(-80px);
}
.from-right {
  transform: translateX(80px);
}
.reveal.active {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* --- CARDS CON EFECTO CRISTAL (Glassmorphism) --- */
.card-project {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card-project:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.9);
}

/* --- RESTO DE ESTILOS --- */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  padding: 100px 0;
  color: white;
}

.metal-ring {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    #94a3b8,
    #ffffff,
    #475569,
    #f8fafc,
    #ffffff,
    #94a3b8
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--deep-blue);
}

.carousel-item {
  height: 450px;
  background-color: #000;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-project:hover::after {
  opacity: 1;
  animation: metallicShine 1.5s infinite;
}

@keyframes metallicShine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* --- DASHBOARD & CHARTS --- */
.dashboard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.chart-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  flex: 1;
  min-width: 320px;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.chart-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    #7df9ff,
    #00d4ff,
    #7df9ff,
    transparent
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.chart-box:hover {
  border-color: rgba(125, 249, 255, 0.4);
  box-shadow: 0 15px 45px rgba(0, 212, 255, 0.2);
  transform: translateY(-5px);
}

.chart-box:hover::before {
  opacity: 1;
  animation: metalFlow 2s linear infinite;
}

@keyframes metalFlow {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.header-chart {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.canvas-wrapper {
  position: relative;
  height: 280px;
  width: 100%;
}

.donut-inner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center;
  pointer-events: none;
}

.donut-inner-text .value {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
}

.donut-inner-text .label {
  font-size: 0.6rem;
  color: var(--text-gray);
  letter-spacing: 3px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* --- VIDEO & CONTENT --- */
.video-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding-bottom: 236px;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  transition: all 0.3s ease;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

.project-description {
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  border-left: 4px solid var(--accent-info);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.card-project:hover .project-description {
  border-left-color: var(--purple-metallic);
  background: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .project-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .video-container {
    flex: 0 0 45%;
  }
  .project-description {
    flex: 0 0 50%;
  }
}
/* Emoticones dela seccion Tecnologías Utilizadas. */
/* Contenedor que permite el scroll si los iconos no caben */
.tech-horizontal-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 15px; /* Espacio para la barra de scroll si aparece */
  scrollbar-width: thin; /* Para Firefox */
  scrollbar-color: var(--neon-cyan) transparent;
}

/* Forzar que todos los items estén en una sola fila */
.tech-grid-horizontal {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; /* ESTO evita que se vayan hacia abajo */
  gap: 25px;
  align-items: center;
  min-width: max-content; /* Asegura que el contenedor se estire lo necesario */
  padding: 10px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 70px; /* Ancho mínimo para que no se aplasten */
  transition: transform 0.3s ease;
}

.tech-item i {
  font-size: 2.2rem;
}

.tech-item span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap; /* Evita que el nombre se rompa en dos líneas */
}

.tech-item:hover {
  transform: translateY(-10px); /* Animación hacia arriba al pasar el mouse */
}

/* Estilo estético de la barra de scroll para Chrome/Safari */
.tech-horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}
.tech-horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 10px;
}
.tech-horizontal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}
/* Fin Emoticones dela seccion Tecnologías Utilizadas. */
/* Footer */
/* Actualización del Footer para que coincida con el Nav */
/* 3. El footer se queda al final del flujo flex */
footer {
  background-color: #262626;
  border-top: 2px solid #8e8e8e;
  padding: 40px 0;
  color: #ffffff;
  flex-shrink: 0; /* Evita que el footer se comprima */
}
/* whatsapp */
/* --- Estilo Profesional WhatsApp con Etiqueta --- */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 9999;
  transition: transform 0.3s ease;
}

/* El globo de texto blanco */
.whatsapp-float span {
  background-color: white;
  color: #444; /* Gris profesional */
  padding: 8px 15px;
  border-radius: 8px; /* Bordes ligeramente redondeados como la imagen */
  font-size: 14px;
  font-weight: 500;
  margin-right: 15px; /* Espacio con el círculo */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
}

/* Triangulito del globo (opcional, para dar efecto de burbuja) */
.whatsapp-float span::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid white;
}

/* El círculo verde con el icono */
.whatsapp-float i {
  background-color: var(--whatsapp-green);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  animation: pulse-green 2s infinite;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

/* Ajuste para que el texto sea "¿Hablamos?" o lo que prefieras */
.whatsapp-float span b {
  color: #1a1a1a;
  font-weight: 700;
}
/* Fin whatsapp */

.text-reveal {
  opacity: 0;
  filter: blur(15px);
  transform: translateY(20px) scale(0.95);
  transition: all 1.2s ease-out;
}
.text-reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  padding: 80px 0;
  color: white;
}
.profile-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--deep-blue);
}
.metal-ring {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(#94a3b8, #ffffff, #475569, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
}
html,
body {
  overflow-x: hidden;
}
