/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- CORRECCIONES CRÍTICAS PARA EL CURSOR --- */
/* Asegurar que el cursor del sistema sea visible en todo el documento */
html, body {
    cursor: auto !important; /* !important para anular cualquier otro estilo */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  overflow-x: hidden;
  /* cursor: none; <-- ELIMINADO PARA EVITAR PROBLEMAS */
  /* cursor: auto; <-- Ya lo forzamos con html, body */
}

/* Las reglas de .cursor-dot ESTÁN ELIMINADAS/COMENTADAS para desactivar el cursor personalizado */
/*
.cursor-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ff2a6d;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease-out, background-color 0.3s ease;
  display: block;
}
#dot1 { ... }
#dot2 { ... }
body:active #dot1 { ... }
*/

/* --- FIN DE CORRECCIONES CRÍTICAS PARA EL CURSOR --- */

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1a1a1a;
  /* Altura fija para consistencia */
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Necesario para contener el posicionamiento absoluto del img */
  position: relative;
  /* Altura fija igual a la de .navbar */
  height: 80px;
}

.logo img {
  /* Tamaño razonable y consistente */
  height: 60px;
  /* Posicionamiento absoluto para no afectar el flujo */
  position: absolute;
  /* Centrado vertical dentro del contenedor .logo */
  top: 50%;
  transform: translateY(-50%);
  /* Alineado a la izquierda */
  left: 0;
  /* Asegura que esté por encima si es necesario */
  z-index: 1001;
  /* Evitar que se seleccione o arrastre */
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Ocultar el texto del logo si se usa una imagen */
.logo h2 {
  /* Si prefieres usar solo la imagen, oculta el texto */
  /* display: none; */
  /* Si prefieres mostrar ambos, ajusta el margen */
  color: #05d9e8;
  font-weight: bold;
  font-size: 1.5rem;
  /* Desplaza el texto para que no se sobreponga (ajusta según el ancho real de tu logo) */
  margin-left: 70px; /* 60px (logo) + 10px (gap) */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  /* Asegurar que el cursor sea visible sobre los enlaces */
  cursor: pointer;
}

nav a:hover {
  color: #ff2a6d;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff2a6d;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('../assets/images/city-logo.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  /* Añadimos margen superior para compensar la navbar fixed */
  margin-top: 80px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.9) 60%);
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 10px #05d9e8, 0 0 20px #05d9e8;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #05d9e8, 0 0 20px #05d9e8; }
  to { text-shadow: 0 0 15px #05d9e8, 0 0 30px #05d9e8, 0 0 40px #05d9e8; }
}

.content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ccc;
  line-height: 1.6;
}

.btn-primary {
  background: linear-gradient(45deg, #ff2a6d, #d11f5a);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.5);
  border: none;
  /* Asegurar que el cursor sea visible sobre el botón */
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 42, 109, 0.8);
  /* Hacerlo ligeramente más grande al pasar el ratón */
  padding: 14px 32px;
}

/* Footer */
footer {
  background-color: #0a0a0a;
  padding: 30px 5%;
  text-align: center;
  border-top: 1px solid #222;
  position: relative;
  min-height: 100px;
}

/* Logo dentro del footer */
footer .logo {
  margin-bottom: 15px;
  text-align: center;
}

footer .logo img {
  max-height: 40px;  /* Tamaño más pequeño para no robar protagonismo */
  width: auto;
  height: auto;
  display: inline-block;
}

/* Texto p */
footer p {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Lista en footer */
footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

/* Enlaces en footer */
footer a {
  color: #05d9e8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

footer a:hover {
  color: #ff2a6d;
  text-decoration: underline;
}


/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 15px 5%;
    height: auto;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .content h1 {
    font-size: 2rem;
  }

  .content p {
    font-size: 1rem;
  }

  .floating-robot {
    display: none;
  }

  .logo h2 {
    font-size: 1.2rem;
    margin-left: 0; /* Resetear margen en móviles */
  }

  /* Ajuste del logo para móviles */
  .logo {
    position: static;
    height: auto;
    justify-content: center;
  }

  .logo img {
    height: 40px;
    position: static;
    transform: none;
    margin: 0 auto; /* Centrar el logo en móviles */
  }

  /* Ajuste de Hero para móviles */
  .hero {
    margin-top: 0;
    padding-top: 80px; /* Compensar navbar apilado */
  }
}

/* About Page Styles */
.about-page {
  padding: 120px 5% 60px;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
}

.about-page h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #05d9e8;
  text-shadow: 0 0 10px rgba(5, 217, 232, 0.5);
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ccc;
}

.about-text h2 {
  color: #ff2a6d;
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

.about-text ul {
  list-style: none;
  margin: 20px 0;
}

.about-text li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #fff;
}

.about-text li:before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #05d9e8;
}

.about-image {
  flex: 0 0 300px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 250px;
  filter: drop-shadow(0 0 15px rgba(5, 217, 232, 0.5));
  animation: float 4s ease-in-out infinite;
}

/* Responsive About */
@media (max-width: 768px) {
  .about-page {
    padding: 100px 5% 40px;
  }

  .about-page h1 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-image {
    flex: none;
  }
}

/* Services Page Styles */
.services-page {
  padding: 120px 5% 60px;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d0d0d 0%, #16213e 100%);
}

.services-page h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #05d9e8;
  text-shadow: 0 0 10px rgba(5, 217, 232, 0.5);
}

.services-intro {
  text-align: center;
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.service-card {
  background: rgba(30, 30, 46, 0.7);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2a2a4a;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: default; /* O pointer si hay enlaces dentro */
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(5, 217, 232, 0.2);
  border-color: #05d9e8;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  color: #ff2a6d;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-card p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.pricing {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.free, .premium {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.free {
  background: rgba(5, 217, 232, 0.2);
  color: #05d9e8;
  border: 1px solid #05d9e8;
}

.premium {
  background: rgba(255, 42, 109, 0.2);
  color: #ff2a6d;
  border: 1px solid #ff2a6d;
}

.cta-section {
  text-align: center;
  padding: 50px;
  background: rgba(10, 15, 35, 0.7);
  border-radius: 15px;
  margin-top: 30px;
  border: 1px solid #2a2a4a;
}

.cta-section h2 {
  color: #05d9e8;
  margin-bottom: 15px;
  font-size: 2rem;
}

.cta-section p {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Services */
@media (max-width: 768px) {
  .services-page {
    padding: 100px 5% 40px;
  }

  .services-page h1 {
    font-size: 2rem;
  }

  .services-intro {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 20px;
  }

  .cta-section {
    padding: 30px 20px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}

/* Portfolio Page Styles */
.portfolio-page {
  padding: 120px 5% 60px;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d0d0d 0%, #16213e 100%);
}

.portfolio-page h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #05d9e8;
  text-shadow: 0 0 10px rgba(5, 217, 232, 0.5);
}

.portfolio-intro {
  text-align: center;
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(30, 30, 46, 0.7);
  color: #fff;
  border: 1px solid #2a2a4a;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(45deg, #ff2a6d, #d11f5a);
  border-color: #ff2a6d;
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.portfolio-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.portfolio-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 35, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: #05d9e8;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.portfolio-overlay p {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 1rem;
}

.view-project {
  background: linear-gradient(45deg, #ff2a6d, #d11f5a);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 42, 109, 0.5);
}

/* Responsive Portfolio */
@media (max-width: 768px) {
  .portfolio-page {
    padding: 100px 5% 40px;
  }

  .portfolio-page h1 {
    font-size: 2rem;
  }

  .portfolio-intro {
    font-size: 1rem;
  }

  .portfolio-filters {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-image img {
    height: 200px;
  }
}

/* Contact Page Styles */
.contact-page {
  padding: 120px 5% 60px;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d0d0d 0%, #0f3460 100%);
}

.contact-page h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #05d9e8;
  text-shadow: 0 0 10px rgba(5, 217, 232, 0.5);
}

.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

/* Contact Form */
.contact-form {
  background: rgba(30, 30, 46, 0.7);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid #2a2a4a;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #05d9e8;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(10, 15, 35, 0.5);
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  /* Asegurar que el cursor sea visible dentro de los inputs */
  cursor: text;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #05d9e8;
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-card {
  background: rgba(30, 30, 46, 0.7);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #2a2a4a;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.info-card h3 {
  color: #ff2a6d;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.info-card p {
  color: #ccc;
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-links a {
  color: #05d9e8;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.social-links a:hover {
  color: #ff2a6d;
  text-decoration: underline;
}

/* Chatbot Section */
.chatbot-section {
  text-align: center;
  padding: 50px;
  background: rgba(10, 15, 35, 0.7);
  border-radius: 15px;
  margin-top: 30px;
  border: 1px solid #2a2a4a;
}

.chatbot-section h2 {
  color: #05d9e8;
  margin-bottom: 15px;
  font-size: 2rem;
}

.chatbot-section p {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Chatbot Container */
.chatbot-container {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: #0d0d0d;
  border-radius: 15px;
  border: 1px solid #2a2a4a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  overflow: hidden;
}

.chat-header {
  background: rgba(30, 30, 46, 0.9);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a4a;
}

.chat-header h3 {
  color: #05d9e8;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #ff2a6d;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
}

.chat-messages {
  height: 350px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  padding: 12px 15px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.4;
}

.bot-message {
  background: rgba(5, 217, 232, 0.2);
  color: #05d9e8;
  align-self: flex-start;
  border: 1px solid rgba(5, 217, 232, 0.3);
}

.user-message {
  background: rgba(255, 42, 109, 0.2);
  color: #ff2a6d;
  align-self: flex-end;
  border: 1px solid rgba(255, 42, 109, 0.3);
}

.chat-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid #2a2a4a;
  background: rgba(30, 30, 46, 0.9);
}

.chat-input input {
  flex: 1;
  padding: 10px 15px;
  background: rgba(10, 15, 35, 0.5);
  border: 1px solid #2a2a4a;
  border-radius: 20px;
  color: #fff;
  margin-right: 10px;
  /* Asegurar que el cursor sea visible dentro del input del chat */
  cursor: text;
}

.chat-input input:focus {
  outline: none;
  border-color: #05d9e8;
}

.chat-input button {
  background: linear-gradient(45deg, #ff2a6d, #d11f5a);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.chat-input button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 42, 109, 0.5);
}

/* Responsive Contact */
@media (max-width: 768px) {
  .contact-page {
    padding: 100px 5% 40px;
  }

  .contact-page h1 {
    font-size: 2rem;
  }

  .contact-intro {
    font-size: 1rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form {
    padding: 25px;
  }

  .chatbot-container {
    width: 90%;
    height: 400px;
    bottom: 10px;
    right: 5%;
  }

  .chat-messages {
    height: 250px;
  }

  .chatbot-section {
    padding: 30px 20px;
  }

  .chatbot-section h2 {
    font-size: 1.5rem;
  }
}

/* Efectos Visuales Avanzados */

/* Particles Background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(5, 217, 232, 0.6);
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.8);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  to {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

/* Neon Effects */
.neon-text {
  text-shadow:
    0 0 5px #05d9e8,
    0 0 10px #05d9e8,
    0 0 15px #05d9e8,
    0 0 20px #05d9e8;
}

.neon-border {
  box-shadow:
    0 0 5px #ff2a6d,
    0 0 10px #ff2a6d;
}

/* Animations */
@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  animation: slideInUp 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

/* Terminal/Matrix Effect */
.terminal-effect {
  position: relative;
  overflow: hidden;
}

.terminal-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.1) 50%);
  background-size: 100% 4px;
  z-index: 1;
  pointer-events: none;
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -2px 0 #ff2a6d;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -2px 0 #05d9e8;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(42px, 9999px, 44px, 0); }
  5% { clip: rect(12px, 9999px, 59px, 0); }
  10% { clip: rect(48px, 9999px, 29px, 0); }
  15% { clip: rect(42px, 9999px, 73px, 0); }
  20% { clip: rect(63px, 9999px, 27px, 0); }
  25% { clip: rect(34px, 9999px, 55px, 0); }
  30% { clip: rect(86px, 9999px, 73px, 0); }
  35% { clip: rect(20px, 9999px, 20px, 0); }
  40% { clip: rect(26px, 9999px, 60px, 0); }
  45% { clip: rect(25px, 9999px, 66px, 0); }
  50% { clip: rect(57px, 9999px, 98px, 0); }
  55% { clip: rect(5px, 9999px, 46px, 0); }
  60% { clip: rect(82px, 9999px, 31px, 0); }
  65% { clip: rect(54px, 9999px, 27px, 0); }
  70% { clip: rect(28px, 9999px, 99px, 0); }
  75% { clip: rect(45px, 9999px, 69px, 0); }
  80% { clip: rect(23px, 9999px, 85px, 0); }
  85% { clip: rect(1px, 9999px, 83px, 0); }
  90% { clip: rect(72px, 9999px, 11px, 0); }
  95% { clip: rect(60px, 9999px, 89px, 0); }
  100% { clip: rect(52px, 9999px, 74px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  5% { clip: rect(52px, 9999px, 74px, 0); }
  10% { clip: rect(79px, 9999px, 85px, 0); }
  15% { clip: rect(75px, 9999px, 5px, 0); }
  20% { clip: rect(67px, 9999px, 61px, 0); }
  25% { clip: rect(14px, 9999px, 79px, 0); }
  30% { clip: rect(1px, 9999px, 66px, 0); }
  35% { clip: rect(86px, 9999px, 30px, 0); }
  40% { clip: rect(23px, 9999px, 98px, 0); }
  45% { clip: rect(85px, 9999px, 72px, 0); }
  50% { clip: rect(71px, 9999px, 75px, 0); }
  55% { clip: rect(2px, 9999px, 48px, 0); }
  60% { clip: rect(30px, 9999px, 16px, 0); }
  65% { clip: rect(59px, 9999px, 50px, 0); }
  70% { clip: rect(41px, 9999px, 62px, 0); }
  75% { clip: rect(2px, 9999px, 82px, 0); }
  80% { clip: rect(47px, 9999px, 73px, 0); }
  85% { clip: rect(3px, 9999px, 27px, 0); }
  90% { clip: rect(26px, 9999px, 55px, 0); }
  95% { clip: rect(42px, 9999px, 97px, 0); }
  100% { clip: rect(38px, 9999px, 49px, 0); }
}

/* Scanline Effect */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(0, 255, 200, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
  animation: scan 4s linear infinite;
  z-index: 9999;
  pointer-events: none;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

/* Asegurar que los campos de formulario tengan el cursor correcto */
.form-group input,
.form-group textarea,
.chat-input input {
  cursor: text;
}