/**
 * THE LOOK Manager Relleno — control de huecos y ofertas.
 */

:root {
  --re-ink: #111111;
  --re-muted: #6b6568;
  --re-line: #eadfe3;
  --re-soft: #faf6f7;
  --re-white: #ffffff;
  --re-accent: #c45c7a;
  --re-accent-deep: #9b3d5a;
  --re-ok: #0f7a5a;
  --re-warn: #b45309;
  --re-font-ui: "Montserrat", system-ui, sans-serif;
  --re-font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
}

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

html,
body.relleno {
  margin: 0;
  min-height: 100%;
  background: var(--re-soft);
  color: var(--re-ink);
  font-family: var(--re-font-ui);
}

a {
  color: var(--re-accent-deep);
}

.relleno-acceso {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.15rem;
  background: var(--re-white);
}

.relleno-acceso__box {
  width: min(28rem, 100%);
  text-align: center;
}

.relleno-acceso__logo img {
  width: min(240px, 78vw);
  display: block;
  margin: 0 auto 0.85rem;
}

.relleno-acceso__label {
  margin: 0 0 1.5rem;
  font-family: var(--re-font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--re-accent);
}

.relleno-acceso form {
  text-align: left;
}

.relleno-field {
  margin-bottom: 0.9rem;
}

.relleno-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--re-muted);
}

.relleno-field input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--re-line);
  border-radius: 8px;
  font: inherit;
  background: var(--re-white);
}

.relleno-field input:focus {
  outline: 2px solid var(--re-accent);
  outline-offset: 1px;
}

.relleno-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--re-accent-deep);
  border-radius: 8px;
  background: var(--re-accent);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.relleno-btn--ghost {
  width: auto;
  background: transparent;
  color: var(--re-ink);
  border-color: var(--re-line);
}

.relleno-btn--sm {
  width: auto;
  padding: 0.42rem 0.7rem;
  font-size: 0.7rem;
}

.relleno-btn.is-active {
  background: var(--re-accent-deep);
  border-color: var(--re-accent-deep);
  color: #fff;
}

.relleno-btn--wa {
  background: #128c7e;
  border-color: #0e6e63;
}

.relleno-flash {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
}

.relleno-flash li {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--re-line);
  border-radius: 8px;
  background: var(--re-soft);
  font-size: 0.85rem;
}

.relleno-hint {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--re-muted);
}

.relleno-centro-tag {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--re-accent-deep);
}

.relleno-hub-grid {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.relleno-hub-card {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--re-line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.relleno-shell {
  min-height: 100vh;
}

.relleno-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  background: var(--re-white);
  border-bottom: 1px solid var(--re-line);
}

.relleno-top__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.relleno-top__brand img {
  height: 52px;
  width: auto;
}

.relleno-top__word {
  font-family: var(--re-font-display);
  font-size: 1.15rem;
  color: var(--re-accent);
}

.relleno-top__nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
}

.relleno-top__nav a {
  text-decoration: none;
  color: var(--re-muted);
  font-weight: 600;
}

.relleno-top__nav a:hover,
.relleno-top__nav a.is-active {
  color: var(--re-ink);
}

.relleno-main {
  padding: 1.25rem 1.35rem 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.relleno-h1 {
  margin: 0 0 0.2rem;
  font-family: var(--re-font-display);
  font-size: 1.85rem;
  font-weight: 500;
}

.relleno-lead {
  margin: 0 0 1.1rem;
  color: var(--re-muted);
  font-size: 0.92rem;
}

.relleno-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 1.15rem;
}

.relleno-toolbar form {
  display: flex;
  gap: 0.45rem;
  align-items: end;
}

.relleno-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.relleno-kpi {
  background: var(--re-white);
  border: 1px solid var(--re-line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.relleno-kpi span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--re-muted);
}

.relleno-kpi strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.relleno-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.relleno-panel {
  background: var(--re-white);
  border: 1px solid var(--re-line);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.1rem;
}

.relleno-panel h2 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
}

.relleno-panel p.sub {
  margin: 0 0 0.85rem;
  color: var(--re-muted);
  font-size: 0.82rem;
}

.relleno-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.relleno-table th,
.relleno-table td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--re-line);
  vertical-align: top;
}

.relleno-table th {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--re-muted);
  font-weight: 600;
}

.relleno-empty {
  padding: 1.1rem 0.2rem;
  color: var(--re-muted);
}

.relleno-badge {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.relleno-badge--alta {
  background: #fde8ee;
  color: var(--re-accent-deep);
}

.relleno-badge--media {
  background: #fff4e0;
  color: var(--re-warn);
}

.relleno-badge--baja {
  background: var(--re-soft);
  color: var(--re-muted);
}

.relleno-badge--ok {
  background: #e6f6ef;
  color: var(--re-ok);
}

.relleno-tramo {
  margin-bottom: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--re-line);
}

.relleno-tramo:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.relleno-tramo__head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
}

.relleno-tramo__head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.relleno-meter {
  height: 7px;
  border-radius: 99px;
  background: #f0e6ea;
  overflow: hidden;
  margin: 0.4rem 0 0.55rem;
}

.relleno-meter span {
  display: block;
  height: 100%;
  background: var(--re-accent);
}

.relleno-hueco {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.28rem 0;
}

.relleno-hueco strong {
  font-variant-numeric: tabular-nums;
}

.relleno-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.relleno-card {
  border: 1px solid var(--re-line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: var(--re-soft);
}

.relleno-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.relleno-card .meta {
  margin: 0 0 0.45rem;
  color: var(--re-muted);
  font-size: 0.78rem;
}

.relleno-card ul {
  margin: 0 0 0.65rem;
  padding-left: 1.05rem;
  font-size: 0.8rem;
}

.relleno-card__oferta {
  margin: 0 0 0.7rem;
  font-size: 0.84rem;
}

.relleno-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.relleno-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.relleno-chip {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--re-line);
  font-size: 0.75rem;
}

.relleno-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.relleno-plan__item {
  display: block;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--re-line);
  border-radius: 12px;
  background: var(--re-soft);
  text-decoration: none;
  color: inherit;
}

.relleno-plan__item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.relleno-plan__item span {
  color: var(--re-muted);
  font-size: 0.8rem;
}

.relleno-cards--wide {
  grid-template-columns: 1fr;
}

.relleno-card--pack {
  background: #fff;
}

.relleno-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.relleno-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.relleno-creativo {
  margin: 0;
}

.relleno-creativo img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--re-line);
  background: #1a1014;
}

.relleno-creativo figcaption {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--re-muted);
}

.relleno-copy-label {
  display: block;
  margin: 0.55rem 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--re-muted);
}

.relleno-copy {
  width: 100%;
  border: 1px solid var(--re-line);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.8rem;
  background: var(--re-soft);
  resize: vertical;
}

@media (max-width: 960px) {
  .relleno-kpis,
  .relleno-grid,
  .relleno-cards,
  .relleno-plan,
  .relleno-card__body {
    grid-template-columns: 1fr;
  }

  .relleno-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
