:root {
  --primary-color: #1a3e72;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --whatsapp-color: #25D366;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.navbar {
  padding: 15px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-color) !important;
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(26, 62, 114, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.navbar-brand img {
  height: 50px;
  margin-right: 10px;
  transition: all 0.3s;
}

.nav-link {
  font-weight: 500;
  padding: 8px 15px !important;
  margin: 0 5px;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero {
  background: linear-gradient(135deg, rgba(26, 63, 114, 0.548), rgba(44, 62, 80, 0.9)), url('../img/p1.jpg') center/cover no-repeat fixed;
  color: white;
  padding: 200px 0 140px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: center/cover no-repeat;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  position: relative;
  margin-bottom: 60px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 2.2rem;
}

.section-title:after {
  content: '';
  display: block;
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 20px auto 0;
  border-radius: 5px;
}

.icon-box {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border-top: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 62, 114, 0.03), rgba(243, 156, 18, 0.03));
  z-index: 0;
  opacity: 0;
  transition: all 0.4s;
}

.icon-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.icon-box:hover::before {
  opacity: 1;
}

.icon-box i {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.icon-box:hover i {
  transform: scale(1.1);
  color: var(--accent-color);
}

.bg-light {
  background-color: var(--light-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent-color);
  transition: all 0.4s;
  z-index: -1;
  border-radius: 50px;
}

.btn-primary:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::before {
  width: 100%;
}

.feature-img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s;
  transform: perspective(1000px) rotateY(0deg);
}

.feature-img:hover {
  transform: perspective(1000px) rotateY(5deg) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin: 15px;
  transition: all 0.4s;
  position: relative;
  border-top: 3px solid var(--primary-color);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.testimonial-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.testimonial-card:hover .testimonial-img {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

footer {
  background: linear-gradient(135deg, var(--secondary-color), #1a252f);
  color: white;
  padding: 80px 0 30px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-logo {
  height: 70px;
  margin-bottom: 25px;
  transition: all 0.3s;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: all 0.4s;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Botones flotantes */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 99;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.4s;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
  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); }
}
/* Para dispositivos móviles más pequeños */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .icon-box i {
    font-size: 9rem;
  }

  .whatsapp-float, .back-to-top {
    width: 10px;
    height: 50px;
    font-size: 1.9rem;
    bottom: 20px;
  }

  .whatsapp-float {
    left: 20px;
  }

  .back-to-top {
    right: 20px;
  }

  /* Ajustes de las columnas para dispositivos móviles pequeños */
  .row > .col-md-4, .row > .col-md-6 {
    width: 100%;
    padding: 10px 0;
  }

  /* Ajustes del chatbot para pantallas pequeñas */
  #chatbotContainer {
    width: 280px;
    margin-right: 10px;
    margin-bottom: 70px;
  }

  .position-fixed.p-3 {
    margin-right: 10px !important;
    margin-bottom: 70px !important;
  }

}

/* Para pantallas muy pequeñas */
@media (max-width: 576px) {
  .section-title {
    font-size: 1rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .navbar-brand img {
    height: 35px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  /* Ajuste de la galería en pantallas pequeñas */
  .col-md-4, .col-md-6 {
    width: 100%;
    padding: 10px 0;
  }

  /* Reducción de tamaño de botones flotantes */
  .whatsapp-float, .back-to-top {
    width: 105px;
    height: 45px;
    font-size: 1.9rem;
    bottom: 10px;
  }
}
  /* Default size for larger screens */
 
  #chatbotIcon {
    width: 62px;
    height: 62px;
    position: fixed;  /* Asegura que el icono esté fijo */
    bottom: 100px;     /* Colócalo en la parte inferior */
    right: 30px;      /* Asegura que esté a la derecha */
}

/* Ajustes para pantallas móviles */
@media (max-width: 576px) {
    #chatbotIcon {
        width: 50px;
        height: 50px;
        bottom: 70px; 
        right: 10px; 
    }

    .position-fixed {
        margin-bottom: 20px;
        margin-right: 10px;
        right: 28px; /
    }
}


