/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #0c0c0c;
    background-image: url(/imagenes/net.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #e0e0e0;
    padding-bottom: 80px;
    overflow-x: hidden;
    position: relative;
}

/* Capa de partículas animadas */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(0,255,255,0.16) 1.2px, transparent 1.3px),
        radial-gradient(circle, rgba(0,255,255,0.1) 1px, transparent 1.1px),
        radial-gradient(circle, rgba(0,200,255,0.08) 2px, transparent 2.1px);
    background-size: 50px 50px, 90px 90px, 140px 140px;
    background-repeat: repeat, repeat, repeat;
    animation: floatParticles1 60s linear infinite,
               floatParticles2 90s linear infinite,
               floatParticles3 120s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Asegura que el contenido quede encima */
body * {
    position: relative;
    z-index: 1;
}

/* Animaciones diferentes para cada capa */
@keyframes floatParticles1 {
    0%   { background-position: 0 0, 0 0, 0 0; }
    50%  { background-position: 300px 400px, 0 0, 0 0; }
    100% { background-position: 0 0, 0 0, 0 0; }
}

@keyframes floatParticles2 {
    0%   { background-position: 0 0, 0 0, 0 0; }
    50%  { background-position: 0 0, -400px 350px, 0 0; }
    100% { background-position: 0 0, 0 0, 0 0; }
}

@keyframes floatParticles3 {
    0%   { background-position: 0 0, 0 0, 0 0; }
    50%  { background-position: 0 0, 0 0, 450px -300px; }
    100% { background-position: 0 0, 0 0, 0 0; }
}





header {
    background: linear-gradient(135deg, #0d0d2b, #1c1c5c);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    width: 90px; /* Aumentado para mejor visibilidad */
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes rgb-text {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

header h1 {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(270deg, #ff0000, #00ff00, #0000ff, #ff0000);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
          text-fill-color: transparent;
  animation: rgb-text 8s ease infinite;
}


.objetivos, .precios, .contacto, .stats {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}
.objetivos ul li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.objetivos ul li.visible {
  opacity: 1;
  transform: translateY(0);
}

.quienes-somos {
    background-color: #121826;
    color: #cbd5e1;
    padding: 40px 20px;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(31, 41, 55, 0.4);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quienes-somos h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 900;
    background: linear-gradient(270deg, #ff0000, #00ff00, #0000ff, #ff0000);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: rgb-text 8s ease infinite;
    user-select: none;
}

.quienes-somos p {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    color: #d1d5db;
    text-shadow: 0 0 5px rgba(127, 156, 245, 0.5);
}

/* Efecto RGB animado, si no lo tienes ya */
@keyframes rgb-text {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #61dafb;
    text-align: center;
}

ul {
    list-style: inside square;
    font-size: 1.1rem;
    color: #ccc;
}

.plan {
    background: #1e1e2f;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #61dafb;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.plan h3 {
    color: #61dafb;
    margin-bottom: 10px;
}

.contacto form {
    display: flex;
    flex-direction: column;
}

.contacto input, .contacto textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 1rem;
    background: #1e1e2f;
    color: white;
}

.contacto button {
    padding: 12px;
    background: #61dafb;
    color: #121212;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 4px;
}

.contacto button:hover {
    background: #42a8c0;
}

.stats {
    text-align: center;
    font-size: 2rem;
    color: #61dafb;
    margin-top: 40px;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 1.5rem;
    padding: 10px 15px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    z-index: 1000;
}
.btn-wsp {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-wsp:hover {
    background-color: #1da851;
}
.testimonios {
    background-color: #121826;
    color: #cbd5e1;
    padding: 40px 20px;
    text-align: center;
}

.testimonios h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #7f9cf5;
}

.testimonial {
    max-width: 300px;
    margin: 0 auto 30px;
    background-color: #1e293b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(31, 41, 55, 0.4);
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #7f9cf5;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.cliente-nombre {
    font-weight: 700;
    color: #a5b4fc;
    font-size: 0.9rem;
}
.faq {
    background-color: #121826;
    color: #cbd5e1;
    padding: 40px 20px;
    max-width: 700px;
    margin: 0 auto 60px auto;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(31, 41, 55, 0.4);
}

.faq h2 {
    color: #7f9cf5;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    background-color: #1e293b;
    border: none;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    color: #a5b4fc;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #374151;
}

.faq-answer {
    background-color: #1e293b;
    padding: 15px 20px;
    margin-top: 5px;
    border-radius: 0 0 8px 8px;
    color: #d1d5db;
    display: none;
    font-size: 1rem;
    line-height: 1.5;
}


.faq-item.active .faq-answer {
    display: block;
}
#convertir-moneda {
  background-color: #61dafb;
  color: #121212;
  border: none;
  padding: 10px 16px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  margin: 1rem 0;
  transition: background 0.3s ease;
}
#convertir-moneda:hover {
  background-color: #42a8c0;
}
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Segoe UI', sans-serif;
}

#chatbotToggle {
  background: #7f9cf5;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

#chatbotToggle:hover {
  background: #5e7cf3;
}

#chatbotWindow {
  margin-top: 10px;
  width: 280px;
  background: #1e293b;
  color: #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  display: none;
  /* Para la animación */
  transform-origin: right bottom;
}

#chatbotWindow h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #7f9cf5;
}

#chatbotWindow ul {
  list-style: none;
  padding: 0;
  font-size: 0.95rem;
}

#chatbotWindow li {
  margin-bottom: 12px;
  line-height: 1.4;
}

.hidden {
  display: none;
}

#chatbotToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: url('https://i.imgur.com/2R2M6gB.png') no-repeat center center;
  background-size: contain;
  cursor: pointer;
  z-index: 9999;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

#chatbotToggle:hover {
  transform: scale(1.1);
}

#chatbotWindow {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: 320px;
  height: 400px;
  background: rgb(42, 9, 160);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  z-index: 99999;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#chatbotWindow header {
  background: #000102;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbotWindow header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

#chatbotWindow .messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

#chatbotWindow .input-area {
  padding: 10px;
  border-top: 1px solid #ddd;
}

#chatbotWindow .input-area input {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Animación para salida del chatbot */

@keyframes salirRobot {
  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateX(150%) rotate(90deg);
    opacity: 0;
  }
}

#chatbotWindow.closing {
  animation: salirRobot 0.7s forwards;
}

/* Mensaje de despedida estilo cómic */

#chatbotWindow .farewell-message {
  padding: 10px;
  font-style: italic;
  font-size: 1rem;
  color: #f0f0f0;
  text-align: center;
  user-select: none;
}
