/* Escenas interactivas: foto + mock AgendaPro */

.hero-scene {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f4faf7;
}

.hero-scene .scene-photo {
  position: absolute;
  inset: 0;
  background-image: var(--scene-img);
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  will-change: transform;
  animation: scene-photo-in 1.1s ease both;
}

.hero-scene .scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 36, 30, 0.88) 0%, rgba(19, 74, 61, 0.55) 48%, rgba(12, 36, 30, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 28, 24, 0.25) 0%, rgba(10, 28, 24, 0.55) 100%);
}

.hero-scene .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 3.25rem;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-scene .eyebrow {
  color: #b7e0cf;
}

.hero-scene h1 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 9vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.25);
  animation: scene-rise 0.8s ease both;
}

.hero-scene .lead {
  max-width: 28rem;
  margin: 1rem 0 1.5rem;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.45;
  color: rgba(244, 250, 247, 0.92);
  animation: scene-rise 0.9s ease 0.08s both;
}

.hero-scene .cta-row {
  animation: scene-rise 1s ease 0.14s both;
}

.hero-scene .btn.ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.hero-scene .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-scene .trust {
  color: rgba(244, 250, 247, 0.75);
}

/* Compact scenes (reservar / admin) */
.scene-compact {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
  isolation: isolate;
  margin-bottom: 1rem;
}

.scene-compact .scene-photo {
  position: absolute;
  inset: 0;
  background-image: var(--scene-img);
  background-size: cover;
  background-position: center;
  animation: scene-photo-in 1s ease both;
}

.scene-compact .scene-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12, 36, 30, 0.78), rgba(19, 74, 61, 0.45) 55%, rgba(12, 36, 30, 0.55));
}

.scene-compact .scene-body {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.scene-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 160px;
  margin: 0 0 1.25rem;
}

.scene-banner .scene-photo {
  position: absolute;
  inset: 0;
  background-image: var(--scene-img);
  background-size: cover;
  background-position: center 40%;
  animation: scene-photo-in 1s ease both;
}

.scene-banner .scene-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 36, 30, 0.85) 10%, rgba(19, 74, 61, 0.4) 70%, rgba(12, 36, 30, 0.55));
}

.scene-banner .scene-body {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  align-items: center;
  color: #f4faf7;
}

.scene-banner .scene-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7e0cf;
  font-weight: 600;
}

.scene-banner .scene-title {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

/* Product mock */
.scene-mock {
  width: min(100%, 340px);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 50px rgba(8, 28, 22, 0.35);
  padding: 0.95rem 1rem 1.05rem;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  animation: mock-float-in 0.9s ease 0.2s both;
  will-change: transform;
}

.scene-mock .mock-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.scene-mock .mock-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-deep);
}

.scene-mock .mock-live {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.scene-mock .mock-live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(31, 107, 87, 0.55);
  animation: live-pulse 1.8s ease infinite;
}

.scene-mock .mock-day {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.scene-mock .mock-slots {
  display: grid;
  gap: 0.4rem;
}

.scene-mock .mock-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfdfb;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.scene-mock .mock-slot span {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}

.scene-mock .mock-slot.is-active {
  background: #e8f5ef;
  border-color: var(--accent);
  transform: translateX(3px);
}

.scene-mock .mock-slot.is-booked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.scene-mock .mock-slot.is-booked span {
  color: rgba(255, 255, 255, 0.85);
}

.scene-mock .mock-cta {
  margin-top: 0.75rem;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: default;
  animation: cta-glow 2.4s ease infinite;
}

.top.is-over-hero {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  max-width: 1120px;
  margin: 0 auto;
}

.top.is-over-hero .brand,
.top.is-over-hero nav a {
  color: #f4faf7;
}

.top.is-over-hero .nav-cta {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

body.has-hero-scene .bg-mesh {
  opacity: 0.35;
}

@keyframes scene-photo-in {
  from { transform: scale(1.14); filter: saturate(0.85); }
  to { transform: scale(1.06); filter: saturate(1); }
}

@keyframes scene-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mock-float-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 107, 87, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(31, 107, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 107, 87, 0); }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 107, 87, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(31, 107, 87, 0); }
}

@media (min-width: 900px) {
  .hero-scene .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 7rem;
  }

  .scene-banner .scene-body {
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene .scene-photo,
  .scene-compact .scene-photo,
  .scene-banner .scene-photo,
  .hero-scene h1,
  .hero-scene .lead,
  .hero-scene .cta-row,
  .scene-mock,
  .scene-mock .mock-live::before,
  .scene-mock .mock-cta {
    animation: none !important;
  }

  .scene-mock {
    transition: none;
  }
}
