:root {
  --primary-color: #2563eb;
  --secondary-color: #3b82f6;
  --accent-color: #10b981;
  --user-msg-color: #dbeafe;
  --bot-msg-color: #f0f4ff;
  --text-color: #1e293b;
  --light-text: #64748b;
  --error-color: #ef4444;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --primary: #2091f9;
  --primary-dark: #1a7fd8;
  --secondary: #2c3e50;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --success: #2ecc71;
  --warning: #f39c12;
  --purple: #9b59b6;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg,
      var(--primary) 0%,
      var(--accent) 100%);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
}

* {
  font-family: "Raleway", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  background: var(--gradient);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  font-family: "Montserrat", sans-serif;
}

.logo i {
  margin-right: 10px;
  animation: pulse 2s infinite;
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links li {
  margin-left: 1.5rem;
  position: relative;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero {
  min-height: 100vh;
  padding: 160px 0 100px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("Imagenes/header.jpeg") no-repeat center center/cover;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Montserrat", sans-serif;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s;
  animation: fadeIn 1.5s;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-family: "Montserrat", sans-serif;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.about {
  background-color: white;
  text-align: center;
}

.about__main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.about__icons {
  margin: 15px;
  max-width: 350px;
  width: 350px;
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.about__icons::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 1;
}

.about__icons:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: var(--shadow-hover);
}

.about__icons:hover::before {
  transform: scaleX(1);
}

.about__icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.about__title {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  font-family: "Montserrat", sans-serif;
  color: var(--secondary);
}

.about__paragrah {
  color: #777;
  line-height: 1.7;
}

.challenges {
  background-color: white;
}

.challenges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.challenge-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  transform-style: preserve-3d;
  width: 350px;
  margin: 20px;
}

.challenge-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.challenge-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.challenge-card:hover::before {
  opacity: 0.1;
}

.challenge-img {
  height: 200px;
  background-position: center;
  background-size: cover;
  transition: transform 0.5s ease;
}

.challenge-card:hover .challenge-img {
  transform: scale(1.1);
}

.challenge-content {
  padding: 25px;
  position: relative;
  z-index: 2;
}

.challenge-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.challenge-content p {
  color: #666;
  margin-bottom: 20px;
}

.challenge-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.challenge-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: 0.5s;
}

.challenge-button:hover::before {
  left: 100%;
}

.challenge-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.solution {
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.solution::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%);
  transform: rotate(30deg);
}

.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.solution-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.solution-text p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.solution-features {
  list-style: none;
}

.solution-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.solution-features li:hover {
  transform: translateX(5px);
}

.solution-features i {
  color: white;
  font-size: 1.2rem;
  margin-right: 10px;
  animation: pulse 2s infinite;
}

.solution-visual {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.statistics {
  background: linear-gradient(135deg, var(--secondary) 0%, #34495e 100%);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.stat-item {
  padding: 20px;
  width: 250px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #10b981;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

.technology {
  background-color: white;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.tech-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 20px;
  width: 350px;
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.tech-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-card:hover::before {
  opacity: 0.1;
}

.tech-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
  transform: scale(1.2) rotate(5deg);
}

.tech-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary);
  position: relative;
  z-index: 1;
}

.tech-card p {
  color: #666;
  position: relative;
  z-index: 1;
}

.testimonials {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  padding: 80px 0;
  color: white;
}

.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  margin: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.team {
  background-color: #f8f9fa;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.team-member {
  width: 320px;
  text-align: center;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .team-img {
  transform: scale(1.1);
}

.team-info {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--secondary);
}

.team-info p {
  color: var(--primary);
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.team-social a {
  color: #666;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.team-social a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.contact {
  background: linear-gradient(135deg, var(--secondary) 0%, #34495e 100%);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-details i {
  font-size: 1.2rem;
  margin-right: 15px;
  color: white;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.contact-form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: 0.5s;
}

.contact-form button:hover::before {
  left: 100%;
}

.contact-form button:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

footer {
  background: var(--dark);
  color: white;
  padding: 50px 0 20px;
}

footer h3 {
  border-bottom: 1px solid #1a7fd873;
}

footer .footer {
  border-bottom: 1px solid #1a7fd859;
}

.about {
  background-color: #d3d3d3;
}

.team {
  background-color: #d3d3d3;
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}

@media (max-width: 992px) {
  .solution-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--secondary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s;
    border-radius: 0;
    padding: 2rem 0;
    gap: 2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 10px 15px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Carrusel de equipo */
.team-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.team-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.team-slide {
  flex: 0 0 calc(33.333% - 40px);
  min-width: 250px;
  margin: 0 20px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0.7;
  transform: scale(0.9);
}

.team-slide.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.team-img-container {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-slide:hover .team-img {
  transform: scale(1.1);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(32, 145, 249, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-slide:hover .team-overlay {
  opacity: 1;
}

.team-social {
  display: flex;
  gap: 15px;
}

.team-social a {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.team-social a:hover {
  transform: translateY(-5px);
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--secondary);
}

.team-info p {
  color: var(--primary);
  margin-bottom: 15px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
}

.carousel-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(32, 145, 249, 0.3);
}

.carousel-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(32, 145, 249, 0.4);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Estilos para el botón flotante */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 10000;
  transition: all 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.05);
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
}

/* Estilos para el contenedor del chat */
.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  height: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.chatbot-container.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.message {
  display: flex;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  justify-content: flex-end;
}

.bot-message {
  justify-content: flex-start;
}

.message-content {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  line-height: 1.4;
  font-size: 13px;
}

.user-message .message-content {
  background-color: var(--user-msg-color);
  border-bottom-right-radius: 4px;
}

.bot-message .message-content {
  background-color: var(--bot-msg-color);
  border-bottom-left-radius: 4px;
}

.message-content p {
  margin-bottom: 6px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul,
.message-content ol {
  padding-left: 18px;
  margin-bottom: 6px;
}

.message-content li {
  margin-bottom: 3px;
}

.message-content code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 12px;
}

.message-content pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 8px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 6px;
  font-size: 12px;
}

.chatbot-input {
  padding: 12px;
  background-color: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
}

.chatbot-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 18px;
  outline: none;
  font-size: 13px;
  transition: border-color 0.3s;
}

.chatbot-input input:focus {
  border-color: var(--primary-color);
}

.chatbot-input button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 18px;
  padding: 8px 14px;
  margin-left: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 13px;
}

.chatbot-input button:hover {
  background-color: var(--secondary-color);
}

.typing-indicator {
  display: none;
  padding: 6px 12px;
  color: var(--light-text);
  font-style: italic;
  animation: pulse 1.5s infinite;
  font-size: 12px;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

.error-message {
  color: var(--error-color);
  padding: 6px;
  text-align: center;
  display: none;
  font-size: 12px;
}

/* Media queries para responsividad */
@media (max-width: 480px) {
  .chatbot-container {
    width: 90vw;
    height: 65vh;
    right: 5vw;
    left: 5vw;
    bottom: 75px;
    max-width: 320px;
    margin: 0 auto;
  }

  .chatbot-toggle {
    right: 5vw;
    bottom: 15px;
  }

  .chatbot-messages {
    padding: 10px;
  }

  .message-content {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 320px) {
  .chatbot-container {
    width: 95vw;
    right: 2.5vw;
    left: 2.5vw;
  }

  .chatbot-header h3 {
    font-size: 13px;
  }

  .chatbot-input input,
  .chatbot-input button {
    font-size: 12px;
  }
}

@media (min-height: 800px) {
  .chatbot-container {
    height: 450px;
  }
}

/* Para pantallas muy pequeñas en orientación horizontal */
@media (max-height: 500px) {
  .chatbot-container {
    height: 300px;
    bottom: 70px;
  }
}