/* ============================================= */
/* VARIABLES Y CONFIGURACIÓN GLOBAL */
/* ============================================= */
:root {
  --primary: #005f73;
  --primary-dark: #004494;
  --primary-light: #3a7bd5;
  --secondary: #0a9396;
  --accent: #94d2bd;
  --dark: #001219;
  --light: #f8fafc;
  --white: #ffffff;
  --red-accent: #ff0000;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --border: #cbd5e1;
  --text-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 16px;
  --gradient: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  --gradient-dark: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 100%
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  font-weight: 400;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
}

h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 6rem 0;
}

/* ============================================= */
/* COMPONENTES REUTILIZABLES */
/* ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn: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: var(--transition);
}

.btn:hover:before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--gray);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================= */
/* BARRA SOCIAL LATERAL */
/* ============================================= */
.social-bar-container {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-30px);
  z-index: 2000;
  opacity: 0;
  animation: fadeSlideInLeft 1s ease-out forwards;
  animation-delay: 0.4s;
}

.social-bar {
  display: flex;
  flex-direction: column;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  position: relative;
  transition: all 0.4s ease;
  text-decoration: none;
}

.social-link i {
  font-size: 20px;
  color: #fff;
  transition: transform 0.3s ease;
}

.social-text {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  margin-left: 55px;
}

.social-link:hover {
  width: 60px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.social-link:hover i {
  transform: scale(1.2);
}

.social-link:hover .social-text {
  opacity: 1;
  margin-left: 10px;
}

.social-facebook {
  background-color: #1877f2;
}
.social-tiktok {
  background-color: #000000;
}
.social-twitter {
  background-color: #1da1f2;
}
.social-youtube {
  background-color: #ff0000;
}
.social-web {
  background-color: #4caf50;
}

@keyframes fadeSlideInLeft {
  from {
    transform: translateY(-50%) translateX(-40px);
    opacity: 0;
    filter: blur(5px);
  }
  to {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* ============================================= */
/* BARRA DE NAVEGACIÓN */
/* ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s ease;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0px 0px 40px 40px;
  height: 80px;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 0.8rem 5%;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  width: 150px;
  height: auto;
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: rgb(51, 50, 50);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  text-shadow: 1px 1px 3px rgba(250, 247, 247, 0.5);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: rgb(14, 12, 12);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Menú hamburguesa */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1000;
}

.hamburger-menu .bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Cuando el menú está activo (abierto) */
.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================= */
/* HERO SECTION */
/* ============================================= */
.hero {
  background: linear-gradient(135deg, #447177, #008ba3);
  padding: 180px 0 100px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.hero:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.03;
  animation: float 6s ease-in-out infinite;
}

.hero:after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.03;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--light);
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--white);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-preview {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--light-gray);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: var(--transition);
}

.image-preview:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================= */
/* FEATURES SECTION */
/* ============================================= */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient);
  transition: var(--transition);
}

.feature-card:hover:before {
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(0, 86, 179, 0.1) 0%,
    rgba(10, 147, 150, 0.1) 100%
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--primary);
  font-size: 2rem;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover .feature-icon {
  background: var(--gradient);
  color: white;
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.feature-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.7;
  flex-grow: 1;
}

.feature-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: auto;
}

.feature-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  gap: 1rem;
}

.feature-btn:active {
  transform: translateY(0);
}

/* Opción alternativa: botón con estilo secundario */
.feature-btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.feature-btn.secondary:hover {
  background: var(--primary);
  color: white;
}

/* ============================================= */
/* PROCESS SECTION */
/* ============================================= */
.process {
  background: linear-gradient(135deg, var(--light) 0%, #f0f4f8 100%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--light-gray);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 2rem;
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.step-number:before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.process-step h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--gray);
  line-height: 1.7;
}

/* ============================================= */
/* MUNICIPALIDADES SECTION */
/* ============================================= */
.municipalidades {
  background: linear-gradient(135deg, var(--light) 0%, #f0f4f8 100%);
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Contenedor del carrusel 3D mejorado */
.carousel-container {
  width: 100%;
  height: 500px;
  margin: 0 auto 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item {
  position: absolute;
  width: 500px;
  height: 400px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0.7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  left: 50%;
  transform: translateX(-50%);
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-item:hover .carousel-img {
  transform: scale(1.05);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(73, 92, 87, 0.85);
  color: white;
  padding: 1.5rem;
  text-align: center;
  transform: translateY(0);
  transition: var(--transition);
}

.carousel-item:hover .carousel-caption {
  background: rgba(7, 204, 164, 0.95);
}

.carousel-caption h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.carousel-caption p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Controles de navegación mejorados */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* Indicadores mejorados */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  gap: 15px;
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.indicator.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Efecto de borde luminoso para las imágenes */
.carousel-item::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--primary),
    var(--secondary),
    var(--primary)
  );
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-item.active::after {
  opacity: 1;
  animation: borderGlow 2s infinite;
}

@keyframes borderGlow {
  0% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
  }
}

/* ============================================= */
/* MODAL STYLES */
/* ============================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #f8fafc;
}

.modal-text-content {
  padding: 2.5rem;
  background: white;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
  text-align: center;
  line-height: 1.3;
}

.modal-text {
  color: var(--gray);
  line-height: 1.7;
  text-align: center;
  margin: 0;
  font-size: 1.1rem;
}

/* ============================================= */
/* TESTIMONIOS SECTION */
/* ============================================= */
.testimonios-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333;
}

.testimonios-title {
  text-align: center;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #212529;
  position: relative;
}

.testimonios-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #0077ff;
  margin: 10px auto;
  border-radius: 2px;
}

.testimonios-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #5a6c7d;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonios-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonio-card {
  background-color: #fff;
  box-shadow: 0 5px 30px rgba(100, 100, 100, 0.16);
  transition: all 0.3s ease-out;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonio-card:hover {
  transform: translateY(-5px);
  border-left: 4px solid #0077ff;
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.1;
  font-size: 60px;
  color: #0077ff;
}

.rating {
  color: #ffc107;
  margin: 15px 0;
  font-size: 18px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.rating i {
  transition: all 0.3s ease;
}

.rating .star {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
  color: #ffc107;
}

.rating .star:hover {
  animation: rotateStar 0.8s ease-in-out;
  color: #ff9e3d;
}

@keyframes rotateStar {
  0% {
    transform: rotate(0) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.4);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.testimonio-text {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
  position: relative;
  z-index: 1;
}

.testimonio-author-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.testimonio-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 6px solid #0077ff;
  padding: 3px;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.4);
  transition: all 0.4s ease;
  background-color: white;
}

.testimonio-image:hover {
  transform: scale(1.1);
  border-color: #0056b3;
  box-shadow: 0 12px 25px rgba(0, 119, 255, 0.5);
}

.testimonio-author {
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
  font-size: 1.3rem;
  margin-top: 15px;
  color: #2c3e50;
}

.testimonio-position {
  color: #6c757d;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 500;
}

/* ============================================= */
/* CONTACT SECTION */
/* ============================================= */
.section.contact {
  background: linear-gradient(135deg, #005f73 0%, #0a9396 100%);
  color: white;
  padding: 80px 0;
}

.section-title2 {
  text-align: center;
  width: 100%;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section.contact .section-title2 h2 {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 auto 15px;
  color: white;
  font-size: 2.2rem;
  position: relative;
}

.section.contact .section-title2 p {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section.contact .section-title2 h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: white;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 20px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.contact-info > p {
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.contact-text a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.contact-text a:hover {
  color: #94d2bd;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: rgba(29, 201, 231, 0.2);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: rgb(59, 53, 53);
  color: #005f73;
  transform: translateY(-3px);
}

.form-container {
  flex: 1;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

#contactForm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 0;
}

.form-group:nth-child(5),
.form-group:nth-child(6) {
  grid-column: span 2;
}

.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  font-family: var(--main-font);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 1em;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-color);
}

.required::after {
  content: " *";
  color: var(--red-accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: var(--bg-color);
  font-family: var(--main-font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.btn-submit {
  background-color: var(--red-accent);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #9de3ad;
}

.confirmation-message {
  display: none;
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
}

/* ============================================= */
/* CHATBOT */
/* ============================================= */
#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#chatbot-icon {
  width: 60px;
  height: 60px;
  background-color: #4caf50;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

#chatbot-icon:hover {
  transform: scale(1.1);
}

#chatbot-icon img {
  width: 70%;
  height: 70%;
}

#chatbot-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 450px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

#chatbot-window.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#chatbot-header {
  background-color: #4caf50;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-header h3 {
  margin: 0;
  font-size: 16px;
}

#close-chatbot {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

#chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  word-wrap: break-word;
}

.user-message {
  align-self: flex-end;
  background-color: #dcf8c6;
  border-bottom-right-radius: 5px;
}

.bot-message {
  align-self: flex-start;
  background-color: #e8e8e8;
  border-bottom-left-radius: 5px;
}
.formatted-message {
  white-space: pre-line;
  word-wrap: break-word;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

#chatbot-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: white;
}

#user-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}

#send-button {
  margin-left: 10px;
  padding: 10px 15px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

#send-button:hover {
  background-color: #45a049;
}

/* ============================================= */
/* FOOTER */
/* ============================================= */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

/*compatibilidad con grid en responsive */
.footer-content {
  display: flex;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.footer-social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: rgba(29, 201, 231, 0.2);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.footer-social-links a:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */
@media (max-width: 1024px) {
  .hero-content {
    gap: 3rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .contact-container {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  #contactForm {
    grid-template-columns: 1fr;
  }

  .form-group:nth-child(5),
  .form-group:nth-child(6) {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 0;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .feature-card,
  .testimonio-card {
    padding: 2rem 1.5rem;
  }
}
