:root {
  --vino: #95374e;
  --dorado: #c2a36f;
  --crema: #f8f3eb;
  --texto: #231815;
  --muted: #6d5a56;
  --borde: #e7d9bd;
  --sombra: 0 18px 40px rgba(35, 24, 21, 0.08);
  --radio-lg: 24px;
  --radio-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--texto);
  background:
    radial-gradient(circle at top left, #fff7e7 0%, rgba(255, 247, 231, 0) 34%),
    linear-gradient(180deg, #fffdf9 0%, #f7f1e9 100%);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 48px);
  background: linear-gradient(135deg, #7f243c 0%, #95374e 60%, #b04e67 100%);
  color: #fff8f0;
  border-bottom: 8px solid var(--dorado);
}

.contacto {
  max-width: 720px;
  line-height: 1.55;
}

.contacto p {
  margin: 0 0 8px;
}

.titulo-contacto {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffe4af;
}

.logo-wrap {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 12px;
  backdrop-filter: blur(6px);
}

.logo {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  padding: 20px 4px 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--vino);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  color: var(--vino);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
}

.hero-copy {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin: 24px 0 20px;
}

.source-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 8px;
}

.source-tab {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--vino);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--sombra);
}

.source-tab.is-active {
  background: linear-gradient(135deg, #95374e 0%, #7e223a 100%);
  color: #fff;
  border-color: transparent;
}

.source-tab:focus-visible {
  outline: 3px solid rgba(149, 55, 78, 0.2);
}

.search-wrap {
  display: grid;
  gap: 8px;
}

.search-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--vino);
}

.search {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--borde);
  background: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  color: var(--texto);
  box-shadow: var(--sombra);
}

.search:focus {
  outline: 2px solid rgba(149, 55, 78, 0.2);
  border-color: var(--vino);
}

.meta {
  display: flex;
  justify-content: flex-end;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--borde);
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--sombra);
}

.feedback {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #e6c3c9;
  background: #fff3f5;
  color: #7a2238;
  line-height: 1.6;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 20px 58px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--vino) 0%, var(--dorado) 100%);
}

.puesto {
  margin: 8px 0 14px;
  color: var(--vino);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.detalle {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.label {
  color: var(--texto);
  font-weight: 700;
}

.id {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--crema);
  color: var(--vino);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.empty {
  padding: 28px;
  border-radius: var(--radio-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--borde);
  text-align: center;
  color: var(--muted);
  box-shadow: var(--sombra);
}

.actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-more {
  min-width: 220px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #95374e 0%, #7e223a 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(126, 34, 58, 0.22);
}

.btn-more:hover {
  filter: brightness(1.04);
}

.btn-more:focus-visible {
  outline: 3px solid rgba(149, 55, 78, 0.22);
}

@media (max-width: 760px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .meta {
    justify-content: stretch;
  }

  .status {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .page {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .card {
    padding-inline: 16px;
  }
}

