/* =========================
   PUBLISHER · Catálogo exterior
   ========================= */

.publisher-catalog {
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  box-sizing: border-box;
}

.publisher-catalog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}

.publisher-catalog__heading {
  flex: 1 1 auto;
  min-width: 0;
}

.publisher-catalog__search {
  min-width: 0;
  width: 100%;
  max-width: 420px;
  grid-area: search;
}

.publisher-catalog__sort {
  flex: 0 0 auto;
  width: auto;
  min-width: 300px;
  margin-left: auto;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
}

.publisher-catalog__search-field {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #d7dde5;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

.publisher-catalog__search-field:focus-within {
  border-color: #42536a;
  box-shadow: 0 0 0 3px rgba(66, 83, 106, 0.10);
}

.publisher-catalog__search-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.72;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.publisher-catalog__search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: #111;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.publisher-catalog__search-input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.publisher-catalog__search-input::-webkit-search-decoration,
.publisher-catalog__search-input::-webkit-search-cancel-button,
.publisher-catalog__search-input::-webkit-search-results-button,
.publisher-catalog__search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.publisher-catalog__title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.publisher-catalog__sort-label {
  margin: 0;
  color: #111;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  position: static;
  left: auto;
  flex: 0 0 auto;
}

.publisher-catalog__sort-ui {
  position: relative;
  min-width: 240px;
  flex: 0 0 240px;
  margin: 0;
}

.publisher-catalog__sort-trigger,
.publisher-catalog__sort-trigger:hover,
.publisher-catalog__sort-trigger:focus,
.publisher-catalog__sort-trigger:active {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #42536a !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

.publisher-catalog__sort-trigger-text {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  margin-left: 16px;
  position: static;
}

.publisher-catalog__sort-trigger-caret {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 7 10 13 16 7'/%3E%3C/svg%3E");
  transition: transform 0.18s ease;
}

.publisher-catalog__sort.is-open .publisher-catalog__sort-trigger-caret {
  transform: rotate(180deg);
}

.publisher-catalog__sort-line {
  width: calc(100% - 16px);
  height: 2px;
  margin-top: 10px;
  margin-left: 16px;
  background: #cfd4da;
}

.publisher-catalog__sort-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 220px;
  padding: 8px 0;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.08);
}

.publisher-catalog__sort-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.publisher-catalog__sort-option,
.publisher-catalog__sort-option:hover,
.publisher-catalog__sort-option:focus,
.publisher-catalog__sort-option:active {
  width: 100%;
  display: block;
  padding: 12px 16px;
  border: 0;
  background: transparent !important;
  color: #111 !important;
  text-align: left;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: none !important;
  cursor: pointer;
}

.publisher-catalog__sort-option:hover,
.publisher-catalog__sort-option:focus {
  background: #f7f7f7 !important;
}

.publisher-catalog__sort-option.is-active {
  font-weight: 700;
  color: #42536a !important;
}

@media (max-width: 780px) {
  .publisher-catalog {
    padding: 18px 16px 36px;
  }

  .publisher-catalog__head {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "search"
      "sort";
    row-gap: 0px;
    column-gap: 0;
    margin-bottom: 18px;
    align-items: start;
  }

  .publisher-catalog__heading {
    min-width: 0;
    margin: 0;
  }

  .publisher-catalog__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.08;
  }

  .publisher-catalog__search {
    width: 100%;
    min-width: 0;
  }

  .publisher-catalog__search-field {
    min-height: 50px;
    padding: 0 16px;
  }

  .publisher-catalog__search-input {
    font-size: 16px;
  }

  .publisher-catalog__sort {
    width: 100%;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
  }

  .publisher-catalog__sort-label {
    margin: 0;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .publisher-catalog__sort-ui {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
  }

  .publisher-catalog__sort-trigger,
  .publisher-catalog__sort-trigger:hover,
  .publisher-catalog__sort-trigger:focus,
  .publisher-catalog__sort-trigger:active {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #42536a !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  .publisher-catalog__sort-trigger-text {
    font-size: 16px;
    line-height: 1;
    margin-left: 0;
    position: static;
  }

  .publisher-catalog__sort-trigger-caret {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-size: 14px 14px;
  }

  .publisher-catalog__sort-line {
    width: 100%;
    height: 2px;
    margin-top: 8px;
    margin-left: 0;
    background: #cfd4da;
    position: static;
  }

  .publisher-catalog__sort-menu {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 100%;
    min-width: 220px;
  }

  .publisher-catalog__sort-option,
  .publisher-catalog__sort-option:hover,
  .publisher-catalog__sort-option:focus,
  .publisher-catalog__sort-option:active {
    font-size: 15px;
  }
}

.publisher-catalog__grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

.publisher-catalog__grid--cols-1 {
  grid-template-columns: 1fr;
}

.publisher-catalog__grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publisher-catalog__grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publisher-catalog__grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.publisher-catalog__empty {
  margin: 0;
  font-size: 18px;
  color: #444;
}

/* =========================
   Card catálogo
   ========================= */

.publisher-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.publisher-card:hover,
.publisher-card:focus-within {
  transform: none;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.publisher-card__image-link,
.publisher-card__image-link:hover,
.publisher-card__image-link:focus,
.publisher-card__image-link:active {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 0;
}

.publisher-card__image-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
  line-height: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.publisher-card__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.22s ease;
  pointer-events: none;
  z-index: 1;
}

.publisher-card__image-link:hover .publisher-card__image-wrap::after,
.publisher-card__image-link:focus .publisher-card__image-wrap::after {
  background: rgba(0, 0, 0, 0.12);
}

.publisher-card__image,
.publisher-card__image-wrap img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0;
  border: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.publisher-card__share {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 3;
  min-width: 80px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
  border: 0;
  border-radius: 5px;
  background: rgba(17, 17, 17, 0.48);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.publisher-card__share:hover,
.publisher-card__share:focus-visible {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.publisher-card__share:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.publisher-card__share.is-copied {
  opacity: 0.68;
}

.publisher-card__share-icon {
  width: 13px;
  height: 13px;
  display: block;
  flex: 0 0 13px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h9'/%3E%3Cpath d='M9 7l5 5-5 5'/%3E%3Cpath d='M14 4h3a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-3'/%3E%3C/svg%3E");
}

.publisher-card__share-label {
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.publisher-single-mobile-hero-media,
.publisher-single-mobile-pricing,
.publisher-single-mobile-sections,
.publisher-single-mobile-panel-meta,
.publisher-single-mobile-cta {
  display: none;
}

@media (max-width: 780px) {
  .publisher-card__share {
    right: 9px;
    bottom: 9px;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 20px;
    padding: 0 5px;
    gap: 2px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  }

  .publisher-card__share-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    background-size: 10px 10px;
  }

  .publisher-card__share-label {
    font-size: 8px;
    line-height: 1;
  }
}

.publisher-card__image--placeholder {
  background: linear-gradient(135deg, #f3f3f3 0%, #e8e8e8 100%);
}

.publisher-card__row--ghost {
  visibility: hidden;
}

/* body sin tipo visible */
.publisher-card__body--no-type {
  display: grid;
  grid-template-rows:
    minmax(54px, auto)
    minmax(52px, auto)
    minmax(34px, auto)
    minmax(24px, auto)
    auto;
  gap: 0;
  padding: 14px 16px 16px;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.publisher-card__body--with-type {
  display: grid;
  grid-template-rows:
    minmax(18px, auto)
    minmax(54px, auto)
    minmax(52px, auto)
    minmax(34px, auto)
    minmax(24px, auto)
    auto;
  gap: 0;
  padding: 14px 16px 16px;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.publisher-card__title-row {
  margin: 0 0 6px 0;
}

.publisher-card__excerpt-row {
  margin: 0 0 8px 0;
}

.publisher-card__meta-row {
  margin: 0 0 12px 0;
}

.publisher-card__prices-row {
  margin: 0 0 10px 0;
}

.publisher-card__type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  color: #666;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.publisher-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.50;
  font-weight: 600;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.publisher-card__title a,
.publisher-card__title a:hover,
.publisher-card__title a:focus,
.publisher-card__title a:active {
  color: inherit !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.publisher-card__title a:hover,
.publisher-card__title a:focus {
  color: #d8452f !important;
}

.publisher-card__excerpt {
  margin: 0;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.publisher-card__meta-line {
  margin: 0;
  color: #7c7c7c;
  font-size: 11px;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.22em * 2);
}

.publisher-card__meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.publisher-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.22;
  color: #7c7c7c;
}

.publisher-card__meta-item::before {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  flex: 0 0 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  opacity: 0.88;
}

.publisher-card__meta-item--fecha::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.publisher-card__meta-item--lugar::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 6-9 12-9 12S3 16 3 10a9 9 0 1 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.publisher-card__meta-item--nivel::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
}

.publisher-card__prices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 24px;
}

.publisher-card__discount-row,
.publisher-card__price-old-row {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: nowrap;
}

.publisher-card__discount {
  color: #d8452f;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
}

.publisher-card__price-old-label {
  color: #d8452f;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
}

.publisher-card__price-old {
  color: #d8452f;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: line-through;
}

.publisher-card__footer {
  margin-top: auto;
  padding-top: 0;
}

.publisher-card__button,
.publisher-card__button:hover,
.publisher-card__button:focus,
.publisher-card__button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  background: #0f8a90;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  border: 0 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.publisher-card__button:hover,
.publisher-card__button:focus,
.publisher-card__button:active {
  background: #0c7479;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-1px);
}

.publisher-card__button--buy {
  gap: 8px;
}

.publisher-card__button--buy::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

/* =========================
   Sistema de badges
   ========================= */

.publisher-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.publisher-badge--yellow {
  background: #f5c518;
  color: #111;
}

.publisher-badge--red {
  background: #d93a2f;
  color: #fff;
}

.publisher-badge--blue {
  background: #2563eb;
  color: #fff;
}







/* =========================
   PUBLISHER · Card meta icons
   Corporate + Weddings
   ========================= */

.publisher-card__meta-item--formato::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363646f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cline x1='8' y1='9' x2='16' y2='9'/%3E%3Cline x1='8' y1='13' x2='13' y2='13'/%3E%3C/svg%3E");
}

.publisher-card__meta-item--cobertura::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363646f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 6-9 12-9 12S3 16 3 10a9 9 0 1 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.publisher-card__meta-item--montaje::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363646f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 6l4 4'/%3E%3Cpath d='M5 19l4-1 9-9-3-3-9 9-1 4Z'/%3E%3C/svg%3E");
}

.publisher-card__meta-item--envio::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363646f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='7' width='15' height='10' rx='2'/%3E%3Cpath d='M16 10h3l4 4v3h-7Z'/%3E%3Ccircle cx='5.5' cy='18.5' r='1.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='1.5'/%3E%3C/svg%3E");
}

.publisher-card__meta-item--personalizacion::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363646f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.35-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 11c0 5.65-7 10-7 10Z'/%3E%3C/svg%3E");
}