* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.robot {
  margin: 20px auto;
  max-width: 1200px;
  height: auto;
}

.content-base {
  max-width: 1200px;
  margin-top: 80px;
  display: grid;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* asegura que nada sobresalga */
  height: 530px;
  border-radius: 12px;
}
.header {
  position: absolute;
  top: 20px; /* distancia desde el borde superior */
  left: 50%;
  transform: translateX(-50%);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.titulo-base {
  font-size: 58px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}
.titulo-base .resaltado {
  color: #6c3cfa;
}
.eslogan {
  top: 90px;
  font-size: 1.15rem;
  text-align: center;
  white-space: nowrap;
}
.content-base::before {
  content: "";
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 200px;
  background: radial-gradient(circle at 42% 50%, #2780f5 0%, transparent 55%), radial-gradient(circle at 58% 50%, #f52795 0%, transparent 55%);
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

/*==============================================================================================*/
/* ===                              Animación del brazo del robot                             === */
/*==============================================================================================*/
@keyframes wave {
  0% {
    transform: rotate(-25deg);
  }

  50% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(-25deg);
  }
}

/* Pivote en el punto donde el brazo se conecta al cuerpo */
#brazo-izquierdo {
  transform-origin: 280px 290px;
  /* punto de conexión del brazo transformado al hombro */
  animation: wave 1.5s infinite ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 20px;
  }
  .titulo-base {
    font-size: 40px;
  }
  .eslogan {
    font-size: 1.05rem;
  }
}

/*=================================================================================*/
/* Barra de voz */
/*=================================================================================*/

.voice-bar {
  position: absolute;
  bottom: 20px; /* separación desde el borde inferior */
  left: 0;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  z-index: 15;
}

.voice-bar span {
  display: block;
  width: 15px;
  background: #09db72ff;
  border-radius: 10px;
  animation: bounce 1s infinite ease-in-out;
}

/* Diferentes delays para dar efecto de onda */
.voice-bar span:nth-child(1) {
  height: 20px;
  animation-delay: 0s;
}
.voice-bar span:nth-child(2) {
  height: 20px;
  animation-delay: 0.1s;
}
.voice-bar span:nth-child(3) {
  height: 25px;
  animation-delay: 0.2s;
}
.voice-bar span:nth-child(4) {
  height: 30px;
  animation-delay: 0.3s;
}
.voice-bar span:nth-child(5) {
  height: 25px;
  animation-delay: 0.4s;
}
.voice-bar span:nth-child(6) {
  height: 30px;
  animation-delay: 0.5s;
}
.voice-bar span:nth-child(7) {
  height: 35px;
  animation-delay: 0.6s;
}
.voice-bar span:nth-child(8) {
  height: 35px;
  animation-delay: 0.7s;
}
.voice-bar span:nth-child(9) {
  height: 30px;
  animation-delay: 0.8s;
}
.voice-bar span:nth-child(10) {
  height: 25px;
  animation-delay: 0.9s;
}
.voice-bar span:nth-child(11) {
  height: 25px;
  animation-delay: 1s;
}
.voice-bar span:nth-child(12) {
  height: 20px;
  animation-delay: 1.1s;
}
.voice-bar span:nth-child(13) {
  height: 25px;
  animation-delay: 1.2s;
}
.voice-bar span:nth-child(14) {
  height: 20px;
  animation-delay: 1.3s;
}
.voice-bar span:nth-child(15) {
  height: 20px;
  animation-delay: 1.4s;
}

@keyframes bounce {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1.5);
  }
}
/* Responsive */
@media (max-width: 768px) {
  .voice-bar {
    padding: 20px;
  }
}
/*====================================================================================*/
/* Estilo base de las burbujas SVG MENSAJES*/
/*====================================================================================*/
.bubble-svg {
  position: absolute;
}

/* Lado izquierdo (bot) */
.bubble-svg.left {
  left: 0;
}

/* Lado derecho (user) */
.bubble-svg.right {
  right: 0;
}
/* SVG de conexión */
.connector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* evita interferencia */
}
/* Posiciones ajustadas */
.bubble-svg:nth-of-type(1) {
  top: 350px;
} /* izquierda 2 */
.bubble-svg:nth-of-type(2) {
  top: 150px;
} /* derecha 1 */
/* Responsive */

@media (max-width: 1050px) {
  .bubble-svg,
  .connector {
    display: none;
  }
}
/*====================================================================================*/
/*                          Contenedor de iconos decorativos                            */
/*====================================================================================*/
.corner-icon {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Primera fila inferior - Cohete izquierdo */
.corner-icon.row1-left {
  bottom: 200px;
  left: 0;
  background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
  color: white;
}

/* Primera fila inferior - Cohete derecho */
.corner-icon.row1-right {
  bottom: 200px;
  right: 0;
  background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
  color: white;
}

/* Segunda fila - Corazón izquierdo */
.corner-icon.row2-left-1 {
  bottom: 110px;
  left: 0;
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: white;
}

/* Segunda fila - Estrella izquierda */
.corner-icon.row2-left-2 {
  bottom: 110px;
  left: 90px;
  background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
  color: #ffd700;
}

/* Segunda fila - Estrella derecha */
.corner-icon.row2-right-1 {
  bottom: 110px;
  right: 90px;
  background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
  color: #ffd700;
}

/* Segunda fila - Corazón derecho */
.corner-icon.row2-right-2 {
  bottom: 110px;
  right: 0;
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: white;
}

/* Iconos inferiores - Genvi (3 veces más anchos) */
.genvi-icon {
  position: absolute;
  bottom: 20px;
  width: 250px; /* 70px * 3 */
  height: 70px;
  background: linear-gradient(135deg, #0575e6 0%, #4163dd 100%);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 32px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.genvi-icon.left {
  left: 0;
}

.genvi-icon.right {
  right: 0;
}

.genvi-icon img {
  width: 40px;
}
@media (max-width: 768px){
    .genvi-icon{
        display: none;
    }
    
    /* Padding de 20px para los iconos en los bordes */
    .corner-icon.row1-left,
    .corner-icon.row2-left-1 {
        left: 20px;
    }
    
    .corner-icon.row1-right,
    .corner-icon.row2-right-2 {
        right: 20px;
    }
    
    .corner-icon.row2-left-2 {
        left: 110px; /* 20px base + 90px original */
    }
    
    .corner-icon.row2-right-1 {
        right: 110px; /* 20px base + 90px original */
    }
}
/*==================================================================================*/
/* ==============               Sección de Servicios                  ============= */
/*==================================================================================*/

.servicios-container {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  padding: 40px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
}

.titulo::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 4px;
  background: #667eea;
  border-radius: 2px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.servicio-card {
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  align-items: center;
  justify-content: center;
}

.dark-mode .servicio-card {
  background: #1b263b;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.service-img {
  width: 220px;
  margin-bottom: 1rem;
}

.servicio-titulo {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.servicio-descripcion {
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 768px) {
  .servicios-container {
    padding: 20px 20px;
  }

  .titulo {
    font-size: 2rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .servicio-card {
    padding: 20px;
  }
}

/*====================================================================================*/
/* ==============                 Descripción de *Genvi*               ============== */
/*====================================================================================*/
.acerca-container {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
  border-radius: 12px;
  padding: 40px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.contenido {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
}

.Genvi-brand {
  background: linear-gradient(135deg, #f52795, #2780f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.2em;
}

.descripcion-principal {
  font-size: 1.15rem;
  margin-bottom: 30px;
  text-align: justify;
  text-align: center;
}

.servicios-lista {
  margin: 30px 0;
  padding: 30px;
  border-radius: 15px;
  border-left: 5px solid #f52795;
  background: rgba(255, 255, 255, 0.9);
}

.dark-mode .servicios-lista {
  background: #1b263b;
}

.servicio-item {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.servicio-item:last-child {
  margin-bottom: 0;
}

.bullet {
  color: #2780f5;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 2px;
  flex-shrink: 0;
}

.servicio-texto {
  flex: 1;
  color: #718096;
}

.servicio-titulo {
  font-size: 1.1rem;
  font-weight: 600;
}

.destacado {
  background: mediumseagreen;
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  text-align: left;
  box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
}

.destacado strong {
  font-size: 1.1em;
}

.conclusion {
  font-size: 1.15rem;
  text-align: center;
  margin-top: 30px;
  font-style: italic;
}

.conclusion .Genvi-brand {
  font-style: normal;
}

@media (max-width: 768px) {
  .acerca-container {
    padding: 20px 20px;
  }

  .titulo {
    font-size: 2rem;
  }

  .contenido {
    font-size: 1rem;
  }

  .descripcion-principal {
    font-size: 1.05rem;
  }

  .servicios-lista {
    padding: 20px;
  }

  .servicio-item {
    flex-direction: column;
    gap: 5px;
  }

  .bullet {
    align-self: flex-start;
  }

  .destacado {
    padding: 20px;
  }

  .conclusion {
    font-size: 1.05rem;
  }
}

/*===========================================================================================*/
/*                             ======== AREA DEMO Genvi =======                              */
/*===========================================================================================*/
.content {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-section {
  background: linear-gradient(135deg, #f52795cc 0%, #2780f5cc 100%);
  /* cc = aproximadamente 80% de opacidad */
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.hero-section h1 {
  font-size: 5.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.9px;
}

.hero-section p {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

@media (max-width: 768px) {
  .content {
    padding: 40px 20px;
  }
}
