/* ==========================================================
   PRECIOS · pestañas + tabla con medidas en "pastillas"
   Nota: base.css aplica `* { margin:0 !important; padding:0 !important }`,
   por eso aquí márgenes y paddings llevan !important.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --pr-bg: #fbf8f4;
  --pr-paper: #fdfcfa;
  --pr-white: #ffffff;
  --pr-text: #1f1d1b;
  --pr-muted: #8f877e;
  --pr-line: #e8e1d8;
  --pr-chip: #f5f1ec;
  --pr-accent: #a88a6c;
  --pr-active: #efe8df;
  --pr-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --pr-sans: 'Inter', system-ui, sans-serif;
}

.precios {
  background: var(--pr-bg);
  padding-bottom: 64px !important;
}

/* ---------- Título ---------- */
.precios-head {
  text-align: center;
  padding: 40px 16px 0 !important;
}

.precios-title {
  font-family: var(--pr-serif);
  font-weight: 400;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.05;
  color: var(--pr-text);
}

.precios-subwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 6px !important;
}

.precios-line {
  flex: 0 1 190px;
  height: 1px;
  background: #d9d0c5;
}

.precios-sub {
  font-family: var(--pr-sans);
  font-weight: 300;
  font-size: 20px;
  color: #9b9189;
  letter-spacing: .02em;
}

/* ---------- Contenedor ---------- */
.precios-wrap {
  max-width: 1360px;
  margin: 40px auto 0 !important;
  padding: 0 40px !important;
}

/* ---------- Pestañas ---------- */
.precios-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px !important;
}

.precios-tab {
  height: 64px;
  padding: 0 10px !important;
  border: 1px solid var(--pr-line);
  border-bottom: 2px solid transparent;
  border-radius: 3px 3px 0 0;
  background: var(--pr-paper);
  font-family: var(--pr-sans);
  font-size: 18px;
  color: #3a3632;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}

.precios-tab:hover { background: #f7f2ec; }

.precios-tab.is-active {
  background: var(--pr-active);
  border-bottom-color: var(--pr-accent);
  color: var(--pr-text);
}

.precios-tab:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: 2px; }

/* ---------- Panel ---------- */
.precios-panel {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 28px;
  padding: 26px !important;
  background: var(--pr-paper);
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(60, 45, 30, .06);
}

.precios-panel[hidden] { display: none; }

/* Imagen orientativa */
.precios-fig {
  display: flex;
  flex-direction: column;
  align-self: start;
  position: sticky;
  top: 20px;
  padding-right: 28px !important;
  border-right: 1px solid var(--pr-line);
}

.precios-fig__img {
  aspect-ratio: 1522 / 1033; /* proporción de fondoPrecio.jpg: se ve entera */
  background: #f1ece6;
  border-radius: 2px;
  overflow: hidden;
}

.precios-fig__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.precios-fig figcaption {
  margin-top: 16px !important;
  text-align: center;
  font-family: var(--pr-sans);
  font-size: 15px;
  color: var(--pr-muted);
}

/* Lista */
.precios-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.precio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 20px 8px 24px !important;
  background: var(--pr-white);
  border: 1px solid var(--pr-line);
  border-radius: 4px;
}

.precio-row__price {
  flex: 0 0 124px;
  padding-right: 14px !important;
  border-right: 1px solid var(--pr-line);
  font-family: var(--pr-sans);
  font-size: 25px;
  color: var(--pr-text);
  white-space: nowrap;
}

.precio-row__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 4px !important;
  flex: 1;
}

.precio-chip {
  display: inline-block;
  padding: 9px 14px !important;
  background: var(--pr-chip);
  border-radius: 4px;
  font-family: var(--pr-sans);
  font-size: 15px;
  color: #3a3632;
  white-space: nowrap;
}

.precio-row__marco {
  margin-left: auto !important;
  font-family: var(--pr-sans);
  font-size: 15px;
  color: var(--pr-accent);
  white-space: nowrap;
}

.precios-list--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}
.precios-list--2col .precios-notas,
.precios-list--2col .precios-empty { grid-column: 1 / -1; }
.precios-list--2col .precio-row__price { flex-basis: 118px; }

.precios-empty {
  font-family: var(--pr-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--pr-muted);
  padding: 20px 0 !important;
}

.precios-notas {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px !important;
  font-family: var(--pr-sans);
  font-size: 13px;
  color: var(--pr-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .precios-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .precios-panel { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
}

@media (max-width: 991px) {
  .precios-wrap { padding: 0 20px !important; }
  .precios-panel { grid-template-columns: 1fr; gap: 22px; padding: 18px !important; }
  .precios-fig { position: static; padding-right: 0 !important; border-right: 0; }
  .precios-fig__img { max-width: 560px; margin: 0 auto !important; width: 100%; }
}

@media (max-width: 575px) {
  .precios-head { padding-top: 24px !important; }
  .precios-line { display: none; }
  .precios-sub { font-size: 16px; }
  .precios-wrap { margin-top: 26px !important; padding: 0 12px !important; }

  /* Pestañas deslizables */
  .precios-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }
  .precios-tabs::-webkit-scrollbar { display: none; }
  .precios-tab {
    flex: 0 0 auto;
    height: 50px;
    padding: 0 18px !important;
    font-size: 16px;
    scroll-snap-align: start;
  }

  .precio-row {
    flex-wrap: wrap;
    padding: 12px 14px !important;
    gap: 10px;
  }
  .precios-list--2col { grid-template-columns: 1fr; }
  .precio-row__price { flex: 0 0 auto; border-right: 0; padding-right: 0 !important; font-size: 23px; }
  .precio-row__marco { margin-left: auto !important; }
  .precio-row__sizes { flex: 1 1 100%; order: 3; padding-left: 0 !important; gap: 8px; }
  .precio-chip { padding: 7px 12px !important; font-size: 14px; }
}
