:root {
  color-scheme: dark;
}

html.i18n-pending body {
  visibility: hidden;
}

html.i18n-ready body {
  visibility: visible;
}

body.theme-light {
  --verde: #f4efe4;
  --verde-profundo: #eadfcd;
  --verde-medio: #dfcfb7;
  --verde-claro: #fffaf1;
  --green: #f4efe4;
  --green-soft: #e8dcc7;
  --crema: #122f20;
  --cream: #122f20;
  --crema-suave: #fffaf1;
  --texto: #122f20;
  --texto-suave: rgba(18, 47, 32, 0.74);
  --gris: #756958;
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 168, 76, 0.18), transparent 28%),
    radial-gradient(circle at 86% 74%, rgba(18, 47, 32, 0.08), transparent 30%),
    linear-gradient(135deg, #fffaf1 0%, #f1e7d6 48%, #e8dcc7 100%) !important;
  color: #122f20;
}

body.theme-light::before {
  opacity: 0.18 !important;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid rgba(201, 168, 76, 0.72);
  border-radius: 50%;
  background: rgba(6, 20, 14, 0.86);
  color: #e8c96e;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

body.theme-light .theme-toggle {
  background: rgba(255, 250, 241, 0.96);
  color: #9b7427;
  box-shadow: 0 14px 34px rgba(18, 47, 32, 0.16);
}

body.theme-light nav,
body.theme-light #nav,
body.theme-light header {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.96), rgba(236, 225, 207, 0.9)),
    url("../public/images/fondo de Menu.png") !important;
  background-size: cover !important;
  background-position: center 42% !important;
  border-color: rgba(167, 124, 36, 0.28) !important;
  color: #122f20 !important;
  box-shadow: 0 18px 44px rgba(18, 47, 32, 0.08) !important;
}

body.theme-light .nav-links {
  background: transparent;
}

body.theme-light .nav-links a,
body.theme-light nav a:not(.logo),
body.theme-light header nav a,
body.theme-light .back,
body.theme-light .progress-pill {
  color: rgba(18, 47, 32, 0.84) !important;
  text-shadow: none !important;
}

body.theme-light .nav-links a:hover,
body.theme-light nav a:not(.logo):hover,
body.theme-light header nav a:hover {
  color: #9b7427 !important;
}

body.theme-light .nav-logo,
body.theme-light a.nav-logo,
body.theme-light nav a.nav-logo,
body.theme-light #nav a.nav-logo,
body.theme-light .logo,
body.theme-light .brand {
  color: #9b7427 !important;
  text-shadow: none !important;
}

body.theme-light .nav-toggle {
  background: rgba(255, 250, 241, 0.82) !important;
  color: #9b7427 !important;
}

body.theme-light .nav-dropdown-menu {
  background: rgba(255, 250, 241, 0.98) !important;
  border-color: rgba(167, 124, 36, 0.24) !important;
  box-shadow: 0 20px 50px rgba(18, 47, 32, 0.12) !important;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  z-index: 40;
}

.language-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(201, 168, 76, 0.34);
  border-radius: 999px;
  background: rgba(245, 240, 232, 0.06);
  color: #e8c96e;
  font-family: "Cinzel", Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.language-current:hover,
.language-switcher.is-open .language-current {
  transform: translateY(-1px);
  border-color: rgba(201, 168, 76, 0.72);
  background: rgba(201, 168, 76, 0.12);
}

.language-flag {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 16px;
  line-height: 1;
}

.language-code {
  min-width: 22px;
  text-align: left;
}

.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 178px;
  padding: 8px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(4, 18, 13, 0.98), rgba(13, 34, 22, 0.94)),
    url("../public/images/fondo de Menu.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.language-switcher.is-open .language-menu,
.language-switcher:hover .language-menu,
.language-switcher:focus-within .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 240, 232, 0.82);
  font-family: "Lato", Arial, sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option[aria-pressed="true"] {
  background: rgba(201, 168, 76, 0.14);
  color: #f5f0e8;
}

body.theme-light .language-current {
  background: rgba(255, 250, 241, 0.72);
  border-color: rgba(167, 124, 36, 0.38);
  color: #765516;
  box-shadow: 0 10px 28px rgba(18, 47, 32, 0.08);
}

body.theme-light .language-current:hover,
body.theme-light .language-switcher.is-open .language-current {
  background: rgba(255, 250, 241, 0.94);
  border-color: rgba(155, 116, 39, 0.64);
}

body.theme-light .language-menu {
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(237, 226, 207, 0.95)),
    url("../public/images/fondo de Menu.png");
  background-size: cover;
  background-position: center 42%;
  border-color: rgba(167, 124, 36, 0.3);
  box-shadow: 0 22px 48px rgba(18, 47, 32, 0.14);
}

body.theme-light .language-option {
  color: rgba(18, 47, 32, 0.78);
}

body.theme-light .language-option:hover,
body.theme-light .language-option[aria-pressed="true"] {
  background: rgba(201, 168, 76, 0.16);
  color: #122f20;
}

body.theme-light .hero,
body.theme-light .wine-hero,
body.theme-light .section,
body.theme-light .vision-experiencia,
body.theme-light .ficha,
body.theme-light .cata,
body.theme-light .vinedo,
body.theme-light .contacto,
body.theme-light .page {
  color: #122f20 !important;
}

body.theme-light .hero::after,
body.theme-light .wine-hero::after {
  background: radial-gradient(ellipse at 60% 50%, rgba(201, 168, 76, 0.16) 0%, transparent 70%) !important;
}

body.theme-light .cata,
body.theme-light .contacto,
body.theme-light footer {
  background:
    radial-gradient(circle at 14% 20%, rgba(201, 168, 76, 0.13), transparent 32%),
    linear-gradient(135deg, #fffaf1 0%, #f1e7d6 54%, #e8dcc7 100%) !important;
}

body.theme-light .vision-card,
body.theme-light .panel,
body.theme-light .card,
body.theme-light .detail,
body.theme-light .ritual-card,
body.theme-light .cata-card,
body.theme-light .item,
body.theme-light .weather-widget,
body.theme-light .closing,
body.theme-light .step,
body.theme-light .option,
body.theme-light .table-mission,
body.theme-light .recipe-hero {
  background: rgba(255, 250, 241, 0.78) !important;
  border-color: rgba(167, 124, 36, 0.24) !important;
  color: #122f20 !important;
  box-shadow: 0 18px 45px rgba(18, 47, 32, 0.08) !important;
}

body.theme-light .weather-widget {
  background:
    radial-gradient(circle at 78% 20%, rgba(201, 168, 76, 0.13), transparent 50%),
    rgba(255, 250, 241, 0.88) !important;
}

body .hero-carousel {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body .botella-wrapper,
body .botella-img,
body .bottle-wrap,
body .bottle {
  background: transparent !important;
}

body .weather-clouds {
  display: none !important;
}

body .weather-widget {
  overflow: hidden;
}

body .weather-widget.is-cloudy::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 11px;
  z-index: 0;
  width: 62px;
  height: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 19% 62%, rgba(221, 216, 196, 0.92) 0 10px, transparent 11px),
    radial-gradient(circle at 42% 42%, rgba(232, 226, 205, 0.9) 0 14px, transparent 15px),
    radial-gradient(circle at 67% 58%, rgba(214, 208, 188, 0.88) 0 12px, transparent 13px),
    linear-gradient(180deg, rgba(228, 222, 202, 0.9), rgba(194, 188, 170, 0.78));
  opacity: 0.72;
  filter: blur(0.2px);
  animation: valmoreCloudDrift 6s ease-in-out infinite alternate;
  pointer-events: none;
}

body:not(.theme-light) .weather-widget.is-cloudy::after {
  background:
    radial-gradient(circle at 19% 62%, rgba(226, 222, 203, 0.56) 0 10px, transparent 11px),
    radial-gradient(circle at 42% 42%, rgba(236, 231, 211, 0.52) 0 14px, transparent 15px),
    radial-gradient(circle at 67% 58%, rgba(210, 205, 187, 0.5) 0 12px, transparent 13px),
    linear-gradient(180deg, rgba(226, 220, 199, 0.48), rgba(151, 146, 130, 0.34));
  opacity: 0.7;
}

@keyframes valmoreCloudDrift {
  from { transform: translateX(-2px); }
  to { transform: translateX(5px); }
}

body.theme-light .light {
  background: #fffaf1 !important;
  color: #122f20 !important;
}

body.theme-light .ficha-item,
body.theme-light .item {
  background: rgba(255, 250, 241, 0.97) !important;
  border-color: rgba(167, 124, 36, 0.2) !important;
}

body.theme-light .meta div {
  background: rgba(18, 47, 32, 0.045) !important;
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light .marca,
body.theme-light .section-title,
body.theme-light .contacto-titulo,
body.theme-light .seccion-titulo,
body.theme-light .value,
body.theme-light .hero-spec-value,
body.theme-light dd,
body.theme-light .option-name,
body.theme-light .footer-marca {
  color: #122f20 !important;
}

body.theme-light p,
body.theme-light .desc,
body.theme-light .intro,
body.theme-light .hero-desc,
body.theme-light .ficha-copy,
body.theme-light .origen-copy,
body.theme-light .contacto-sub,
body.theme-light .footer-tagline,
body.theme-light .spin-help,
body.theme-light .hint,
body.theme-light .panel p,
body.theme-light .detail p,
body.theme-light .card p,
body.theme-light .ritual-card p,
body.theme-light .cata-card p,
body.theme-light .table-mission,
body.theme-light .option-time,
body.theme-light .footer-legal-note,
body.theme-light .vs-val,
body.theme-light .ficha-val,
body.theme-light .detail li,
body.theme-light .detail ul,
body.theme-light .detail ol {
  color: rgba(18, 47, 32, 0.78) !important;
}

body.theme-light .card span,
body.theme-light .panel span,
body.theme-light .detail span,
body.theme-light .step span,
body.theme-light .option span,
body.theme-light .recipe-hero span,
body.theme-light .nota-detalle-text,
body.theme-light .footer-copy,
body.theme-light .footer-warning,
body.theme-light .footer-legal-note {
  color: rgba(18, 47, 32, 0.74) !important;
}

body.theme-light .hero-spec {
  border-top-color: rgba(155, 116, 39, 0.38) !important;
}

body.theme-light .hero-spec-label,
body.theme-light .ficha-key,
body.theme-light .label {
  color: #9b7427 !important;
}

body.theme-light .value,
body.theme-light .ficha-val,
body.theme-light .hero-spec-value,
body.theme-light dd {
  color: #173823 !important;
  opacity: 1 !important;
}

body.theme-light .detail li::marker {
  color: #9b7427 !important;
}

body.theme-light .detail h3 {
  color: #122f20 !important;
}

body.theme-light .anno,
body.theme-light .origine,
body.theme-light .kicker,
body.theme-light .eyebrow,
body.theme-light .label,
body.theme-light .seccion-label,
body.theme-light .service-temp,
body.theme-light dt,
body.theme-light .footer-heading,
body.theme-light .reward-copy,
body.theme-light .table-mission strong,
body.theme-light .meta-icon,
body.theme-light .weather-icon,
body.theme-light .weather-label {
  color: #9b7427 !important;
}

body.theme-light .weather-temp,
body.theme-light .weather-place {
  color: #173823 !important;
}

body.theme-light .btn-primary,
body.theme-light .form-submit,
body.theme-light .spin,
body.theme-light .primary-action,
body.theme-light .btn.primary,
body.theme-light .option-index {
  background: linear-gradient(135deg, #e0bd56, #b88b2e) !important;
  color: #102017 !important;
  border-color: rgba(167, 124, 36, 0.58) !important;
}

body.theme-light .btn-secondary,
body.theme-light .ghost-action,
body.theme-light .options-toggle,
body.theme-light .btn.secondary,
body.theme-light .btn:not(.primary) {
  background: rgba(255, 250, 241, 0.82) !important;
  color: #765516 !important;
  border-color: rgba(167, 124, 36, 0.4) !important;
}

body.theme-light input,
body.theme-light textarea,
body.theme-light select {
  background: rgba(255, 250, 241, 0.92) !important;
  border-color: rgba(167, 124, 36, 0.28) !important;
  color: #122f20 !important;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
  color: rgba(18, 47, 32, 0.46) !important;
}

body.theme-light select option {
  background: #fffaf1 !important;
  color: #122f20 !important;
}

body.theme-light .footer-link,
body.theme-light .footer-copy,
body.theme-light .footer-warning {
  color: rgba(18, 47, 32, 0.72) !important;
}

body.theme-light .footer-vabn {
  background: rgba(255, 250, 241, 0.72) !important;
}

body.theme-light .wheel {
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.16), 0 18px 55px rgba(18, 47, 32, 0.18) !important;
}

body .center {
  background: radial-gradient(circle, rgba(82, 55, 29, 0.98), rgba(31, 20, 12, 0.98)) !important;
  border-color: rgba(224, 189, 86, 0.62) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38) !important;
}

body.theme-light .center {
  background: radial-gradient(circle, rgba(102, 70, 38, 0.98), rgba(42, 27, 16, 0.98)) !important;
}

body .center-logo {
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.48)) contrast(1.08) saturate(1.05);
}

body.theme-light .recipe-hero img,
body.theme-light .botella-img,
body.theme-light .bottle,
body.theme-light .vineyard {
  filter: drop-shadow(0 20px 38px rgba(18, 47, 32, 0.16)) brightness(0.97) contrast(1.04) saturate(0.98);
}

body .topbar {
  width: min(100%, 960px);
  margin: 0 auto clamp(18px, 3vw, 34px) !important;
  padding: 12px 14px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(3, 22, 15, 0.78), rgba(11, 31, 20, 0.58)),
    url("../public/images/fondo de Menu.png") !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(12px);
}

body .topbar.topbar-single {
  width: fit-content;
  justify-content: flex-start;
  margin-left: 0 !important;
  margin-right: auto !important;
}

body .back,
body .progress-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  border-radius: 999px;
  font-size: 12px !important;
  letter-spacing: 2px !important;
}

body .back {
  border: 1px solid rgba(201, 168, 76, 0.26);
  background: rgba(245, 240, 232, 0.06);
}

body .progress-pill {
  border-color: rgba(201, 168, 76, 0.34) !important;
  background: rgba(201, 168, 76, 0.12) !important;
}

body.theme-light .topbar {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.96), rgba(235, 222, 201, 0.9)),
    url("../public/images/fondo de Menu.png") !important;
  border-color: rgba(167, 124, 36, 0.28) !important;
  box-shadow: 0 16px 42px rgba(18, 47, 32, 0.1) !important;
}

body.theme-light .back,
body.theme-light .progress-pill {
  background: rgba(255, 250, 241, 0.72) !important;
  border-color: rgba(167, 124, 36, 0.28) !important;
}

body.theme-light .text-fill,
body.theme-light .fill-word {
  --word-color: rgba(18, 47, 32, 0.62);
  --word-opacity: 0.78;
}

body.theme-light .text-fill.is-filled,
body.theme-light .fill-word.is-filled {
  --word-color: #122f20;
  --word-opacity: 1;
}

body.theme-light .vision-experiencia {
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 168, 76, 0.18), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(18, 47, 32, 0.08), transparent 30%),
    linear-gradient(135deg, #fffaf1 0%, #f3eadb 54%, #e9dcc5 100%) !important;
  color: #122f20 !important;
}

body.theme-light .vision-experiencia .vision-title,
body.theme-light .vision-experiencia .vision-copy {
  color: #122f20 !important;
  text-shadow: none;
}

body.theme-light .vision-experiencia .vision-title .fill-word,
body.theme-light .vision-experiencia .vision-copy .fill-word {
  --word-color: rgba(18, 47, 32, 0.52);
  opacity: var(--word-opacity, 0.72);
}

body.theme-light .vision-experiencia .vision-title.fill-visible .fill-word,
body.theme-light .vision-experiencia .vision-copy.fill-visible .fill-word,
body.theme-light .vision-experiencia .vision-title.visible .fill-word,
body.theme-light .vision-experiencia .vision-copy.visible .fill-word {
  --word-color: #122f20;
}

body.theme-light .vision-experiencia .vision-kicker,
body.theme-light .vision-experiencia .vision-card span {
  color: #d6b452 !important;
}

body.theme-light .vision-experiencia .vision-card h3 {
  color: #122f20 !important;
  text-shadow: none;
}

body.theme-light .vision-experiencia .vision-card p {
  color: rgba(18, 47, 32, 0.68) !important;
}

body.theme-light .deco-circle,
body.theme-light .deco-c1,
body.theme-light .deco-c2,
body.theme-light .deco-c3 {
  opacity: 0.25;
}

body.theme-light .status,
body.theme-light .choice-badge {
  background: rgba(201, 168, 76, 0.14) !important;
  color: #9b7427 !important;
  border-color: rgba(167, 124, 36, 0.34) !important;
}

body.theme-light .card.revealed::before,
body.theme-light .card.revealed::after {
  border-color: rgba(167, 124, 36, 0.24) !important;
}

@media (max-width: 900px) {
  body.theme-light .nav-links {
    background: rgba(255, 250, 241, 0.98) !important;
    border-color: rgba(167, 124, 36, 0.24) !important;
  }

  .language-switcher {
    width: 100%;
    justify-content: flex-start;
  }

  .language-current {
    width: 100%;
    justify-content: flex-start;
  }

  .language-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .language-switcher.is-open .language-menu,
  .language-switcher:focus-within .language-menu {
    display: block;
  }
}

@media (max-width: 680px) {
  .theme-toggle {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 21px;
  }

  body .topbar {
    border-radius: 18px;
    padding: 10px;
    align-items: stretch;
  }

  body .back,
  body .progress-pill {
    width: 100%;
    min-height: 40px;
    padding: 0 12px !important;
    font-size: 10px !important;
  }
}
