:root {
  color-scheme: dark;
  --font-serif: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  --font-sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-btn: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #0c1514;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.88);
  --muted: #657170;
  --line: rgba(255, 255, 255, 0.2);
  --deep-sea: #071312;
  --brand-primary: #12524a;
  --brand-primary-strong: #093d37;
  --brand-aqua: #38a898;
  --brand-aqua-light: #6bc2b4;
  --brand-aqua-surface: #eff8f6;
  --brand-corporate: #85af9a;
  --brand-corporate-light: #9fc1b0;
  --brand-secondary: #85af9a;
  --brand-soft: #ebf7f1;
  --footer: #050606;
  --panel: #f8fbfa;
  --shadow: 0 24px 70px rgba(2, 12, 14, 0.32);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--deep-sea);
  color: var(--ink);
  font-family: var(--font-sans);
}

html[data-config-pending="true"] body {
  visibility: hidden;
}

html[data-config-pending="true"]::before {
  content: "";
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  background: var(--deep-sea);
}

button,
input,
select {
  font: inherit;
}

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

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-btn);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease;
  white-space: nowrap;
}

.button>* {
  position: relative;
  z-index: 1;
}

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

.button:active {
  transform: scale(0.98);
}

.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-aqua);
  outline-offset: 2px;
}

.button-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  color: var(--deep-sea);
  background: var(--brand-secondary);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  font-family: var(--font-btn);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.button-primary>span {
  position: relative;
  z-index: 1;
  color: inherit;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  background: var(--brand-corporate-light);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--deep-sea);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(133, 175, 154, 0.7);
}

.button-primary:active {
  transform: translateY(0);
}

.call-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  height: 32px;
  padding: 0 16px;
  font-family: var(--font-btn);
  font-size: 0.60rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #061e1a;
  background: #a9d7c8;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease;
}

.call-button>span {
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
}

/* Top-left Brand Icon Link with 3D coin-spin effect */
.hero-brand {
  position: absolute;
  z-index: 3;
  top: clamp(20px, 3.8vw, 40px);
  left: clamp(18px, 4vw, 44px);
  display: inline-grid;
  place-items: center;
  width: clamp(40px, 5.5vw, 54px);
  aspect-ratio: 1;
  text-decoration: none;
  cursor: pointer;
  border-radius: 50%;
  perspective: 800px;
  -webkit-tap-highlight-color: transparent;
}

.hero-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
  transform-style: preserve-3d;
  backface-visibility: visible;
  transition:
    transform 950ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 400ms ease;
}

.hero-brand:hover img,
.hero-brand:focus-visible img {
  transform: rotateY(360deg);
  filter:
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 16px rgba(133, 175, 154, 0.65));
}

.hero-brand:active img {
  transform: rotateY(360deg) scale(0.94);
}

/* Floating hero group & straight alignment */
.hero-call-group {
  position: absolute;
  z-index: 3;
  top: clamp(22px, 3.8vw, 42px);
  right: clamp(18px, 4.2vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hero-call {
  position: relative;
  width: 172px;
  min-width: 172px;
  max-width: 172px;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  text-align: center;
}

.hero-call--exhibition,
.hero-call--booking {
  transform: none;
}

.hero-call-text {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-call-text--en {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-btn);
  font-size: 0.60rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-call-text--es {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.15;
}

html[lang="en"] .hero-call-text--es,
html:not([lang="es"]) .hero-call-text--es {
  display: none !important;
}

html[lang="es"] .hero-call-text--en {
  display: none !important;
}

html[lang="es"] .hero-call-text--es {
  display: inline-flex !important;
}

.hero-call-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-btn);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
}

.hero-call-sub {
  font-family: var(--font-btn);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  opacity: 0.95;
  line-height: 1;
}

.hero-call--exhibition .hero-call-text--en::before,
.hero-call--exhibition .hero-call-main::before,
.hero-call--booking>span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d5446;
  box-shadow: 0 0 4px rgba(13, 84, 70, 0.5);
}

/* ================= HOVER ================= */
.hero-call:hover,
.hero-call:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #ffffff;
  color: #031411;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(255, 255, 255, 0.5);
}

.call-button:active {
  transform: translateY(0);
}

@media (hover: none),
(pointer: coarse) {

  .call-button:active,
  .button-primary:active {
    transform: scale(0.98);
  }
}

.button-secondary {
  color: var(--white);
  background: rgba(56, 168, 152, 0.16);
  border-color: rgba(107, 194, 180, 0.55);
}

.button-secondary:hover {
  background: rgba(56, 168, 152, 0.26);
  border-color: rgba(107, 194, 180, 0.8);
}

.button-ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(12, 21, 20, 0.22);
}

.button-ghost:hover {
  background: rgba(12, 21, 20, 0.08);
  border-color: rgba(12, 21, 20, 0.38);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(44px, 7vh, 82px) clamp(20px, 5vw, 56px) clamp(118px, 16vh, 152px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--deep-sea) url("assets/hero.png") center/cover no-repeat;
}

.hero-video,
.hero-shade,
.hero-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -2;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.hero-video[data-playing="true"] {
  opacity: 1;
}

.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-overlay-play-button,
.hero-video::-webkit-media-controls-overlay-enclosure {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(2, 12, 13, 0.68),
      rgba(2, 12, 13, 0.36) 42%,
      rgba(2, 12, 13, 0.72)),
    radial-gradient(circle at 52% 46%,
      rgba(238, 232, 212, 0.11),
      transparent 40%);
}

.hero-fade {
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(2, 8, 8, 0.18) 48%,
      rgba(1, 4, 4, 0.72) 78%,
      #000000 100%),
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.22),
      transparent 24%,
      transparent 76%,
      rgba(0, 0, 0, 0.22));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3.2vh, 30px);
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(760px, 82vw);
  max-width: 100%;
  max-height: min(42svh, 318px);
  height: auto;
  aspect-ratio: 2357 / 884;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}

.hero-intro {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.2vh, 20px);
  color: rgba(255, 255, 255, 0.82);
}

.hero-intro p {
  width: min(620px, 86vw);
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

.hero-intro ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(18px, 3vw, 34px);
  max-width: min(760px, 88vw);
  margin: 0;
  padding: 0;
  color: rgba(238, 232, 212, 0.76);
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  text-transform: uppercase;
}

.hero-intro li {
  position: relative;
  padding-inline: 14px;
}

.hero-intro li::before,
.hero-intro li::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(133, 175, 154, 0.74);
  transform: translateY(-50%) rotate(45deg);
}

.hero-intro li::before {
  left: 0;
}

.hero-intro li::after {
  right: 0;
}

.hero-contact {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(18px, 4vw, 34px);
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.9rem, 2.6vw, 1.02rem);
  font-weight: 500;
}

.hero-contact span {
  color: var(--brand-secondary);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  line-height: 1;
}

.hero-contact a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(7, 19, 18, 0.75);
}

.hero-contact a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(14, 38, 36, 0.85);
}

.modal {
  width: min(760px, calc(100% - 28px));
  padding: 0;
  color: var(--ink);
  border: 1px solid rgba(133, 175, 154, 0.45);
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.modal[open] {
  animation: modal-fade-in 180ms ease forwards;
}

.modal::backdrop {
  background: rgba(2, 12, 11, 0.82);
}

.modal[open]::backdrop {
  animation: backdrop-fade-in 180ms ease forwards;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes backdrop-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-panel {
  padding: clamp(22px, 5vw, 34px);
  background: #f6faf8;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f5 100%);
  border-radius: 12px;
  contain: paint;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-kicker {
  margin: 0 0 5px;
  color: var(--brand-primary);
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.modal h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: rgba(12, 21, 20, 0.06);
  border: 1px solid rgba(12, 21, 20, 0.15);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.icon-button:hover {
  background: rgba(12, 21, 20, 0.12);
  border-color: rgba(12, 21, 20, 0.3);
  color: var(--ink);
}

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

label {
  display: grid;
  gap: 7px;
  color: #1e3330;
  font-size: 0.86rem;
  font-weight: 600;
}

.label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.required-marker {
  color: #b3392b;
}

.full-row {
  grid-column: 1 / -1;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(12, 21, 20, 0.2);
  border-radius: 6px;
  color-scheme: light;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

input::placeholder {
  color: #7d928f;
}

select {
  cursor: pointer;
}

select option {
  background: #ffffff;
  color: var(--ink);
}

input:focus,
select:focus {
  background: #ffffff;
  border-color: var(--brand-corporate);
  box-shadow: 0 0 0 2px rgba(133, 175, 154, 0.35);
}

input[type="radio"] {
  width: 15px;
  height: 15px;
  min-height: 0;
  padding: 0;
  accent-color: var(--brand-corporate);
}

.choice-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin: 0 0 7px;
  padding: 0;
  color: #1e3330;
  font-size: 0.86rem;
  font-weight: 600;
}

.radio-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  color: #1e3330;
  background: #ffffff;
  border: 1px solid rgba(12, 21, 20, 0.18);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.radio-option:hover {
  background: #f0f6f3;
  border-color: var(--brand-corporate);
}

.radio-option:has(input:checked) {
  border-color: var(--brand-corporate);
  background-color: rgba(133, 175, 154, 0.22);
  box-shadow: 0 0 0 1px var(--brand-corporate);
  color: var(--ink);
}

.form-status {
  margin: 16px 0 0;
  color: var(--brand-primary);
  font-weight: 700;
}

.form-status[data-status-type="pending"] {
  color: #556b67;
}

.form-status[data-status-type="error"] {
  color: #c0392b;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 26px;
}

.modal-actions .button:disabled {
  cursor: wait;
  opacity: 0.68;
}

/* ================= HERO ACTION BUTTONS UNDER LOGO ================= */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px clamp(12px, 2.5vw, 24px);
  margin-top: 6px;
}

.hero-action-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  min-width: 172px;
  height: auto;
  padding: 8px 24px;
  border-radius: 24px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.hero-btn-title {
  font-family: var(--font-btn);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero-btn-sub {
  font-family: var(--font-btn);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero-action-btn--primary {
  color: var(--deep-sea);
  background: linear-gradient(135deg, #a4ccba 0%, #85af9a 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-action-btn--primary .hero-btn-sub {
  color: #1a443a;
  opacity: 0.85;
}

.hero-action-btn--primary:hover,
.hero-action-btn--primary:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #bfe2d1 0%, #9fc1b0 100%);
  border-color: #ffffff;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(133, 175, 154, 0.6);
}

.hero-action-btn--secondary {
  color: var(--soft-white);
  background: rgba(7, 19, 18, 0.82);
  border: 1px solid rgba(133, 175, 154, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-action-btn--secondary .hero-btn-sub {
  color: #a4ccba;
  opacity: 0.9;
}

.hero-action-btn--secondary:hover,
.hero-action-btn--secondary:focus-visible {
  transform: translateY(-2px);
  color: #ffffff;
  background: rgba(18, 82, 74, 0.7);
  border-color: rgba(133, 175, 154, 0.8);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(56, 168, 152, 0.35);
}

/* ================= MODAL EXTENDED & FORM GROUPS ================= */
.modal--extended {
  width: min(840px, calc(100% - 24px));
  max-height: 90vh;
  max-height: 90svh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-secondary) transparent;
}

.modal--extended::-webkit-scrollbar {
  width: 6px;
}
.modal--extended::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 3px;
}

.form-section-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(133, 175, 154, 0.3);
  border-radius: 8px;
  background: rgba(133, 175, 154, 0.06);
}

.section-legend {
  float: left;
  margin-bottom: 8px;
  padding: 0 4px;
  color: #1e3330;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.volume-selectors {
  display: flex;
  flex-direction: column;
  gap: 10px;
  clear: both;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  color: #24403c;
  background: #ffffff;
  border: 1px solid rgba(12, 21, 20, 0.18);
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
  user-select: none;
}

.pill-option:hover {
  background: #f0f7f4;
  border-color: var(--brand-secondary);
}

.pill-option:has(input:checked) {
  color: #ffffff;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(18, 82, 74, 0.25);
}

.pill-option input[type="radio"] {
  display: none;
}

/* ================= PRODUCT CONFIGURATOR CARD ================= */
.product-configurator-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(240, 248, 245, 0.85) 0%, rgba(230, 243, 238, 0.95) 100%);
  border: 1px solid rgba(133, 175, 154, 0.45);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.configurator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.configurator-prompt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.configurator-tag {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  background: rgba(18, 82, 74, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.configurator-title {
  color: #0d2623;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Toggle Switch (Apple-style) */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #cbd8d3;
  border-radius: 24px;
  transition: background-color 200ms ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--brand-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-text {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
}

/* Dynamic Product Tree */
.dynamic-product-tree {
  display: grid;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(133, 175, 154, 0.45);
  animation: tree-expand 240ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tree-expand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tree-step {
  display: grid;
  gap: 10px;
}

.tree-step--nested {
  padding-left: 12px;
  border-left: 2px solid rgba(133, 175, 154, 0.4);
}

.tree-step--volume {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed rgba(133, 175, 154, 0.35);
}

.tree-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #173b36;
  font-size: 0.84rem;
  font-weight: 700;
}

.step-badge {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-primary);
  border-radius: 50%;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.chip-grid--sm {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.interactive-chip {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
}

.interactive-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1.5px solid rgba(133, 175, 154, 0.38);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.interactive-chip--sm .chip-box {
  min-height: 38px;
  padding: 6px 12px;
}

.chip-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.5px solid rgba(133, 175, 154, 0.6);
  border-radius: 4px;
  background: #ffffff;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.interactive-chip:hover .chip-box {
  border-color: var(--brand-primary);
  background: #f8fdfb;
}

.interactive-chip input:checked + .chip-box {
  background: #ebf7f3;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.interactive-chip input:checked + .chip-box .chip-check {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.interactive-chip input:checked + .chip-box .chip-check::after {
  content: "✓";
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: bold;
}

.chip-label {
  color: #173b36;
  font-size: 0.84rem;
  font-weight: 600;
}

/* Branch Cards (Chilled / Frozen details) */
.tree-branch-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(133, 175, 154, 0.35);
  border-radius: 8px;
  margin-left: 12px;
  animation: tree-expand 200ms ease forwards;
}

.branch-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-pill {
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b4f45;
  background: #d4ece3;
  border-radius: 12px;
}

.branch-pill--frozen {
  color: #184a6b;
  background: #d4e8f7;
}

.branch-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3b5c57;
}

.format-accordion {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(12, 21, 20, 0.12);
  border-radius: 6px;
}

.format-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.format-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
  margin: 0;
}

.format-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #173b36;
}

.sizes-drawer {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  margin-top: 4px;
  background: #f4faf7;
  border-radius: 6px;
  border-left: 3px solid var(--brand-secondary);
}

.drawer-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #486863;
}

.size-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid rgba(12, 21, 20, 0.16);
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #24403c;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.size-pill:hover {
  background: #eaf4f0;
  border-color: var(--brand-secondary);
}

.size-pill:has(input:checked) {
  color: #ffffff;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 2px 6px rgba(18, 82, 74, 0.25);
}

.size-pill input {
  display: none;
}

.nested-subcard {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  background: #f7fbf9;
  border: 1px dashed rgba(133, 175, 154, 0.4);
  border-radius: 6px;
}

.subcard-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a423d;
}

@media (max-width: 760px) {
  .hero {
    padding-top: clamp(66px, 11vh, 84px);
    padding-bottom: 126px;
  }

  .hero-brand {
    top: clamp(12px, 2.5vh, 18px);
    left: clamp(12px, 3.5vw, 20px);
    width: 36px;
  }

  .hero-call-group {
    top: clamp(12px, 2.5vh, 18px);
    left: auto;
    right: clamp(12px, 3.5vw, 20px);
    transform: none;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
  }

  .hero-call {
    width: 152px;
    min-width: 152px;
    max-width: 152px;
    min-height: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 15px;
    text-align: center;
  }

  .hero-call-text--en {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    gap: 5px;
  }

  .hero-call-main {
    font-size: 0.50rem;
    gap: 4px;
  }

  .hero-call-sub {
    font-size: 0.44rem;
  }

  .hero-call--exhibition .hero-call-text--en::before,
  .hero-call--exhibition .hero-call-main::before,
  .hero-call--booking>span::before {
    width: 4px;
    height: 4px;
  }

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

  .radio-options {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: clamp(62px, 10vh, 78px);
  }

  .hero-brand {
    top: 10px;
    left: 10px;
    width: 30px;
  }

  .hero-content {
    width: min(100% - 24px, 980px);
    gap: 18px;
  }

  .hero-logo {
    width: min(340px, 84vw);
    max-height: 148px;
  }

  .button {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.64rem;
    letter-spacing: 0.07em;
  }

  .hero-call-group {
    top: 10px;
    left: auto;
    right: 10px;
    transform: none;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .hero-call {
    width: 136px;
    min-width: 136px;
    max-width: 136px;
    min-height: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 13px;
    text-align: center;
  }

  .hero-call-text--en {
    font-size: 0.46rem;
    letter-spacing: 0.07em;
    gap: 4px;
  }

  .hero-call-main {
    font-size: 0.46rem;
    gap: 3px;
  }

  .hero-call-sub {
    font-size: 0.39rem;
  }

  .hero-call--exhibition .hero-call-text--en::before,
  .hero-call--exhibition .hero-call-main::before,
  .hero-call--booking>span::before {
    width: 3px;
    height: 3px;
  }

  .hero-intro p {
    width: min(330px, 88vw);
    font-size: 1rem;
  }

  .hero-intro ul {
    display: grid;
    gap: 7px;
  }

  .hero-contact a {
    max-width: calc(100vw - 36px);
    overflow-wrap: anywhere;
  }
}

@media (max-height: 580px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 88px;
  }

  .hero-call-group {
    top: 14px;
  }

  .hero-call {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    min-height: 28px;
    height: 28px;
  }

  .hero-call-text--en {
    font-size: 0.50rem;
  }

  .hero-call-main {
    font-size: 0.48rem;
  }

  .hero-call-sub {
    font-size: 0.42rem;
  }

  .hero-content {
    gap: 12px;
  }

  .hero-logo {
    width: min(560px, 70vw);
    max-height: 24svh;
  }

  .hero-intro p {
    font-size: 0.95rem;
  }

  .hero-intro ul {
    display: none;
  }

  .hero-contact {
    padding: 12px;
  }
}