/* Design System Variables & Tokens - Extracted directly from dietaraiz.protocolo21dias.site */
:root {
  --color-primary: #eaa03d;        /* Brand Warm Golden Orange from landing */
  --color-primary-dark: #d1841d;   /* 3D button border from landing */
  --color-primary-hover: #de912b;  /* Button hover from landing */
  --color-primary-soft: #faeddd;   /* Soft warm cream for selected cards */
  --color-primary-light: #eedfd1;  /* Soft border */
  
  --color-accent: #C96A2B;         /* Terracotta headline highlight from landing */
  --color-accent-soft: #faeddd;    /* Soft accent background */
  --color-accent-dark: #bb4717;    /* Deep terracotta for sub-headings */
  
  --color-green-brand: #1e472c;    /* Deep institutional forest green */
  --color-green-check: #15803d;    /* Institutional green for checks */
  
  --color-bg: #fbf8f1;             /* Real landing page cream / off-white */
  --color-surface: #ffffff;        /* White surface for cards */
  --color-text: #291508;           /* Dark espresso brown for titles & body text */
  --color-muted: #684f41;          /* Medium warm brown for subtitles */
  --color-border: #ebd9c8;         /* Warm border matching landing cards */
  
  --font-display: 'Fraunces', Georgia, serif;
  --font-content: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-premium: none;
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body, body.bg-white {
  background-color: var(--color-bg) !important;
  color: var(--color-text);
  font-family: var(--font-content);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Headings inherit Fraunces and dark espresso color */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Typography Utility Classes */
.font-display {
  font-family: var(--font-display);
}

.font-content {
  font-family: var(--font-content);
}

/* Color overrides for unified landing identity */
.text-gray-900 { color: #291508 !important; }
.text-gray-800 { color: #382518 !important; }
.text-gray-700 { color: #523e32 !important; }
.text-gray-600 { color: #684f41 !important; }
.text-gray-500 { color: #684f41 !important; }

.text-primary { color: var(--color-primary); }
.text-primary-dark { color: var(--color-primary-dark); }
.text-accent { color: var(--color-accent); }
.text-accent-dark { color: var(--color-accent-dark); }
.text-muted { color: var(--color-muted); }

.bg-primary-soft { background-color: var(--color-primary-soft); }
.bg-accent-soft { background-color: var(--color-accent-soft); }
.bg-surface { background-color: var(--color-surface); }

.border-primary-light { border-color: var(--color-primary-light); }

.shadow-premium {
  box-shadow: var(--shadow-premium);
}

/* Institutional checkmark for RECIBIRAS and checklists */
.pdr-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--color-green-check);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
}

/* Layout Utilities (Simple CSS Grid/Flexbox replacements) */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-grow { flex-grow: 1; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.pr-5 { padding-right: 1.25rem; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-5 { margin-top: 1.25rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.w-9 { width: 2.25rem; }
.w-1\.5 { width: 0.375rem; }
.w-28 { width: 7rem; }
.w-64 { width: 16rem; }
.h-full { height: 100%; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-9 { height: 2.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-28 { height: 7rem; }
.h-4 { height: 1rem; }
.min-h-screen { min-height: 100vh; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.aspect-video { aspect-ratio: 16 / 9; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }

.border { border-style: solid; border-width: 1px; }
.border-b { border-bottom-style: solid; border-bottom-width: 1px; }
.border-2 { border-style: solid; border-width: 2px; }
.border-0 { border: none; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-red-50 { border-color: #fef2f2; }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-900 { background-color: #111827; }
.bg-transparent { background-color: transparent; }

/* Sticky Header and Elements */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; }
.text-[10px] { font-size: 0.625rem; }
.text-[11px] { font-size: 0.6875rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.italic { font-style: italic; }

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: #eaa03d !important;
  color: #000000 !important;
  border-radius: 10px !important;
  border-width: 0 0 4px 0 !important;
  border-style: solid !important;
  border-color: #d1841d !important;
  padding: 1.1rem 2rem;
  box-shadow: 0 4px 14px rgba(234, 160, 61, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #de912b !important;
  border-color: #bc7214 !important;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 160, 61, 0.45);
}

.btn-primary:active {
  transform: translateY(2px);
  border-bottom-width: 2px !important;
  box-shadow: 0 2px 6px rgba(234, 160, 61, 0.2);
}

/* Option Buttons for Multiple Choice */
.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.option-text {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.4;
  flex: 1;
}

.option-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  margin-left: 1rem;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.option-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover States */
@media (hover: hover) {
  .option-btn:hover {
    border-color: var(--color-primary-light);
    background-color: var(--color-primary-soft);
    transform: translateY(-1px);
  }
  .option-btn:hover .option-indicator {
    border-color: var(--color-primary);
  }
}

/* Active / Selected States */
.option-btn.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-soft);
  box-shadow: 0 4px 12px rgba(229, 174, 57, 0.05);
}

.option-btn.selected .option-indicator {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.option-btn.selected .option-indicator::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Multi-select checkmark variant */
.option-btn.multi-select .option-indicator {
  border-radius: 6px;
}

.option-btn.multi-select.selected .option-indicator::after {
  content: '';
  width: 22px;
  height: 22px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%) scale(1);
}

/* Step Container Animations */
.step-container {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Micro animations */
@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 174, 57, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(229, 174, 57, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 174, 57, 0); }
}

.animate-pulse {
  animation: pulseGlow 2s infinite;
}

/* Carousel Slideshow styling */
.carousel-container {
  overflow: hidden;
}

.slide {
  opacity: 0;
  transform: translateX(20px);
  display: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: #d1d5db;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.dot.active {
  background-color: var(--color-primary);
  width: 14px;
  border-radius: 4px;
}

/* Radial Loader Animation */
circle {
  transition: stroke-dashoffset 0.35s;
  transform-origin: 50% 50%;
}

.loading-item {
  opacity: 0.3;
  font-weight: 500;
  transition: all 0.3s ease;
}

.loading-item.active {
  opacity: 1;
  color: var(--color-primary-dark);
  font-weight: 700;
  transform: scale(1.02);
}

/* Step 1 Hero Mockup Image (Eager render, guarantees display on all mobile browsers) */
#intro-mockup {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Lazy Load Transition */
.lazy-load {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Wavy underline accent effect */
.underline {
  text-decoration: underline;
}

.decoration-wavy {
  text-decoration-style: wavy;
}

.decoration-accent\/60 {
  text-decoration-color: rgba(230, 126, 34, 0.6);
}

.underline-offset-4 {
  text-underline-offset: 4px;
}

/* Custom Logo image styling: small, neat, centered directly below progress bar */
.logo-img-custom {
  display: block;
  width: 90px;
  max-width: 90px;
  height: auto;
  margin: 0.4rem auto 0.75rem auto;
  border-radius: 6px;
}

/* Space between logo and question */
.step-container:not(#step-23) .flex:has(> .logo-img-custom) + div,
.step-container:not(#step-23) .space-y-6 > .flex:first-child + div,
.step-container:not(#step-23) > div > .flex:first-child + div {
  margin-top: 0.5rem !important;
}

.step-container:not(#step-23) .space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.25rem;
}

/* Headings in quiz steps */
.step-container:not(#step-23) h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

/* Subtitles in quiz steps */
.step-container:not(#step-23) p.text-xs,
.step-container:not(#step-23) p.text-sm {
  font-family: var(--font-content);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-muted);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  
  .text-4xl { font-size: 1.85rem; }
  .text-3xl { font-size: 1.6rem; }
  .text-2xl { font-size: 1.45rem; }
  
  main {
    padding: 0.5rem 1rem 1.25rem 1rem !important;
  }

  footer {
    padding: 1rem !important;
    background-color: var(--color-bg) !important;
    border-top: 1px solid var(--color-border) !important;
    color: var(--color-muted) !important;
  }

  /* Compact Quiz Logo on mobile: small & neat right below progress bar */
  .logo-img-custom {
    width: 85px !important;
    max-width: 85px !important;
    margin: 0.25rem auto 0.65rem auto !important;
  }

  /* Question titles restored to proportional size */
  .step-container:not(#step-23) h2 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin-bottom: 0.4rem !important;
  }

  .step-container:not(#step-23) p.text-xs,
  .step-container:not(#step-23) p.text-sm {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: var(--color-muted) !important;
  }

  /* Option buttons proportional layout */
  .option-btn-custom {
    border-radius: 12px;
    min-height: 64px;
  }

  .option-content {
    padding: 0.95rem 1.2rem !important;
    gap: 12px !important;
  }

  .option-text {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
  }

  .emoji-box {
    width: 56px !important;
    font-size: 1.45rem !important;
  }

  .option-img-wrapper {
    width: 62px !important;
  }

  .option-indicator-left {
    width: 22px !important;
    height: 22px !important;
  }

  /* Option button grid gap */
  .step-container:not(#step-23) .grid.gap-3\.5,
  .step-container:not(#step-23) .grid.gap-3,
  .step-container:not(#step-23) .grid.gap-4 {
    gap: 0.65rem !important;
  }

  /* Step 4 layout */
  #step-4 h2 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }
  #step-4 p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }
  #step-4 ul li {
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
  }
  #step-4 .carousel-custom-wrapper {
    max-width: 280px !important;
  }
  #btn-step-4-next {
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

  /* Quiz step buttons */
  .step-container:not(#step-23) .btn {
    padding: 0.95rem 1.75rem !important;
    font-size: 0.95rem !important;
  }
  
  .step-container:not(#step-23) .pt-4 {
    padding-top: 0.75rem !important;
  }
  
  .step-container:not(#step-23) .pt-2 {
    padding-top: 0.5rem !important;
  }

  #input-weight {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 1.6rem !important;
  }
  
  .rounded-3xl {
    border-radius: 1.25rem;
  }
  
  .p-6 {
    padding: 1.25rem;
  }
}

/* Top Header Navigation (Back Arrow & Progress Bar) */
#top-nav-bar {
  display: none; /* Controlled by JS */
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-bottom: 1px solid var(--color-border);
}

#btn-back {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #291508;
  box-shadow: 0 2px 6px rgba(41, 21, 8, 0.08);
  transition: all 0.2s ease;
  z-index: 10;
}

#btn-back:hover {
  background: #faeddd;
  border-color: #eaa03d;
  color: #C96A2B;
  transform: translateY(-50%) scale(1.08);
}

#btn-back:active {
  transform: translateY(-50%) scale(0.95);
}

#btn-back svg {
  width: 20px;
  height: 20px;
  display: block;
}

.progress-wrapper-custom {
  width: 200px;
  height: 6px;
  background-color: #faeddd;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  overflow: hidden;
}

#quiz-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background-color: var(--color-primary);
  width: 0%;
  transition: width 0.3s ease;
}

/* Custom option buttons matching landing card style */
.option-btn-custom {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 440px;
  min-height: 66px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 2px 6px rgba(41, 21, 8, 0.04);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.option-btn-custom.no-emoji {
  padding: 0;
}

.emoji-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  border-right: 1px solid var(--color-border);
  background-color: #fbf8f1;
  font-size: 1.55rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  border-right: 1px solid var(--color-border);
  background-color: #fbf8f1;
  flex-shrink: 0;
  transition: all 0.2s ease;
  overflow: hidden;
}

.option-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.05rem 1.35rem;
  flex-grow: 1;
}

.option-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: #291508;
  line-height: 1.35;
}

.option-indicator-left {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d6c7b8;
  background-color: #ffffff;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.option-indicator-left::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Active / Selected States */
.option-btn-custom.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-soft);
  box-shadow: 0 4px 14px rgba(234, 160, 61, 0.18);
}

.option-btn-custom.selected .emoji-box {
  border-right-color: var(--color-primary);
  background-color: var(--color-primary-soft);
}

.option-btn-custom.selected .option-img-wrapper {
  border-right-color: var(--color-primary);
}

.option-btn-custom.selected .option-indicator-left {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.option-btn-custom.selected .option-indicator-left::after {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%) scale(1);
}

/* Hover effect */
@media (hover: hover) {
  .option-btn-custom:hover {
    border-color: var(--color-primary);
    background-color: #fcf8f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 160, 61, 0.12);
  }
  .option-btn-custom:hover .emoji-box {
    border-right-color: var(--color-primary);
    background-color: #fcf8f2;
  }
  .option-btn-custom:hover .option-img-wrapper {
    border-right-color: var(--color-primary-light);
  }
  .option-btn-custom:hover .option-indicator-left {
    border-color: var(--color-primary);
  }
}

/* Step 4 Image Carousel Styles */
.carousel-custom-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px; /* Slim width optimized for vertical mobile screens */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.carousel-custom-slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.carousel-custom-slide {
  min-width: 100%;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-custom-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.carousel-custom-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.carousel-custom-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-custom-dot.active {
  background-color: var(--color-primary); /* Gold #E5AE39 */
  transform: scale(1.2);
}

/* Step 9 Noticias Image styling */
.noticias-img-custom {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 12px;
}

/* Step 10 Image Option Cards styling */
.option-card-custom {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: all 0.25s ease;
  padding: 0;
  box-shadow: 0 2px 6px rgba(41, 21, 8, 0.04);
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.option-card-custom:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  flex-grow: 1;
}

.card-content-wrapper .option-indicator-left {
  margin-top: 2px;
}

.card-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-text);
  font-weight: 600;
}

@media (min-width: 640px) {
  .card-text {
    font-size: 0.88rem;
  }
}

/* Selected State */
.option-card-custom.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-soft);
  box-shadow: 0 4px 14px rgba(234, 160, 61, 0.18);
}

.option-card-custom.selected .card-content-wrapper {
  background-color: var(--color-primary-soft);
}

.option-card-custom.selected .option-indicator-left {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.option-card-custom.selected .option-indicator-left::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%) scale(1);
}

/* Hover effects */
@media (hover: hover) {
  .option-card-custom:hover {
    border-color: var(--color-primary);
    background-color: #fcf8f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 160, 61, 0.12);
  }
  .option-card-custom:hover .option-indicator-left {
    border-color: var(--color-primary);
  }
}

/* Step 4 Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  padding: 0;
}
.carousel-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.carousel-arrow-prev {
  left: 6px;
}
.carousel-arrow-next {
  right: 6px;
}
