:root {
  --bg-primary: #FAF6F0;
  --bg-card: #FFFFFF;
  --bg-section-warm: #F4EDE3;
  --bg-section-soft: #F9F5EE;
  --text-main: #1F1A16;
  --text-muted: #544940;
  --text-subtle: #7A6D62;
  --border-warm: #EAE1D5;
  --border-light: #F2ECE2;
  --border-soft: #EDE3D6;
  --bg-alert: #FBF3F0;
  --accent-terracotta: #B85D43;
  --accent-terracotta-dark: #9A4932;
  --accent-gold: #C28B38;
}

body {
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.font-serif-title {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Glassmorphism & Header */
.header-glass {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Buttons */
.btn-primary {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: scale(0.985);
}

/* High-Converting Vibrant Buy Button (Terracotta / Coral Amber Gradient) */
.btn-buy-vibrant {
  background: linear-gradient(135deg, #CF5E3E 0%, #B84F31 55%, #A64326 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -4px rgba(184, 79, 49, 0.4), 0 4px 10px -2px rgba(184, 79, 49, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-buy-vibrant::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: none;
  animation: btnShimmer 4s infinite 2s ease-in-out;
}
@keyframes btnShimmer {
  0% { left: -120%; }
  30% { left: 160%; }
  100% { left: 160%; }
}
.btn-buy-vibrant:hover {
  background: linear-gradient(135deg, #DB6947 0%, #C45637 55%, #B3492B 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(184, 79, 49, 0.5), 0 6px 14px -2px rgba(184, 79, 49, 0.25);
}
.btn-buy-vibrant:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px -2px rgba(184, 79, 49, 0.3);
}

/* Gallery thumbnails selection */
.gallery-thumb {
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-thumb:hover {
  transform: translateY(-2px);
}

/* Accordion smooth expansion */
.accordion-content {
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FAF6F0;
}
::-webkit-scrollbar-thumb {
  background: #D9CEBF;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8A896;
}

/* Mobile safe area */
.safe-mobile-bottom {
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* Radio Box Options (like Nümia bundle selection) */
.option-box {
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.option-box:hover {
  border-color: #1F1A16;
}
.option-box.selected {
  border-color: #1F1A16;
  background-color: #FAF5EE;
  box-shadow: 0 2px 8px -2px rgba(31, 26, 22, 0.08);
}

/* Página privada de descarga */
.download-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-shell {
  width: min(100%, 620px);
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  padding: clamp(24px, 6vw, 48px);
  box-shadow: 0 20px 55px rgba(64, 47, 34, 0.10);
}

.download-eyebrow {
  margin: 0 0 12px;
  color: var(--accent-terracotta-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.download-chip {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.download-sprout {
  display: block;
  width: 34px;
  height: 42px;
  margin: 0 auto 6px;
}

.download-sprout svg {
  width: 100%;
  height: 100%;
}

.download-shell h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.1;
}

.download-copy {
  margin: 14px 0 26px;
  color: var(--text-muted);
  line-height: 1.65;
}

.download-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  background: var(--bg-section-soft);
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.download-card:hover {
  border-color: var(--accent-terracotta);
  background: #fff;
  transform: translateY(-1px);
}

.download-card-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.download-card-name {
  font-weight: 700;
  font-size: 15px;
}

.download-card-meta {
  color: var(--text-subtle);
  font-size: 12px;
}

.download-card strong {
  color: var(--accent-terracotta-dark);
  white-space: nowrap;
}

.download-help,
.download-footer {
  margin: 14px 0 0;
  color: var(--text-subtle);
  font-size: 12px;
}

.download-footer a,
.download-help a {
  color: var(--accent-terracotta-dark);
  font-weight: 700;
  text-decoration: none;
}

.download-footer a:hover,
.download-help a:hover {
  text-decoration: underline;
}

.download-expiry {
  margin: 24px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-section-warm);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.download-note {
  margin: 18px 0 0;
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.55;
}

.download-thanks {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-section-warm);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.download-legal {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--accent-terracotta);
  background: var(--bg-alert, #fbf3f0);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.download-legal p {
  margin: 0;
}

.download-legal-title {
  margin: 0 0 5px !important;
  color: var(--accent-terracotta-dark);
  font-weight: 700;
  font-size: 13px;
}

.download-site-footer {
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-subtle);
  font-size: 12.5px;
  line-height: 1.6;
}

.download-site-title {
  margin: 0 0 4px;
  color: var(--accent-terracotta-dark);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.download-site-copy {
  margin: 0 0 8px;
  max-width: 42ch;
  margin-inline: auto;
}

.download-site-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.download-site-links a:hover {
  text-decoration: underline;
}
