/* Catálogo de tienda y ventanas de producto - 2026-07-14 */
.product-card-clickable {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.product-card-clickable:focus-visible {
  outline: 4px solid rgba(244,196,0,.55);
  outline-offset: 4px;
}
.product-card-clickable .product-link {
  margin-top: auto;
}
.products-grid-main {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ec-modal-open { overflow: hidden; }
.ec-modal[hidden] { display: none !important; }
.ec-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
}
.ec-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 24, 43, .72);
  backdrop-filter: blur(5px);
}
.ec-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: 0 34px 90px rgba(4, 24, 43, .35);
}
.ec-modal-panel-wide { width: min(1120px, 100%); }
.ec-modal-close {
  position: sticky;
  z-index: 5;
  top: 16px;
  float: right;
  margin: 16px 16px -58px 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e0e5;
  border-radius: 50%;
  background: #fff;
  color: #082b4c;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(8,43,76,.12);
}
.ec-modal-close:hover { background: #f4c400; }
.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  min-height: 520px;
}
.product-modal-visual {
  padding: 58px 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #082b4c 0%, #0e5d91 100%);
  color: #fff;
}
.product-modal-icon {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: #f4c400;
  color: #082b4c;
  font-size: 3rem;
  font-weight: 900;
  transform: rotate(-4deg);
}
.product-modal-visual p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  line-height: 1.6;
}
.product-modal-content { padding: 64px 54px 46px; }
.product-modal-category,
.catalog-modal-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  color: #0e5d91;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.product-modal-content h2,
.catalog-modal-head h2 {
  margin: 0;
  color: #082b4c;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.product-modal-summary {
  margin: 22px 0 0;
  color: #516473;
  font-size: 1.05rem;
  line-height: 1.7;
}
.product-modal-prices {
  display: grid;
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid #dfe6e9;
  border-bottom: 1px solid #dfe6e9;
}
.product-modal-prices > div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}
.product-modal-prices > div + div { border-top: 1px dashed #dfe6e9; }
.product-modal-prices span { color: #697985; }
.product-modal-prices strong { color: #082b4c; text-align: right; }
.product-modal-note {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff4bd;
  color: #5f520e;
  font-size: .9rem;
  line-height: 1.65;
}
.product-modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.catalog-modal-head { padding: 46px 56px 30px; border-bottom: 1px solid #e0e7ea; }
.catalog-modal-head p:last-child { max-width: 720px; margin: 14px 0 0; color: #60717e; line-height: 1.65; }
.catalog-modal-body { padding: 34px 56px 56px; }
.catalog-modal-section + .catalog-modal-section { margin-top: 44px; padding-top: 38px; border-top: 1px solid #e0e7ea; }
.catalog-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.catalog-section-head h3 { margin: 0; color: #082b4c; font-size: 1.45rem; }
.catalog-section-head p { margin: 4px 0 0; color: #6b7b87; font-size: .88rem; }
.store-catalog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.store-catalog-item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid #dce5e9;
  border-radius: 17px;
  background: #fff;
  color: #082b4c;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
button.store-catalog-item:hover {
  transform: translateY(-2px);
  border-color: #f4c400;
  box-shadow: 0 12px 28px rgba(8,43,76,.08);
}
.store-catalog-item-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #fff2ad;
  font-size: 1.45rem;
  font-weight: 900;
}
.store-catalog-item-copy { min-width: 0; display: grid; gap: 4px; }
.store-catalog-item-copy strong { font-size: .95rem; }
.store-catalog-item-copy small { color: #687984; line-height: 1.45; }
.store-catalog-item-arrow { color: #0e5d91; font-size: 1.35rem; font-weight: 800; }
.store-catalog-future { cursor: default; border-style: dashed; background: #f7f9fa; }
.catalog-entrepreneur-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.catalog-entrepreneur-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce5e9;
  border-radius: 16px;
  background: #fff;
  color: #082b4c;
  text-decoration: none;
}
.catalog-entrepreneur-card:hover { border-color: #f4c400; }
.catalog-entrepreneur-logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #f4c400;
  color: #082b4c;
  font-weight: 900;
}
.catalog-entrepreneur-logo img { width: 100%; height: 100%; object-fit: cover; }
.catalog-entrepreneur-copy { min-width: 0; display: grid; gap: 3px; }
.catalog-entrepreneur-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-entrepreneur-copy small { color: #6c7c87; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-entrepreneur-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed #cdd9df;
  border-radius: 18px;
  color: #627582;
  text-align: center;
}
@media (max-width: 980px) {
  .products-grid-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-entrepreneur-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ec-modal { padding: 0; align-items: end; }
  .ec-modal-panel,
  .ec-modal-panel-wide {
    width: 100%;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
  }
  .product-modal-layout { grid-template-columns: 1fr; min-height: 0; }
  .product-modal-visual { min-height: 190px; padding: 34px 24px 24px; }
  .product-modal-icon { width: 78px; height: 78px; border-radius: 22px; font-size: 2.2rem; }
  .product-modal-content { padding: 30px 24px 32px; }
  .product-modal-content h2,
  .catalog-modal-head h2 { font-size: 2.15rem; }
  .product-modal-actions .btn { width: 100%; }
  .catalog-modal-head { padding: 34px 24px 22px; }
  .catalog-modal-body { padding: 24px; }
  .store-catalog-list,
  .catalog-entrepreneur-list { grid-template-columns: 1fr; }
  .catalog-section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
  .products-grid-main { grid-template-columns: 1fr; }
  .store-catalog-item { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .store-catalog-item-icon { width: 46px; height: 46px; }
}
