/* Estilos del Modal Container */
.modal-overlay {
  font-family: "Poppins Regular";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  /* visibility: hidden; */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

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

.modal-container {
  max-width: 28rem;
  width: 100%;
  max-height: 100dvh;
}

/* Header del Modal */
.modal-header {
  text-align: center;
  padding: 1.5rem 1.5rem 1rem;
  position: relative;
}

.modal-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.modal-checkmark svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: #FFFFFF;
  font-weight: 400;
}

/* Contenido del Modal */
.modal-content {
  padding: 2rem 2.5rem;
  background-color: #FFFFFF;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-radius: 1.25rem;
  max-height: 25vw;
  overflow-y: auto;
}

.modal-section {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section .section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 0.95rem;
  border: none;
}

.section-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.section-icon img {
  width: 2.5vw;
}

/* Guest Info */
.guest-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 3.5vw;
}

.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.modal-section .guest-label {
  color: #666;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.guest-value {
  color: #1a1a1a;
  font-weight: 500;
}

.guest-total {
  margin-top: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.guest-total-label {
  color: #1a1a1a;
}

.guest-total-value {
  color: #1a1a1a;
}

/* Tariff Info */
.tariff-info {
  background: #f9f9f9;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #f0f0f0;
}

.tariff-price {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.tariff-description {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Footer del Modal */
.modal-footer {
  padding: 1.5rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-footer-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.modal-footer-note {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
  font-weight: 400;
}

.confirm-selection-guests {
  width: 100%;
  padding-left: 3.5vw;
  display: flex;
  flex-direction: column;
  gap: 0.6vw;
}

.confirm-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5vw;
  color: #4A5565;
}

.confirm-summary-item span,
.confirm-summary-item div {
  font-size: 1vw;
  color: #4A5565;
  font-weight: 400;
}

.confirm-summary-item .tariff-color {
  color: #00C9C9;
}

.confirm-summary-item.success span {
  color: #00A63E;
}

.confirm-summary-item.total {
  border-top: 2px solid #F3F4F6;
  padding-top: 0.5vw;
}

.confirm-summary-item.total .label-gray {
  color: #101828;
  font-weight: 400;
}

.confirm-summary-item.total .label-gold {
  color: #6F6B4D;
  font-weight: 400;
}


/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body {
    padding: 0.5rem 0;
  }

  .modal-container {
    border-radius: 0.875rem;
  }

  .modal-header {
    padding: 1rem 1rem 0.65rem;
  }

  .modal-checkmark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .modal-checkmark svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .modal-title {
    font-size: 2.7rem;
    margin-bottom: 0.35rem;
  }

  .modal-subtitle {
    font-size: 1.2rem;
  }

  .modal-content {
    padding: 2rem 2.2rem;
    max-height: 40dvh;
  }

  .modal-content .section-header .section-icon img {
    width: 8vw;
  }

  .modal-section .section-header {
    gap: 1.5rem;
    font-size: 1.1rem;
  }

  .modal-section {
    margin-bottom: 1.25rem;
  }

  .modal-footer {
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .modal-footer-note {
    font-size: 1.1rem;
    margin-top: 0.35rem;
  }

  .guest-row {
    padding: 0.6rem 0;
    font-size: 0.9rem;
  }

  .tariff-info {
    padding: 0.9rem;
  }

  .modal-footer .white-button,
  .modal-footer .black-button {
    height: 3.8vh;
    border-radius: 1rem;
  }

  .modal-footer .white-button {
    width: 20%;
  }

  .modal-footer .black-button {
    width: 70%;
    font-size: 1rem;
  }

  .confirm-summary-item span,
  .confirm-summary-item div {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  body {
    padding: 0.5rem 0;
  }

  .modal-container {
    border-radius: 0.875rem;
  }

  .modal-header {
    padding: 1rem 1rem 0.65rem;
  }

  .modal-checkmark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .modal-checkmark svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .modal-title {
    font-size: 2.7rem;
    margin-bottom: 0.35rem;
  }

  .modal-subtitle {
    font-size: 1.2rem;
  }

  .modal-content {
    padding: 2rem 2.2rem;
    max-height: 40dvh;
  }

  .modal-content .section-header .section-icon img {
    width: 8vw;
  }

  .modal-section .section-header {
    gap: 1.5rem;
    font-size: 1.1rem;
  }

  .modal-section {
    margin-bottom: 1.25rem;
  }

  .modal-footer {
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .modal-footer-note {
    font-size: 1.1rem;
    margin-top: 0.35rem;
  }

  .guest-row {
    padding: 0.6rem 0;
    font-size: 0.9rem;
  }

  .tariff-info {
    padding: 0.9rem;
  }

  .modal-footer .white-button,
  .modal-footer .black-button {
    height: 3.8vh;
    border-radius: 1rem;
  }

  .modal-footer .white-button {
    width: 20%;
  }

  .modal-footer .black-button {
    width: 70%;
    font-size: 1rem;
  }

  .confirm-summary-item span,
  .confirm-summary-item div {
    font-size: 1.2rem;
  }
}

/* hide scrollbar but allow scrolling */
.modal-content {
  -ms-overflow-style: none;
  /* for Internet Explorer, Edge */
  scrollbar-width: none;
  /* for Firefox */
  overflow-y: scroll;
}

.modal-content::-webkit-scrollbar {
  display: none;
  /* for Chrome, Safari, and Opera */
}