:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --bg: #0a0a0a;
  --surface: #111;
  --surface2: #1a1a1a;
  --text: #e8e0d0;
  --muted: #888;
  --line: rgba(201, 168, 76, 0.25);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, sans-serif;
  transition: 0.3s;
  background-color: 0.3s;
  overflow-x: hidden;
}
.bg-pattern {
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(201, 168, 76, 0.03) 40px,
    rgba(201, 168, 76, 0.03) 80px
  );
  pointer-events: none;
}
.container {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin: auto;
  padding: 40px 20px 60px;
}
.theme-toggle {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface2);
  color: var(--gold);
  font-size: 1.15rem;
  cursor: pointer;
}
.header {
  text-align: center;
  margin-bottom: 34px;
  animation: fadeDown 0.8s ease both;
}
.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}
.avatar-wrap:before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--gold),
    transparent,
    var(--gold-light)
  );
  animation: spin 5s linear infinite;
}
.avatar {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  object-fit: cover;
}
.creci-badge {
  position: absolute;
  z-index: 2;
  right: 2px;
  bottom: 5px;
  padding: 4px 7px;
  border-radius: 20px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.55rem;
  font-weight: 700;
}
.header h1 {
  font:
    600 2.1rem "Cormorant Garamond",
    serif;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  color: transparent;
}
.tagline {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 22px 0 0;
  padding: 19px 12px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(201, 168, 76, 0.035);
}
.stat {
  flex: 1;
  text-align: center;
}
.stat strong {
  display: block;
  color: var(--gold);
  font:
    700 1.75rem "Cormorant Garamond",
    serif;
}
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.52rem;
  line-height: 1.35;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.divider {
  width: 60px;
  height: 1px;
  margin: 0 auto 30px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  margin-bottom: 10px;
  padding: 14px 20px;
  border-radius: 2px;
  border: 0;
  text-decoration: none;
  font:
    600 0.75rem Montserrat,
    sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: 0.3s;
  animation: fadeUp 0.6s ease both;
}
.btn:hover {
  transform: translateX(4px);
}
.btn i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-style: normal;
  font-size: 1.15rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a;
}
.btn-primary i {
  background: rgba(0, 0, 0, 0.15);
}
.btn-outline {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.btn-outline i {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.section-title {
  margin: 35px 0 15px;
  text-align: center;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.featured-card {
  display: block;
  margin-bottom: 10px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 2px;
  background: var(--surface2);
  overflow: hidden;
  text-decoration: none;
  transition: 0.3s;
  animation: fadeUp 0.8s ease both;
}
.featured-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.featured-card img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  filter: brightness(0.86);
}
.card-body {
  padding: 15px 16px;
}
.card-body small {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.card-body h2 {
  color: var(--text);
  font:
    600 1.2rem "Cormorant Garamond",
    serif;
}
.card-body strong {
  display: block;
  margin-top: 5px;
  color: var(--gold-light);
  font-size: 0.82rem;
}
.map-section {
  margin-top: 35px;
}
.map-wrap {
  height: 200px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.5) invert(0.9) hue-rotate(160deg);
}
.map-info {
  display: flex;
  gap: 9px;
  padding: 13px 16px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-top: 0;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.7rem;
}
.map-info span {
  color: var(--gold);
}
.route-link {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--gold);
  text-align: center;
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
footer {
  margin-top: 40px;
  color: color-mix(in srgb, var(--muted) 45%, transparent);
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.whatsapp {
  position: fixed;
  z-index: 15;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 1.45rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
body.light {
  --gold: #805b0e;
  --gold-light: #9a7019;
  --bg: #faf7f0;
  --surface: #fff;
  --surface2: #eee5d5;
  --text: #201a12;
  --muted: #5d554b;
  --line: rgba(105, 74, 15, 0.38);
}
body.light .btn-primary {
  background: linear-gradient(135deg, #d0aa4f, #e2c36d);
  color: #17120a;
}
body.light .creci-badge {
  background: #d0aa4f;
}
body.light .map-wrap iframe {
  filter: grayscale(0.2);
}
.schedule {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}
.schedule::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(7px);
}
.close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}
.dialog-label {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.schedule h2 {
  margin: 8px 0;
  font:
    600 2.1rem "Cormorant Garamond",
    serif;
}
.dialog-copy {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.schedule form {
  display: grid;
  gap: 15px;
}
.schedule label {
  display: grid;
  gap: 7px;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.schedule input,
.schedule select,
.schedule textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface2);
  color: var(--text);
  font:
    400 0.85rem Montserrat,
    sans-serif;
  text-transform: none;
  letter-spacing: 0;
  outline: 0;
}
.schedule input:focus,
.schedule select:focus,
.schedule textarea:focus {
  border-color: var(--gold);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.submit {
  margin-top: 5px;
  margin-bottom: 0;
  justify-content: flex-start;
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 900px) {
  .container {
    padding-top: 58px;
  }
  .featured-card img {
    height: 200px;
  }
}
@media (max-width: 520px) {
  .container {
    padding-top: 34px;
  }
  .theme-toggle {
    top: 12px;
    right: 12px;
  }
  .schedule {
    padding: 34px 20px 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Light theme: stronger contrast for small copy, controls and gold details. */
body.light {
  --gold: #765300;
  --gold-light: #8a6100;
  --bg: #fbfaf7;
  --surface: #fff;
  --surface2: #f0ece3;
  --text: #17130e;
  --muted: #554d43;
  --line: rgba(96, 67, 0, 0.38);
}
body.light .bg-pattern {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(118, 83, 0, 0.045) 40px, rgba(118, 83, 0, 0.045) 80px);
}
body.light .stats,
body.light .featured-card,
body.light .map-info {
  border-color: rgba(96, 67, 0, 0.28);
}
body.light .btn-primary {
  color: #111;
  background: linear-gradient(135deg, #c99e32, #e2bd61);
}
body.light .btn-outline:hover {
  color: var(--gold);
}
body.light .theme-toggle {
  background: #fff;
  box-shadow: 0 8px 24px rgba(58, 43, 14, 0.12);
}

/* Showcase-safe controls: keep actions above the Netlify preview badge. */
.whatsapp {
  bottom: 88px;
}
.schedule {
  overflow-y: auto;
}
.close {
  z-index: 5;
  touch-action: manipulation;
}
@media (max-width: 700px) {
  .whatsapp {
    bottom: 98px;
  }
}
.whatsapp svg {
  width: 29px;
  fill: #fff;
}
.dialog-copy {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 11%, var(--surface));
  color: var(--text);
  font-weight: 500;
}
.dialog-copy strong {
  color: var(--gold);
}
