* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: white;
  margin: 0;
}

/* Carrusel */
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
  padding: 0;
}

.card {
  flex: 0 0 calc(33.333% - 16px);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(121, 121, 121, 0.05);
  min-height: 200px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: #7bb5ca;
}

.card h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #222;
}

.card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* Botones navegación carrusel */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

  display: flex;
  align-items: center;
  justify-content: center;
}

.nav:hover {
  background: #eee;
  transform: translateY(-50%) scale(1.1);
}

.nav.left {
  left: -30px;
}

.nav.right {
  right: -30px;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dots .dot.active {
  background-color: #333;
}

/* Botón personalizado */
.btn-custom {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid #7bb5ca;
  border-radius: 50px;
  background: white;
  color: #7bb5ca;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-custom:hover {
  background: #e6f4f8;
  color: #7bb5ca;
  border-color: #7bb5ca;
}

/* ========== Media Queries ========== */

/* Tablet */
@media (max-width: 992px) {
  .card {
    flex: 0 0 calc(50% - 16px);
  }
}

/* Móvil */
@media (max-width: 768px) {
  .card {
    flex: 0 0 85%;
    margin: 0 8px;
  }

  .nav.left {
    left: 0;
  }

  .nav.right {
    right: 0;
  }

  .btn-custom {
    font-size: 15px;
    padding: 10px 20px;
  }
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 8px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.dropdown-toggle:hover {
  border-bottom: 1px solid #000;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 10px;
  z-index: 1000;
  min-width: 220px;
}

.dropdown-menu a {
  padding: 8px 10px;
  white-space: nowrap;
  font-size: 14px;
  color: #333;
}

.dropdown-menu a:hover {
  background-color: #f3f3f3;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}
.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 8px;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 5px;
}

.arrow-icon {
  font-size: 10px;
  transform: translateY(1px);
}
