/* =====================================================
   La Kapsula – Catálogo público
   Catálogo + tabla de talles
   Mobile corregido: cards sin superposición y CTA clickeable
   ===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.lk-public-page {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.lk-public-page img {
  max-width: 100%;
}

/* =====================================================
   MAIN / HERO
   ===================================================== */

.lk-public-main {
  width: 100%;
  padding: 28px 16px 58px;
  overflow-x: hidden;
}

.lk-public-container {
  width: min(1320px, 100%);
  max-width: 100%;
  margin: 0 auto;
}

.lk-catalog-hero {
  margin-bottom: 26px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.lk-catalog-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 24px;
}

.lk-catalog-hero-content {
  min-width: 0;
}

.lk-catalog-hero-badge {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 763 / 515;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-mask-image: url("../img/kuality-badge.svg");
  mask-image: url("../img/kuality-badge.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: drop-shadow(0 12px 24px rgba(214, 178, 94, 0.14));
  pointer-events: none;
}

.lk-catalog-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--border-brand);
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lk-catalog-hero h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lk-catalog-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
}

/* =====================================================
   CARDS CATÁLOGO
   ===================================================== */

.lk-prendas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 26px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.lk-prenda-card {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  min-height: 100%;
  border-radius: 28px;
  padding: 16px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(214, 178, 94, 0.14),
      transparent 38%
    ),
    linear-gradient(180deg, rgba(31, 41, 55, 0.88), rgba(13, 18, 31, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.lk-prenda-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(214, 178, 94, 0.24),
      transparent 34%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.08),
      transparent 30%
    );
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.lk-prenda-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 178, 94, 0.34);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(214, 178, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lk-prenda-card:hover::before {
  opacity: 1;
}

.lk-prenda-media {
  position: relative;
  z-index: 1;
  height: 285px;
  flex: 0 0 auto;
  margin-bottom: 18px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 44%,
      rgba(214, 178, 94, 0.18),
      transparent 42%
    ),
    radial-gradient(
      circle at 50% 88%,
      rgba(253, 253, 253, 0.26),
      transparent 46%
    ),
    linear-gradient(
      180deg,
      rgba(216, 216, 216, 0.065),
      rgba(255, 255, 255, 0.733)
    );
  padding: 18px;
}

.lk-prenda-media::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 26px;
  z-index: 1;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  filter: blur(16px);
  opacity: 0.68;
  pointer-events: none;
}

.lk-prenda-img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 24px rgba(109, 109, 109, 0.42));
  transition: transform 0.24s ease;
  pointer-events: none;
}

.lk-prenda-card:hover .lk-prenda-img {
  transform: scale(1.035);
}

.lk-prenda-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.lk-prenda-info {
  min-width: 0;
}

.lk-prenda-info h2 {
  margin: 0;
  font-family: var(--font-heading, system-ui);
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  overflow-wrap: anywhere;
}

.lk-prenda-descripcion {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.42;
}

.lk-prenda-precio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 86px;
  padding: 16px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #efd178 0%, #d4ab4d 50%, #b78422 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 30px rgba(214, 178, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lk-prenda-precio span {
  margin: 0;
  font-family: var(--font-heading, system-ui);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(20, 16, 8, 0.58);
}

.lk-prenda-precio strong {
  margin: 0;
  font-family: var(--font-heading, system-ui);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #10130d;
}

/* =====================================================
   BOTÓN WHATSAPP CARD
   ===================================================== */

.lk-catalog-whatsapp {
  position: relative;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(214, 178, 94, 0.28);
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.lk-catalog-whatsapp i {
  color: var(--brand);
  font-size: 1.05rem;
  pointer-events: none;
}

.lk-catalog-whatsapp:hover {
  background: rgba(214, 178, 94, 0.12);
  border-color: rgba(214, 178, 94, 0.55);
  color: rgba(255, 255, 255, 0.96) !important;
  transform: translateY(-1px);
}

/* =====================================================
   EMPTY STATE
   ===================================================== */

.lk-catalog-empty {
  padding: 34px 20px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.lk-catalog-empty i {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 2.2rem;
}

.lk-catalog-empty h3 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
}

.lk-catalog-empty p {
  margin: 0;
  color: var(--text-muted);
}

/* =====================================================
   FLOATING ACTIONS
   ===================================================== */

.lk-public-floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.lk-public-float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-height: 48px;
  padding: 10px 13px 10px 16px;
  border-radius: 999px;
  color: var(--brand-text) !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(214, 178, 94, 0.22);
  font-family: var(--font-heading);
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.lk-public-float-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.lk-public-float-btn i {
  width: 24px;
  text-align: center;
  font-size: 1.15rem;
  pointer-events: none;
}

.lk-public-float-btn--whatsapp {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--brand-text) !important;
}

/* =====================================================
   FOOTER
   ===================================================== */

.lk-public-footer {
  padding: 0 16px 18px;
}

.lk-public-footer-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: rgba(10, 16, 28, 0.62);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  text-align: center;
}

.lk-public-footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

/* =====================================================
   RESPONSIVE CATÁLOGO
   ===================================================== */

@media (max-width: 992px) {
  .lk-public-main {
    padding: 22px 12px 72px;
  }

  .lk-catalog-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lk-catalog-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lk-catalog-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .lk-catalog-hero-badge {
    width: 240px;
    margin: 0 auto;
  }

  .lk-prendas-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
  }

  .lk-prenda-media {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .lk-public-main {
    padding: 16px 10px 112px;
  }

  .lk-public-container {
    width: 100%;
    max-width: 100%;
  }

  .lk-catalog-hero {
    margin-bottom: 18px;
    padding: 18px 15px;
    border-radius: 18px;
  }

  .lk-catalog-hero-inner {
    gap: 16px;
  }

  .lk-catalog-kicker {
    font-size: 0.7rem;
  }

  .lk-catalog-hero h2 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 0.95;
  }

  .lk-catalog-hero p {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .lk-catalog-hero-badge {
    width: 190px;
  }

  .lk-prendas-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .lk-prenda-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 14px;
    border-radius: 24px;
    transform: none !important;
  }

  .lk-prenda-card:hover {
    transform: none !important;
  }

  .lk-prenda-card:hover .lk-prenda-img {
    transform: none !important;
  }

  .lk-prenda-media {
    height: 235px;
    max-height: 235px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .lk-prenda-media::after {
    bottom: 20px;
    height: 16px;
  }

  .lk-prenda-content {
    gap: 12px;
  }

  .lk-prenda-info h2 {
    font-size: 1.15rem;
    line-height: 1.12;
  }

  .lk-prenda-descripcion {
    margin-top: 6px;
    font-size: 0.88rem;
  }

  .lk-prenda-precio {
    min-height: 68px;
    padding: 13px 14px;
    border-radius: 18px;
  }

  .lk-prenda-precio strong {
    font-size: 1.55rem;
  }

  .lk-catalog-whatsapp {
    min-height: 48px;
    padding: 13px 12px;
    border-radius: 15px;
    font-size: 0.88rem;
  }

  .lk-public-floating-actions {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .lk-public-float-btn {
    width: 48px;
    height: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }

  .lk-public-float-btn span {
    display: none;
  }

  .lk-public-float-btn i {
    width: auto;
  }
}

@media (max-width: 390px) {
  .lk-public-main {
    padding-inline: 8px;
  }

  .lk-catalog-hero {
    padding: 16px 13px;
  }

  .lk-prenda-card {
    padding: 12px;
    border-radius: 22px;
  }

  .lk-prenda-media {
    height: 218px;
    max-height: 218px;
  }

  .lk-prenda-precio strong {
    font-size: 1.42rem;
  }
}

/* =====================================================
   TABLA DE TALLES
   ===================================================== */

.lk-size-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lk-size-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.lk-size-card-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(214, 178, 94, 0.12),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.035);
}

.lk-size-card-header h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.lk-size-card-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.lk-size-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lk-size-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.lk-size-table thead th {
  padding: 12px 14px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}

.lk-size-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-weight: 650;
}

.lk-size-table tbody tr:hover {
  background: rgba(214, 178, 94, 0.07);
}

.lk-size-table tbody tr:last-child td {
  border-bottom: 0;
}

.lk-size-table tbody td:first-child {
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-heading);
  font-weight: 900;
}

.lk-size-note {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid var(--border-brand);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.lk-size-note i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.15rem;
}

.lk-size-note h3 {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 850;
}

.lk-size-note p {
  margin: 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
}

@media (max-width: 1199px) {
  .lk-size-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .lk-size-guide {
    grid-template-columns: 1fr;
  }

  .lk-size-note {
    flex-direction: column;
  }
}

/* =====================================================
   TABLA DE TALLES - UNA SOLA CARD A TODO EL ANCHO
   ===================================================== */

.lk-size-guide.lk-size-guide-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.lk-size-guide.lk-size-guide-single .lk-size-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

.lk-size-guide.lk-size-guide-single .lk-size-table-wrapper {
  width: 100%;
}

.lk-size-guide.lk-size-guide-single .lk-size-table {
  width: 100%;
  min-width: 0;
}

.lk-size-guide.lk-size-guide-single .lk-size-table th,
.lk-size-guide.lk-size-guide-single .lk-size-table td {
  text-align: center;
}

.lk-size-guide.lk-size-guide-single .lk-size-table th:first-child,
.lk-size-guide.lk-size-guide-single .lk-size-table td:first-child {
  text-align: left;
  width: 120px;
}

@media (max-width: 700px) {
  .lk-size-guide.lk-size-guide-single .lk-size-table {
    min-width: 620px;
  }
}
