/* ===== VARIABLES Y RESET ===== */
:root {
  --primary: #005f73;
  --secondary: #005f73;
  --accent: #94d2bd;
  --dark: #001219;
  --light: #e9d8a6;
  --white: #ffffff;
  --red-accent: #ff0000;
  --info-blue: #1976d2;
  --text-color: #333;
  --light-text: #f8f9fa;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --main-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --title-font: "Arial Black", "Arial Bold", Gadget, sans-serif;
  --transition: all 0.3s ease;
  --radius: 8px;
}

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

body {
  font-family: "Arial", sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

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

/* ===== NAVBAR ===== */
.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%;
}

.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;
}

/* ===== BARRA SOCIAL ===== */
.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;
}

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

.social-bar {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.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%);
  background-color: rgba(255, 255, 255, 0.9);
  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: 5px;
}

.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;
}

/* ===== HERO SECTION ===== */
.main-container {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  background: url("https://t4.ftcdn.net/jpg/13/89/48/07/360_F_1389480785_Lje4sKlCudGpcWeV2bem2dozgU9ngEWa.jpg")
    center/cover;
}

.content-wrapper {
  display: flex;
  max-width: 1200px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.text-section {
  flex: 1;
  padding: 30px;
  background: rgba(255, 255, 255, 0);
  border-radius: 20px;
  animation: slideFromLeft 1.5s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.text-container {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.3;
}

.line-1,
.line-2 {
  color: #2c3e50;
  display: block;
  margin-bottom: 15px;
}

.description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #7f8c8d;
  margin-top: 25px;
  max-width: 500px;
}

.image-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideFromRight 1.5s ease-out;
}

.image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
}

.image-section img:hover {
  transform: scale(1.03);
}

/* ===== BOTONES ===== */
.btn-info {
  display: inline-block;
  background: #03505f;
  color: #b7d6df;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  box-shadow: 0 4px 15px rgba(5, 90, 107, 0.3);
  border: none;
  cursor: pointer;
  font-family: var(--main-font);
}

.btn-info:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(7, 83, 99, 0.4);
}

.btn-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, transparent, #9de3ad, transparent);
  transition: 0.5s;
}

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

/* ===== CARRUSEL MUNICIPALIDADES ===== */
.carousel-section {
  max-width: 1600px;
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  margin: 0 auto;
}

.carousel-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.carousel-title span {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.carousel-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.divider {
  height: 5px;
  width: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  margin: 40px auto;
  border-radius: 3px;
  opacity: 0.8;
}

.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-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: #3b82f6;
  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: #3b82f6;
  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;
}

.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: #3b82f6;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.overlay.active .overlay-img {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #1e293b;
  font-size: 2.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 101;
}

.close-btn:hover {
  color: #3b82f6;
  transform: rotate(90deg);
}

/* ===== SLIDER TRANSFORMACIÓN DIGITAL ===== */
.slider-section {
  padding: 60px 20px;
  width: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: auto;
}

.slider-title {
  margin-top: 20px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #3b3939;
  text-align: center;
  margin-bottom: 40px;
  font-family: "Arial", sans-serif;
  line-height: 1.3;
}

.slider-title span {
  color: #1c6277;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0 15px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  align-items: center;
  justify-content: center;
}

.slider-item {
  position: absolute;
  width: 340px;
  height: 480px;
  text-align: center;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
  opacity: 0.7;
  transform: scale(0.9) translateX(0);
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
  background-size: 200%;
  left: 50%;
  margin-left: -170px;
}

.slider-item.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.slider-item:not(.active) {
  transform: scale(0.8) translateX(400px);
  opacity: 0.5;
  z-index: 1;
}

.slider-item:not(.active):nth-child(odd) {
  transform: scale(0.8) translateX(-400px);
}

.slider-item img {
  width: 90px;
  height: 90px;
  margin-bottom: 15px;
  display: block;
  object-fit: contain;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 18px;
}

.slider-item h3 {
  margin: 15px 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.879);
  text-align: center;
  font-family: "Arial", sans-serif;
}

.slider-item p {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  margin: 13px 0;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 8px;
  width: 100%;
  text-align: justify;
  overflow-y: auto;
  max-height: 200px;
}

.slider-item p::-webkit-scrollbar {
  width: 5px;
}

.slider-item p::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.slider-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
}

.slider-buttons a {
  display: block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding: 0 25px;
  font-size: 16px;
  line-height: 48px;
  border-radius: 8px;
  border: 0;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  transition: all 0.4s ease-out 0s;
  background-size: 200%;
  text-decoration: none;
}

.blue-card {
  background: linear-gradient(to right, #1084b2 0%, #114458 80%, #1084b2 100%);
  color: white;
}

.blue-card .slider-buttons a {
  background: linear-gradient(to right, #1084b2 0%, #114458 80%, #1084b2 100%);
  background-size: 200%;
}

.blue-card .slider-buttons a:hover {
  color: #fff;
  background-position: right center;
}

.blue-card:hover {
  background-position: right center;
  box-shadow: 0 0 20px #114458;
}

.green-card {
  background: linear-gradient(to right, #779b19 0%, #4e690c 80%, #779b19 100%);
  color: white;
  background-size: 150%;
}

.green-card .slider-buttons a {
  background: linear-gradient(to right, #779b19 0%, #4e690c 80%, #779b19 100%);
  background-size: 200%;
}

.green-card .slider-buttons a:hover {
  color: #fff;
  background-position: right center;
}

.green-card:hover {
  background-position: right center;
  box-shadow: 0 0 20px #779b19;
}

.slider-control {
  color: #0b3b54;
  background-color: white;
  border: none;
  font-size: 1.7rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.slider-control:hover {
  background-color: #0b3b54;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 10px;
}
.slider-next {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 15px;
  box-sizing: border-box;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  box-sizing: border-box;
}

.slider-dot.active {
  background-color: white;
  transform: scale(1.3);
}

/* ===== SECCIÓN NOSOTROS ===== */
.cards-section {
  background: #ffffff;
  padding: 80px 10%;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #00bcd4;
  margin: 10px auto 0;
  border-radius: 2px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  padding: 40px 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f1f1f1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #00bcd4;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}

.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* ===== POR QUÉ ELEGIR SIAMSOFT ===== */
.choose-siam {
  background: linear-gradient(135deg, #447177, #008ba3);
  color: #fff;
  padding: 80px 10%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.choose-siam::before,
.choose-siam::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.choose-siam::before {
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
}

.choose-siam::after {
  bottom: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
}

.choose-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.choose-text {
  flex: 1;
  text-align: left;
  min-width: 300px;
}

.choose-video {
  flex: 1;
  min-width: 300px;
}

.choose-video iframe {
  width: 100%;
  max-width: 500px;
  height: 280px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choose-video iframe:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.choose-siam h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.choose-siam h2 span {
  color: #ffe082;
}

.choose-siam p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.languaje {
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.languaje:hover {
  transform: scale(1.2);
}

.mt-20 {
  margin-top: 20px;
}
.fw-light {
  font-weight: 300;
}

/* ===== PRODUCTOS Y SERVICIOS ===== */
.public-links-section {
  padding: 80px 0;
  text-align: center;
}

.public-links-section h2 {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  font-size: 2.2rem;
  color: var(--secondary);
  font-weight: 700;
}

.public-links-section > .container > p {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 60px;
  color: #555;
  line-height: 1.7;
}

.public-links-section h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  justify-content: center;
}

.public-link {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 30px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.public-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.public-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.icon-container {
  margin-bottom: 20px;
}

.public-link .icon-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  padding: 15px;
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.public-link:hover .icon-img {
  transform: scale(1.1);
}

.public-link h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--secondary);
  font-weight: 600;
}

.public-link p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.link-hover-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.public-link:hover .link-hover-indicator {
  opacity: 1;
  transform: translateY(0);
}

.link-hover-indicator i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.public-link:hover .link-hover-indicator i {
  transform: translateX(5px);
}

/* ===== SECCIÓN DE VIDEOS ===== */
.videos-section {
  background: white;
  padding: 80px 0;
  margin: 70px 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.videos-section h2 {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  font-size: 2rem;
  color: #222;
}

.videos-section h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.video-item {
  flex: 0 0 350px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.video-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-info {
  padding: 25px 20px;
  text-align: center;
  flex-grow: 1;
}

.video-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.video-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.video-rectangle {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.video-rectangle iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-rectangle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2.5rem;
}

.video-rectangle:hover::after {
  opacity: 1;
  content: "▶";
}

.video-label {
  text-align: center;
  padding: 15px 0;
  color: white;
  font-weight: 600;
  background: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}

.video-label:hover {
  background: #2563eb;
}

.alignment-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 30px auto;
  width: 90%;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 80%;
  height: 80%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-modal {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-modal:hover {
  color: #3b82f6;
  transform: rotate(90deg);
  background: rgba(0, 0, 0, 0.7);
}

/* ===== TESTIMONIOS ===== */
.testimonios-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 0;
  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;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonio-card {
  animation: fadeIn 0.6s ease-out;
}

/* ===== FORMULARIO DE CONTACTO ===== */
.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;
}

/* ===== 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;
}

.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);
}

/* ===== CHATBOT ===== */
#chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #4caf50;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.3s;
}

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

#chatbot-icon > img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

#chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  height: 400px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

#chatbot-window.visible {
  display: flex !important;
  animation: chatbot-fadeIn 0.3s ease-out;
}

#chatbot-window .chatbot-header {
  background-color: #4caf50;
  color: #ffffff;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

#chatbot-window .chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#chatbot-window .chatbot-messages .message {
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  max-width: 80%;
  font-size: 14px;
  word-wrap: break-word;
  line-height: 1.4;
}

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

#chatbot-window .chatbot-messages .bot-message {
  background-color: #f1f1f1;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

#chatbot-window .chatbot-input {
  display: flex;
  padding: 10px;
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
  gap: 8px;
}

#chatbot-window .chatbot-input > input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #dddddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}

#chatbot-window .chatbot-input > button {
  padding: 8px 16px;
  background-color: #4caf50;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 14px;
}

#chatbot-window .chatbot-input > button:hover {
  background-color: #45a049;
}

@keyframes chatbot-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== EFECTO DE PALABRAS CAMBIANTES ===== */
.changing-words-container {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  perspective: 1000px;
  margin: 10px 0;
}

.changing-word {
  position: absolute;
  font-size: 3.5rem;
  font-weight: 800;
  display: flex;
  opacity: 0;
  transform: translateY(30px) rotateX(-90deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.changing-word.active {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.letter {
  display: inline-block;
  transform: translateY(30px) rotateX(-90deg);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter.active {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.word-1 {
  color: #ff9a00;
}
.word-2 {
  color: #00c9ff;
}
.word-3 {
  color: #f5515f;
}
.word-4 {
  color: #c471ed;
}

/* ===== ANIMACIONES GENERALES ===== */
@keyframes slideFromLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFromRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1600px) {
  .carousel-item {
    width: 450px;
    height: 380px;
  }
}

@media (max-width: 1200px) {
  .carousel-container {
    height: 450px;
  }

  .carousel-item {
    width: 380px;
    height: 320px;
  }
}

@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .text-section,
  .image-section {
    margin: 0;
  }

  .choose-container {
    flex-direction: column;
    text-align: center;
  }

  .choose-text {
    text-align: center;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .carousel-title {
    font-size: 2.2rem;
  }

  .carousel-container {
    height: 400px;
  }

  .carousel-item {
    width: 320px;
    height: 280px;
  }

  .carousel-control {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .carousel-control.prev {
    left: 15px;
  }
  .carousel-control.next {
    right: 15px;
  }

  .slider-item {
    width: 320px;
    height: 450px;
    margin-left: -160px;
  }

  .slider {
    height: 470px;
  }

  .slider-title {
    font-size: 2rem;
  }

  .slider-item p {
    max-height: 185px;
    font-size: 13px;
  }

  .slider-item:not(.active) {
    transform: scale(0.8) translateX(350px);
  }

  .slider-item:not(.active):nth-child(odd) {
    transform: scale(0.8) translateX(-350px);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 5%;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

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

  .nav-links a {
    font-size: 1.2rem;
    color: white;
  }

  .hamburger-menu {
    display: flex;
  }

  .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);
  }

  .text-container {
    font-size: 2rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 100%;
  }

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

  .testimonios-grid {
    flex-direction: column;
    align-items: center;
  }

  .testimonio-card {
    width: 100%;
  }

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

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

  .social-bar-container {
    top: auto;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    animation: fadeSlideInBottom 1s ease-out forwards;
    animation-delay: 0.4s;
  }

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

  .social-bar {
    flex-direction: row;
    border-radius: 12px 12px 0 0;
    width: max-content;
    max-width: 100vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }

  .social-link:hover {
    width: 45px;
    height: 55px;
    border-radius: 0;
  }

  .social-text {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: 130px;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 0;
    white-space: nowrap;
    z-index: 2001;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-column {
    min-width: 100%;
    text-align: center;
  }

  .footer-column h3:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social-links {
    justify-content: center;
  }

  .slider-section {
    padding: 40px 15px;
    min-height: auto;
  }

  .slider-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .slider-container {
    margin: 15px auto;
  }

  .slider {
    height: 440px;
  }

  .slider-item {
    width: 280px;
    height: 410px;
    padding: 20px;
    margin-left: -140px;
  }

  .slider-control {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }

  .slider-item img {
    width: 80px;
    height: 80px;
  }

  .slider-item h3 {
    font-size: 1.4rem;
  }

  .slider-item p {
    font-size: 12px;
    max-height: 170px;
    line-height: 1.5;
    padding: 12px;
  }

  .slider-buttons a {
    padding: 0 20px;
    font-size: 14px;
    line-height: 42px;
  }

  .slider-item:not(.active) {
    transform: scale(0.8) translateX(300px);
  }

  .slider-item:not(.active):nth-child(odd) {
    transform: scale(0.8) translateX(-300px);
  }

  .changing-word {
    font-size: 2.5rem;
  }

  .changing-words-container {
    height: 100px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .carousel-section {
    padding: 40px 15px;
  }

  .carousel-title {
    font-size: 1.8rem;
  }

  .carousel-subtitle {
    font-size: 1rem;
  }

  .carousel-container {
    height: 300px;
  }

  .carousel-item {
    width: 220px;
    height: 200px;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-control.prev {
    left: 5px;
  }
  .carousel-control.next {
    right: 5px;
  }

  .navbar {
    padding: 0.8rem 5%;
  }

  .text-container {
    font-size: 1.6rem;
  }

  .description {
    font-size: 1rem;
  }

  .btn-info {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .card {
    padding: 25px 15px;
  }

  .icon-box {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  #chatbot-icon {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  #chatbot-window {
    width: 90%;
    right: 5%;
    left: 5%;
  }

  .container {
    padding: 0 15px;
  }

  .public-links-section {
    padding: 50px 0;
  }

  .public-links-section h2 {
    font-size: 1.8rem;
  }

  .public-links-section > .container > p {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .public-link {
    padding: 25px 20px;
  }

  .public-link .icon-img {
    width: 60px;
    height: 60px;
    padding: 12px;
  }

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

  .video-item {
    flex: 0 0 100%;
  }

  .choose-siam,
  .cards-section {
    padding: 60px 5%;
  }

  .choose-container {
    flex-direction: column;
    gap: 30px;
  }

  .choose-video iframe {
    height: 200px;
  }

  .social-bar {
    transform: scale(0.9);
    transform-origin: center bottom;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link i {
    font-size: 18px;
  }

  .slider-control {
    display: none;
  }

  .slider-dots {
    margin-top: 25px;
  }

  .slider-item p {
    max-height: 160px;
  }

  .slider-title {
    font-size: 1.6rem;
  }

  .slider-item {
    width: 260px;
    height: 390px;
    margin-left: -130px;
  }

  .slider-item:not(.active) {
    transform: scale(0.7) translateX(280px);
    opacity: 0.3;
  }

  .slider-item:not(.active):nth-child(odd) {
    transform: scale(0.7) translateX(-280px);
    opacity: 0.3;
  }

  .changing-word {
    font-size: 2rem;
  }

  .changing-words-container {
    height: 80px;
  }
}
