/* =========================
   SECCIÓN (FONDO FIJO + TIPOS)
========================= */
.packs-section{
  position: relative;
  overflow: hidden;
  font-family: "Montserrat", system-ui, Arial, sans-serif;
  padding: 55px 16px;
}

/* Fondo SOLO dentro de la sección */
.packs-section::before{
  content:"";
  position: absolute;
  inset: 0;
  background: url("../img/bg/fondo1.png") center/cover no-repeat;
  background-attachment: fixed;  /* efecto “fijo” solo en esta sección */
  z-index: -2;
}
/* Fondo SOLO dentro de la sección */
.packs-section::before{
  content:"";
  position: absolute;
  inset: 0;
  background: url("../img/bg/fondo1.png") center/cover no-repeat;
  background-attachment: fixed;  /* efecto “fijo” solo en esta sección */
  z-index: -2;
}
/* Overlay dentro de la sección */
.packs-section::after{
  content:"";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.packs-wrap{
  max-width: 1180px;
  margin: 0 auto;
}

.packs-head{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 55px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.packs-head h2{
  margin: 0 auto;
  width: 100%;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 34px;
  line-height: 1.05;
  color: #0f172a;
  text-align: center;
  box-sizing: border-box;
}
.packs-head h2 span,
.packs-head h3 span,
.packs-head p span{
  color: #b7ff00;
  font-weight: 900;
}
.packs-head h3{
  margin: 8px auto 0;
  margin-bottom: 12px;
  width: 100%;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 18px;
  line-height: 1.15;
  color: rgba(15, 23, 42, 0.88);
  text-align: center;
  box-sizing: border-box;
}
.packs-head p{
  margin: 12px auto 0;
  width: 100%;
  max-width: 860px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .6px;
  color: rgba(15, 23, 42, 0.72);
  text-align: center;
  box-sizing: border-box;
}

/* =========================
   GRID
========================= */

.packs-grid{
  display: grid;
  justify-content: center;
  gap: 26px;
  grid-template-columns: repeat(2, minmax(220px, 1fr)); /* <-- ancho exacto de cada cuadro */
  align-items: start;
}
/* =========================
   CARD
========================= */
.pack-card{
  position: relative;
  border-radius: 26px;
  padding: 22px 22px 18px;
  overflow: hidden;

  /* Controla el ancho del “cuadro” (lo que pediste reducir) */
  max-width: 360px;
  margin: 0 auto;

  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
}

/* Colores de cada card 
.pack-green{ background: rgba(253, 253, 253, 0.55); }
.pack-cyan{  background: rgba(255, 255, 255, 0.55); }*/

/* etiqueta vertical decorativa */
.pack-bg-tag{
  position: absolute;
  top: 100px;
  left: 16px;
  transform: rotate(-90deg);
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 16px;
  color: rgba(255, 140, 70, .35);
  user-select: none;
}

/* =========================
   IMAGEN (centrada + hover espejo)
========================= */
.pack-image{
  position: relative;
  height: 380px;                 /* Ajusta alto de imagen */
  display: grid;
  place-items: center;
  overflow: visible;
  cursor: pointer;
}

.pack-image:focus-visible{
  outline: 3px solid #7CFF4E;
  outline-offset: 4px;
}

/* La imagen centrada (SOLUCIÓN a “se ven descentradas”) */
.pack-image img{
  width: min(92%, 330px);        /* controla el tamaño real */
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 25px rgba(0,0,0,.18));
  transform: translateY(0);
  transition: transform .35s ease, filter .35s ease;
}

/* Resplandor suave */
.pack-card:hover .pack-image img{
  transform: translateY(-6px);
  filter:
    drop-shadow(0 16px 26px rgba(0,0,0,.18))
    drop-shadow(0 0 22px rgba(0, 0, 0, 0.25));
}

/* “Espejo” (sheen) que pasa al hover */
.pack-image::after{
  content:"";
  position:absolute;
  inset: -40px;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255,255,255,.0) 35%,
      rgba(255,255,255,.55) 50%,
      rgba(255,255,255,.0) 65%,
      transparent 100%);
  transform: translateX(-80%) rotate(10deg);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events:none;
}

.pack-card:hover .pack-image::after{
  opacity: .9;
  animation: sheenMove .85s ease forwards;
}

@keyframes sheenMove{
  to{ transform: translateX(80%) rotate(10deg); }
}

/* =========================
   INFO
========================= */
.pack-info{
  position: relative;
  padding: 6px 6px 0;
  text-align: center;
}
.pack-info{
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding: 12px 12px 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pack-info h4{
  margin: 8px 0 4px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #333;
}

.pack-info p{
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 12px;
  color: rgba(0,0,0,.60);
}

/* Botón CATÁLOGO */
.pack-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 44px;
  border-radius: 999px;
  border: 2px solid rgba(182,255,44,.38);
  background: #0c0c0c;
  color: #b6ff2c;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pack-btn:hover{
  border-color: #b6ff2c;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

/* =========================
/* Caja oscura colapsable (animación suave) */
.pack-details{
  margin-top: 12px;
  background: rgba(40,40,40,.92);
  color: #fff;
  border-radius: 14px;

  /* animación */
  display: grid;
  grid-template-rows: 0fr;        /* cerrado */
  transition: grid-template-rows .45s ease;

  opacity: 0;
  transform: translateY(10px);
  transition: grid-template-rows .45s ease, opacity .35s ease, transform .35s ease;
}

/* contenido interno para que colapse bien */
.pack-details > .pack-details__inner{
  overflow: hidden;
  padding: 0 14px;               /* cerrado sin padding vertical */
}

/* lista */
.pack-details ul{
  margin: 10px 0 12px;
  padding-left: 18px;
  text-align: left;
  font-size: 10px;
  line-height: 1.35;
  opacity: .92;
}

/* abierto */
.pack-card.is-open .pack-details{
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.pack-card.is-open .pack-details > .pack-details__inner{
  padding: 12px 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .packs-grid{ grid-template-columns: 1fr; }
  .pack-card{ max-width: 520px; }
  .pack-image{ height: 360px; }
  .packs-head h2{ font-size: 30px; }
  .packs-head{
    max-width: 820px;
    margin-top: 34px;
    margin-bottom: 42px;
  }
  .packs-head p{
    max-width: 720px;
  }
}

@media (max-width: 520px){
  .pack-card{ padding: 18px 16px 16px; border-radius: 22px; }
  .pack-image{ height: 320px; }
  .pack-image img{ width: min(92%, 290px); }
  .packs-head{
    max-width: 100%;
    margin-top: 22px;
    margin-bottom: 30px;
    padding: 0 14px;
  }
  .packs-head h2{
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: .6px;
  }
  .packs-head h3{
    font-size: 15px;
    letter-spacing: 1.2px;
  }
  .packs-head p{
    max-width: 100%;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .35px;
  }
}

.pack-image{
  position: relative;
  overflow: hidden;          /* CLAVE */
  border-radius: 18px;       /* o el que uses dentro */
}

.pack-image::after{
  content:"";
  position:absolute;
  inset: 0;                  /* CLAVE */
  border-radius: inherit;    /* CLAVE */
  pointer-events:none;
  opacity: 0;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 38%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 62%,
    rgba(255,255,255,0) 100%);
  transform: translateX(-120%) skewX(-12deg);
}

.pack-card:hover .pack-image::after{
  opacity: .9;
  animation: imgSheen 850ms ease forwards;
}

@keyframes imgSheen{
  to{ transform: translateX(120%) skewX(-12deg); }
}
