.package-showcase {
  position: relative;
  overflow: hidden;
}

.package-showcase::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 32px;
  pointer-events: none;
}

.pack-feature-grid,
.pack-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.pack-feature-card,
.pack-matrix-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.pack-feature-card h3,
.pack-matrix-grid h3 {
  margin: 10px 0 8px;
}

.pack-feature-card p,
.pack-matrix-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.pack-feature-icon,
.pack-matrix-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 950;
}

.pack-matrix-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pack-matrix-grid article {
  min-height: 250px;
}

.pack-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.pack-flow span {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 85%, var(--primary) 15%);
  color: var(--ink);
  padding: 14px;
  font-weight: 900;
}

.pack-flow strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: white;
}

.real-demo-panel {
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 90%, var(--primary) 10%), #fff);
}

.real-demo-split {
  align-items: stretch;
}

.demo-settings-card,
.demo-requests-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.demo-settings-card label,
.real-booking-fields label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 950;
}

.demo-phone-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.demo-phone-row input,
.real-booking-fields input,
.real-booking-fields select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

.demo-help {
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-requests-card {
  margin-top: 20px;
}

.demo-requests-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.demo-requests-header h3 {
  margin: 0;
}

.saved-requests-list {
  display: grid;
  gap: 12px;
}

.demo-empty-state {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.saved-request-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line));
  border-radius: 20px;
  background: color-mix(in srgb, #fff 88%, var(--primary) 12%);
  padding: 16px;
}

.saved-request-card strong,
.saved-request-card span {
  display: block;
}

.saved-request-card span {
  color: var(--muted);
  font-weight: 850;
  margin-top: 3px;
}

.saved-request-card p {
  margin: 8px 0 0;
  color: var(--ink);
}

.saved-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 440px;
}

.request-status {
  align-self: center;
  border-radius: 999px;
  background: var(--ink);
  color: white !important;
  padding: 8px 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.real-booking-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.local-map-demo .map-split {
  align-items: stretch;
}

.map-actions,
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
  filter: saturate(0.95) contrast(1.02);
}

.map-card p {
  margin: 0;
  padding: 16px 20px;
  color: var(--muted);
  font-weight: 850;
}

.demo-floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 16px 42px rgb(0 0 0 / 18%);
  backdrop-filter: blur(12px);
}

.demo-floating-actions a {
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 950;
  font-size: 0.88rem;
}

.demo-floating-actions a:nth-child(2),
.whatsapp {
  background: #128c7e !important;
  color: white !important;
}

.demo-floating-actions a:nth-child(3) {
  background: var(--primary-dark);
}

.booking-result-enhanced {
  color: var(--ink) !important;
}

.booking-result-enhanced strong {
  color: var(--primary-dark);
}

.bot-message-actions {
  display: block;
  margin-top: 14px;
}

.interactive-menu-section {
  background: #fffdf8;
}

.menu-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.interactive-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.interactive-dish {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.interactive-dish span {
  display: inline-flex;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 16%, #fff);
  color: var(--primary-dark);
  padding: 7px 10px;
  font-weight: 950;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.interactive-dish h3 {
  margin: 14px 0 8px;
}

.interactive-dish p {
  color: var(--muted);
  line-height: 1.6;
}

.interactive-dish strong {
  display: block;
  margin: 0 0 16px;
  color: var(--ink);
}

.food-demo .pack-feature-card,
.food-demo .pack-matrix-grid article,
.food-demo .map-card,
.food-demo .demo-settings-card,
.food-demo .demo-requests-card {
  background: #fffaf0;
}

.demo-page:not(.healthcare-demo):not(.food-demo):not(.workshop-demo) .package-showcase {
  background: #fff8f5;
  color: #2f1f2b;
}

.demo-page:not(.healthcare-demo):not(.food-demo):not(.workshop-demo) .package-showcase .section-heading p,
.demo-page:not(.healthcare-demo):not(.food-demo):not(.workshop-demo) .package-showcase p {
  color: #76636f;
}

@media (max-width: 980px) {
  .pack-feature-grid,
  .pack-matrix-grid,
  .pack-flow,
  .interactive-menu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .saved-request-card {
    grid-template-columns: 1fr;
  }

  .saved-request-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .pack-feature-grid,
  .pack-matrix-grid,
  .pack-flow,
  .interactive-menu-grid,
  .real-booking-fields,
  .demo-phone-row {
    grid-template-columns: 1fr;
  }

  .demo-requests-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-floating-actions {
    left: 12px;
    right: 12px;
    justify-content: center;
    border-radius: 22px;
  }

  .demo-floating-actions a {
    flex: 1;
    text-align: center;
  }
}

/* Fix visual para galerías: evita que se vean textos alternativos si alguna imagen externa falla. */
.real-gallery .gallery-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.real-gallery .gallery-item > img {
  opacity: 0;
}

.demo-page:not(.healthcare-demo):not(.food-demo):not(.workshop-demo) .real-gallery .gallery-item:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&w=900&q=80");
}

.demo-page:not(.healthcare-demo):not(.food-demo):not(.workshop-demo) .real-gallery .gallery-item:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1595475038784-bbe439ff41e6?auto=format&fit=crop&w=900&q=80");
}

.demo-page:not(.healthcare-demo):not(.food-demo):not(.workshop-demo) .real-gallery .gallery-item:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?auto=format&fit=crop&w=900&q=80");
}

.demo-page:not(.healthcare-demo):not(.food-demo):not(.workshop-demo) .real-gallery .gallery-item:nth-child(4) {
  background-image: url("https://images.unsplash.com/photo-1562322140-8baeececf3df?auto=format&fit=crop&w=900&q=80");
}

.food-demo .real-gallery .gallery-item:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=900&q=80");
}

.food-demo .real-gallery .gallery-item:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1504754524776-8f4f37790ca0?auto=format&fit=crop&w=900&q=80");
}

.food-demo .real-gallery .gallery-item:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1482049016688-2d3e1b311543?auto=format&fit=crop&w=900&q=80");
}

.food-demo .real-gallery .gallery-item:nth-child(4) {
  background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=900&q=80");
}

.healthcare-demo .real-gallery .gallery-item:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=900&q=80");
}

.healthcare-demo .real-gallery .gallery-item:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1519823551278-64ac92734fb1?auto=format&fit=crop&w=900&q=80");
}

.healthcare-demo .real-gallery .gallery-item:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=900&q=80");
}

.healthcare-demo .real-gallery .gallery-item:nth-child(4) {
  background-image: url("https://images.unsplash.com/photo-1576765607924-21fabb9f6f94?auto=format&fit=crop&w=900&q=80");
}

.workshop-demo .real-gallery .gallery-item:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1625047509248-ec889cbff17f?auto=format&fit=crop&w=900&q=80");
}

.workshop-demo .real-gallery .gallery-item:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=900&q=80");
}

.workshop-demo .real-gallery .gallery-item:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1580273916550-e323be2ae537?auto=format&fit=crop&w=900&q=80");
}

.workshop-demo .real-gallery .gallery-item:nth-child(4) {
  background-image: url("https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?auto=format&fit=crop&w=900&q=80");
}
