* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #1F396B;
  background-color: #ffffff;
}

.container {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  overflow-y: auto;
}

/* Panel izquierdo */
.left-panel {
  flex: 1 1 500px;
  padding: 40px 30px 80px; /* espacio para alert-box */
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.logo {
  width: 160px;
  margin: 0 auto 20px auto;
  display: block;
}

.title {
  font-size: 80px;
  font-weight: 800;
  color: #1F396B;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 18px;
  margin-bottom: 30px;
}

.benefits-box {
  border: 2px solid #1F396B;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 90px; /* mayor separación con el alert-box */
  background-color: #fff;
  z-index: 1;
}

.benefits-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.benefits-box h3::before {
  content: '🔒';
  margin-right: 8px;
}

.input-box {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.input-box input {
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid #1F396B;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  max-width: 250px;
}

.btn {
  background-color: #1F396B;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  max-width: 250px;
  margin: 0 auto;
  display: block;
}

.btn:hover {
  background-color: #003366;
}

.btn:disabled {
  background-color: #ccc;  /* gris */
  color: #666;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Alert box */
.alert-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;/* 100% menos padding lateral */
  background-color: #1F396B;
  color: white;
  padding: 20px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  background-image: url(/club_beneficios/img/pattern.png);
  box-sizing: border-box;
  z-index: 2;
}

.alert-content {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.btn-outline,
.btn-whatsapp {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: 2px solid white;
  background: white;
  color: #002147;
  transition: background 0.3s;
  width: auto;
  min-width: 140px;
}

.btn-outline:hover {
  background-color: #f0f4f8;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border: none;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

/* Panel derecho */
.right-panel {
  flex: 1 1 500px;
  background-color: #1F396B;
  position: relative;
  overflow: hidden;
  background-image: url(/club_beneficios/img/pattern.png);
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  padding: 40px 40px 0 40px;
  box-sizing: border-box;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 480px 480px 0 0;
  display: block;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ffffffaa;
  border-radius: 50%;
  transition: background 0.3s;
}

.dot.active {
  background: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .left-panel {
    padding: 20px 15px 40px;
  }

  .title {
    font-size: 50px;
  }

  .alert-box {
    position: relative;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    /* flex-direction: column; */
    text-align: center;
    border-radius: 8px;
  }

  .btn-outline,
  .btn-whatsapp {
    width: 100%;
    padding: 10px;
  }
}

/* Landscape móviles */
@media screen and (orientation: landscape) and (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .right-panel {
    height: 200px;
    margin-top: 20px;
  }

  .logo {
    width: 120px;
  }

  .alert-box {
    position: relative;
    padding: 15px;
  }
}

/* Modal general */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

/* Modal de afiliación */
.modal-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #1F396B;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
}

.modal-content .btn {
  width: 100%;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

.close-modal:hover {
  color: #333;
}

/* Modal PDF */
.modal-pdf-content {
  background-color: white;
  border-radius: 10px;
  max-width: 800px;
  width: 95%;
  height: 90vh;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.modal-pdf-content iframe {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 10px;
  height: 100%;
}
