/* Common styles */
body {
  margin: 0;
  padding: 0;
  color: white;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  align-items: center;
  flex-direction: column;
}

#background {
  position: fixed;
  background: rgba(5,49,78,1);
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

#photo {
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('polideportivo-copas.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  filter: grayscale(100%);
  opacity: 0.4;
}

.header {
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-top: 20px;
}

#escudo {
  background-image: url('escudo.jpg');
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  height: 150px;
  width: 150px;
  border-radius: 50%;
}

.header h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 82px;
  padding-top: 10px;
}

.beneficios-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffd700;
  margin: 0;
  padding: 0 20px 24px;
  text-align: center;
  max-width: 560px;
  line-height: 1.4;
}

/* Sección beneficios */
.beneficios-section {
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  padding: 0 20px 40px;
  margin: 0 auto;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@keyframes beneficio-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.beneficio-card {
  position: relative;
  background: transparent;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  animation: beneficio-fadeIn 0.5s ease both;
}

.beneficio-card:nth-child(1) { animation-delay: 0s; }
.beneficio-card:nth-child(2) { animation-delay: 0.05s; }
.beneficio-card:nth-child(3) { animation-delay: 0.1s; }
.beneficio-card:nth-child(4) { animation-delay: 0.15s; }
.beneficio-card:nth-child(5) { animation-delay: 0.2s; }
.beneficio-card:nth-child(6) { animation-delay: 0.25s; }
.beneficio-card:nth-child(7) { animation-delay: 0.3s; }
.beneficio-card:nth-child(8) { animation-delay: 0.35s; }
.beneficio-card:nth-child(9) { animation-delay: 0.4s; }
.beneficio-card:nth-child(10) { animation-delay: 0.45s; }
.beneficio-card:nth-child(11) { animation-delay: 0.5s; }
.beneficio-card:nth-child(12) { animation-delay: 0.55s; }

/* Items extra ocultos hasta "Ver más" */
.beneficio-card--extra {
  display: none;
}

.beneficio-card:hover,
.beneficio-card:focus,
.beneficio-card:visited {
  text-decoration: none;
  color: inherit;
}

.beneficio-logo {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beneficio-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Descuento: esquina superior derecha de la imagen, mitad dentro y mitad fuera */
.beneficio-descuento {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #05314e;
  background: #ffd700;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Nombre: blanco, mismo tamaño y fuente que el tag/descuento */
.beneficio-nombre {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 2px;
  display: block;
  line-height: normal;
}

/* Aclaración/comentario (opcional): mismo estilo que nombre */
.beneficio-aclaracion {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 6px;
  display: block;
}

.beneficio-desc {
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.beneficios-grid.beneficios-grid--show-all .beneficio-card--extra {
  display: flex;
}

.beneficios-ver-mas {
  display: block;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #ffd700;
  background: transparent;
  border: 2px solid #ffd700;
  padding: 12px 28px;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.beneficios-ver-mas:hover {
  background: #ffd700;
  color: rgba(5, 49, 78, 1);
}

.beneficios-ver-mas:focus,
.beneficios-ver-mas:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: #ffd700;
  color: #ffd700;
  background: transparent;
}

.container {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  z-index: 1;
}

.caja {
  background-color: rgba(5,49,78,0.5);
  color: white;
  border-radius: 20px;
  padding: 30px 10px;
  width: 30%;
  box-shadow: 5px 5px 20px 0 rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.caja:hover {
  transform: scale(1.05);
}

.caja .precio {
  min-height: 120px;
}

.caja .precio h3 {
  font-size: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0 11px;
  color: yellow;
}

.caja .precio h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 64px;
  margin: 12px auto 0;
}

.caja .precio h4.text {
  margin-top: 18px;
  line-height: 26px;
  font-size: 30px;
}

.caja .precio h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: -10px auto -10px auto;
}

.caja ul {
  list-style-type: none;
  margin-top: 30px;
  padding: 0;
  width: 100%;
}

.caja li {
  text-align: left;
  margin-bottom: 5px;
  margin-left: 15px;
  margin-right: 15px;
}

.caja a {
  font-family: 'Montserrat', sans-serif;
  color: rgba(5,49,78,1);
  border: none;
  background-color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  width: 80%;
  border-radius: 25px;
  margin-top: auto;
  text-transform: uppercase;
  font-weight: 700;
  max-width: 300px;
}

.caja.destacado {
  background-color: white;
  color: rgba(5,49,78,1);
}
.caja.destacado .precio h3 {
  color: rgb(203, 28, 28);
}
.caja.destacado a {
  background-color: rgba(5,49,78,1);
  color: white;
}

.caja.vacia {
  background-color: transparent;
  height: 20px !important;
}

.caja .nota {
  font-size: 12px;
  margin-top: 10px;
}

#link-anual {
  color: rgb(203, 28, 28);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

#link-anual-blanco {
  color: white;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

#link-vip {
  color: yellow;
  cursor: pointer;
  font-weight: 600;
}

.infoBox {
  color: white;
  border-radius: 20px;
  padding: 10px 20px;
  margin: 10px;
  width: 100%;
  display: flex;
}

.container.extra {
  justify-content: left;
}
.container.extra .caja .precio {
  min-height: 0px;
}

.social-icon {
  font-size: 30px;
  margin: 0 5px;
  color: white;
}
.social-icon:hover {
  color: #f8f9fa;
}

*, ::after, ::before {
  box-sizing: unset;
}

@media (min-width: 600px) {
  .beneficios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .beneficios-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .beneficio-card {
    padding: 24px 20px;
  }

  .beneficios-intro {
    font-size: 1.4rem;
  }
}

@media (max-width: 960px) {  
  .container {
    flex-direction: column;
    align-items: center;
  }

  /* En mobile el plan VIP ($580) aparece primero */
  #caja1 {
    order: 2;
  }
  #caja2 {
    order: 3;
  }
  #caja3 {
    order: 1;
  }

  .header h1 {
    font-size: 42px;
  }

  .beneficios-intro {
    font-size: 1.1rem;
  }

  .beneficios-grid {
    gap: 16px;
  }
  .beneficio-card {
    padding: 16px 12px;
  }

  .beneficio-logo {
    width: 64px;
    height: 64px;
  }

  .caja {
    width: 90%; 
    margin-bottom: 30px;
  }

  .infoBox {
    text-align: justify;
  }

  *, ::after, ::before {
    box-sizing: border-box;
  }
}

.fadeIn {
  animation: fadeIn;
  animation-duration: 1s;
}
#caja1 {
  animation: fadeInUp; 
  animation-duration: 0.4s;
}
#caja2 {
  animation: fadeInUp; 
  animation-duration: 0.6s;
}
#caja3 {
  animation: fadeInUp; 
  animation-duration: 0.8s;
}
#caja4 {
  animation: fadeInUp; 
  animation-duration: 1s;
}
#caja5 {
  animation: fadeInUp; 
  animation-duration: 1.2s;
}
#caja6 {
  animation: fadeInUp; 
  animation-duration: 1.4s;
}
