/* ============================================================
   Eventos 8-11 · "La Tarjeta de Invitación"
   Mobile-first · Persuade · mundo: invitación caligrafiada
   ============================================================ */

:root {
  --cream: #FBF3E6;
  --cream-deep: #F4E7CE;
  --paper: #FFFDF7;
  --ink: #38304A;
  --ink-soft: #6B6280;
  --purple: #584890;
  --purple-deep: #3A2F6E;
  --purple-night: #2B2540;
  --fiesta: #E0437F;
  --fiesta-deep: #B52860;
  --fiesta-bright: #F279AC;
  --lavender: #D8D2EC;
  --line: rgba(88, 72, 144, 0.22);
  --line-strong: rgba(88, 72, 144, 0.45);

  --font-script: "Great Vibes", cursive;
  --font-serif: "Alegreya", serif;
  --font-body: "Karla", sans-serif;
  --font-hand: "Caveat", cursive;

  --radius: 14px;
  --shadow-hover: 0 16px 28px -14px rgba(59, 47, 110, 0.32);
  --shadow-seal: 0 6px 18px -6px rgba(59, 47, 110, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  caret-color: var(--purple-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Browser surfaces ---------- */
::selection {
  background: var(--fiesta);
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--fiesta);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 13px;
}
::-webkit-scrollbar-track {
  background: var(--cream-deep);
}
::-webkit-scrollbar-thumb {
  background: #A88CC0;
  border-radius: 8px;
  border: 3px solid var(--cream-deep);
}
html {
  scrollbar-width: thin;
  scrollbar-color: #A88CC0 var(--cream-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  background: var(--purple-deep);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.ico {
  flex: none;
}

/* ============================================================
   Encabezado
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(251, 243, 230, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s var(--ease-out);
}
.site-head.scrolled {
  background: rgba(255, 253, 247, 0.97);
  box-shadow: 0 10px 28px -15px rgba(59, 47, 110, 0.25);
  border-bottom-color: var(--line-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: clamp(52px, 5vw, 68px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(59, 47, 110, 0.1));
  transition: transform 0.25s var(--ease-out);
}
.brand:hover img {
  transform: scale(1.04);
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--purple-deep);
  letter-spacing: 0.01em;
}

/* Nav Menu (Pill container in center) */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.35rem;
  background: rgba(88, 72, 144, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.45rem 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--purple-deep);
  background: rgba(88, 72, 144, 0.08);
}

.nav-links a.active {
  color: var(--purple-deep);
  background: var(--paper);
  font-weight: 700;
  box-shadow: 0 2px 8px -2px rgba(59, 47, 110, 0.16);
  border: 1px solid rgba(88, 72, 144, 0.2);
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: var(--fiesta);
  border-radius: 2px;
}

/* Head Actions & CTA */
.head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--purple-deep);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px -3px rgba(58, 47, 110, 0.35);
  transition: all 0.25s var(--ease-out);
}
.head-cta:hover {
  background: #2D2359;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -4px rgba(58, 47, 110, 0.45);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--purple-deep);
  transition: all 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(88, 72, 144, 0.08);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 253, 247, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid var(--line-strong);
    box-shadow: 0 16px 32px -10px rgba(59, 47, 110, 0.25);
    padding: 1rem 1.5rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.5rem;
  }

  .nav-links a {
    text-align: center;
    padding: 0.75rem 1.25rem;
    font-size: 1.05rem;
    background: rgba(88, 72, 144, 0.04);
  }

  .nav-links a.active {
    background: var(--purple-deep);
    color: var(--paper);
    border: none;
  }

  .nav-links a.active::after {
    display: none;
  }
}

/* ============================================================
   Hero · La invitación
   ============================================================ */
.hero {
  background: var(--cream-deep);
  padding: clamp(3rem, 9vh, 5.5rem) clamp(1rem, 4vw, 2rem);
}

.invite {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: 9px;
  border-radius: 4px;
  padding: clamp(2.4rem, 7vw, 4.5rem) clamp(1.3rem, 6vw, 4.5rem) clamp(2.2rem, 6vw, 3.6rem);
  text-align: center;
  color: var(--purple);
}

.invite-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  color: var(--purple);
  opacity: 0.8;
}
.corner-tl { top: 14px; left: 14px; }
.corner-tr { top: 14px; right: 14px; transform: scaleX(-1); }
.corner-bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.corner-br { bottom: 14px; right: 14px; transform: scale(-1, -1); }

.hero-logo {
  display: block;
  width: clamp(160px, 32vw, 240px);
  height: auto;
  margin: 0.2rem auto 0.8rem;
  filter: drop-shadow(0 6px 18px rgba(59, 47, 110, 0.12));
}

.hero-title {
  margin: 0.6rem auto 0.35rem;
  max-width: 14ch;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1.04;
  color: var(--purple-deep);
  letter-spacing: 0.01em;
}
.hero-title .fiesta {
  font-style: normal;
  color: var(--fiesta-deep);
  display: inline-block;
  transform: rotate(-1.5deg);
}

.swash {
  display: block;
  width: min(240px, 72%);
  margin: 0.9rem auto 0.5rem;
}
.swash path {
  stroke-linecap: round;
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--ink-soft);
  margin: 0.6rem 0 1.4rem;
}

.hero-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.hero-line {
  margin: 0;
}
.hand-note {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--purple);
}
.ribbon {
  display: inline-block;
  position: relative;
  margin: 0 0.35rem;
}
.ribbon-tab {
  display: inline-block;
  background: var(--purple-deep);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.9rem 0.32rem 1rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%);
}

.hero-actions,
.rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn-primary {
  background: var(--purple-deep);
  color: var(--paper);
  box-shadow: 0 12px 26px -14px rgba(59, 47, 110, 0.65);
}
.btn-primary:hover {
  background: #31264F;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(59, 47, 110, 0.75);
}
.btn-ghost {
  background: transparent;
  color: var(--purple-deep);
  border: 2px solid var(--purple);
}
.btn-ghost:hover {
  background: rgba(88, 72, 144, 0.1);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 1rem 1.9rem;
  font-size: 1.1rem;
}

/* ============================================================
   Intro
   ============================================================ */
.intro {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3.2rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  line-height: 1.12;
  color: var(--purple-deep);
  margin: 0 0 1.1rem;
}
.section-title em {
  font-style: italic;
  color: var(--fiesta-deep);
}
.section-title + .swash {
  margin-top: -0.3rem;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 auto 1.2rem;
}
.intro-note {
  margin: 0;
  transform: rotate(-1deg);
}

/* ============================================================
   Servicios · El menú
   ============================================================ */
.services {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.2rem, 5vw, 2rem) clamp(3.5rem, 8vw, 6rem);
}
.services-head {
  text-align: center;
  margin-bottom: clamp(1.8rem, 5vw, 3rem);
}
.services-head .hand-note {
  margin: 0;
  transform: rotate(-1deg);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 4vw, 2rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.service-card:hover .service-img {
  transform: scale(1.04);
}

.service-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  flex: 1;
}
.service-num {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 0.2rem;
  color: var(--fiesta);
}
.service-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--purple-deep);
  margin: 0;
}
.service-desc {
  margin: 0.2rem 0 1rem;
  color: var(--ink-soft);
  max-width: 34em;
}
.service-cta {
  margin-top: auto;
  font-weight: 700;
  color: var(--purple-deep);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.service-cta span {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.service-cta:hover {
  border-color: var(--fiesta);
}
.service-cta:hover span {
  transform: translateX(4px);
}

.service-card-cta {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  justify-content: center;
  min-height: 100%;
}
.service-card-cta .service-num {
  color: var(--fiesta-bright);
}
.service-card-cta .service-name {
  color: var(--paper);
}
.service-card-cta .service-desc {
  color: var(--lavender);
}
.service-card-cta .service-cta {
  color: var(--paper);
  border-color: rgba(251, 243, 230, 0.5);
}
.service-card-cta .service-cta:hover {
  border-color: var(--fiesta);
}

/* ============================================================
   Galería · Diseños y manualidades
   ============================================================ */
.gallery {
  background: var(--cream-deep);
  padding: clamp(3.2rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
}
.gallery-head {
  max-width: 40rem;
  margin: 0 auto clamp(1.8rem, 5vw, 3rem);
  text-align: center;
}
.gallery-note {
  margin: 0;
  transform: rotate(-1deg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 3vw, 1.6rem);
  max-width: 74rem;
  margin: 0 auto;
}

.gallery-item {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-caption {
  padding: 0.7rem 1rem 0.9rem;
  text-align: center;
}
.gallery-caption .hand-note {
  font-size: 1.18rem;
}

.gallery-cta {
  text-align: center;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

/* ============================================================
   Presupuesto
   ============================================================ */
.budget {
  background: var(--purple-deep);
  color: var(--paper);
  text-align: center;
  border-top: 7px solid var(--fiesta);
  padding: clamp(3.2rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
}
.budget-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--paper);
}
.budget-sub {
  color: var(--lavender);
  font-size: 1.12rem;
  max-width: 34em;
  margin: 0 auto 1.8rem;
}
.btn-light {
  background: var(--cream);
  color: var(--purple-deep);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.4);
}
.btn-light:hover {
  background: #fff8e8;
  transform: translateY(-2px);
}

/* ============================================================
   Reserva · RSVP
   ============================================================ */
.rsvp {
  background: var(--cream);
  padding: clamp(3.2rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
}
.rsvp-card {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: 9px;
  border-radius: 4px;
  text-align: center;
  padding: clamp(2.4rem, 7vw, 4.2rem) clamp(1.3rem, 6vw, 4rem);
}
.rsvp-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  line-height: 1.08;
  color: var(--purple-deep);
  margin: 0 0 0.4rem;
}
.rsvp-title em {
  font-style: normal;
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--fiesta-deep);
}
.rsvp-proof {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 1.8rem;
}

/* ============================================================
   Pie de página
   ============================================================ */
.site-foot {
  background: var(--purple-night);
  color: var(--lavender);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.2rem, 5vw, 2.5rem);
}
.foot-brand img {
  width: 92px;
  height: auto;
  margin-bottom: 0.8rem;
}
.foot-brand p {
  margin: 0;
  max-width: 24em;
  font-size: 0.95rem;
}
.foot-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 0.6rem;
}
.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}
.foot-contact {
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}
.foot-contact a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--fiesta);
  text-decoration-thickness: 2px;
}
.foot-contact a:hover {
  color: #fff;
}
.foot-coverage {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ============================================================
   Movimiento · desplegar la invitación
   ============================================================ */
body.js [data-unfold] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
body.js [data-unfold].is-in {
  opacity: 1;
  transform: none;
}

body.js .invite {
  transform: perspective(1300px) rotateX(5deg) translateY(16px);
  transform-origin: top center;
  transition: opacity 0.9s var(--ease-out) 0.05s, transform 0.9s var(--ease-out) 0.05s;
}
body.js .invite.is-in {
  transform: none;
}

body.js .swash path {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  transition: stroke-dashoffset 1.1s var(--ease-out) 0.35s;
}
body.js [data-unfold].is-in .swash path {
  stroke-dashoffset: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .brand img {
    width: 76px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .site-foot {
    grid-template-columns: 1.2fr 1fr 1.2fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .hero-actions {
    gap: 1rem;
  }
}

/* ============================================================
   Accesibilidad · movimiento reducido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.js [data-unfold],
  body.js [data-unfold].is-in,
  body.js .invite,
  body.js .invite.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Admin Live Toolbar & In-Place CMS
   ============================================================ */
.admin-live-toolbar {
  position: sticky;
  top: 0;
  z-index: 100000;
  background: #1e153b;
  color: #fff;
  border-bottom: 2px solid var(--fiesta);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-family: var(--font-sans);
}

.toolbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toolbar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.toolbar-user {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.8rem;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-toolbar-save {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-toolbar-save.is-dirty {
  background: var(--fiesta);
  color: #fff;
  border-color: var(--fiesta-bright);
  box-shadow: 0 0 14px rgba(224, 67, 127, 0.5);
  cursor: pointer;
}

.btn-toolbar-save.is-dirty:hover {
  background: var(--fiesta-deep);
}

.btn-toolbar-link {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s;
}

.btn-toolbar-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-toolbar-logout {
  background: transparent;
  color: #fca5a5;
  border: 1px solid rgba(252, 165, 165, 0.3);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toolbar-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fff;
}

/* In-place Editable Text Highlights */
.inline-editable {
  position: relative;
  outline: none;
  transition: background 0.15s, outline 0.15s, box-shadow 0.15s;
}

.inline-editable:hover {
  background: rgba(224, 67, 127, 0.08) !important;
  outline: 2px dashed var(--fiesta) !important;
  border-radius: 4px;
  cursor: text;
}

.inline-editable:focus {
  background: #fff !important;
  outline: 2px solid var(--purple-deep) !important;
  box-shadow: 0 0 0 4px rgba(58, 47, 110, 0.15);
  border-radius: 4px;
}

/* Section Upload & Management UI */
.section-add-card {
  border: 2px dashed rgba(58, 47, 110, 0.3);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 220px;
}

.section-add-card:hover {
  border-color: var(--fiesta);
  background: rgba(224, 67, 127, 0.05);
  transform: translateY(-2px);
}

.section-add-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(224, 67, 127, 0.12);
  color: var(--fiesta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  transition: transform 0.2s ease;
}

.section-add-card:hover .section-add-icon {
  transform: scale(1.1);
  background: var(--fiesta);
  color: #fff;
}

.photo-admin-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  display: flex;
  gap: 6px;
}

.photo-delete-btn {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.photo-delete-btn:hover {
  background: #b91c1c;
}

.photo-admin-btn {
  background: rgba(30, 21, 59, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.15s;
}

.photo-admin-btn:hover {
  background: var(--purple-deep);
  transform: translateY(-1px);
}

.photo-admin-btn.btn-fit-img {
  background: rgba(58, 47, 110, 0.9);
}
.photo-admin-btn.btn-fit-img:hover {
  background: var(--purple);
}

.photo-admin-btn.btn-replace-img {
  background: rgba(224, 67, 127, 0.9);
}
.photo-admin-btn.btn-replace-img:hover {
  background: var(--fiesta);
}

.fit-option-card {
  transition: all 0.2s ease;
}
.fit-option-card:hover {
  border-color: var(--purple) !important;
  transform: translateY(-2px);
}
.fit-option-card.is-selected {
  border-color: var(--fiesta) !important;
  background: rgba(224, 67, 127, 0.08) !important;
  box-shadow: 0 0 0 2px var(--fiesta) !important;
}

.pos-btn {
  transition: all 0.15s ease;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.pos-btn.is-active {
  background: var(--purple-deep) !important;
  color: #fff !important;
  border-color: var(--purple-deep) !important;
}

/* Image outline when in admin edit mode */
body.is-admin-active:not(.is-visitor-mode) [data-editable-img],
body.is-admin-active:not(.is-visitor-mode) .service-img,
body.is-admin-active:not(.is-visitor-mode) .menu-section img,
body.is-admin-active:not(.is-visitor-mode) .gallery-card img {
  cursor: pointer;
  outline: 2px dashed rgba(224, 67, 127, 0.45);
  outline-offset: -2px;
  transition: outline 0.2s ease, opacity 0.2s ease;
}

body.is-admin-active:not(.is-visitor-mode) [data-editable-img]:hover,
body.is-admin-active:not(.is-visitor-mode) .service-img:hover,
body.is-admin-active:not(.is-visitor-mode) .menu-section img:hover,
body.is-admin-active:not(.is-visitor-mode) .gallery-card img:hover {
  outline: 3px solid var(--fiesta);
}

/* Visitor Preview Mode for Admins */
body.is-visitor-mode .status-pulse {
  background: #64748b !important;
  box-shadow: none !important;
  animation: none !important;
}

body.is-visitor-mode .inline-editable {
  outline: none !important;
  background: transparent !important;
  cursor: default !important;
}

body.is-visitor-mode .section-add-card,
body.is-visitor-mode .btn-quick-upload,
body.is-visitor-mode .photo-admin-overlay,
body.is-visitor-mode .photo-admin-btn,
body.is-visitor-mode .btn-link-gallery-sec,
body.is-visitor-mode #btn-add-section,
body.is-visitor-mode #btn-add-menu-section,
body.is-visitor-mode .btn-delete-section,
body.is-visitor-mode .admin-action-box {
  display: none !important;
}

.btn-link-gallery-sec {
  transition: all 0.2s ease;
}
.btn-link-gallery-sec:hover {
  background: var(--purple-deep) !important;
  color: #fff !important;
  border-style: solid !important;
}

.gallery-section-block {
  scroll-margin-top: 100px;
}

/* =========================================================
   CMS Modal Pop-up Dialogs
   ========================================================= */
.cms-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 21, 59, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.cms-modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cms-modal-card {
  background: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px -12px rgba(30, 21, 59, 0.45);
  padding: 2.2rem 2.2rem 2rem;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.cms-modal-backdrop.is-active .cms-modal-card {
  transform: translateY(0) scale(1);
}

.cms-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1.5px solid var(--line);
}

.cms-modal-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--purple-deep);
  margin: 0;
  line-height: 1.2;
}

.cms-modal-sub {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.3rem 0 0;
}

.cms-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 0.4rem;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.cms-modal-close:hover {
  color: var(--purple-deep);
  background: rgba(58, 47, 110, 0.08);
}

.cms-form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.cms-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 0.35rem;
}

.cms-input,
.cms-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.cms-input:focus,
.cms-textarea:focus {
  outline: none;
  border-color: var(--fiesta);
  box-shadow: 0 0 0 3px rgba(224, 67, 127, 0.18);
}

.cms-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.45;
}

.cms-hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
  display: block;
}

.cms-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--line);
}