:root {
  --bg: #f4ecdf;
  --bg-strong: #f8f4ec;
  --surface: rgba(255, 249, 238, 0.88);
  --surface-strong: #fffaf1;
  --line: rgba(38, 52, 63, 0.12);
  --ink: #1f2a33;
  --muted: #5e6a72;
  --teal: #1b6f77;
  --teal-dark: #0f4f55;
  --sand: #da9a55;
  --moss: #5d7a3e;
  --coral: #c86149;
  --rust: #a44926;
  --shadow: 0 22px 48px rgba(31, 42, 51, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(218, 154, 85, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(27, 111, 119, 0.2), transparent 24%),
    linear-gradient(180deg, #f6efe3 0%, #efe5d6 100%);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(244, 236, 223, 0.72);
  border-bottom: 1px solid rgba(31, 42, 51, 0.08);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--sand));
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(27, 111, 119, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logout-form {
  margin: 0;
}

.logout-button {
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 42, 51, 0.9);
  color: white;
  cursor: pointer;
  font: inherit;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mini-button {
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.mini-button-approve {
  background: rgba(93, 122, 62, 0.18);
  color: var(--moss);
}

.mini-button-reject {
  background: rgba(200, 97, 73, 0.16);
  color: var(--coral);
}

.site-nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(31, 42, 51, 0.08);
}

.hero,
.search-section,
.insights-section,
.offers-section,
.categories-section,
.catalog-section,
.detail-section,
.related-section {
  padding: 2rem 0 4rem;
}

.hero {
  padding-top: 4rem;
}

.hero-grid,
.list-hero-grid,
.catalog-layout,
.detail-layout,
.professional-layout,
.auth-layout {
  display: grid;
  gap: 1.6rem;
}

.hero-grid,
.list-hero-grid {
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
}

.hero h1,
.list-hero h1,
.detail-hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy,
.section-copy,
.signal-card p,
.detail-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-actions,
.section-heading,
.category-card-meta,
.chip-row,
.offer-meta,
.badge-row,
.quick-filters,
.two-cols,
.check-grid,
.footer-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.button {
  padding: 0.95rem 1.35rem;
  border: 0;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 16px 32px rgba(27, 111, 119, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(31, 42, 51, 0.08);
}

.text-link {
  color: var(--teal);
}

.hero-panel,
.signal-card,
.search-dock,
.insight-card,
.category-card,
.filters-panel,
.detail-card,
.booking-card,
.empty-state {
  background: var(--surface);
  border: 1px solid rgba(31, 42, 51, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel,
.filters-panel,
.detail-card,
.booking-card,
.empty-state {
  padding: 1.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-metrics article,
.compact-metrics article {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(31, 42, 51, 0.08);
}

.hero-metrics strong,
.signal-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.signal-card h2,
.detail-card h2,
.booking-card h2 {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
}

.search-dock {
  padding: 1rem;
}

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

.tab-button {
  position: relative;
  padding: 1rem 1.1rem;
  border: 0;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(236, 227, 213, 0.84));
  color: var(--muted);
  box-shadow:
    inset 0 -1px 0 rgba(31, 42, 51, 0.08),
    0 8px 18px rgba(31, 42, 51, 0.05);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.tab-button:hover {
  transform: translateY(-1px);
}

.tab-button.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 244, 233, 0.98));
  box-shadow:
    inset 0 0 0 2px rgba(27, 111, 119, 0.22),
    0 14px 28px rgba(31, 42, 51, 0.08);
}

.tab-button.is-active::after {
  content: "";
  position: absolute;
  inset: auto 16px -6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sand), var(--teal));
}

.tab-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 243, 233, 0.88));
  border: 1px solid rgba(31, 42, 51, 0.08);
}

.tab-panel h3,
.section-heading h2,
.offer-header h3 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.tab-panel-copy p,
.offer-summary,
.provider-tag,
.offer-price-box p,
.offer-price-box span,
.detail-rating-box span {
  color: var(--muted);
}

.search-form,
.filter-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(31, 42, 51, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.quick-filters label,
.check-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.insight-grid,
.category-grid,
.info-grid {
  display: grid;
  gap: 1rem;
}

.insight-grid,
.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card {
  padding: 1.35rem;
}

.category-card {
  padding: 1.4rem;
  min-height: 230px;
}

.category-card-vacaciones {
  background: linear-gradient(135deg, rgba(27, 111, 119, 0.13), rgba(255, 249, 238, 0.92));
}

.category-card-rural {
  background: linear-gradient(135deg, rgba(93, 122, 62, 0.13), rgba(255, 249, 238, 0.92));
}

.category-card-fin-de-semana {
  background: linear-gradient(135deg, rgba(200, 97, 73, 0.13), rgba(255, 249, 238, 0.92));
}

.category-card-viaje-relampago {
  background: linear-gradient(135deg, rgba(218, 154, 85, 0.18), rgba(255, 249, 238, 0.92));
}

.catalog-layout,
.detail-layout,
.professional-layout {
  align-items: start;
}

.catalog-layout {
  grid-template-columns: 290px minmax(0, 1fr);
}

.detail-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.professional-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.auth-layout {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.professional-layout .insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-results,
.detail-main {
  display: grid;
  gap: 1.2rem;
}

.offer-stack {
  display: grid;
  gap: 1rem;
}

.offer-card {
  background: rgba(255, 249, 238, 0.86);
  border: 1px solid rgba(31, 42, 51, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.offer-card-link {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 280px;
}

.offer-media {
  position: relative;
  min-height: 100%;
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-media-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.offer-media-overlay span,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 42, 51, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-success {
  background: rgba(103, 159, 78, 0.12);
  color: var(--moss);
}

.badge-dark {
  background: rgba(31, 42, 51, 0.9);
  color: white;
}

.offer-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1rem;
  padding: 1.4rem;
}

.catalog-layout .offer-card-link {
  grid-template-columns: 280px minmax(0, 1fr);
}

.catalog-layout .offer-body {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-layout .offer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.catalog-layout .offer-header h3 {
  font-size: 1.35rem;
  line-height: 1.05;
}

.offer-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.offer-header h3 {
  font-size: 1.55rem;
}

.rating-pill,
.detail-rating-box {
  display: inline-grid;
  gap: 0.15rem;
  align-content: start;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(27, 111, 119, 0.08);
  min-width: 94px;
  text-align: center;
}

.rating-pill strong,
.detail-rating-box strong {
  font-size: 1.5rem;
}

.offer-meta span {
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

.admin-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(31, 42, 51, 0.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(31, 42, 51, 0.08);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(31, 42, 51, 0.08);
}

.status-pending {
  background: rgba(218, 154, 85, 0.18);
  color: var(--rust);
}

.status-approved,
.status-active {
  background: rgba(93, 122, 62, 0.18);
  color: var(--moss);
}

.status-rejected,
.status-suspended {
  background: rgba(200, 97, 73, 0.16);
  color: var(--coral);
}

.offer-price-box {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding-left: 1rem;
  border-left: 1px dashed rgba(31, 42, 51, 0.12);
}

.catalog-layout .offer-price-box {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 0.6rem 1rem;
  padding-left: 0;
  padding-top: 1rem;
  border-left: 0;
  border-top: 1px dashed rgba(31, 42, 51, 0.12);
}

.catalog-layout .provider-tag {
  grid-column: 1 / -1;
}

.catalog-layout .offer-price-box p {
  margin: 0;
}

.catalog-layout .offer-cta {
  justify-self: end;
}

.offer-price-box strong,
.detail-price {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.provider-tag {
  margin: 0;
  font-size: 0.86rem;
}

.offer-cta {
  margin-top: 0.35rem;
  color: var(--teal);
  font-weight: 700;
}

.list-hero,
.detail-hero {
  padding: 3.4rem 0 2rem;
}

.filters-panel {
  position: sticky;
  top: 92px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.detail-gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.detail-list {
  margin-top: 0.8rem;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.booking-card {
  position: sticky;
  top: 92px;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--teal);
  font-weight: 700;
}

.alert-card {
  border-color: rgba(164, 73, 25, 0.22);
}

.success-card {
  border-color: rgba(93, 122, 62, 0.22);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  border-radius: 20px;
  background: #1f2a33;
  color: #f7f3eb;
}

.site-footer {
  border-top: 1px solid rgba(31, 42, 51, 0.08);
}

.footer-row {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1060px) {
  .hero-grid,
  .list-hero-grid,
  .catalog-layout,
  .detail-layout,
  .professional-layout,
  .offer-card-link,
  .offer-body,
  .detail-gallery,
  .insight-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel,
  .booking-card {
    position: static;
  }

  .offer-price-box {
    padding-left: 0;
    border-left: 0;
    border-top: 1px dashed rgba(31, 42, 51, 0.12);
    padding-top: 1rem;
  }

  .form-grid,
  .tab-strip,
  .hero-metrics,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-row,
  .site-nav,
  .section-heading,
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    width: 100%;
  }

  .logout-form,
  .logout-button {
    width: 100%;
  }

  .hero,
  .search-section,
  .catalog-section,
  .offers-section,
  .insights-section,
  .categories-section,
  .detail-section {
    padding: 1.4rem 0 2.5rem;
  }

  .form-grid,
  .tab-strip,
  .hero-metrics,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .offer-body,
  .tab-panel,
  .hero-panel,
  .filters-panel,
  .detail-card,
  .booking-card {
    padding: 1.15rem;
  }

  .offer-header {
    flex-direction: column;
  }
}
