* {
  box-sizing: border-box;
}

.header-image-container {
  height: 667px !important;
  overflow: hidden;
}
.header-image-container img,
.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.header-image-fs8 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top;
}
.header-section {
  position: relative;
  width: 100%;
  height: 350px;
  aspect-ratio: 1449 / 667;
  overflow: hidden;
}
.header-logo {
  position: absolute;
  top: 45px;
  left: 60px;
  width: 189px;
  z-index: 10;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 79px 222px 88px 120px;
  flex-direction: column;
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 126px;
  background: white;
  justify-content: center;
}
.event-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  flex: 1;
  min-width: 350px;
  justify-content: center;
}
.event-logo {
  width: 384px;
  height: 221px;
  object-fit: cover;
  border-radius: 20px;
}
.event-title {
  font-size: 40px;
  font-weight: 510;
  color: #123450;
  line-height: 41px;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.event-subtitle {
  font-size: 24px;
  color: #123450;

  letter-spacing: -0.48px;
  line-height: 30px;
}
.content ul,
.content ol {
  padding-left: 20px;
}
.event-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 638px;
}
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: #555;
}
.detail-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #e67e22;
}
.redeem-button {
  background: #bd582c;
  color: white;
  border: none;
  max-width: 294px;
  width: 100%;
  height: 50px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  text-transform: uppercase;
}
.ancore {
  background: #bd582c;
  color: white;
  border: none;
  max-width: 294px;
  width: 100%;
  height: 50px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.redeem-button:hover {
  background: #d35400;
}

.benefits-section {
  background: #1a2e45;
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.benefits-title {
  font-size: 54px;
  font-weight: 600;
  margin-bottom: 14px;
}
.benefits-subtitle {
  font-size: 32px;
  margin-bottom: 40px;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;

  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 18px;
  scroll-snap-align: center;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-card {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 460px;
  height: 526px;
  border-radius: 18px;
  overflow: hidden;
}
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 45px;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 80%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
  align-items: start;
}
.carousel-card-content h3 {
  text-align: start;
  margin: 0 0 4px;
  font-size: 40px;
  font-weight: 590;
  line-height: 53.761px;
}
.carousel-card-content p {
  margin: 0 0 12px;
  font-size: 28px;
  white-space: pre-line;
  font-weight: 400;
  line-height: 100%;
}
.carousel-card-content button {
  align-self: start;
  padding: 6px 16px;
  background: white;
  color: #123450;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  height: 50px;
}
.carousel-arrow {
  background-color: #0e2d45; /* mismo fondo oscuro */
  color: white;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;

  transition: background-color 0.3s ease;
  width: 60px;
  height: 60px;
}
.carousel-arrow:hover {
  background-color: #19486a;
}
.carousel-arrow.left {
  order: -1;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0; /* reemplaza top,left,width,height */
  height: 100dvh; /* principal para iOS 15+ */
  min-height: -webkit-fill-available; /* fallback */
  background: rgba(19, 39, 56, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay.hidden {
  display: none;
}
.modal {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 800px;
  max-width: 95%;
  max-height: calc(100dvh - 40px); /* evita que se salga en iPhone */
  overflow-y: auto; /* permite scroll si el contenido rebasa */
  text-align: center;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal--active {
  transform: scale(1);
  opacity: 1;
}
.modal--closing {
  transform: scale(0.95);
  opacity: 0;
}
.modal-title,
.modal-subtitle {
  font-family: Outfit;
  color: #123450;
  text-transform: uppercase;
}
.modal-title {
  font-size: 32px;
  font-weight: 700;
}
.modal-subtitle2 {
  font-family: Outfit;
  color: #123450;
  font-size: 24px;
  margin-top: 8px;
}
.modal-subtitle {
  font-size: 32px;
  font-weight: 250;
  line-height: 120%;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.modal-description {
  margin: 30px 0 10px;
  font-size: 32px;
  font-weight: 400;
  font-family: Outfit;
  color: #123450;
}
.input-form {
  width: 100%;
  height: 50px;
  border-radius: 5px;
  border: 1px solid #123450;
  padding-left: 19px;
  font-size: 20px;
  color: #123450;
  font-weight: 400;
  font-family: Outfit;
}
.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.modal-button {
  background: #bd582c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  height: 50px;
}
.modal-button:hover {
  background: #d35400;
}
button[disabled] {
  background-color: #fbd2b5 !important;
  cursor: not-allowed;
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  width: 30px;
  height: 30px;
  border: none;
  cursor: pointer;
  color: #123450;
  background: #c2dbe3;
  border-radius: 100%;
}
.modal-close:hover {
  color: black;
}

@media (max-width: 700px) {
  .main-content {
    padding: 20px 10px 40px 10px;
  }
  .event-card {
    flex-direction: column;
    gap: 30px;
    padding: 20px 10px;
    align-items: center;
  }
  .event-logo {
    width: 100%;
    height: auto;
    max-width: 220px;
    margin: 0 auto 20px;
  }
  .event-title {
    font-size: 24px;
    line-height: 28px;
    text-align: left;
  }
  .event-subtitle {
    font-size: 16px;
    line-height: 22px;
    text-align: left;
  }
  .event-details {
    gap: 16px;
  }
  .benefits-title {
    font-size: 24px;
  }
  .benefits-subtitle {
    font-size: 18px;
  }
  .carousel-card {
    width: 280px !important;
    height: 318px !important;
  }
  .carousel-card-content h3 {
    font-size: 30px !important;
    line-height: 27.944px;
  }
  .carousel-card-content p {
    font-size: 20px !important;
    line-height: 20.687px !important;
  }
  .carousel-card-content {
    padding: 23px !important;
  }
  .carousel-card-content button {
    height: 37px !important;
    font-size: 16px;
  }
  .header-section,
  .header-image,
  .header-image-container {
    height: 173px !important;
    min-height: 120px;
  }
  .header-logo {
    width: 90px;
    top: 10px;
    left: 10px;
  }

  .modal {
    padding: 30px 20px;
    width: 95%;
    max-width: 100%;
  }
  .modal-title,
  .modal-subtitle {
    font-size: 20px;
  }
  .modal-subtitle2 {
    font-size: 20px;
  }
  .modal-description {
    font-size: 16px;
    margin: 20px 0;
  }
  .input-form {
    font-size: 16px;
    height: 45px;
  }
  .modal-button {
    font-size: 16px;
    height: 45px;
  }
  .header-image-fs8 {
    object-position: -65px;
  }
}

/* === Responsive: Tablets (iPad) === */
@media (min-width: 701px) and (max-width: 1024px) {
  .main-content {
    padding: 40px 40px 60px 40px;
  }
  .event-card {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
  }
  .event-logo {
    max-width: 300px;
    width: 100%;
  }
  .event-header {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .event-title {
    font-size: 30px;
    line-height: 36px;
  }
  .event-subtitle {
    font-size: 20px;
    line-height: 28px;
  }
  .event-details {
    text-align: start;
    align-items: center;
  }
}
.error-field {
  color: red;
  display: flex;
  gap: 10px;
  border-top: 1px solid #e51b24;
  border-right: 1px solid #e51b24;
  border-bottom: 2px solid #e51b24;
  border-left: 1px solid #e51b24;
  padding: 10px;
  text-align: start;
}

.error-field ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-images-list {
    background: white;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px 0;
  }

  .event-images-list img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
  }