/* ============================================================
   PROMOCIONES - ESTILOS
   ============================================================ */
.sitio-web-promociones-page {
  padding: 60px 20px;
  background: #f8fafc;
}

.sitio-web-promociones-header {
  text-align: center;
  margin-bottom: 40px;
}

.sitio-web-promociones-subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #84cc16;
  margin-bottom: 4px;
}

.sitio-web-promociones-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}

.sitio-web-promociones-grid {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop: 4 columnas */
@media (min-width: 1025px) {
  .sitio-web-promociones-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet: 3 columnas */
@media (min-width: 769px) and (max-width: 1024px) {
  .sitio-web-promociones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Móvil horizontal: 2 columnas */
@media (min-width: 481px) and (max-width: 768px) {
  .sitio-web-promociones-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Móvil vertical: 1 columna */
@media (max-width: 480px) {
  .sitio-web-promociones-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
  }
}

/* ========== TARJETA DE PROMOCIÓN ========== */
.sitio-web-promocion-card-page {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.sitio-web-promocion-card-page:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sitio-web-promocion-image-container {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: #f3f4f6;
}

.sitio-web-promocion-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sitio-web-promocion-vigencia {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sitio-web-promocion-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sitio-web-promocion-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.sitio-web-promocion-card-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.sitio-web-promocion-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.sitio-web-promocion-card-valor {
  font-size: 16px;
  font-weight: 700;
  color: #84cc16;
}

.sitio-web-promocion-card-fecha {
  font-size: 12px;
  color: #9ca3af;
}

/* ============================================================
   HERO CARRUSEL DE PROMOCIONES
   ============================================================ */
.sitio-web-hero-slider {
  position: relative;
  width: 100%;
  height: auto; /* 🔥 Se ajusta automáticamente al contenido */
  aspect-ratio: 16 / 9; /* 🔥 Relación de aspecto 16:9 */
  overflow: hidden;
  background: #111827;
}

.sitio-web-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

/* Ajuste para pantallas con relación más vertical (móviles) */
@media (max-aspect-ratio: 1/1) {
  .sitio-web-hero-slider {
    aspect-ratio: auto; /* 🔥 En móviles verticales se ajusta a la imagen */
    min-height: 50vh;
  }
  .sitio-web-hero-slide {
    background-size: contain; /* 🔥 Para que se vea completa */
    background-position: center top;
  }
}

/* Para iPad vertical y móviles, mantener el comportamiento anterior */
@media (min-width: 481px) and (max-width: 1024px) and (orientation: portrait) {
  .sitio-web-hero-slider {
    aspect-ratio: auto;
    min-height: 50vh;
  }
  .sitio-web-hero-slide {
    background-size: contain;
    background-position: center;
  }
}

.sitio-web-hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.sitio-web-hero-slide .sitio-web-preview-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #fff;
}

.sitio-web-hero-slide .sitio-web-preview-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #84cc16;
  color: #111827;
  margin-bottom: 16px;
}

.sitio-web-hero-slide .sitio-web-preview-hero-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.sitio-web-hero-slide .sitio-web-preview-hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 12px;
  opacity: 0.9;
  max-width: 600px;
}

/* Botones de navegación del carrusel */
.sitio-web-hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sitio-web-hero-slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.sitio-web-hero-slider-prev {
  left: 20px;
}

.sitio-web-hero-slider-next {
  right: 20px;
}

/* Indicadores (puntos) */
.sitio-web-hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.sitio-web-hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.sitio-web-hero-slider-dot.active {
  background: #84cc16;
}

/* Responsive */
@media (max-width: 768px) {
  .sitio-web-hero-slide .sitio-web-preview-hero-title {
    font-size: 28px;
  }
  .sitio-web-hero-slide .sitio-web-preview-hero-subtitle {
    font-size: 16px;
  }
  .sitio-web-hero-slider-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .sitio-web-hero-slider-prev {
    left: 10px;
  }
  .sitio-web-hero-slider-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .sitio-web-hero-slide .sitio-web-preview-hero-title {
    font-size: 22px;
  }
  .sitio-web-hero-slide .sitio-web-preview-hero-subtitle {
    font-size: 14px;
  }
  .sitio-web-hero-slider-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

/* ============================================================
   CARRUSEL DE PROMOCIONES
   ============================================================ */
.sitio-web-promociones-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.sitio-web-promociones-viewport {
  overflow: hidden;
}

.sitio-web-promociones-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Tarjeta de promoción en carrusel */
.sitio-web-promocion-card-slider {
  flex: 0 0 calc(25% - 15px);
  max-width: calc(25% - 15px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.sitio-web-promocion-card-slider:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sitio-web-promocion-card-slider .promocion-card-image-container {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: #f3f4f6;
}

.sitio-web-promocion-card-slider .promocion-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sitio-web-promocion-card-slider .promocion-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sitio-web-promocion-card-slider .promocion-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.sitio-web-promocion-card-slider .promocion-card-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sitio-web-promocion-card-slider .promocion-card-description.expanded {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
}

.sitio-web-promocion-card-slider .promocion-card-toggle {
  padding: 8px 16px;
  background: transparent;
  color: #84cc16;
  border: 2px solid #84cc16;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
  margin-top: 4px;
}

.sitio-web-promocion-card-slider .promocion-card-toggle:hover {
  background: #84cc16;
  color: #fff;
}

.sitio-web-promocion-card-slider .promocion-card-toggle.active {
  background: #84cc16;
  color: #fff;
}

/* Navegación del carrusel */
.sitio-web-promociones-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #111827;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sitio-web-promociones-nav:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sitio-web-promociones-nav.hidden {
  display: none;
}

.sitio-web-promociones-prev {
  left: 0;
}

.sitio-web-promociones-next {
  right: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .sitio-web-promocion-card-slider {
    flex: 0 0 calc(33.33% - 14px);
    max-width: calc(33.33% - 14px);
  }
  .sitio-web-promociones-slider {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .sitio-web-promocion-card-slider {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  .sitio-web-promociones-slider {
    padding: 0 20px;
  }
  .sitio-web-promocion-card-slider .promocion-card-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .sitio-web-promocion-card-slider {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  .sitio-web-promocion-card-slider .promocion-card-image-container {
    padding-top: 60%;
  }
  .sitio-web-promocion-card-slider .promocion-card-title {
    font-size: 14px;
  }
  .sitio-web-promocion-card-slider .promocion-card-description {
    font-size: 13px;
  }
  .sitio-web-promociones-slider {
    padding: 0 12px;
  }
  .sitio-web-promociones-nav {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ============================================================
   RECOMPENSAS
   ============================================================ */
.sitio-web-recompensas {
  padding: 60px 20px;
  background: #f8fafc;
}

.sitio-web-recompensas-container {
  max-width: 1200px;
  margin: 0 auto;
}

.sitio-web-recompensas-header {
  text-align: center;
  margin-bottom: 40px;
}

.sitio-web-recompensas-subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #84cc16;
  margin-bottom: 4px;
}

.sitio-web-recompensas-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.sitio-web-recompensas-descripcion {
  font-size: 16px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.sitio-web-recompensas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 32px;
}

.sitio-web-recompensa-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.sitio-web-recompensa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sitio-web-recompensa-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0fdf4;
  color: #84cc16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

.sitio-web-recompensa-nombre {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.sitio-web-recompensa-puntos {
  font-size: 14px;
  color: #84cc16;
  font-weight: 600;
}

.sitio-web-recompensas-cta {
  text-align: center;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  max-width: 500px;
  margin: 0 auto;
}

.sitio-web-recompensas-cta p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

.sitio-web-recompensas-cta a {
  color: #84cc16;
  font-weight: 600;
  text-decoration: none;
}

.sitio-web-recompensas-cta a:hover {
  text-decoration: underline;
}

/* Responsive recompensas */
@media (max-width: 768px) {
  .sitio-web-recompensas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .sitio-web-recompensas-title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .sitio-web-recompensas-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 320px;
  }
  .sitio-web-recompensa-card {
    padding: 16px;
  }
  .sitio-web-recompensas-title {
    font-size: 22px;
  }
}

/* ============================================================
   BENEFICIOS (estilo similar a index.html)
   ============================================================ */
.sitio-web-beneficios-promo {
  padding: 60px 20px;
  background: #fff;
}

.sitio-web-beneficios-promo-container {
  max-width: 1200px;
  margin: 0 auto;
}

.sitio-web-beneficios-promo-header {
  text-align: center;
  margin-bottom: 40px;
}

.sitio-web-beneficios-promo-subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #84cc16;
  margin-bottom: 4px;
}

.sitio-web-beneficios-promo-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}

.sitio-web-beneficios-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.sitio-web-beneficio-promo-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  background: #f8fafc;
}

.sitio-web-beneficio-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sitio-web-beneficio-promo-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.sitio-web-beneficio-promo-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.sitio-web-beneficio-promo-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Responsive beneficios */
@media (max-width: 1024px) {
  .sitio-web-beneficios-promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .sitio-web-beneficios-promo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 320px;
    margin: 0 auto;
  }
  .sitio-web-beneficios-promo-title {
    font-size: 22px;
  }
}
