:root {
  color-scheme: dark;
  --bg: #0b1026;
  --surface: rgba(17, 24, 58, 0.84);
  --surface-strong: rgba(10, 15, 38, 0.96);
  --surface-soft: rgba(11, 16, 38, 0.72);
  --text: #f7f8ff;
  --muted: #b7c0ff;
  --accent: #5b3df5;
  --accent-soft: rgba(91, 61, 245, 0.16);
  --gold: #ffd54a;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(91, 61, 245, 0.16), transparent 32%),
              radial-gradient(circle at bottom right, rgba(255, 213, 74, 0.12), transparent 22%),
              linear-gradient(180deg, #060b1f 0%, #0b1026 100%);
}

* {
  box-sizing: border-box;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, a {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(11, 16, 38, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: auto;
  height: 28px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #5b3df5, #ffd54a);
  color: #08102c;
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.brand-tag {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.header-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.theme-toggle {
  display: inline-flex;
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 20px;
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(91, 61, 245, 0.18);
}

.button-primary {
  background: linear-gradient(135deg, #5b3df5, #7d55ff);
  color: #fff;
}

.button-accent {
  background: linear-gradient(135deg, rgba(255, 213, 74, 0.95), rgba(255, 235, 159, 0.96));
  color: #09122d;
}

.button-secondary,
.button-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.button-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: transparent;
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
  background: #1ebe5e;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hero {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: center;
  margin: 38px 0 42px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9aa8ff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.77rem;
}

.hero h1 {
  margin: 0 0 20px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.hero-text {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 680px;
  color: #d7deff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  position: relative;
  min-height: 300px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(26px);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 34px 28px;
}

.stat-value {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
}

.stat-label {
  margin: 0;
  color: #d7deff;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.filters-panel {
  padding: 28px 26px;
  border-radius: 28px;
  background: rgba(11, 16, 38, 0.8);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.filter-summary {
  color: var(--muted);
  font-size: 0.95rem;
  min-width: 120px;
  text-align: right;
}


.icon-button {
  min-width: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.select-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.select-row label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.select-row select {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 16, 38, 0.92);
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  accent-color: #5b3df5;
}

.select-row select option {
  background: rgba(11, 16, 38, 0.96);
  color: var(--text);
}


.review-section {
  margin-top: 30px;
}

.review-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(91, 61, 245, 0.14), transparent 55%);
  pointer-events: none;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd54a;
  font-weight: 700;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #fff;
  background: rgba(91, 61, 245, 0.9);
}

.badge.language {
  background: rgba(255, 213, 74, 0.95);
  color: #08102c;
}

.review-text {
  margin: 0;
  line-height: 1.85;
  color: #e6e8ff;
  z-index: 1;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 1;
}

.review-actions button,
.review-actions a {
  flex: 1 1 140px;
}

.review-actions .button {
  width: 100%;
}

.floating-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  border: none;
  border-radius: 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #5b3df5, #ffd54a);
  color: #08102c;
  font-weight: 700;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.site-footer {
  margin-top: 42px;
  padding: 30px 28px;
  border-radius: 28px;
  background: rgba(11, 16, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(20px);
  min-width: 240px;
  max-width: 92%;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(9, 18, 45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px 12px 26px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }

  .header-actions {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card-body {
    padding: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .select-row {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-summary {
    text-align: left;
  }

  .review-grid {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 22px;
  }
}

  .filter-summary {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .button,
  .theme-toggle {
    width: 100%;
  }

  .site-header {
    padding: 16px 14px;
  }

  .header-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-card-body {
    padding: 22px 20px;
  }

  .review-actions {
    display: grid;
  }

  .review-card {
    padding: 18px;
  }

  .site-footer {
    padding: 22px 18px;
  }
}

body.theme-light {
  color: #09122d;
  background: linear-gradient(180deg, #f8f7ff 0%, #e9e6ff 100%);
}

body.theme-light .site-header,
body.theme-light .filters-panel,
body.theme-light .hero-card,
body.theme-light .site-footer,
body.theme-light .review-card,
body.theme-light .toast {
  background: rgba(255, 255, 255, 0.8);
  color: #10132b;
  border-color: rgba(16, 19, 43, 0.12);
}

body.theme-light .brand-name,
body.theme-light .brand-tag,
body.theme-light .hero-text,
body.theme-light .panel-header h2,
body.theme-light .footer-title,
body.theme-light .site-footer p,
body.theme-light .filter-summary,
body.theme-light .review-text,
body.theme-light .select-row label,
body.theme-light .review-card::before {
  color: #10132b;
}

body.theme-light .select-row select,
body.theme-light .icon-button,
body.theme-light .button-secondary,
body.theme-light .button-muted {
  background: rgba(255, 255, 255, 0.96);
  color: #10132b;
}
  background: rgba(91, 61, 245, 0.12);
}

body.theme-light .badge {
  background: rgba(91, 61, 245, 0.9);
}

body.theme-light .badge.language {
  background: rgba(255, 213, 74, 0.95);
}

body.theme-light .button-primary,
body.theme-light .button-accent,
body.theme-light .floating-button {
  box-shadow: 0 16px 28px rgba(91, 61, 245, 0.18);
}

body.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.96);
}
