 
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}
.background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('assets/BG.webp');
  background-size: cover;
  background-position: center;
  z-index: -1;
}
@media (max-width: 768px) {
  .background {
    background-image: url('assets/fondo-movil.webp');
  }
}
.logo {
  text-align: center;
  padding: 3rem 1rem 1rem;
}
.logo img {
  width: 200px;
}
.subtitle {
  color: #7bd324;
  font-size: 1.5rem;
  margin-top: 1rem;
}
.accordion-container {
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
}
.accordion-item {
  border-bottom: 1px solid #ccc;
  padding: 1rem 0;
  cursor: pointer;
}
.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dot {
  width: 24px;
  height: 24px;
  background: #4cd137;
  border-radius: 50%;
  margin-right: 1rem;
}
.item-text {
  flex-grow: 1;
}
.item-title {
  color: #000;
  font-size: 1rem;
}
.item-subtitle {
  color: #777;
  font-size: 0.8rem;
}
.arrow {
  font-size: 1.2rem;
  color: #555;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.accordion-item.active .accordion-content {
  max-height: none;
  opacity: 1;
}
.accordion-content ul {
  padding-left: 2rem;
  margin: 1rem 0 0;
}
.accordion-content li {
  margin-bottom: 0.5rem;
}
.accordion-translation {
  color: #777;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding-left: 2rem;
  display: block;
  line-height: 1.4;
}
.medicion-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

@media (min-width: 769px) {
  .accordion-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
  }
  .contact-toggle-btn,
  .contact-close-btn {
    display: none;
  }
}

.contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background: white;
  padding: 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.contact img.agent-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}
.agent-info {
  flex-grow: 1;
}
.agent-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #000;
}
.agent-info a {
  color: #4cd137;
  font-weight: bold;
  text-decoration: none;
}
.legal-info {
  font-size: 0.85rem;
  color: black;
  font-weight: bold;
  text-align: center;
  width: 100%;
  margin-top: 0.2rem;
margin-bottom: 2.5rem
}

@media (max-width: 768px) {
  .contact {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }
  .contact.visible {
    transform: translateY(0%);
  }
  .contact-toggle-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    background: #4cd137;
    color: white;
    font-weight: bold;
    padding: 0.6rem 1rem;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    z-index: 1000;
  }
  .contact-close-btn {
    position: absolute;
    top: 4px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
  }
  .accordion-translation {
    padding-left: 1rem;
    font-size: 0.85rem;
    color: #777;
    display: block;
  }

.contact.visible {
  transform: translateY(0%);
}
.contact.hidden {
  display: none !important;
}
.contact-close-btn {
  position: absolute;
  top: 4px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #999;
  display: block;
}
