/* =====================================================
   PROMOCIONES DESTACADAS
===================================================== */

.sitio-web-promociones-preview {
  padding: 80px 40px;
  background: #ffffff;
}

.sitio-web-promociones-header {
  text-align: center;
  margin-bottom: 40px;
}

.sitio-web-promociones-subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 10px;
}

.sitio-web-promociones-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}

/* =====================================================
   CONTENEDOR
===================================================== */

.sitio-web-promociones-container {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

/* =====================================================
   CARD
===================================================== */

.sitio-web-promocion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  /*padding: 28px 20px;*/

  border: 1px solid #e5e7eb;
  border-radius: 20px;

  background: #ffffff;

  text-align: center;

  transition: all 0.25s ease;
}

.sitio-web-promocion-card {
  flex: 0 0 280px;
}

.sitio-web-promocion-card {
  width: 280px;
  min-width: 280px;
  overflow: hidden;
  flex-shrink: 0;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
}

.sitio-web-promociones-preview-hover:hover {
  transform: translateY(-3px);
  transition: all 0.25s ease;
}

/* =====================================================
   BADGE
===================================================== */

.sitio-web-promocion-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 18px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;

  color: #ffffff;
  background: #111827;
}

/* =====================================================
   TITULO
===================================================== */

.sitio-web-promocion-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.sitio-web-promocion-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  text-align: left;
}

/* =====================================================
   DESCRIPCION
===================================================== */

.sitio-web-promocion-card-description {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
}

.sitio-web-promocion-card-description {
  margin-top: 8px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
  text-align: left;
}

/* =====================================================
   CONFIGURACION PROMOCIONES
===================================================== */

.sitio-web-promociones-config-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 1px;
}

.sitio-web-promociones-config-field {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sitio-web-promociones-config-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.sitio-web-promociones-config-field .sitio-web-header-select {
  min-width: 90px;
}

.sitio-web-promociones-config-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitio-web-promociones-config-switch span {
  font-size: 12px;
  color: var(--color-text);
}

/* =====================================================
   SWITCH COMPACTO
===================================================== */

.sitio-web-promociones-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.sitio-web-promociones-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sitio-web-promociones-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  transition: 0.2s;
  border-radius: 999px;
}

.sitio-web-promociones-switch-slider:before {
  position: absolute;
  content: '';
  height: 14px;
  width: 14px;
  left: 2px;
  top: 2px;
  background: #ffffff;
  transition: 0.2s;
  border-radius: 50%;
}

.sitio-web-promociones-switch
  input:checked
  + .sitio-web-promociones-switch-slider {
  background: var(--color-primary);
}

.sitio-web-promociones-switch
  input:checked
  + .sitio-web-promociones-switch-slider:before {
  transform: translateX(16px);
}

/* =====================================================
   COLOR PICKER
===================================================== */

.sitio-web-promociones-config-field .sitio-web-header-color-btn {
  width: 42px;
  height: 34px;
}

.sitio-web-promociones-config-field .sitio-web-header-color-btn span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

/* =====================================================
   HEADER
===================================================== */

.sitio-web-promociones-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sitio-web-promociones-header-row .sitio-web-header-config-title {
  margin: 0;
}

/* ==========================================
   PROMOCIONES CARRUSEL
========================================== */

.sitio-web-promociones-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sitio-web-promociones-viewport {
  flex: 1;
  overflow: hidden;
}

.sitio-web-promociones-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s ease;
}

.sitio-web-promociones-nav {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sitio-web-promociones-nav:hover {
  transform: scale(1.05);
}

/*.sitio-web-promocion-image-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}*/

/*.sitio-web-promocion-image-container {
  width: calc(100% + 2px);
  height: 200px;

  margin-left: -1px;
  margin-top: -1px;

  overflow: hidden;
  flex-shrink: 0;
}*/

.sitio-web-promocion-image-container {
  width: calc(100% + 2px);
  height: 187px;

  margin-left: -1px;
  margin-top: -1px;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
}

/*.sitio-web-promocion-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}*/

.sitio-web-promocion-image {
  width: 100%;
  height: 100%;

  display: block;

  /*object-fit: cover;*/
  object-fit: contain;
  object-position: center center;
}

/*.sitio-web-promocion-content {
  padding: 16px;
  position: static;
  width: 100%;
}*/

.sitio-web-promocion-content {
  padding: 14px 16px 16px;
  width: 100%;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {
  .sitio-web-promociones-container {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .sitio-web-promociones-preview {
    padding: 60px 20px;
  }

  .sitio-web-promociones-container {
    grid-template-columns: 1fr;
  }

  .sitio-web-promociones-title {
    font-size: 28px;
  }
}
