@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  /* Paleta FLG: rosa suave, rosa intenso y carbón */
  --ink: #261d22;
  --ink-soft: #6d5d65;

  --pink-950: #4b1730;
  --pink-900: #6f2145;
  --pink-800: #96305f;
  --pink-700: #bd4777;
  --pink-500: #e56d9d;
  --pink-300: #f2adc8;
  --pink-150: #f9d9e6;
  --pink-75: #fff2f7;

  /* Alias conservados para no modificar los HTML ni los JavaScript */
  --lilac-950: var(--pink-950);
  --lilac-900: var(--pink-900);
  --lilac-800: var(--pink-800);
  --lilac-700: var(--pink-700);
  --lilac-500: var(--pink-500);
  --lilac-300: var(--pink-300);
  --lilac-150: var(--pink-150);
  --lilac-75: var(--pink-75);

  /* Los antiguos tonos menta ahora funcionan como acentos rosados claros */
  --mint-700: #a62d61;
  --mint-500: #e94b8a;
  --mint-300: #f68fb7;
  --mint-100: #ffe7f0;

  --cream: #fffafb;
  --white: #ffffff;
  --line: rgba(150, 48, 95, .15);
  --shadow: 0 24px 70px rgba(88, 25, 52, .14);
  --shadow-soft: 0 16px 45px rgba(88, 25, 52, .10);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
  --header-height: 82px;
  --topbar-height: 0px;
  --fixed-header-height: calc(var(--header-height) + var(--topbar-height));
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--fixed-header-height) + 24px);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: var(--fixed-header-height);
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--lilac-300); color: var(--lilac-950); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 110px 0; }
.section--tight { padding: 78px 0; }
.section--lilac { background: var(--lilac-75); }
.section--mint { background: var(--mint-100); }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lilac-700);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-kicker::before { content: '✦'; color: var(--mint-500); font-size: 1rem; }
.section-title {
  max-width: 760px;
  margin: 12px 0 22px;
  color: var(--lilac-950);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.95rem, 3.7vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.section-title--center { margin-inline: auto; text-align: center; }
.section-copy { max-width: 680px; color: var(--ink-soft); font-size: 1.08rem; }
.section-copy--center { margin-inline: auto; text-align: center; }
.muted { color: var(--ink-soft); }
.eyebrow { color: var(--mint-700); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: var(--white); background: var(--lilac-800); box-shadow: 0 14px 30px rgba(150, 48, 95, .24); }
.btn--primary:hover { background: var(--lilac-950); }
.btn--mint { color: var(--lilac-950); background: var(--mint-300); box-shadow: 0 14px 30px rgba(104, 184, 172, .24); }
.btn--mint:hover { background: #fac2d7; }
.btn--ghost { color: var(--lilac-900); border-color: rgba(150, 48, 95, .25); background: rgba(255,255,255,.7); }
.btn--ghost:hover { border-color: var(--lilac-700); background: var(--white); }
.btn--light { color: var(--lilac-950); background: var(--white); }
.btn--block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--lilac-800); font-weight: 700; }
.text-link::after { content: '→'; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.topbar { background: var(--lilac-950); color: rgba(255,255,255,.88); font-size: .86rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__contacts { display: flex; align-items: center; gap: 24px; }
.topbar a:hover { color: var(--mint-300); }
.topbar__status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-300); box-shadow: 0 0 0 5px rgba(246,143,183,.18); }

#site-header {
  position: fixed;
  z-index: 5000;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 10px 30px rgba(51,32,63,.08);
}
.site-header { position: relative; background: rgba(255,250,251,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(150,48,95,.08); }
.site-header__inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo img { width: auto; height: 64px; max-width: 205px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { position: relative; color: var(--ink); font-weight: 700; font-size: .95rem; }
.site-nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--mint-500); transition: right .25s ease; }
.site-nav > a:hover::after, .site-nav > a.active::after { right: 0; }
.site-nav > a.active { color: var(--lilac-800); }
.language-switch { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid rgba(150,48,95,.12); border-radius: 999px; background: var(--lilac-75); box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.language-switch__icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--lilac-700); }
.language-switch__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.language-switch button { min-width: 39px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; color: var(--ink-soft); background: transparent; font-size: .75rem; font-weight: 800; letter-spacing: .04em; transition: .2s ease; }
.language-switch button:hover { color: var(--lilac-950); }
.language-switch button.is-active { color: var(--white); background: var(--lilac-800); box-shadow: 0 6px 15px rgba(150,48,95,.22); }
.nav-appointment { white-space: nowrap; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; color: var(--lilac-950); background: var(--lilac-75); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; transition: .25s ease; }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; min-height: 760px; overflow: hidden; color: var(--white); background: var(--lilac-950); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 6s ease; background-size: cover; background-position: center; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58,18,38,.86) 0%, rgba(58,18,38,.62) 46%, rgba(58,18,38,.20) 100%); }
.hero__content { position: relative; z-index: 3; min-height: 760px; display: grid; align-items: center; padding: 110px 0 150px; }
.hero__copy { max-width: 740px; }
.hero__kicker { display: flex; align-items: center; gap: 12px; font-size: .84rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero__kicker::before { content: ''; width: 52px; height: 2px; background: var(--mint-300); }
.hero h1 { margin: 20px 0 24px; max-width: 720px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.55rem, 4.9vw, 4.7rem); line-height: 1; letter-spacing: -.045em; }
.hero p { max-width: 620px; color: rgba(255,255,255,.86); font-size: 1.16rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; color: rgba(255,255,255,.76); font-size: .92rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__dots { position: absolute; z-index: 4; right: max(24px, calc((100vw - var(--container))/2)); bottom: 118px; display: flex; gap: 9px; }
.hero__dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,.4); padding: 0; }
.hero__dot.is-active { width: 34px; border-radius: 99px; background: var(--mint-300); }
.hero-divider { position: absolute; z-index: 5; left: 0; right: 0; bottom: -1px; height: 112px; pointer-events: none; }
.hero-divider svg { width: 100%; height: 100%; display: block; }
.hero-divider__fill { fill: var(--cream); }
.hero-divider__line { fill: none; stroke: rgba(242,173,200,.78); stroke-width: 3; vector-effect: non-scaling-stroke; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 65px; }
.step { position: relative; text-align: center; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 58px; left: 68%; width: 66%; height: 70px; border-top: 2px dashed rgba(189,71,119,.28); border-radius: 50%; transform: rotate(-4deg); }
.step__icon { position: relative; z-index: 2; width: 116px; height: 116px; display: grid; place-items: center; margin: 0 auto 25px; border-radius: 50%; color: var(--lilac-900); background: var(--white); box-shadow: var(--shadow-soft); font-size: 2.3rem; }
.step__number { position: absolute; right: -4px; bottom: 9px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--mint-500); font-size: .82rem; font-weight: 800; }
.step h3 { margin: 0 0 9px; color: var(--lilac-900); font-size: 1.25rem; }
.step p { margin: 0 auto; max-width: 290px; color: var(--ink-soft); }

.featured-services { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.featured-services__intro { position: sticky; top: 140px; align-self: start; }
.service-stack { display: grid; gap: 24px; }
.service-feature { position: relative; min-height: 295px; overflow: hidden; border-radius: var(--radius-xl); color: var(--white); box-shadow: var(--shadow); isolation: isolate; }
.service-feature:nth-child(2) { margin-left: 70px; }
.service-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(59,19,39,.88), rgba(59,19,39,.20)); }
.service-feature:hover img { transform: scale(1.045); }
.service-feature__content { position: relative; z-index: 2; display: flex; min-height: 295px; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 34px; }
.service-feature__icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; color: var(--lilac-950); background: var(--mint-300); font-size: 1.4rem; }
.service-feature h3 { margin: 0 0 6px; font-family: 'Playfair Display', serif; font-size: 2rem; }
.service-feature p { max-width: 470px; margin: 0 0 16px; color: rgba(255,255,255,.82); }
.service-feature a { font-weight: 700; }

.quote-wrap { position: relative; overflow: hidden; border-radius: 60px 20px 60px 20px; background: var(--lilac-900); color: var(--white); box-shadow: var(--shadow); }
.quote-wrap::before, .quote-wrap::after { content: ''; position: absolute; border-radius: 50%; background: rgba(246,143,183,.18); }
.quote-wrap::before { width: 260px; height: 260px; left: -100px; top: -90px; }
.quote-wrap::after { width: 420px; height: 420px; right: -170px; bottom: -250px; }
.quote-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .78fr 1.22fr; gap: 55px; padding: 58px; align-items: center; }
.quote-grid h2 { margin: 10px 0 16px; font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3vw, 3.05rem); line-height: 1.08; }
.quote-grid p { color: rgba(255,255,255,.76); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { color: inherit; font-size: .86rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; border: 1px solid rgba(150,48,95,.12); border-radius: 15px; outline: none; color: var(--ink); background: var(--white); padding: 0 16px; transition: border .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 145px; padding-top: 15px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--mint-500); box-shadow: 0 0 0 4px rgba(242,173,200,.28); }
.quote-wrap .field label { color: rgba(255,255,255,.84); }
.form-note { margin-top: 12px; color: rgba(255,255,255,.62); font-size: .82rem; }

.testimonial-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 75px; align-items: start; }
.testimonial-track { display: grid; grid-template-columns: repeat(3, minmax(285px, 1fr)); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 30px; scrollbar-width: thin; }
.testimonial { position: relative; min-height: 310px; scroll-snap-align: start; padding: 38px 30px 30px; border-top: 1px solid var(--line); background: rgba(255,255,255,.5); }
.testimonial::before { content: '“'; position: absolute; top: -18px; left: 20px; color: var(--lilac-300); font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
.testimonial__stars { color: #f2ae2e; letter-spacing: 3px; }
.testimonial p { color: var(--ink-soft); }
.testimonial__person { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: linear-gradient(135deg, var(--lilac-700), var(--mint-500)); font-weight: 800; }

.about-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 82px;
  align-items: center;
}

.about-carousel {
  min-width: 0;
  outline: none;
}

.about-carousel:focus-visible .about-carousel__viewport {
  box-shadow: 0 0 0 4px rgba(229,109,157,.24), var(--shadow);
}

.about-carousel__viewport {
  position: relative;
  height: 570px;
  overflow: hidden;
  border-radius: 150px 36px 125px 36px;
  background: var(--lilac-150);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.about-carousel__viewport::before {
  content: '';
  position: absolute;
  z-index: 4;
  inset: auto -90px -105px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(246,143,183,.23);
  pointer-events: none;
}

.about-carousel__slides,
.about-carousel__slide {
  position: absolute;
  inset: 0;
}

.about-carousel__slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity .65s ease, visibility .65s ease, transform 5.5s ease;
}

.about-carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,15,29,.02) 52%, rgba(45,15,29,.42) 100%);
  pointer-events: none;
}

.about-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.about-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-carousel__counter {
  position: absolute;
  z-index: 6;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 78px;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: var(--white);
  background: rgba(52,17,34,.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.about-carousel__counter [data-carousel-current] {
  font-size: 1.05rem;
}

.about-carousel__controls {
  position: absolute;
  z-index: 6;
  left: 25px;
  bottom: 25px;
  display: flex;
  gap: 10px;
}

.about-carousel__arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  color: var(--white);
  background: rgba(52,17,34,.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 1.2rem;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.about-carousel__arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.82);
  background: var(--lilac-800);
}

.about-carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.about-carousel__thumb {
  position: relative;
  aspect-ratio: 1 / .82;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 22px 8px 22px 8px;
  background: var(--lilac-150);
  opacity: .62;
  transition: opacity .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.about-carousel__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(75,23,48,.12);
  transition: opacity .22s ease;
}

.about-carousel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-carousel__thumb:hover,
.about-carousel__thumb.is-active {
  opacity: 1;
  transform: translateY(-3px);
  border-color: var(--mint-500);
  box-shadow: 0 10px 24px rgba(88,25,52,.13);
}

.about-carousel__thumb:hover::after,
.about-carousel__thumb.is-active::after {
  opacity: 0;
}

.about-carousel__thumb:focus-visible {
  outline: 3px solid rgba(229,109,157,.28);
  outline-offset: 3px;
}

.about-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s ease, opacity .3s ease, margin .3s ease;
}

.about-more.is-open {
  max-height: 460px;
  opacity: 1;
  margin-top: 16px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 78px;
  align-items: center;
}

.why-image {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 50% 18% 42% 20% / 28% 35% 23% 45%;
  background: var(--lilac-150);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.why-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(75,23,48,.02), rgba(75,23,48,.18)),
    linear-gradient(135deg, transparent 55%, rgba(246,143,183,.16));
  pointer-events: none;
}

.why-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s ease;
}

.why-image:hover img {
  transform: scale(1.035);
}

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; color: var(--lilac-950); background: transparent; padding: 22px 0; text-align: left; font-weight: 700; font-size: 1.03rem; }
.accordion__button span:last-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--lilac-75); transition: transform .25s ease; }
.accordion__item.is-open .accordion__button span:last-child { transform: rotate(45deg); background: var(--mint-100); }
.accordion__panel { max-height: 0; overflow: hidden; color: var(--ink-soft); transition: max-height .35s ease; }
.accordion__panel p { margin: 0 0 24px; }

.values-ribbon { overflow: hidden; padding: 20px 0; color: var(--lilac-950); background: var(--mint-100); border-block: 1px solid rgba(166,45,97,.12); }
.values-ribbon__track { display: flex; width: max-content; gap: 34px; animation: ticker 26s linear infinite; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.values-ribbon__track span::after { content: '✦'; margin-left: 34px; color: var(--lilac-500); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   HOME 4 — NUESTRO EQUIPO: CARRUSEL DE 17 FOTOGRAFÍAS
   ========================================================= */
.team-section {
  overflow: hidden;
}

.team-heading {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 52px;
}

.team-heading .section-title {
  margin-bottom: 16px;
}

.team-heading__details {
  padding-left: 42px;
  border-left: 1px solid var(--line);
}

.team-heading .mission-vision {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 0;
}

.team-heading .mission-vision p {
  color: var(--ink-soft);
}

.team-heading .mission-vision strong {
  display: block;
  margin-bottom: 7px;
  color: var(--lilac-950);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
}

.team-carousel {
  position: relative;
  outline: none;
}

.team-carousel:focus-visible {
  border-radius: 34px;
  outline: 3px solid rgba(233,75,138,.34);
  outline-offset: 8px;
}

.team-carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.team-carousel__counter {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.team-carousel__counter [data-team-current] {
  color: var(--lilac-900);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.team-carousel__controls {
  display: flex;
  gap: 10px;
}

.team-carousel__arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150,48,95,.18);
  border-radius: 50%;
  color: var(--lilac-950);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(88,25,52,.08);
  font-size: 1.1rem;
  transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.team-carousel__arrow:hover {
  transform: translateY(-2px);
  color: var(--white);
  background: var(--lilac-800);
  border-color: var(--lilac-800);
}

.team-carousel__viewport {
  width: 100%;
  overflow: hidden;
  padding-bottom: 30px;
}

.team-carousel__track {
  display: flex;
  gap: 18px;
  will-change: transform;
  transition: transform .68s cubic-bezier(.22,.72,.2,1);
}

.team-card {
  position: relative;
  flex: 0 0 calc((100% - 36px) / 3);
  aspect-ratio: 4 / 5;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 38px 16px 38px 16px;
  background: var(--lilac-150);
  box-shadow: 0 20px 48px rgba(88,25,52,.12);
  isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease;
}

.team-card:nth-child(3n + 2) {
  margin-top: 28px;
}

.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(49,16,31,.66) 100%);
  pointer-events: none;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease, filter .35s ease;
}

.team-card:hover,
.team-card.is-current {
  transform: translateY(-5px);
  box-shadow: 0 28px 62px rgba(88,25,52,.18);
}

.team-card:hover img,
.team-card.is-current img {
  transform: scale(1.035);
}

.team-card__number {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 18px;
  color: rgba(255,255,255,.96);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(0,0,0,.28);
}

.team-carousel__progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(150,48,95,.12);
}

.team-carousel__progress span {
  display: block;
  width: calc(100% / 17);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lilac-700), var(--mint-300));
  transition: width .45s ease;
}

.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: start; }

.coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  gap: 64px;
  align-items: center;
}

.coverage-copy {
  max-width: 510px;
  padding: 8px 0;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.area-pill {
  padding: 9px 15px;
  border: 1px solid rgba(150,48,95,.08);
  border-radius: 999px;
  color: var(--lilac-900);
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 22px rgba(88,25,52,.05);
  font-weight: 700;
}

#coverage-map {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  height: clamp(350px, 30vw, 405px);
  min-height: 0;
  overflow: hidden;
  border: 7px solid rgba(255,255,255,.62);
  border-radius: 34px;
  background: var(--lilac-150);
  box-shadow: 0 22px 58px rgba(88,25,52,.13);
}

#coverage-map .leaflet-control-zoom {
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(75,23,48,.16);
}

#coverage-map .leaflet-control-zoom a {
  color: var(--lilac-900);
  background: rgba(255,255,255,.95);
  border-bottom-color: rgba(150,48,95,.1);
}

#coverage-map .leaflet-control-zoom a:hover {
  color: var(--white);
  background: var(--lilac-700);
}

#coverage-map .leaflet-control-attribution {
  padding: 3px 7px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.82);
  font-size: 8px !important;
}

#coverage-map.leaflet-container {
  z-index: 1;
}

#coverage-map .leaflet-pane,
#coverage-map .leaflet-top,
#coverage-map .leaflet-bottom {
  z-index: auto;
}

#coverage-map .leaflet-map-pane {
  z-index: 1;
}

#coverage-map .leaflet-tile-pane {
  z-index: 2;
}

#coverage-map .leaflet-overlay-pane {
  z-index: 3;
}

#coverage-map .leaflet-shadow-pane {
  z-index: 4;
}

#coverage-map .leaflet-marker-pane {
  z-index: 5;
}

#coverage-map .leaflet-tooltip-pane,
#coverage-map .leaflet-popup-pane {
  z-index: 6;
}

#coverage-map .leaflet-control {
  z-index: 7;
}


.page-hero { position: relative; overflow: hidden; padding: 115px 0 100px; color: var(--white); background: var(--lilac-950); }
.page-hero::before { content: ''; position: absolute; width: 560px; height: 560px; right: -140px; top: -300px; border-radius: 50%; background: rgba(246,143,183,.18); }
.page-hero::after { content: ''; position: absolute; width: 360px; height: 360px; left: -170px; bottom: -260px; border-radius: 50%; background: rgba(249,217,230,.32); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 760px; margin: 14px 0 18px; font-family: 'Playfair Display', serif; font-size: clamp(2.25rem, 4.3vw, 4.05rem); line-height: 1.03; letter-spacing: -.04em; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.65); font-size: .9rem; }
.breadcrumb a:hover { color: var(--mint-300); }

.catalog-toolbar { position: sticky; top: calc(var(--fixed-header-height) + 15px); z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; width: max-content; max-width: 100%; margin: -32px auto 62px; padding: 10px; border: 1px solid rgba(150,48,95,.11); border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(15px); box-shadow: var(--shadow-soft); }
.filter-btn { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; color: var(--ink-soft); background: transparent; font-weight: 700; }
.filter-btn.is-active { color: var(--white); background: var(--lilac-800); }
.service-catalog { display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px; }
.catalog-item { position: relative; grid-column: span 4; min-height: 430px; overflow: hidden; border-radius: 34px; color: var(--white); box-shadow: var(--shadow-soft); isolation: isolate; }
.catalog-item:nth-child(5n+1), .catalog-item:nth-child(5n+4) { grid-column: span 7; }
.catalog-item:nth-child(5n+2), .catalog-item:nth-child(5n+5) { grid-column: span 5; }
.catalog-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.catalog-item::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43,20,31,.08), rgba(43,20,31,.90)); }
.catalog-item:hover img { transform: scale(1.05); }
.catalog-item__content { position: relative; z-index: 2; min-height: 430px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 32px; }
.catalog-item__category { display: inline-flex; padding: 7px 12px; border-radius: 999px; color: var(--lilac-950); background: var(--mint-300); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.catalog-item h2 { margin: 14px 0 7px; font-family: 'Playfair Display', serif; font-size: clamp(1.65rem, 2.5vw, 2.35rem); line-height: 1.05; }
.catalog-item p { max-width: 530px; margin: 0 0 20px; color: rgba(255,255,255,.82); }
.catalog-item__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-empty { grid-column: 1 / -1; padding: 80px 20px; text-align: center; }

.detail-hero { position: relative; min-height: 640px; display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--lilac-950); }
.detail-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,29,34,.10), rgba(48,18,33,.90)); }
.detail-hero__content { position: relative; z-index: 2; padding: 160px 0 75px; }
.detail-hero h1 { max-width: 820px; margin: 18px 0 12px; font-family: 'Playfair Display', serif; font-size: clamp(2.35rem, 4.6vw, 4.35rem); line-height: 1.01; letter-spacing: -.04em; }
.detail-hero p { max-width: 720px; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: start; }
.detail-lead { font-size: 1.25rem; color: var(--ink-soft); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin: 30px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--mint-700); font-weight: 900; }
.detail-aside { position: sticky; top: 125px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: var(--shadow-soft); }
.detail-aside h3 { margin-top: 0; color: var(--lilac-950); font-family: 'Playfair Display', serif; font-size: 1.8rem; }
.detail-aside__row { padding: 17px 0; border-bottom: 1px solid var(--line); }
.detail-aside__row:last-of-type { border-bottom: 0; }
.detail-aside__label { display: block; color: var(--ink-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.detail-gallery { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 260px 260px; gap: 16px; margin-top: 45px; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.detail-gallery img:first-child { grid-row: 1 / 3; border-radius: 90px 28px 90px 28px; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; align-items: start; }
.contact-lines { margin-top: 38px; border-top: 1px solid var(--line); }
.contact-line { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.contact-line__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--lilac-900); background: var(--mint-100); font-size: 1.15rem; }
.contact-line h3 { margin: 0 0 3px; color: var(--lilac-950); }
.contact-line p { margin: 0; color: var(--ink-soft); }
.contact-form { padding: 42px; border-radius: 34px; background: var(--lilac-75); }
.contact-form h2 { margin-top: 0; color: var(--lilac-950); font-family: 'Playfair Display', serif; font-size: clamp(1.85rem, 2.8vw, 2.15rem); }

.site-footer { position: relative; overflow: hidden; color: rgba(255,255,255,.78); background: var(--lilac-950); }
.site-footer::before { content: ''; position: absolute; width: 500px; height: 500px; right: -220px; top: -260px; border-radius: 50%; background: rgba(246,143,183,.14); }
.footer-main { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .7fr .8fr .75fr; gap: 50px; padding: 78px 0 58px; }
.footer-logo {
  width: auto;
  height: 108px;
  max-width: 210px;
  object-fit: contain;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  filter: none;
  opacity: 1;
}
.footer-main h3 { margin: 0 0 18px; color: var(--white); }
.footer-main p { margin: 0 0 12px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--mint-300); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-weight: 800; transition: .25s ease; }
.socials a:hover { color: var(--lilac-950); background: var(--mint-300); border-color: var(--mint-300); }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }

.modal { position: fixed; inset: 0; z-index: 10000; display: none; place-items: center; padding: 24px; background: rgba(47,18,32,.72); backdrop-filter: blur(10px); }
.modal.is-open { display: grid; }
.modal__dialog { position: relative; width: min(100%, 510px); padding: 42px; border-radius: 34px; background: var(--white); box-shadow: 0 35px 100px rgba(0,0,0,.28); animation: modalIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--lilac-75); font-size: 1.35rem; }
.modal h2 { margin: 0 0 10px; color: var(--lilac-950); font-family: 'Playfair Display', serif; font-size: clamp(1.95rem, 3.5vw, 2.15rem); }
.modal p { color: var(--ink-soft); }
.modal-options { display: grid; gap: 12px; margin-top: 28px; }
.modal-option { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; transition: .25s ease; }
.modal-option:hover { transform: translateY(-2px); border-color: var(--mint-500); box-shadow: var(--shadow-soft); }
.modal-option__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--lilac-950); background: var(--mint-100); }
.modal-option strong { display: block; color: var(--lilac-950); }
.modal-option small { color: var(--ink-soft); }

.floating-whatsapp {
  position: fixed;
  z-index: 4500;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 10px 24px rgba(37,211,102,.27);
  font-size: 1rem;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease;
}
.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37,211,102,.34);
}
.back-to-top { position: fixed; z-index: 4490; right: 28px; bottom: 84px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--lilac-950); background: var(--white); box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }


.section-kicker--light { color: var(--mint-100); }
.section--process .section-kicker { display: flex; width: max-content; margin-inline: auto; }
.section-action { margin-top: 52px; text-align: center; }
.btn--hero-ghost { color: var(--white); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); backdrop-filter: blur(5px); }
.btn--hero-ghost:hover { color: var(--lilac-950); border-color: rgba(255,255,255,.85); background: var(--white); }
.hero__meta b { color: var(--mint-300); font-size: .98rem; }
.step__icon svg { width: 47px; height: 47px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.mission-vision { display: grid; gap: 12px; margin-top: 28px; }
.mission-vision p { margin: 0; }
.form-static-note { margin-bottom: 0; font-size: .82rem; }
.contact-map { min-height: 420px; overflow: hidden; border-radius: 70px 24px 70px 24px; box-shadow: var(--shadow); }
.contact-map iframe { min-height: 420px; border: 0; }
.detail-section-title { font-size: clamp(1.95rem,3.5vw,3.2rem); }
.detail-heading { margin-top: 42px; color: var(--lilac-950); font-size: 1.65rem; }
.detail-form-link { margin-top: 10px; }

@media (max-width: 1020px) {
  :root { --header-height: 72px; --topbar-height: 0px; }
  .topbar { display: none; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: var(--header-height); left: 16px; right: 16px; display: grid; gap: 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .25s ease; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { padding: 13px 10px; }
  .site-nav > a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 8px; }
  .site-nav .language-switch { width: max-content; margin: 10px 8px 2px; }
  .hero, .hero__content { min-height: 680px; }
  .hero__content { padding-top: 80px; }
  .featured-services, .about-grid, .why-grid, .faq-grid, .coverage-grid, .contact-layout, .detail-grid, .testimonial-layout { grid-template-columns: 1fr; }
  .team-heading { grid-template-columns: 1fr; gap: 34px; }
  .team-heading__details { padding-left: 0; padding-top: 30px; border-left: 0; border-top: 1px solid var(--line); }
  .team-card { flex-basis: calc((100% - 18px) / 2); }
  .team-card:nth-child(3n + 2) { margin-top: 0; }
  .team-card:nth-child(even) { margin-top: 24px; }
  .about-grid { gap: 52px; }
  .about-carousel { width: min(100%, 760px); margin-inline: auto; }
  .about-carousel__viewport { height: 560px; }
  .featured-services__intro, .detail-aside { position: static; }
  .quote-grid { grid-template-columns: 1fr; }
  .testimonial-track { grid-template-columns: repeat(3, 330px); }
  .coverage-grid { gap: 34px; }
  .coverage-copy { max-width: 680px; }
  #coverage-map {
    height: 390px;
    border-radius: 30px;
  }
  .catalog-item, .catalog-item:nth-child(n) { grid-column: span 6; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .site-logo img { width: auto; height: 52px; max-width: 165px; }
  .hero, .hero__content { min-height: 720px; }
  .hero__slide::after { background: linear-gradient(90deg, rgba(58,18,38,.88), rgba(58,18,38,.54)); }
  .hero__content { padding: 70px 0 120px; }
  .hero h1 { font-size: clamp(2.35rem, 10.8vw, 3.65rem); }
  .hero__dots { left: 18px; right: auto; bottom: 84px; }
  .hero-divider { height: 78px; }
  .section-title {
    font-size: clamp(1.85rem, 8.8vw, 2.85rem);
    line-height: 1.08;
  }
  .page-hero h1,
  .detail-hero h1 {
    font-size: clamp(2.1rem, 9.7vw, 3.35rem);
  }
  #coverage-map {
    height: 315px;
    border-width: 5px;
    border-radius: 24px;
  }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step:not(:last-child)::after { top: 115px; left: 50%; width: 2px; height: 58px; border-top: 0; border-left: 2px dashed rgba(189,71,119,.28); transform: none; }
  .service-feature:nth-child(2) { margin-left: 0; }
  .quote-wrap { border-radius: 36px 16px 36px 16px; }
  .quote-grid { padding: 36px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .about-carousel__viewport {
    height: 430px;
    border-radius: 80px 24px 72px 24px;
  }

  .about-carousel__counter {
    top: 18px;
    right: 18px;
  }

  .about-carousel__controls {
    left: 18px;
    bottom: 18px;
  }

  .about-carousel__arrow {
    width: 44px;
    height: 44px;
  }

  .about-carousel__thumbs {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .about-carousel__thumb {
    flex: 0 0 76px;
    aspect-ratio: 1 / .82;
    scroll-snap-align: start;
  }
  .why-image { min-height: 410px; }
  .team-heading { margin-bottom: 36px; }
  .team-heading .mission-vision { grid-template-columns: 1fr; gap: 18px; }
  .team-carousel__toolbar { margin-bottom: 16px; }
  .team-carousel__counter [data-team-current] { font-size: 2rem; }
  .team-carousel__arrow { width: 44px; height: 44px; }
  .team-carousel__viewport { padding-bottom: 18px; }
  .team-carousel__track { gap: 14px; }
  .team-card,
  .team-card:nth-child(even) {
    flex-basis: 100%;
    margin-top: 0;
    border-radius: 32px 14px 32px 14px;
  }
  .team-card__number { right: 18px; bottom: 16px; font-size: 2rem; }
  .catalog-toolbar { width: 100%; border-radius: 24px; justify-content: center; }
  .catalog-item, .catalog-item:nth-child(n) { grid-column: 1 / -1; min-height: 390px; }
  .catalog-item__content { min-height: 390px; padding: 26px; }
  .check-list { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 250px); }
  .detail-gallery img:first-child { grid-row: auto; }
  .contact-form { padding: 28px 20px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .modal__dialog { padding: 38px 24px 26px; }
}


/* =========================================================
   ICONOS PNG Y AJUSTES DE MARCA FLG
   ========================================================= */
.socials {
  align-items: center;
  gap: 12px;
}

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transition: transform .22s ease, filter .22s ease;
}

.socials a:hover {
  transform: translateY(-3px) scale(1.06);
  background: transparent;
  border-color: transparent;
  filter: brightness(1.08);
}

.socials a img {
  width: 36px;
  height: 36px;
  max-width: none;
  object-fit: contain;
  display: block;
}

.socials a[aria-label="TikTok"] img {
  width: 35px;
  height: 35px;
}

.socials a[aria-label="WhatsApp"] img {
  width: 37px;
  height: 37px;
}

.modal-option__icon {
  flex: 0 0 46px;
  overflow: hidden;
}

.modal-option__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.floating-whatsapp img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.site-nav .btn--primary,
.quote-wrap .btn--mint,
.contact-form .btn--primary {
  box-shadow: 0 14px 30px rgba(150,48,95,.22);
}

.hero__dot.is-active,
.status-dot {
  box-shadow: 0 0 0 5px rgba(242,173,200,.16);
}

input::placeholder,
textarea::placeholder {
  color: #a8949e;
}

@media (max-width: 720px) {
  .floating-whatsapp {
    right: 18px;
    bottom: 18px;
  }

  .back-to-top {
    right: 18px;
    bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   AJUSTES VISUALES FINALES
   - Nubes del hero
   - Proceso de 3 pasos
   - Testimonios
   - Modal de reserva
   - Iconos de WhatsApp sin doble círculo
   ========================================================= */

/* ---------------------------------------------------------
   PORTADA: DIVISOR DE NUBES CON COLOR EXACTO DEL FONDO
   La imagen usada es: assets/images/nubes.png
   --------------------------------------------------------- */
.hero-divider {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: clamp(118px, 8.6vw, 158px);
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  filter: drop-shadow(0 -7px 13px rgba(88, 25, 52, .07));
}

/*
  La imagen blanca se usa como máscara.
  De esta manera las nubes adoptan exactamente el color --cream
  de la sección “Cómo empezar”, sin importar que el PNG sea blanco.
*/
.hero-divider::before {
  content: '' !important;
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  background-color: var(--cream);

  -webkit-mask-image: url('../images/nubes.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  -webkit-mask-size: 100% 100%;

  mask-image: url('../images/nubes.png');
  mask-repeat: no-repeat;
  mask-position: center bottom;
  mask-size: 100% 100%;

  transform: scaleX(-1);
  transform-origin: center;
}

.hero-divider svg,
.hero-divider::after {
  display: none !important;
  content: none !important;
}

/* El PNG del HTML permanece como respaldo, pero no se muestra visualmente. */
.hero-divider__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: center bottom;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.section--process {
  padding-top: 82px;
  background:
    radial-gradient(circle at 50% 0, rgba(249, 217, 230, .30), transparent 34%),
    var(--cream);
}

/* ---------------------------------------------------------
   CÓMO EMPEZAR: CAMINO PUNTEADO Y PASOS LIMPIOS
   --------------------------------------------------------- */
.steps {
  position: relative;
  isolation: isolate;
  gap: 58px;
  margin-top: 62px;
}

.steps::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 19px;
  left: 10%;
  width: 80%;
  height: 118px;
  background-image: url("data:image/svg+xml,%3Csvg width='1100' height='130' viewBox='0 0 1100 130' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 79 C165 8 267 9 390 69 C515 130 624 131 750 70 C875 10 974 8 1088 74' fill='none' stroke='%23e4a4bf' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='7 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: .75;
  pointer-events: none;
}

.step:not(:last-child)::after {
  display: none;
}

.step {
  z-index: 1;
  padding-inline: 10px;
}

.step__icon {
  width: 112px;
  height: 112px;
  margin-bottom: 26px;
  border: 1px solid rgba(150, 48, 95, .08);
  color: var(--lilac-900);
  background: rgba(255, 255, 255, .97);
  box-shadow:
    0 20px 50px rgba(88, 25, 52, .10),
    0 0 0 12px rgba(255, 255, 255, .34);
  transition: transform .28s ease, box-shadow .28s ease;
}

.step:hover .step__icon {
  transform: translateY(-5px);
  box-shadow:
    0 26px 58px rgba(88, 25, 52, .14),
    0 0 0 12px rgba(249, 217, 230, .42);
}

.step__icon svg {
  width: 44px;
  height: 44px;
  stroke-width: 2.15;
}

.step__number {
  right: -3px;
  bottom: 7px;
  width: 34px;
  height: 34px;
  border: 3px solid var(--cream);
  background: var(--mint-500);
  box-shadow: 0 8px 20px rgba(150, 48, 95, .20);
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.step p {
  max-width: 315px;
  font-size: 1rem;
  line-height: 1.65;
}

.section-action {
  margin-top: 58px;
}

/* ---------------------------------------------------------
   TESTIMONIOS: TARJETAS LIMPIAS, SIN BARRA HORIZONTAL
   --------------------------------------------------------- */
.testimonial-layout {
  display: block;
}

.testimonial-layout > .reveal:first-child {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.testimonial-layout > .reveal:first-child .section-title,
.testimonial-layout > .reveal:first-child .section-copy {
  margin-inline: auto;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
  padding: 8px 0 34px;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 42px 30px 30px;
  border: 1px solid rgba(150, 48, 95, .10);
  border-radius: 30px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(255, 242, 247, .72));
  box-shadow: 0 22px 54px rgba(88, 25, 52, .09);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.testimonial:nth-child(2) {
  transform: translateY(24px);
}

.testimonial:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 109, 157, .28);
  box-shadow: 0 30px 70px rgba(88, 25, 52, .14);
}

.testimonial:nth-child(2):hover {
  transform: translateY(18px);
}

.testimonial::before {
  top: 13px;
  left: 25px;
  color: rgba(229, 109, 157, .40);
  font-size: 4.25rem;
}

.testimonial__stars {
  margin: 8px 0 16px;
  color: #efa52a;
  font-size: .93rem;
  letter-spacing: 2px;
}

.testimonial p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial__person {
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid rgba(150, 48, 95, .09);
}

.avatar {
  width: 50px;
  height: 50px;
  box-shadow: 0 10px 24px rgba(150, 48, 95, .18);
}

/* ---------------------------------------------------------
   MODAL DE RESERVA: MÁS LIMPIO Y COMPACTO
   --------------------------------------------------------- */
.modal {
  padding: 20px;
  background: rgba(47, 18, 32, .68);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.modal__dialog {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px 42px 38px;
  border: 1px solid rgba(150, 48, 95, .10);
  border-radius: 30px;
  box-shadow: 0 36px 110px rgba(36, 10, 24, .34);
}

.modal__close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  color: var(--lilac-950);
  background: var(--lilac-75);
  transition: transform .22s ease, background .22s ease;
}

.modal__close:hover {
  transform: rotate(5deg) scale(1.05);
  background: var(--mint-100);
}

.modal h2 {
  margin-top: 8px;
  margin-bottom: 14px;
}

.modal > .modal__dialog > p,
.modal__dialog > p {
  margin: 0;
  line-height: 1.65;
}

.modal-options {
  gap: 11px;
  margin-top: 26px;
}

.modal-option {
  min-height: 92px;
  gap: 17px;
  padding: 15px 18px;
  border: 1px solid rgba(150, 48, 95, .12);
  border-radius: 20px;
  background: rgba(255, 250, 251, .74);
  box-shadow: none;
}

.modal-option:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 109, 157, .38);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(88, 25, 52, .10);
}

.modal-option strong {
  margin-bottom: 3px;
  font-size: 1rem;
}

.modal-option small {
  font-size: .88rem;
}

/* Teléfono y correo conservan su círculo rosado */
.modal-option__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background: var(--mint-100);
}

[data-appointment-phone] .modal-option__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* WhatsApp del modal: el PNG ocupa todo el bloque, sin doble círculo */
[data-appointment-whatsapp] .modal-option__icon {
  overflow: visible;
  background: transparent;
}

[data-appointment-whatsapp] .modal-option__icon img {
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(37, 211, 102, .20));
}

/* WhatsApp flotante: usar el círculo completo del PNG */
.floating-whatsapp {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.floating-whatsapp img {
  width: 44px;
  height: 44px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(37, 211, 102, .28));
  transition: transform .25s ease, filter .25s ease;
}

.floating-whatsapp:hover {
  box-shadow: none;
}

.floating-whatsapp:hover img {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 14px 24px rgba(37, 211, 102, .36));
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1020px) {
  .testimonial-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial:nth-child(2) {
    transform: none;
  }

  .testimonial:nth-child(2):hover {
    transform: translateY(-6px);
  }

  .steps::before {
    left: 8%;
    width: 84%;
  }
}

@media (max-width: 720px) {
  .hero-divider {
    height: 88px;
    bottom: -1px;
  }

  .hero-divider::before {
    width: 118%;
    left: -9%;
    right: auto;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .hero-divider__image {
    width: 118%;
    margin-left: -9%;
    object-position: center bottom;
  }

.section--process {
    padding-top: 62px;
  }

  .steps {
    gap: 58px;
    margin-top: 48px;
  }

  .steps::before {
    top: 55px;
    left: 50%;
    width: 2px;
    height: calc(100% - 115px);
    transform: translateX(-50%);
    background-image: linear-gradient(
      to bottom,
      rgba(228, 164, 191, .72) 50%,
      transparent 50%
    );
    background-size: 2px 12px;
    background-repeat: repeat-y;
  }

  .step {
    padding-bottom: 4px;
  }

  .step__icon {
    width: 104px;
    height: 104px;
  }

  .testimonial-layout > .reveal:first-child {
    margin-bottom: 34px;
    text-align: left;
  }

  .testimonial-layout > .reveal:first-child .section-title,
  .testimonial-layout > .reveal:first-child .section-copy {
    margin-inline: 0;
  }

  .testimonial-track {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 0;
  }

  .testimonial,
  .testimonial:nth-child(2) {
    min-height: 0;
    transform: none;
  }

  .testimonial:hover,
  .testimonial:nth-child(2):hover {
    transform: translateY(-4px);
  }

  .modal__dialog {
    padding: 36px 20px 24px;
    border-radius: 26px;
  }

  .modal-option {
    min-height: 82px;
    padding: 13px 14px;
  }

  .modal-option__icon,
  [data-appointment-whatsapp] .modal-option__icon,
  [data-appointment-whatsapp] .modal-option__icon img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}


/* =========================================================
   AJUSTES FINALES DE CONTINUIDAD, MARCA, PASOS Y ANIMACIONES
   ========================================================= */

:root {
  --process-surface: #fff2f7;
}

/* Marca formada por icono + texto real */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup__text {
  display: grid;
  gap: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-lockup__text strong {
  color: var(--lilac-950);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .025em;
}

.brand-lockup__text small {
  color: var(--lilac-700);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .19em;
  white-space: nowrap;
}

.site-logo {
  gap: 12px;
}

.site-logo img {
  width: 58px;
  height: 58px;
  max-width: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  object-fit: contain;
}

.footer-brand {
  width: max-content;
  max-width: 100%;
  margin-bottom: 18px;
}

.footer-logo {
  width: 72px;
  height: 72px;
  max-width: 72px;
  flex: 0 0 72px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}

.brand-lockup--footer .brand-lockup__text strong {
  color: var(--white);
  font-size: 1.55rem;
}

.brand-lockup--footer .brand-lockup__text small {
  color: var(--pink-300);
}

/* La nube y el inicio de la sección usan exactamente el mismo tono */
.hero-divider {
  height: clamp(118px, 8.7vw, 160px);
  bottom: -2px;
  background: transparent;
  filter: drop-shadow(0 -6px 12px rgba(88, 25, 52, .06));
}

.hero-divider::before {
  inset: 0;
  width: 100%;
  height: 100%;
  left: 0;
  background: var(--process-surface);
  -webkit-mask-image: url('../images/nubes.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  -webkit-mask-size: 100% 100%;
  mask-image: url('../images/nubes.png');
  mask-repeat: no-repeat;
  mask-position: center bottom;
  mask-size: 100% 100%;
  transform: scaleX(-1);
}

/* Rellena la franja inferior de la silueta para evitar cualquier zona blanca */
.hero-divider::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  display: block !important;
  height: 34%;
  background: var(--process-surface);
}

.hero-divider__image {
  opacity: 0;
  visibility: hidden;
}

.section--process {
  padding-top: 84px;
  background: var(--process-surface);
}

.section--process::before {
  content: '';
  position: absolute;
  inset: 150px 0 auto;
  height: 280px;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 0,
    rgba(255, 255, 255, .62),
    rgba(255, 255, 255, 0) 68%
  );
}

/* Camino de tres pasos y variación vertical */
.steps {
  --path-color: rgba(229, 109, 157, .52);
  margin-top: 70px;
}

.steps::before {
  top: 10px;
  left: 9%;
  width: 82%;
  height: 145px;
  background-image: url("data:image/svg+xml,%3Csvg width='1100' height='150' viewBox='0 0 1100 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 62 C168 10 282 16 407 84 C520 145 631 145 754 80 C879 14 980 13 1090 60' fill='none' stroke='%23e56d9d' stroke-opacity='.55' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='7 9'/%3E%3C/svg%3E");
}

.step {
  --step-icon-shift: 0px;
}

.step:nth-child(1),
.step:nth-child(3) {
  --step-icon-shift: -14px;
}

.step:nth-child(2) {
  --step-icon-shift: 30px;
}

.step__icon {
  transform: translateY(var(--step-icon-shift));
  will-change: transform;
}

.step:hover .step__icon {
  transform: translateY(calc(var(--step-icon-shift) - 5px));
}

.step:nth-child(2) .step__icon {
  margin-bottom: 56px;
}

/* Transiciones de los carruseles algo más rápidas y fluidas */
.hero__slide {
  transition: opacity .62s ease, transform 4.2s ease;
}

.about-carousel__slide {
  transition: opacity .55s ease, visibility .55s ease, transform 4.1s ease;
}

.team-carousel__track {
  transition: transform .55s cubic-bezier(.22, .72, .2, 1);
}

/* Aparición suave al recorrer la página */
.reveal {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 30px, 0);
  transition:
    opacity .78s cubic-bezier(.2, .7, .2, 1),
    transform .78s cubic-bezier(.2, .7, .2, 1),
    filter .78s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.hero__copy > * {
  opacity: 0;
  transform: translateY(20px);
  animation: flgHeroEnter .7s ease forwards;
}

.hero__copy > *:nth-child(2) { animation-delay: .09s; }
.hero__copy > *:nth-child(3) { animation-delay: .17s; }
.hero__copy > *:nth-child(4) { animation-delay: .25s; }
.hero__copy > *:nth-child(5) { animation-delay: .33s; }

@keyframes flgHeroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .brand-lockup__text strong {
    font-size: 1.25rem;
  }

  .brand-lockup__text small {
    font-size: .61rem;
  }

  .site-logo img {
    width: 52px;
    height: 52px;
    max-width: 52px;
    flex-basis: 52px;
  }
}

@media (max-width: 720px) {
  .brand-lockup {
    gap: 9px;
  }

  .site-logo img {
    width: 46px;
    height: 46px;
    max-width: 46px;
    flex-basis: 46px;
  }

  .brand-lockup--header .brand-lockup__text strong {
    font-size: 1.05rem;
  }

  .brand-lockup--header .brand-lockup__text small {
    max-width: none;
    overflow: visible;
    white-space: nowrap;
    font-size: .52rem;
    letter-spacing: .08em;
  }

  .hero-divider {
    height: 92px;
  }

  .hero-divider::before {
    width: 118%;
    left: -9%;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .hero-divider::after {
    height: 38%;
  }

  .section--process {
    padding-top: 64px;
  }

  .steps {
    margin-top: 50px;
  }

  .steps::before {
    top: 56px;
    left: 50%;
    width: 2px;
    height: calc(100% - 118px);
    transform: translateX(-50%);
    background-image: linear-gradient(
      to bottom,
      rgba(229, 109, 157, .58) 50%,
      transparent 50%
    );
    background-size: 2px 12px;
    background-repeat: repeat-y;
  }

  .step,
  .step:nth-child(1),
  .step:nth-child(2),
  .step:nth-child(3) {
    --step-icon-shift: 0px;
  }

  .step:nth-child(2) .step__icon {
    margin-bottom: 26px;
  }

  .footer-brand {
    margin-inline: auto;
  }

  .brand-lockup--footer .brand-lockup__text {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* =========================================================
   AJUSTE FINAL — CÓMO EMPEZAR
   Iconos reales + camino centrado en los tres círculos
   ========================================================= */
.steps {
  position: relative;
  align-items: start;
  gap: 54px;
  margin-top: 62px;
}

/*
  El camino está dibujado para atravesar el centro visual
  del primer icono, bajar hacia el segundo y volver a subir
  hacia el tercero.
*/
.steps::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0;
  left: 8.5%;
  width: 83%;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg width='1100' height='150' viewBox='0 0 1100 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 46 C150 6 280 8 405 66 C470 96 510 111 550 111 C590 111 630 96 695 66 C820 8 950 6 1100 46' fill='none' stroke='%23e56d9d' stroke-opacity='.58' stroke-width='2.6' stroke-linecap='round' stroke-dasharray='7 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 150px;
  pointer-events: none;
}

/*
  La primera fila reserva el mismo espacio para los tres iconos.
  Así, los títulos y párrafos permanecen perfectamente alineados,
  aunque el icono central esté más abajo.
*/
.step {
  z-index: 1;
  display: grid;
  grid-template-rows: 174px auto auto;
  align-items: start;
  min-width: 0;
  padding-inline: 8px;
  text-align: center;
}

.step:nth-child(1),
.step:nth-child(3) {
  --step-icon-shift: -18px;
}

.step:nth-child(2) {
  --step-icon-shift: 46px;
}

.step__icon {
  align-self: start;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  transform: translateY(var(--step-icon-shift, 0));
}

.step:hover .step__icon {
  transform: translateY(calc(var(--step-icon-shift, 0px) - 5px));
}

.step:nth-child(2) .step__icon {
  margin-bottom: 0;
}

.step__icon img {
  width: 45px;
  height: 45px;
  max-width: none;
  object-fit: contain;
  display: block;
}

.step__number {
  right: -3px;
  bottom: 6px;
}

.step h3 {
  align-self: start;
  margin: 0 0 10px;
}

.step p {
  align-self: start;
}

/* En pantallas pequeñas el camino vuelve a ser vertical. */
@media (max-width: 720px) {
  .steps {
    gap: 48px;
    margin-top: 46px;
  }

  .steps::before {
    top: 55px;
    left: 50%;
    width: 2px;
    height: calc(100% - 112px);
    transform: translateX(-50%);
    background-image: linear-gradient(
      to bottom,
      rgba(229, 109, 157, .58) 50%,
      transparent 50%
    );
    background-repeat: repeat-y;
    background-size: 2px 12px;
  }

  .step {
    grid-template-rows: auto auto auto;
    padding-inline: 0;
  }

  .step:nth-child(1),
  .step:nth-child(2),
  .step:nth-child(3) {
    --step-icon-shift: 0px;
  }

  .step__icon,
  .step:nth-child(2) .step__icon {
    margin: 0 auto 24px;
    transform: none;
  }

  .step:hover .step__icon {
    transform: translateY(-4px);
  }
}

/* =========================================================
   AJUSTE UX FINAL
   - El camino termina en el centro de los iconos laterales
   - Aparición más discreta al recorrer la página
   ========================================================= */

/*
  La línea comienza en el centro del primer círculo y termina
  en el centro del tercero. Al quedar detrás de los iconos,
  no sobresale por los extremos.
*/
.steps::before {
  top: 0;
  left: 16.6667%;
  width: 66.6666%;
  height: 145px;
  background-image: url("data:image/svg+xml,%3Csvg width='1000' height='145' viewBox='0 0 1000 145' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 38 C145 2 275 9 405 67 C472 97 515 102 500 102 C565 102 620 91 695 62 C820 12 925 5 1000 38' fill='none' stroke='%23e56d9d' stroke-opacity='.56' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='7 9'/%3E%3C/svg%3E");
  background-position: center top;
  background-size: 100% 145px;
}

/*
  Aparición más sutil:
  menos desplazamiento, casi sin desenfoque y una duración menor.
*/
.reveal {
  opacity: .42;
  filter: blur(1.5px);
  transform: translate3d(0, 13px, 0);
  transition:
    opacity .54s cubic-bezier(.2, .7, .2, 1),
    transform .54s cubic-bezier(.2, .7, .2, 1),
    filter .46s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

@media (max-width: 720px) {
  /*
    En móvil se conserva el recorrido vertical y no se aplican
    los límites horizontales de escritorio.
  */
  .steps::before {
    top: 55px;
    left: 50%;
    width: 2px;
    height: calc(100% - 112px);
    transform: translateX(-50%);
    background-image: linear-gradient(
      to bottom,
      rgba(229, 109, 157, .56) 50%,
      transparent 50%
    );
    background-repeat: repeat-y;
    background-size: 2px 12px;
  }

  .reveal {
    opacity: .5;
    filter: blur(1px);
    transform: translate3d(0, 10px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   DETALLE DE SERVICIO — GALERÍA FLEXIBLE DE 3 A 5 IMÁGENES
   ========================================================= */
.detail-hero {
  min-height: 470px;
}

.detail-hero__content {
  min-height: 470px;
}

.service-detail-section {
  padding-top: 88px;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(285px, 340px);
  gap: 68px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-lead {
  max-width: 820px;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  margin-top: 44px;
}

.detail-columns > section {
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-columns .detail-heading {
  margin-top: 0;
}

.detail-gallery-heading {
  margin-top: 58px;
  margin-bottom: 20px;
}

.detail-gallery-heading .detail-heading {
  margin: 6px 0 0;
}

.service-gallery {
  min-width: 0;
  outline: none;
}

.service-gallery__main {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 34px;
  background: var(--lilac-150);
  box-shadow: var(--shadow);
}

.service-gallery__main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(45, 15, 29, .24)
  );
  pointer-events: none;
}

.service-gallery__main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-gallery__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: var(--white);
  background: rgba(75, 23, 48, .56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition:
    transform .2s ease,
    background .2s ease;
}

.service-gallery__arrow:hover {
  background: var(--lilac-800);
}

.service-gallery__arrow--prev {
  left: 18px;
}

.service-gallery__arrow--next {
  right: 18px;
}

.service-gallery__counter {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 17px;
  display: inline-flex;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  color: var(--white);
  background: rgba(75, 23, 48, .54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.service-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.service-gallery__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 17px;
  background: var(--lilac-150);
  opacity: .58;
  transition:
    opacity .2s ease,
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.service-gallery__thumb:hover,
.service-gallery__thumb.is-active {
  opacity: 1;
  transform: translateY(-3px);
  border-color: var(--mint-500);
  box-shadow: 0 10px 24px rgba(88, 25, 52, .12);
}

.service-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-aside {
  top: calc(var(--fixed-header-height) + 28px);
  border-radius: 28px;
}

.detail-aside h3 {
  font-size: 1.55rem;
}

@media (max-width: 1080px) {
  .service-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .detail-aside {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .page-hero--services {
    min-height: 330px;
  }

  .services-catalog-section {
    padding-top: 54px;
  }

  .catalog-toolbar {
    position: static;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-bottom: 30px;
    padding: 5px;
    border-radius: 18px;
    scrollbar-width: none;
  }

  .catalog-toolbar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 14px;
    font-size: .78rem;
  }

  .service-catalog {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .catalog-item {
    border-radius: 25px;
  }

  .catalog-item__content h2 {
    min-height: 0;
  }

  .catalog-item__actions {
    grid-template-columns: 1fr;
  }

  .quote-actions {
    justify-content: flex-start;
  }

  .detail-hero,
  .detail-hero__content {
    min-height: 390px;
  }

  .service-detail-section {
    padding-top: 62px;
  }

  .detail-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 34px;
  }

  .detail-gallery-heading {
    margin-top: 44px;
  }

  .service-gallery__main {
    aspect-ratio: 4 / 3;
    border-radius: 25px;
  }

  .service-gallery__arrow {
    width: 42px;
    height: 42px;
  }

  .service-gallery__arrow--prev {
    left: 12px;
  }

  .service-gallery__arrow--next {
    right: 12px;
  }

  .service-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .service-gallery__thumb {
    border-radius: 13px;
  }
}

/* =========================================================
   INDEX — AJUSTE FINAL EXCLUSIVO PARA MÓVILES
   - Nubes menos altas
   - Sin camino entre los pasos de “Cómo empezar”
   ========================================================= */
@media (max-width: 720px) {
  /*
    Reduce la altura visual de la imagen de nubes para que
    no se vea estirada ni ocupe demasiado espacio en móvil.
  */
  .hero-divider {
    height: 58px !important;
    bottom: -1px;
    filter: drop-shadow(0 -3px 7px rgba(88, 25, 52, .045));
  }

  .hero-divider::before {
    width: 108% !important;
    height: 100%;
    left: -4% !important;
    right: auto;
    -webkit-mask-position: center bottom;
    -webkit-mask-size: 100% 100%;
    mask-position: center bottom;
    mask-size: 100% 100%;
  }

  .hero-divider::after {
    height: 31% !important;
  }

  .hero-divider__image {
    width: 108%;
    height: 100%;
    margin-left: -4%;
    object-fit: fill;
    object-position: center bottom;
  }

  /*
    En móvil los pasos quedan completamente independientes,
    sin línea vertical ni camino punteado entre ellos.
  */
  .steps::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    background-image: none !important;
  }

  .steps {
    gap: 44px;
  }
}

/* =========================================================
   SERVICIOS — DISEÑO ORIGINAL RESTAURADO
   Dos tarjetas uniformes por fila
   ========================================================= */
.page-hero--services {
  min-height: 390px;
  display: grid;
  align-items: center;
}

.services-catalog-section {
  padding-top: 74px;
}

.catalog-toolbar {
  position: sticky;
  z-index: 35;
  top: calc(var(--fixed-header-height) + 14px);
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 46px;
  padding: 7px;
  border: 1px solid rgba(150, 48, 95, .11);
  border-radius: 999px;
  background: rgba(255, 250, 251, .94);
  box-shadow: 0 12px 30px rgba(88, 25, 52, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.filter-btn {
  min-height: 39px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: .83rem;
  font-weight: 800;
  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.filter-btn:hover {
  color: var(--lilac-900);
  background: var(--lilac-75);
}

.filter-btn.is-active {
  color: var(--white);
  background: var(--lilac-800);
  box-shadow: 0 8px 20px rgba(150, 48, 95, .20);
}

.service-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 26px;
}

.catalog-item,
.catalog-item:nth-child(n) {
  position: relative;
  grid-column: auto;
  width: 100%;
  height: 440px;
  min-height: 440px;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  color: var(--white);
  background: var(--lilac-950);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.catalog-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(88, 25, 52, .18);
}

.catalog-item > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}

.catalog-item:hover > img {
  transform: scale(1.05);
}

.catalog-item::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(43, 20, 31, .04) 16%,
      rgba(43, 20, 31, .28) 48%,
      rgba(43, 20, 31, .94) 100%
    );
  pointer-events: none;
}

.catalog-item__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 31px;
}

.catalog-item__category {
  position: static;
  min-height: auto;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--lilac-950);
  background: var(--mint-300);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.catalog-item h2,
.catalog-item__content h2 {
  min-height: 0;
  margin: 14px 0 8px;
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.65rem, 2.35vw, 2.2rem);
  line-height: 1.08;
}

.catalog-item p,
.catalog-item__content p {
  flex: 0 0 auto;
  max-width: 520px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .84);
  font-size: .94rem;
  line-height: 1.6;
}

.catalog-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.catalog-item__actions .btn {
  min-height: 44px;
  padding-inline: 17px;
  font-size: .79rem;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 68px 24px;
  text-align: center;
}

.services-help .quote-grid {
  align-items: center;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 900px) {
  .service-catalog {
    grid-template-columns: 1fr;
  }

  .catalog-item,
  .catalog-item:nth-child(n),
  .catalog-item__content {
    height: 410px;
    min-height: 410px;
  }
}

@media (max-width: 720px) {
  .page-hero--services {
    min-height: 330px;
  }

  .services-catalog-section {
    padding-top: 54px;
  }

  .catalog-toolbar {
    position: static;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-bottom: 30px;
    padding: 5px;
    border-radius: 18px;
    scrollbar-width: none;
  }

  .catalog-toolbar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 14px;
    font-size: .78rem;
  }

  .service-catalog {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .catalog-item,
  .catalog-item:nth-child(n),
  .catalog-item__content {
    height: 395px;
    min-height: 395px;
  }

  .catalog-item {
    border-radius: 26px;
  }

  .catalog-item__content {
    padding: 25px;
  }

  .catalog-item h2,
  .catalog-item__content h2 {
    font-size: 1.7rem;
  }

  .catalog-item__actions {
    width: 100%;
  }

  .catalog-item__actions .btn {
    flex: 1 1 145px;
  }

  .quote-actions {
    justify-content: flex-start;
  }
}

/* =========================================================
   CONTACTO — DISEÑO MODERNO CON IMAGEN Y FORMULARIO
   ========================================================= */
.page-hero--contact {
  min-height: 390px;
  display: grid;
  align-items: center;
}

.contact-main-section {
  padding-top: 92px;
}

.contact-layout--modern {
  grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr);
  gap: 62px;
  align-items: start;
}

.contact-company {
  min-width: 0;
}

.contact-company__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, .78);
  border-radius: 38px;
  background: var(--lilac-150);
  box-shadow: 0 24px 62px rgba(88, 25, 52, .14);
}

.contact-company__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 58%,
      rgba(75, 23, 48, .16)
    );
  pointer-events: none;
}

.contact-company__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-company__content {
  padding-top: 34px;
}

.contact-company__title {
  max-width: 520px;
  margin: 11px 0 16px;
  color: var(--lilac-950);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.contact-lines--compact {
  margin-top: 29px;
}

.contact-lines--compact .contact-line {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  padding: 18px 0;
}

.contact-lines--compact .contact-line__icon {
  width: 44px;
  height: 44px;
}

.contact-lines--compact .contact-line h3 {
  font-size: .96rem;
}

.contact-lines--compact .contact-line p {
  overflow-wrap: anywhere;
  font-size: .89rem;
}

.contact-form--modern {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border: 1px solid rgba(150, 48, 95, .11);
  border-radius: 36px;
  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, .98),
      rgba(255, 242, 247, .78)
    );
  box-shadow: 0 24px 68px rgba(88, 25, 52, .11);
}

.contact-form--modern::before {
  content: '';
  position: absolute;
  top: -110px;
  right: -105px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(246, 143, 183, .16);
  pointer-events: none;
}

.contact-form--modern > * {
  position: relative;
  z-index: 1;
}

.contact-form--modern h2 {
  margin: 6px 0 10px;
}

.contact-form__intro {
  max-width: 600px;
  margin: 0 0 27px;
  color: var(--ink-soft);
}

.contact-form--modern .form-grid {
  gap: 16px;
}

.contact-form--modern .field input,
.contact-form--modern .field select,
.contact-form--modern .field textarea {
  border-color: rgba(150, 48, 95, .14);
  background: rgba(255, 255, 255, .92);
}

.contact-form--modern .field textarea {
  min-height: 165px;
}

.contact-form--modern .form-static-note {
  margin-top: 15px;
}

.contact-coverage-section {
  overflow: hidden;
}

.contact-coverage-section .coverage-grid {
  align-items: center;
}

.contact-coverage-section #coverage-map {
  height: clamp(360px, 31vw, 420px);
}

@media (max-width: 1020px) {
  .contact-layout--modern {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-company {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: 38px;
    align-items: center;
  }

  .contact-company__content {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .page-hero--contact {
    min-height: 330px;
  }

  .contact-main-section {
    padding-top: 62px;
  }

  .contact-layout--modern {
    gap: 34px;
  }

  .contact-company {
    display: block;
  }

  .contact-company__media {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    border-width: 5px;
    border-radius: 28px;
  }

  .contact-company__content {
    padding-top: 29px;
  }

  .contact-form--modern {
    padding: 32px 20px 25px;
    border-radius: 27px;
  }

  .contact-form--modern .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form--modern .field--full {
    grid-column: auto;
  }

  .contact-coverage-section #coverage-map {
    height: 315px;
  }
}

/* =========================================================
   ANIMACIÓN DE INGRESO — FLG CLEANING SERVICES
   Solo se activa en la página de Inicio mediante app.js
   ========================================================= */
body.entry-intro-active {
  overflow: hidden;
}

.entry-intro {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  color: var(--lilac-950);
  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(246, 143, 183, .24),
      transparent 31%
    ),
    radial-gradient(
      circle at 84% 80%,
      rgba(242, 173, 200, .30),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      var(--cream) 0%,
      var(--lilac-75) 54%,
      var(--mint-100) 100%
    );
  opacity: 1;
  visibility: visible;
  transition:
    opacity .56s ease,
    visibility .56s ease;
  cursor: pointer;
  isolation: isolate;
}

.entry-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-intro__ambient {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(229, 109, 157, .14);
  background: rgba(255, 255, 255, .22);
  pointer-events: none;
}

.entry-intro__ambient--one {
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  top: -22%;
  right: -8%;
}

.entry-intro__ambient--two {
  width: min(38vw, 440px);
  height: min(38vw, 440px);
  bottom: -18%;
  left: -7%;
}

.entry-intro.is-playing .entry-intro__ambient--one {
  animation: entryAmbientOne 2.35s ease-out both;
}

.entry-intro.is-playing .entry-intro__ambient--two {
  animation: entryAmbientTwo 2.35s ease-out both;
}

.entry-intro__content {
  width: min(100%, 470px);
  display: grid;
  justify-items: center;
  text-align: center;
}

.entry-intro__logo-wrap {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border: 1px solid rgba(150, 48, 95, .10);
  border-radius: 38px;
  background: rgba(255, 255, 255, .76);
  box-shadow:
    0 25px 65px rgba(88, 25, 52, .14),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(20px) scale(.86);
}

.entry-intro.is-playing .entry-intro__logo-wrap {
  animation: entryLogoIn .78s cubic-bezier(.2, .82, .2, 1) .10s both;
}

.entry-intro__logo {
  width: 98px;
  height: 98px;
  object-fit: contain;
}

.entry-intro__name {
  display: grid;
  justify-items: center;
}

.entry-intro__name strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .025em;
  color: var(--lilac-950);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: .92;
  letter-spacing: -.055em;
}

.entry-intro__name strong span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
}

.entry-intro.is-playing .entry-intro__name strong span:nth-child(1) {
  animation: entryLetterIn .52s cubic-bezier(.2, .82, .2, 1) .48s both;
}

.entry-intro.is-playing .entry-intro__name strong span:nth-child(2) {
  animation: entryLetterIn .52s cubic-bezier(.2, .82, .2, 1) .58s both;
}

.entry-intro.is-playing .entry-intro__name strong span:nth-child(3) {
  animation: entryLetterIn .52s cubic-bezier(.2, .82, .2, 1) .68s both;
}

.entry-intro__name small {
  margin-top: 12px;
  color: var(--lilac-700);
  font-size: clamp(.72rem, 2vw, .92rem);
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
}

.entry-intro.is-playing .entry-intro__name small {
  animation: entrySubtitleIn .55s ease .88s both;
}

.entry-intro__line {
  width: 0;
  height: 2px;
  margin-top: 23px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--mint-500),
    transparent
  );
  opacity: .8;
}

.entry-intro.is-playing .entry-intro__line {
  animation: entryLineIn .75s ease 1.05s both;
}

@keyframes entryLogoIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(.86);
  }

  62% {
    opacity: 1;
    transform: translateY(-3px) scale(1.035);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes entryLetterIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes entrySubtitleIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: .34em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: .25em;
  }
}

@keyframes entryLineIn {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: min(230px, 66vw);
    opacity: .8;
  }
}

@keyframes entryAmbientOne {
  from {
    opacity: 0;
    transform: translate3d(30px, -20px, 0) scale(.86);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes entryAmbientTwo {
  from {
    opacity: 0;
    transform: translate3d(-25px, 24px, 0) scale(.88);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 720px) {
  .entry-intro {
    padding: 18px;
  }

  .entry-intro__logo-wrap {
    width: 112px;
    height: 112px;
    margin-bottom: 17px;
    border-radius: 31px;
  }

  .entry-intro__logo {
    width: 82px;
    height: 82px;
  }

  .entry-intro__name strong {
    font-size: clamp(3.2rem, 18vw, 4.55rem);
  }

  .entry-intro__name small {
    max-width: 270px;
    font-size: .7rem;
    letter-spacing: .20em;
  }

  .entry-intro.is-playing .entry-intro__name small {
    animation-name: entrySubtitleInMobile;
  }

  .entry-intro__ambient--one {
    width: 420px;
    height: 420px;
    top: -19%;
    right: -52%;
  }

  .entry-intro__ambient--two {
    width: 340px;
    height: 340px;
    bottom: -16%;
    left: -46%;
  }
}

@keyframes entrySubtitleInMobile {
  from {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: .28em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: .20em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-intro {
    display: none !important;
  }

  body.entry-intro-active {
    overflow: auto;
  }
}

/* =========================================================
   INDEX — NUBES MÁS BAJAS Y SIN DEFORMACIÓN EN MÓVIL
   ========================================================= */
@media (max-width: 720px) {
  /*
    Se reduce todavía más la altura y se conserva la proporción
    horizontal original de nubes.png. Ya no se fuerza a 108%
    ni se estira la máscara verticalmente.
  */
  .hero-divider {
    height: 40px !important;
    bottom: -1px;
    overflow: hidden;
    filter: drop-shadow(0 -2px 5px rgba(88, 25, 52, .035));
  }

  .hero-divider::before {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0 !important;
    width: 100% !important;
    height: 100%;

    -webkit-mask-position: center bottom;
    -webkit-mask-size: 100% auto;
    mask-position: center bottom;
    mask-size: 100% auto;

    transform: scaleX(-1);
    transform-origin: center;
  }

  .hero-divider::after {
    right: 0;
    bottom: -1px;
    left: 0;
    height: 20% !important;
  }

  .hero-divider__image {
    width: 100%;
    height: auto;
    margin-left: 0;
    object-fit: contain;
    object-position: center bottom;
  }
}

/* =========================================================
   INDEX — NUBES EN MÓVIL CON PROPORCIÓN ORIGINAL
   El ancho permanece al 100 % y el alto se calcula
   automáticamente según la imagen assets/images/nubes.png
   ========================================================= */
@media (max-width: 720px) {
  /*
    El contenedor toma automáticamente la altura real del PNG
    oculto. Así la imagen completa conserva su proporción y
    no se recorta ni se estira.
  */
  .hero-divider {
    right: 0;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
    filter: drop-shadow(0 -2px 5px rgba(88, 25, 52, .035));
  }

  /*
    La máscara ocupa exactamente las dimensiones naturales
    calculadas por la imagen de respaldo.
  */
  .hero-divider::before {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;

    -webkit-mask-position: center bottom !important;
    -webkit-mask-size: 100% 100% !important;
    mask-position: center bottom !important;
    mask-size: 100% 100% !important;

    transform: scaleX(-1);
    transform-origin: center;
  }

  /*
    Mantiene el relleno inferior para que no vuelva a aparecer
    una franja blanca en el centro de las nubes.
  */
  .hero-divider::after {
    right: 0;
    bottom: -1px;
    left: 0;
    height: 22% !important;
  }

  /*
    Esta imagen permanece invisible, pero conserva su espacio.
    Su ancho define la medida y su alto queda automático.
  */
  .hero-divider__image {
    position: relative;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center bottom;
    opacity: 0;
    visibility: hidden;
  }
}



/* =========================================================
   TESTIMONIOS DINÁMICOS: CARRUSEL Y MODAL DE RESEÑAS
   ========================================================= */
.testimonial-heading {
  max-width: 800px;
  margin: 0 auto 42px;
  text-align: center;
}

.testimonial-heading .section-title,
.testimonial-heading .section-copy {
  margin-inline: auto;
}

.testimonial-heading__button {
  margin-top: 0;
}

.testimonial-review-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.testimonial-carousel {
  position: relative;
}

.testimonial-carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.testimonial-carousel__status {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.testimonial-carousel__status [data-review-current] {
  color: var(--lilac-800);
  font-size: 1.55rem;
}

.testimonial-carousel__controls {
  display: flex;
  gap: 10px;
}

.testimonial-carousel__arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150, 48, 95, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--lilac-800);
  font-size: 1.25rem;
  box-shadow: 0 12px 30px rgba(88, 25, 52, .08);
  transition: transform .22s ease, background .22s ease, color .22s ease, opacity .22s ease;
}

.testimonial-carousel__arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--lilac-800);
  color: #fff;
}

.testimonial-carousel__arrow:disabled {
  cursor: default;
  opacity: .38;
}

.testimonial-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  border-radius: 34px;
}

.testimonial-viewport::-webkit-scrollbar {
  display: none;
}

.testimonial-track {
  display: flex;
  grid-template-columns: none;
  gap: 24px;
  width: 100%;
  overflow: visible;
  padding: 8px 0 34px;
  scroll-snap-type: none;
}

.testimonial,
.testimonial:nth-child(2) {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  transform: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.testimonial:hover,
.testimonial:nth-child(2):hover {
  transform: translateY(-6px);
}

.testimonial__stars {
  min-height: 23px;
  white-space: nowrap;
}

.testimonial-carousel__dots {
  min-height: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 3px;
}

.testimonial-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(150, 48, 95, .20);
  transition: width .22s ease, background .22s ease;
}

.testimonial-carousel__dot.is-active {
  width: 28px;
  background: var(--lilac-800);
}

.review-modal__dialog {
  width: min(620px, 100%);
  max-height: min(90vh, 760px);
  overflow-y: auto;
}

.review-modal__intro {
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.review-form {
  display: grid;
  gap: 18px;
}

.review-form textarea {
  min-height: 135px;
  resize: vertical;
}

.review-rating-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-rating-fieldset legend {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
}

.review-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.review-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.review-rating label {
  cursor: pointer;
  color: rgba(150, 48, 95, .20);
  font-size: 2.15rem;
  line-height: 1;
  transition: color .18s ease, transform .18s ease;
}

.review-rating label:hover,
.review-rating label:hover ~ label,
.review-rating input:checked ~ label {
  color: #efa52a;
}

.review-rating label:hover {
  transform: translateY(-2px) scale(1.06);
}

.review-rating input:focus-visible + label {
  outline: 3px solid rgba(150, 48, 95, .24);
  outline-offset: 4px;
  border-radius: 5px;
}

.review-form__note,
.review-form__feedback {
  margin: 0;
  text-align: center;
  font-size: .84rem;
  line-height: 1.5;
}

.review-form__note {
  color: var(--ink-soft);
}

.review-form__feedback {
  min-height: 1.5em;
  color: var(--lilac-800);
  font-weight: 700;
}

@media (max-width: 1020px) {
  .testimonial,
  .testimonial:nth-child(2) {
    flex-basis: calc((100% - 20px) / 2);
  }

  .testimonial-track {
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .testimonial-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .testimonial-heading .section-title,
  .testimonial-heading .section-copy {
    margin-inline: 0;
  }

  .testimonial-review-action {
    margin-top: 22px;
  }

  .testimonial-heading__button {
    width: 100%;
  }

  .testimonial-carousel__toolbar {
    margin-bottom: 12px;
  }

  .testimonial-carousel__arrow {
    width: 44px;
    height: 44px;
  }

  .testimonial-track {
    gap: 14px;
    padding-bottom: 24px;
  }

  .testimonial,
  .testimonial:nth-child(2) {
    flex-basis: 100%;
    min-height: 330px;
  }

  .review-rating label {
    font-size: 2rem;
  }
}


/* =========================================================
   PUBLICACIONES + ADMINISTRACIÓN
   ========================================================= */
@media (min-width: 1021px) {
  .site-nav { gap: 19px; }
  .site-nav > a { font-size: .9rem; }
  .nav-appointment { padding-inline: 19px; }
}

.posts-page-hero { min-height: 360px; display: grid; align-items: center; }
.posts-section { padding-top: 64px; }
.posts-shell { width: min(100%, 820px); margin-inline: auto; }
.posts-feed { display: grid; gap: 28px; }
.posts-feed-status { margin: 0 0 22px; color: var(--ink-soft); text-align: center; }
.posts-load-more { margin-top: 34px; text-align: center; }

.social-post-card {
  overflow: hidden;
  border: 1px solid rgba(150,48,95,.11);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(88,25,52,.09);
}
.social-post-card__header { display: flex; align-items: center; gap: 13px; padding: 22px 24px 14px; }
.social-post-card__avatar { width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; border-radius: 50%; background: var(--pink-150); }
.social-post-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-post-card__identity { min-width: 0; }
.social-post-card__identity strong { display: block; color: var(--lilac-950); font-size: 1rem; }
.social-post-card__identity time { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .82rem; }
.social-post-card__body { padding: 0 24px 20px; }
.social-post-card__body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); line-height: 1.7; }
.social-post-card__media { display: grid; gap: 3px; background: var(--pink-150); }
.social-post-card__media[data-count="1"] { grid-template-columns: 1fr; }
.social-post-card__media[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.social-post-card__media[data-count="3"],
.social-post-card__media[data-count="4"],
.social-post-card__media[data-count="5"],
.social-post-card__media[data-count="6"] { grid-template-columns: repeat(2, 1fr); }
.social-post-card__media-item { position: relative; min-height: 250px; overflow: hidden; background: var(--lilac-150); }
.social-post-card__media[data-count="1"] .social-post-card__media-item { min-height: 420px; }
.social-post-card__media[data-count="3"] .social-post-card__media-item:first-child { grid-row: span 2; }
.social-post-card__media img,
.social-post-card__media video { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.social-post-card__media video { background: #160d12; }
.social-post-card__footer { display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); }
.social-post-card__share { min-height: 40px; padding: 0 15px; border: 0; border-radius: 999px; color: var(--lilac-900); background: var(--lilac-75); font-weight: 800; }
.social-post-card__share:hover { background: var(--mint-100); }

/* Login y panel */
.admin-body { min-height: 100vh; padding-top: 0; background: linear-gradient(145deg, var(--pink-75), var(--cream)); }
.admin-auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.admin-auth-card { width: min(100%, 470px); padding: 38px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); box-shadow: var(--shadow); }
.admin-auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.admin-auth-brand img { width: 62px; height: 62px; object-fit: contain; }
.admin-auth-card h1 { margin: 0 0 8px; color: var(--lilac-950); font-family: 'Playfair Display', Georgia, serif; }
.admin-auth-card > p { margin: 0 0 24px; color: var(--ink-soft); }
.admin-feedback { min-height: 24px; margin: 14px 0 0; font-size: .9rem; }
.admin-feedback[data-state="error"] { color: #a61b3c; }
.admin-feedback[data-state="success"] { color: #1d7756; }

.admin-topbar { position: sticky; z-index: 50; top: 0; background: rgba(255,250,251,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.admin-topbar__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-topbar__brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--lilac-950); }
.admin-topbar__brand img { width: 48px; height: 48px; object-fit: contain; }
.admin-topbar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-main { padding: 48px 0 80px; }
.admin-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: start; }
.admin-card { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow-soft); }
.admin-card--sticky { position: sticky; top: 102px; }
.admin-card h1, .admin-card h2 { margin-top: 0; color: var(--lilac-950); font-family: 'Playfair Display', Georgia, serif; }
.admin-help { color: var(--ink-soft); font-size: .9rem; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.admin-media-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.admin-media-preview img, .admin-media-preview video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--pink-150); }
.admin-posts-list { display: grid; gap: 16px; }
.admin-post-item { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.admin-post-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.admin-post-item__meta { color: var(--ink-soft); font-size: .82rem; }
.admin-post-item__content { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-post-item__media { display: flex; gap: 7px; overflow-x: auto; margin-top: 12px; }
.admin-post-item__media img, .admin-post-item__media video { width: 92px; height: 92px; flex: 0 0 92px; object-fit: cover; border-radius: 12px; background: var(--pink-150); }
.admin-post-item__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-chip { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.admin-chip--published { color: #165f47; background: #e7f7f0; }
.admin-chip--draft { color: #7a5a12; background: #fff5d7; }
.btn--danger { color: #8f1738; border-color: rgba(143,23,56,.2); background: #fff0f4; }
.btn--danger:hover { background: #ffe0e8; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card--sticky { position: static; }
}
@media (max-width: 720px) {
  .posts-section { padding-top: 42px; }
  .social-post-card { border-radius: 20px; }
  .social-post-card__header { padding: 18px 17px 12px; }
  .social-post-card__body { padding: 0 17px 17px; }
  .social-post-card__media-item { min-height: 180px; }
  .social-post-card__media[data-count="1"] .social-post-card__media-item { min-height: 290px; }
  .admin-auth-shell { padding: 16px; }
  .admin-auth-card { padding: 28px 20px; border-radius: 24px; }
  .admin-main { padding-top: 28px; }
  .admin-card { padding: 20px; border-radius: 22px; }
  .admin-topbar__inner { align-items: flex-start; padding-block: 12px; }
  .admin-topbar__actions { justify-content: flex-end; }
  .admin-media-preview { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   PUBLICACIONES V2 — EDITOR AVANZADO + FEED SOCIAL
   ========================================================= */
.posts-load-sentinel { width: 100%; height: 1px; }

.social-post-card {
  overflow: hidden;
  border: 1px solid rgba(150,48,95,.11);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(88,25,52,.08);
}
.social-post-card.is-featured {
  border-color: rgba(229,109,157,.32);
  box-shadow: 0 24px 68px rgba(88,25,52,.14);
}
.social-post-card--feature { border-radius: 36px; }
.social-post-card--compact .social-post-card__body { padding-bottom: 14px; }
.social-post-card--compact .social-post-card__content { font-size: .94rem; }

.social-post-card__identity-meta { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .82rem; }
.social-post-card__location { color: var(--lilac-700); font-weight: 700; }
.social-post-card__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.social-post-card__badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; color: var(--lilac-900); background: var(--lilac-75); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.social-post-card__badge--featured { color: var(--white); background: var(--lilac-800); }
.social-post-card__title { margin: 0 0 8px; color: var(--lilac-950); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.08; }
.social-post-card--feature .social-post-card__title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.social-post-card__subtitle { margin: 0 0 14px !important; color: var(--lilac-700) !important; font-size: 1.04rem; font-weight: 700; line-height: 1.5 !important; }
.social-post-card__content { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); line-height: 1.72; }

.social-post-card__media { display: grid; gap: 3px; background: var(--pink-150); }
.social-post-card__media[data-count="1"] { grid-template-columns: 1fr; }
.social-post-card__media[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.social-post-card__media[data-count="3"],
.social-post-card__media[data-count="4"],
.social-post-card__media[data-count="5"] { grid-template-columns: repeat(2, 1fr); }
.social-post-card__media-item { position: relative; min-height: 240px; overflow: hidden; padding: 0; border: 0; background: var(--lilac-150); cursor: zoom-in; }
.social-post-card__media[data-count="1"] .social-post-card__media-item { min-height: 430px; }
.social-post-card__media[data-count="3"] .social-post-card__media-item:first-child,
.social-post-card__media[data-count="5"] .social-post-card__media-item:first-child { grid-row: span 2; }
.social-post-card__media-item img,
.social-post-card__media-item video { width: 100%; height: 100%; min-height: inherit; display: block; object-fit: cover; transition: transform .35s ease; }
.social-post-card__media-item:hover img,
.social-post-card__media-item:hover video { transform: scale(1.025); }
.social-post-card__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: rgba(75,23,48,.72); transform: translate(-50%,-50%); backdrop-filter: blur(8px); }
.social-post-card__media-more { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); background: rgba(43,20,31,.52); font-size: 2rem; font-weight: 800; }

.social-post-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.social-post-card__ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.social-post-card__cta { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid rgba(150,48,95,.16); border-radius: 999px; color: var(--lilac-900); background: var(--white); font-size: .84rem; font-weight: 800; }
.social-post-card__cta--primary { color: var(--white); border-color: var(--lilac-800); background: var(--lilac-800); }

.post-lightbox[hidden] { display: none; }
.post-lightbox { position: fixed; z-index: 20000; inset: 0; display: grid; place-items: center; padding: 24px; }
.post-lightbox__backdrop { position: absolute; inset: 0; background: rgba(23,8,15,.9); backdrop-filter: blur(10px); }
.post-lightbox__dialog { position: relative; z-index: 2; width: min(1100px, 96vw); height: min(820px, 90vh); display: grid; place-items: center; }
.post-lightbox__stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: 20px; }
.post-lightbox__stage img,
.post-lightbox__stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.post-lightbox__close,
.post-lightbox__arrow { position: absolute; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--white); background: rgba(75,23,48,.74); font-size: 1.2rem; }
.post-lightbox__close { top: 10px; right: 10px; font-size: 1.6rem; }
.post-lightbox__arrow { top: 50%; transform: translateY(-50%); }
.post-lightbox__arrow--prev { left: 10px; }
.post-lightbox__arrow--next { right: 10px; }
.post-lightbox__counter { position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; color: var(--white); background: rgba(43,20,31,.68); font-size: .82rem; font-weight: 800; }

/* ADMIN V2 */
.admin-dashboard { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 28px; align-items: start; }
.admin-composer-card { min-width: 0; }
.admin-live-preview-card { position: sticky; top: 104px; }
.admin-post-library { grid-column: 1 / -1; }
.admin-composer-heading,
.admin-library-heading,
.admin-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.admin-composer-heading h1,
.admin-library-heading h2,
.admin-preview-heading h2 { margin-bottom: 8px; }
.admin-composer-badge,
.admin-preview-status { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; color: var(--lilac-900); background: var(--lilac-75); font-size: .76rem; font-weight: 800; }

.admin-editor-section { min-width: 0; margin: 26px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,242,247,.58)); }
.admin-editor-section legend { padding: 0 8px; color: var(--lilac-950); font-family: 'Playfair Display', Georgia, serif; font-size: 1.12rem; font-weight: 700; }
.admin-editor-grid { display: grid; gap: 16px; }
.admin-editor-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-editor-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-field-help { color: var(--ink-soft); font-size: .76rem; }
.admin-field-row { display: flex; justify-content: space-between; gap: 16px; }
.admin-character-count { color: var(--ink-soft); white-space: nowrap; }

.admin-upload-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px dashed rgba(150,48,95,.28); border-radius: 18px; background: var(--white); }
.admin-upload-box p { margin: 4px 0 0; color: var(--ink-soft); font-size: .84rem; }
.admin-upload-button { flex: 0 0 auto; }
.admin-subheading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 20px; }
.admin-subheading-row small { color: var(--ink-soft); }
.admin-media-preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-media-preview__item { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--pink-75); }
.admin-media-preview__item img,
.admin-media-preview__item video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.admin-media-preview__item.is-marked-remove { opacity: .35; filter: grayscale(1); }
.admin-media-preview__item.is-marked-remove::after { content: 'Will be removed'; position: absolute; inset: auto 6px 6px; padding: 4px 7px; border-radius: 8px; color: var(--white); background: rgba(75,23,48,.82); font-size: .65rem; font-weight: 800; text-align: center; }
.admin-media-preview__name { display: block; overflow: hidden; padding: 7px 8px; color: var(--ink-soft); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-media-preview__remove { position: absolute; z-index: 3; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--white); background: rgba(75,23,48,.78); font-size: 1rem; }

.admin-link-block { position: relative; padding-left: 48px; }
.admin-link-block + .admin-link-block { margin-top: 18px; }
.admin-link-number { position: absolute; left: 0; top: 4px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--lilac-900); background: var(--mint-100); font-size: .72rem; font-weight: 800; }
.admin-check-card { min-height: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid rgba(150,48,95,.12); border-radius: 15px; background: var(--white); cursor: pointer; }
.admin-check-card input { width: 19px; height: 19px; accent-color: var(--lilac-800); }
.admin-check-card strong,
.admin-check-card small { display: block; }
.admin-check-card small { margin-top: 2px; color: var(--ink-soft); font-size: .72rem; }
.admin-form-actions--sticky { position: sticky; z-index: 10; bottom: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 16px 44px rgba(88,25,52,.14); backdrop-filter: blur(12px); }
.admin-save-hint { color: var(--ink-soft); font-size: .76rem; }

.admin-preview-heading { margin-bottom: 18px; }
.admin-preview-post { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 16px 38px rgba(88,25,52,.08); }
.admin-preview-post.is-featured { border-color: rgba(229,109,157,.34); }
.admin-preview-post__head { display: flex; align-items: center; gap: 10px; padding: 15px; }
.admin-preview-post__head > span:last-child { min-width: 0; }
.admin-preview-post__head strong,
.admin-preview-post__head small { display: block; }
.admin-preview-post__head small { color: var(--ink-soft); font-size: .72rem; }
.admin-preview-post__avatar { width: 40px; height: 40px; overflow: hidden; border-radius: 50%; }
.admin-preview-post__avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-preview-post__meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 9px; }
.admin-preview-post__meta span { padding: 4px 8px; border-radius: 999px; color: var(--lilac-900); background: var(--lilac-75); font-size: .64rem; font-weight: 800; }
.admin-preview-post h3 { margin: 0; padding: 0 15px; color: var(--lilac-950); font-family: 'Playfair Display', Georgia, serif; font-size: 1.55rem; line-height: 1.08; }
.admin-preview-post__subtitle { margin: 8px 0 0; padding: 0 15px; color: var(--lilac-700); font-weight: 700; }
.admin-preview-post__content { margin: 12px 0 15px; padding: 0 15px; white-space: pre-wrap; color: var(--ink); font-size: .88rem; line-height: 1.6; }
.admin-preview-post__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 14px; background: var(--pink-150); }
.admin-preview-post__media[data-count="1"] { grid-template-columns: 1fr; }
.admin-preview-post__media img,
.admin-preview-post__media video { width: 100%; min-height: 145px; height: 100%; object-fit: cover; }
.admin-preview-post__links { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px; }
.admin-preview-post__links .btn { min-height: 38px; padding-inline: 12px; font-size: .74rem; }

.admin-library-count { min-width: 82px; display: grid; place-items: center; padding: 12px; border-radius: 18px; background: var(--lilac-75); text-align: center; }
.admin-library-count strong { color: var(--lilac-900); font-family: 'Playfair Display', Georgia, serif; font-size: 1.7rem; line-height: 1; }
.admin-library-count span { color: var(--ink-soft); font-size: .68rem; }
.admin-empty-state { padding: 45px 20px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; }
.admin-empty-state p { margin-bottom: 0; color: var(--ink-soft); }
.admin-post-item__category { display: inline-flex; margin-bottom: 6px; padding: 4px 8px; border-radius: 999px; color: var(--lilac-900); background: var(--lilac-75); font-size: .68rem; font-weight: 800; }
.admin-post-item__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.admin-chip--featured { color: var(--white); background: var(--lilac-800); }
.admin-post-item__title { margin: 14px 0 4px; color: var(--lilac-950); font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; }
.admin-post-item__subtitle { margin: 0 0 10px; color: var(--lilac-700); font-weight: 700; }
.btn--danger { color: #9c1837; border-color: rgba(156,24,55,.18); background: #fff1f4; }
.btn--danger:hover { color: var(--white); background: #9c1837; }

@media (max-width: 1080px) {
  .admin-dashboard { grid-template-columns: 1fr; }
  .admin-live-preview-card { position: static; }
  .admin-post-library { grid-column: auto; }
}

@media (max-width: 720px) {
  .social-post-card__actions { align-items: stretch; flex-direction: column; }
  .social-post-card__ctas { width: 100%; }
  .social-post-card__cta { flex: 1 1 auto; }
  .social-post-card__share { align-self: flex-end; }
  .post-lightbox { padding: 10px; }
  .post-lightbox__dialog { width: 100%; height: 88vh; }
  .post-lightbox__arrow { width: 42px; height: 42px; }
  .admin-composer-heading,
  .admin-library-heading { flex-direction: column; }
  .admin-editor-section { padding: 18px 14px; }
  .admin-editor-grid--2,
  .admin-editor-grid--3 { grid-template-columns: 1fr; }
  .admin-upload-box { align-items: stretch; flex-direction: column; }
  .admin-media-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-link-block { padding-left: 0; padding-top: 45px; }
  .admin-link-number { top: 0; }
  .admin-form-actions--sticky { position: static; }
}

/* =========================================================
   PUBLICACIONES V3 — FEED COMPACTO EN 2 COLUMNAS
   ---------------------------------------------------------
   Este bloque está aislado con body[data-page="posts"].
   No modifica Inicio, Servicios, Contacto ni el panel admin.
   ========================================================= */

body[data-page="posts"] .posts-page-hero {
  min-height: 330px;
  display: grid;
  align-items: center;
}

body[data-page="posts"] .posts-section {
  padding: 66px 0 92px;
  background:
    radial-gradient(circle at 8% 4%, rgba(249, 217, 230, .36), transparent 27%),
    radial-gradient(circle at 92% 86%, rgba(246, 143, 183, .13), transparent 25%),
    var(--cream);
}

body[data-page="posts"] .posts-shell {
  width: min(100%, 1180px);
  margin-inline: auto;
}

body[data-page="posts"] .posts-feed-status {
  grid-column: 1 / -1;
  margin: 0 0 24px;
  color: var(--ink-soft);
  text-align: center;
  font-size: .92rem;
}

body[data-page="posts"] .posts-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}

body[data-page="posts"] .posts-load-sentinel {
  grid-column: 1 / -1;
}

/* ------------------------------
   TARJETA
   ------------------------------ */
body[data-page="posts"] .social-post-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(150, 48, 95, .11);
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,250,251,.97));
  box-shadow:
    0 14px 38px rgba(88, 25, 52, .075),
    0 2px 8px rgba(88, 25, 52, .035);
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
}

body[data-page="posts"] .social-post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 109, 157, .26);
  box-shadow:
    0 24px 54px rgba(88, 25, 52, .12),
    0 3px 10px rgba(88, 25, 52, .04);
}

/* Destacada: sigue ocupando UNA columna para mantener 2 por fila */
body[data-page="posts"] .social-post-card.is-featured {
  border-color: rgba(229, 109, 157, .30);
  box-shadow:
    0 18px 45px rgba(88, 25, 52, .105),
    inset 0 3px 0 rgba(229, 109, 157, .72);
}

body[data-page="posts"] .social-post-card--feature {
  border-radius: 25px;
}

/* ------------------------------
   CABECERA DE LA PUBLICACIÓN
   ------------------------------ */
body[data-page="posts"] .social-post-card__header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px 12px;
}

body[data-page="posts"] .social-post-card__avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: var(--pink-150);
  box-shadow: 0 7px 18px rgba(88,25,52,.10);
}

body[data-page="posts"] .social-post-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="posts"] .social-post-card__identity {
  min-width: 0;
  line-height: 1.3;
}

body[data-page="posts"] .social-post-card__identity strong {
  display: block;
  overflow: hidden;
  color: var(--lilac-950);
  font-size: .91rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="posts"] .social-post-card__identity time,
body[data-page="posts"] .social-post-card__identity-meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .74rem;
}

body[data-page="posts"] .social-post-card__location {
  color: var(--lilac-700);
  font-weight: 700;
}

/* ------------------------------
   TEXTO / METADATOS
   ------------------------------ */
body[data-page="posts"] .social-post-card__body {
  padding: 0 20px 18px;
}

body[data-page="posts"] .social-post-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

body[data-page="posts"] .social-post-card__badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(150,48,95,.08);
  border-radius: 999px;
  color: var(--lilac-900);
  background: var(--lilac-75);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body[data-page="posts"] .social-post-card__badge--featured {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lilac-800), var(--pink-500));
}

body[data-page="posts"] .social-post-card__title,
body[data-page="posts"] .social-post-card--feature .social-post-card__title {
  margin: 0 0 7px;
  color: var(--lilac-950);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 1.8vw, 1.72rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

body[data-page="posts"] .social-post-card__subtitle {
  margin: 0 0 11px !important;
  color: var(--lilac-700) !important;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.45 !important;
}

body[data-page="posts"] .social-post-card__content,
body[data-page="posts"] .social-post-card__body p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .91rem;
  line-height: 1.64;
}

/* ------------------------------
   FOTOS Y VIDEOS — MÁS COMPACTOS
   ------------------------------ */
body[data-page="posts"] .social-post-card__media {
  width: 100%;
  display: grid;
  gap: 2px;
  overflow: hidden;
  background: var(--pink-150);
}

body[data-page="posts"] .social-post-card__media[data-count="1"] {
  grid-template-columns: 1fr;
}

body[data-page="posts"] .social-post-card__media[data-count="2"],
body[data-page="posts"] .social-post-card__media[data-count="3"],
body[data-page="posts"] .social-post-card__media[data-count="4"],
body[data-page="posts"] .social-post-card__media[data-count="5"],
body[data-page="posts"] .social-post-card__media[data-count="6"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Una sola foto: formato de noticia, no ocupa media pantalla */
body[data-page="posts"]
.social-post-card__media[data-count="1"]
.social-post-card__media-item {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

/* Dos fotos */
body[data-page="posts"]
.social-post-card__media[data-count="2"]
.social-post-card__media-item {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

/* Tres o más fotos */
body[data-page="posts"] .social-post-card__media[data-count="3"],
body[data-page="posts"] .social-post-card__media[data-count="4"],
body[data-page="posts"] .social-post-card__media[data-count="5"],
body[data-page="posts"] .social-post-card__media[data-count="6"] {
  grid-auto-rows: 145px;
}

body[data-page="posts"] .social-post-card__media-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--lilac-150);
  cursor: zoom-in;
}

body[data-page="posts"]
.social-post-card__media[data-count="3"]
.social-post-card__media-item:first-child,
body[data-page="posts"]
.social-post-card__media[data-count="5"]
.social-post-card__media-item:first-child {
  grid-row: span 2;
}

body[data-page="posts"] .social-post-card__media-item img,
body[data-page="posts"] .social-post-card__media-item video {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  transition:
    transform .38s ease,
    filter .38s ease;
}

body[data-page="posts"] .social-post-card__media-item:hover img,
body[data-page="posts"] .social-post-card__media-item:hover video {
  transform: scale(1.035);
  filter: saturate(1.03);
}

body[data-page="posts"] .social-post-card__play {
  width: 46px;
  height: 46px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

body[data-page="posts"] .social-post-card__media-more {
  font-size: 1.55rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ------------------------------
   ENLACES / BOTONES
   Los dos links se ven como acciones reales y no como enlaces sueltos.
   ------------------------------ */
body[data-page="posts"] .social-post-card__actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(150,48,95,.09);
  background: rgba(255,250,251,.72);
}

body[data-page="posts"] .social-post-card__ctas {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body[data-page="posts"] .social-post-card__cta {
  position: relative;
  flex: 1 1 145px;
  min-width: 0;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px 9px 15px;
  overflow: hidden;
  border: 1px solid rgba(150,48,95,.16);
  border-radius: 13px;
  color: var(--lilac-900);
  background: var(--white);
  box-shadow: 0 5px 14px rgba(88,25,52,.045);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    color .22s ease;
}

body[data-page="posts"] .social-post-card__cta::after {
  content: '↗';
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--lilac-800);
  background: var(--lilac-75);
  font-size: .82rem;
  transition:
    transform .22s ease,
    background .22s ease,
    color .22s ease;
}

body[data-page="posts"] .social-post-card__cta:hover {
  transform: translateY(-2px);
  border-color: rgba(229,109,157,.36);
  background: var(--pink-75);
  box-shadow: 0 9px 22px rgba(88,25,52,.09);
}

body[data-page="posts"] .social-post-card__cta:hover::after {
  transform: translate(2px, -2px);
}

/* Link 1: acción principal */
body[data-page="posts"] .social-post-card__cta--primary {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lilac-800), var(--pink-500));
  box-shadow: 0 9px 22px rgba(150,48,95,.17);
}

body[data-page="posts"] .social-post-card__cta--primary::after {
  color: var(--white);
  background: rgba(255,255,255,.17);
}

body[data-page="posts"] .social-post-card__cta--primary:hover {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lilac-900), var(--lilac-700));
  box-shadow: 0 12px 27px rgba(150,48,95,.23);
}

/* Compartir queda secundario y discreto */
body[data-page="posts"] .social-post-card__share {
  justify-self: end;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(150,48,95,.10);
  border-radius: 10px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 800;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

body[data-page="posts"] .social-post-card__share:hover {
  transform: translateY(-1px);
  color: var(--lilac-900);
  border-color: rgba(150,48,95,.22);
  background: var(--lilac-75);
}

/* ------------------------------
   LIGHTBOX — pequeño refinamiento visual
   ------------------------------ */
body[data-page="posts"] .post-lightbox__stage {
  background: rgba(17,8,12,.30);
  box-shadow: 0 25px 80px rgba(0,0,0,.28);
}

/* ------------------------------
   TABLET
   ------------------------------ */
@media (max-width: 900px) {
  body[data-page="posts"] .posts-shell {
    width: min(100%, 720px);
  }

  body[data-page="posts"] .posts-feed {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body[data-page="posts"] .social-post-card__media[data-count="3"],
  body[data-page="posts"] .social-post-card__media[data-count="4"],
  body[data-page="posts"] .social-post-card__media[data-count="5"],
  body[data-page="posts"] .social-post-card__media[data-count="6"] {
    grid-auto-rows: 165px;
  }
}

/* ------------------------------
   MÓVIL
   ------------------------------ */
@media (max-width: 720px) {
  body[data-page="posts"] .posts-page-hero {
    min-height: 300px;
  }

  body[data-page="posts"] .posts-section {
    padding: 44px 0 70px;
  }

  body[data-page="posts"] .posts-feed {
    gap: 19px;
  }

  body[data-page="posts"] .social-post-card,
  body[data-page="posts"] .social-post-card--feature {
    border-radius: 20px;
  }

  body[data-page="posts"] .social-post-card:hover {
    transform: none;
  }

  body[data-page="posts"] .social-post-card__header {
    padding: 16px 16px 11px;
  }

  body[data-page="posts"] .social-post-card__body {
    padding: 0 16px 16px;
  }

  body[data-page="posts"] .social-post-card__title,
  body[data-page="posts"] .social-post-card--feature .social-post-card__title {
    font-size: 1.38rem;
  }

  body[data-page="posts"] .social-post-card__content,
  body[data-page="posts"] .social-post-card__body p {
    font-size: .9rem;
  }

  body[data-page="posts"]
  .social-post-card__media[data-count="1"]
  .social-post-card__media-item {
    aspect-ratio: 4 / 3;
  }

  body[data-page="posts"] .social-post-card__media[data-count="3"],
  body[data-page="posts"] .social-post-card__media[data-count="4"],
  body[data-page="posts"] .social-post-card__media[data-count="5"],
  body[data-page="posts"] .social-post-card__media[data-count="6"] {
    grid-auto-rows: 115px;
  }

  body[data-page="posts"] .social-post-card__actions {
    padding: 12px 14px 14px;
  }

  body[data-page="posts"] .social-post-card__ctas {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="posts"] .social-post-card__cta {
    width: 100%;
    min-height: 44px;
  }
}

/* =========================================================
   FIN PUBLICACIONES V3
   ========================================================= */

/* =========================================================
   ADMIN — ORGANIZADOR VISUAL DE FOTOS Y VIDEOS
   ========================================================= */
.admin-media-organizer-heading {
  align-items: center;
  margin-top: 22px;
}

.admin-media-organizer-heading > div {
  display: grid;
  gap: 3px;
}

.admin-media-counter {
  flex: 0 0 auto;
  min-width: 68px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid rgba(150,48,95,.10);
  border-radius: 14px;
  color: var(--ink-soft);
  background: var(--lilac-75);
  font-size: .76rem;
  font-weight: 800;
}

.admin-media-counter strong {
  color: var(--lilac-900);
  font-size: 1.15rem;
}

.admin-media-organizer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.admin-media-organizer__empty {
  grid-column: 1 / -1;
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(150,48,95,.20);
  border-radius: 18px;
  color: var(--ink-soft);
  background: rgba(255,250,251,.66);
  font-size: .84rem;
  text-align: center;
}

.admin-media-organizer__item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(150,48,95,.12);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(88,25,52,.06);
  cursor: grab;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    opacity .2s ease;
}

.admin-media-organizer__item:hover {
  transform: translateY(-2px);
  border-color: rgba(229,109,157,.28);
  box-shadow: 0 13px 28px rgba(88,25,52,.10);
}

.admin-media-organizer__item:active {
  cursor: grabbing;
}

.admin-media-organizer__item.is-dragging {
  opacity: .38;
  transform: scale(.96);
}

.admin-media-organizer__item.is-drag-over {
  border-color: var(--mint-500);
  box-shadow:
    0 0 0 3px rgba(229,109,157,.18),
    0 13px 28px rgba(88,25,52,.10);
}

.admin-media-organizer__visual {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--pink-150);
}

.admin-media-organizer__visual img,
.admin-media-organizer__visual video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #1b1016;
}

.admin-media-organizer__position {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 9px;
  color: var(--white);
  background: rgba(75,23,48,.82);
  box-shadow: 0 5px 14px rgba(0,0,0,.14);
  font-size: .72rem;
  font-weight: 900;
}

.admin-media-organizer__type {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.admin-media-organizer__type--existing {
  color: var(--lilac-950);
  background: rgba(255,255,255,.88);
}

.admin-media-organizer__type--new {
  color: var(--white);
  background: var(--lilac-800);
}

.admin-media-organizer__drag {
  position: absolute;
  z-index: 4;
  top: 43px;
  left: 8px;
  width: 28px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--white);
  background: rgba(75,23,48,.66);
  pointer-events: none;
}

.admin-media-organizer__drag svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.admin-media-organizer__controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  padding: 7px;
  border-top: 1px solid rgba(150,48,95,.08);
  background: var(--cream);
}

.admin-media-organizer__move,
.admin-media-organizer__remove {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(150,48,95,.10);
  border-radius: 9px;
  background: var(--white);
  font-size: .84rem;
  font-weight: 900;
  transition:
    color .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.admin-media-organizer__move {
  color: var(--lilac-900);
}

.admin-media-organizer__move:hover:not(:disabled) {
  color: var(--white);
  border-color: var(--lilac-800);
  background: var(--lilac-800);
}

.admin-media-organizer__move:disabled {
  cursor: default;
  opacity: .28;
}

.admin-media-organizer__remove {
  color: #9c1837;
}

.admin-media-organizer__remove:hover {
  color: var(--white);
  border-color: #9c1837;
  background: #9c1837;
}

@media (max-width: 1080px) {
  .admin-media-organizer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-media-organizer-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .admin-media-organizer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .admin-media-organizer__item {
    border-radius: 14px;
  }

  .admin-media-organizer__drag {
    display: none;
  }

  .admin-media-organizer__controls {
    padding: 6px;
  }

  .admin-media-organizer__move,
  .admin-media-organizer__remove {
    min-height: 38px;
  }
}

/* =========================================================
   PUBLICACIONES V4 — IMÁGENES COMPLETAS + GALERÍA CON AIRE
   ---------------------------------------------------------
   Solo afecta la página pública de publicaciones.
   - La galería ya no toca los bordes de la tarjeta.
   - Al abrir una imagen, se muestra COMPLETA y sin recortes.
   ========================================================= */

/* ---------------------------------------------------------
   GALERÍA DENTRO DEL CARD
   --------------------------------------------------------- */
body[data-page="posts"] .social-post-card__media {
  width: calc(100% - 32px);
  margin: 2px 16px 7px;
  overflow: hidden;
  border: 1px solid rgba(150, 48, 95, .09);
  border-radius: 17px;
  background: var(--pink-150);
  box-shadow:
    0 8px 22px rgba(88, 25, 52, .055),
    inset 0 0 0 1px rgba(255, 255, 255, .48);
}

/*
  Dentro de las tarjetas se mantiene una composición uniforme.
  Aquí sí puede usarse cover, porque funciona como miniatura.
  Al abrir la foto, el visor usa contain y NO recorta.
*/
body[data-page="posts"] .social-post-card__media-item {
  border-radius: 0;
}

body[data-page="posts"] .social-post-card__media-item img,
body[data-page="posts"] .social-post-card__media-item video {
  display: block;
  object-position: center center;
}

/* Una sola imagen se ve un poco más natural dentro de la noticia */
body[data-page="posts"]
.social-post-card__media[data-count="1"]
.social-post-card__media-item {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

/* Suaviza las esquinas visuales de las celdas externas */
body[data-page="posts"]
.social-post-card__media[data-count="1"]
.social-post-card__media-item {
  border-radius: 15px;
}

body[data-page="posts"]
.social-post-card__media[data-count="2"]
.social-post-card__media-item:first-child,
body[data-page="posts"]
.social-post-card__media[data-count="3"]
.social-post-card__media-item:first-child,
body[data-page="posts"]
.social-post-card__media[data-count="4"]
.social-post-card__media-item:first-child,
body[data-page="posts"]
.social-post-card__media[data-count="5"]
.social-post-card__media-item:first-child {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

body[data-page="posts"]
.social-post-card__media[data-count="2"]
.social-post-card__media-item:last-child,
body[data-page="posts"]
.social-post-card__media[data-count="3"]
.social-post-card__media-item:last-child,
body[data-page="posts"]
.social-post-card__media[data-count="4"]
.social-post-card__media-item:last-child,
body[data-page="posts"]
.social-post-card__media[data-count="5"]
.social-post-card__media-item:last-child {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* ---------------------------------------------------------
   VISOR / LIGHTBOX
   La imagen completa siempre queda visible.
   --------------------------------------------------------- */
body[data-page="posts"] .post-lightbox {
  padding: 18px;
  background: transparent;
}

body[data-page="posts"] .post-lightbox__backdrop {
  background: rgba(23, 8, 15, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body[data-page="posts"] .post-lightbox__dialog {
  width: min(1380px, calc(100vw - 36px));
  height: min(920px, calc(100vh - 36px));
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
}

body[data-page="posts"] .post-lightbox__stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 22px 58px 42px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.045), transparent 65%),
    rgba(13, 7, 10, .36);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .30);
}

/*
  REGLA CLAVE:
  width/height ocupan el espacio disponible,
  pero object-fit: contain conserva la proporción completa.
  No se corta ninguna parte de la fotografía o video.
*/
body[data-page="posts"] .post-lightbox__stage img,
body[data-page="posts"] .post-lightbox__stage video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 10px;
  background: transparent;
  transform: none !important;
}

/* Los videos mantienen el fondo oscuro cuando sobra espacio */
body[data-page="posts"] .post-lightbox__stage video {
  background: #0e090c;
}

/* Controles con más separación de la imagen */
body[data-page="posts"] .post-lightbox__close {
  top: 15px;
  right: 15px;
}

body[data-page="posts"] .post-lightbox__arrow--prev {
  left: 15px;
}

body[data-page="posts"] .post-lightbox__arrow--next {
  right: 15px;
}

body[data-page="posts"] .post-lightbox__counter {
  bottom: 14px;
}

/* ---------------------------------------------------------
   TABLET / MÓVIL
   --------------------------------------------------------- */
@media (max-width: 720px) {
  body[data-page="posts"] .social-post-card__media {
    width: calc(100% - 20px);
    margin: 1px 10px 6px;
    border-radius: 14px;
  }

  body[data-page="posts"] .post-lightbox {
    padding: 8px;
  }

  body[data-page="posts"] .post-lightbox__dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  body[data-page="posts"] .post-lightbox__stage {
    padding: 54px 10px 54px;
    border-radius: 18px;
  }

  body[data-page="posts"] .post-lightbox__stage img,
  body[data-page="posts"] .post-lightbox__stage video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 7px;
  }

  body[data-page="posts"] .post-lightbox__close {
    top: 10px;
    right: 10px;
  }

  body[data-page="posts"] .post-lightbox__arrow {
    top: auto;
    bottom: 9px;
    transform: none;
  }

  body[data-page="posts"] .post-lightbox__arrow--prev {
    left: 10px;
  }

  body[data-page="posts"] .post-lightbox__arrow--next {
    right: 10px;
  }

  body[data-page="posts"] .post-lightbox__counter {
    bottom: 15px;
  }
}

/* =========================================================
   FIN PUBLICACIONES V4
   ========================================================= */

/* =========================================================
   PUBLICACIONES V5 — CONTACTO AUTOMÁTICO EN CADA POST
   ---------------------------------------------------------
   El teléfono, correo y WhatsApp vienen de app.js.
   No es necesario configurarlos en cada publicación.
   ========================================================= */

body[data-page="posts"] .social-post-card__contact {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

body[data-page="posts"] .social-post-card__contact-link {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(150, 48, 95, .10);
  border-radius: 11px;
  color: var(--lilac-900);
  background: rgba(255, 255, 255, .90);
  font-size: .70rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(88, 25, 52, .035);
  transition:
    transform .2s ease,
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

body[data-page="posts"] .social-post-card__contact-link:hover {
  transform: translateY(-2px);
  color: var(--lilac-950);
  border-color: rgba(229, 109, 157, .30);
  background: var(--pink-75);
  box-shadow: 0 8px 18px rgba(88, 25, 52, .075);
}

body[data-page="posts"] .social-post-card__contact-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--lilac-800);
  background: var(--lilac-75);
}

body[data-page="posts"] .social-post-card__contact-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* WhatsApp conserva una identificación muy sutil sin romper la paleta FLG */
body[data-page="posts"] .social-post-card__contact-link--whatsapp {
  color: #176f50;
  border-color: rgba(37, 160, 108, .15);
  background: rgba(241, 251, 246, .88);
}

body[data-page="posts"] .social-post-card__contact-link--whatsapp .social-post-card__contact-icon {
  color: #16835b;
  background: #e7f8f0;
}

body[data-page="posts"] .social-post-card__contact-link--whatsapp:hover {
  color: #105b41;
  border-color: rgba(37, 160, 108, .28);
  background: #edf9f3;
}

/*
  Si hay botones personalizados y contacto automático,
  se crea una pequeña separación visual entre ambos grupos.
*/
body[data-page="posts"] .social-post-card__ctas + .social-post-card__contact {
  margin-top: 1px;
  padding-top: 10px;
  border-top: 1px dashed rgba(150, 48, 95, .10);
}

@media (max-width: 420px) {
  body[data-page="posts"] .social-post-card__contact {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="posts"] .social-post-card__contact-link--whatsapp {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   FIN PUBLICACIONES V5
   ========================================================= */

/* =========================================================
   PUBLICACIONES V6 — CARDS IGUALES POR FILA + MENSAJE SMS
   ---------------------------------------------------------
   En escritorio, las 2 publicaciones de cada fila se estiran
   a la misma altura. No se recorta texto ni contenido.
   En móvil, donde solo hay una card por fila, la altura vuelve
   a ser natural.
   ========================================================= */

@media (min-width: 901px) {
  body[data-page="posts"] .posts-feed {
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  body[data-page="posts"] .social-post-card {
    height: 100%;
    align-self: stretch;
  }

  /*
    Mantiene la zona de acciones alineada al fondo de cada card.
    Si una publicación tiene menos texto, el espacio sobrante
    queda dentro de la tarjeta en vez de hacerla más corta.
  */
  body[data-page="posts"] .social-post-card__actions {
    margin-top: auto;
  }
}

/* El primer contacto ya no es llamada: es mensaje de texto. */
body[data-page="posts"] .social-post-card__contact-link--message {
  color: var(--lilac-900);
  border-color: rgba(150, 48, 95, .13);
  background: rgba(255, 248, 251, .94);
}

body[data-page="posts"] .social-post-card__contact-link--message .social-post-card__contact-icon {
  color: var(--lilac-800);
  background: var(--lilac-75);
}

body[data-page="posts"] .social-post-card__contact-link--message:hover {
  color: var(--lilac-950);
  border-color: rgba(229, 109, 157, .32);
  background: var(--pink-75);
}

@media (max-width: 900px) {
  body[data-page="posts"] .posts-feed {
    grid-auto-rows: auto;
    align-items: start;
  }

  body[data-page="posts"] .social-post-card {
    height: auto;
  }
}

/* =========================================================
   FIN PUBLICACIONES V6
   ========================================================= */

/* =========================================================
   PUBLICACIONES V7 — ALTURA NATURAL + SIN SHARE
   ========================================================= */

@media (min-width: 901px) {
  body[data-page="posts"] .posts-feed {
    align-items: start !important;
    grid-auto-rows: auto !important;
  }

  body[data-page="posts"] .social-post-card {
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
  }

  body[data-page="posts"] .social-post-card__actions {
    margin-top: 0 !important;
  }
}

/* Respaldo por si queda una versión anterior del JS en caché. */
body[data-page="posts"] .social-post-card__share,
body[data-page="posts"] [data-post-share] {
  display: none !important;
}

body[data-page="posts"] .social-post-card__actions {
  gap: 9px;
  padding-bottom: 14px;
}

/* =========================================================
   FIN PUBLICACIONES V7
   ========================================================= */

/* =========================================================
   PUBLICACIONES V8 — VISOR VERTICAL TIPO REEL / TIKTOK
   ---------------------------------------------------------
   Los videos 1080x1920 se muestran en relación 9:16,
   centrados, altos y sin deformarse.
   Las fotografías conservan el visor V7.
   ========================================================= */

/* El diálogo se vuelve más compacto cuando el elemento es video. */
body[data-page="posts"] .post-lightbox__dialog.is-video {
  width: min(650px, calc(100vw - 28px));
  height: min(960px, calc(100vh - 24px));
}

/* El escenario del video ya no ocupa una gran caja horizontal. */
body[data-page="posts"] .post-lightbox__stage.is-video {
  width: 100%;
  height: 100%;
  padding: 12px 72px 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* Marco principal 9:16 tipo Reel. */
body[data-page="posts"] .post-lightbox__video-shell {
  position: relative;
  height: min(88vh, 900px);
  max-height: calc(100vh - 38px);
  aspect-ratio: 9 / 16;
  max-width: calc(100vw - 150px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: #070407;
  box-shadow:
    0 34px 100px rgba(0,0,0,.52),
    0 0 0 1px rgba(255,255,255,.04);
  isolation: isolate;
}

/* Respaldo si se carga accidentalmente un video horizontal. */
body[data-page="posts"] .post-lightbox__video-shell.is-landscape {
  width: min(88vw, 1100px);
  height: auto;
  max-width: 88vw;
  aspect-ratio: 16 / 9;
}

/* Video: siempre completo dentro del marco. */
body[data-page="posts"] .post-lightbox__stage .post-lightbox__reel-video {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0;
  background: #000;
}

/*
  Sutil sombreado inferior para que los controles se lean
  sin tapar el contenido como un reproductor estándar.
*/
body[data-page="posts"] .post-lightbox__video-shell::after {
  content: '';
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 118px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0),
    rgba(0,0,0,.72)
  );
}

/* Botón grande de play solo cuando está pausado. */
body[data-page="posts"] .post-lightbox__video-overlay-play {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  color: var(--white);
  background: rgba(36,12,25,.72);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
}

body[data-page="posts"] .post-lightbox__video-overlay-play[hidden] {
  display: none;
}

body[data-page="posts"] .post-lightbox__video-overlay-play svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

/* Barra de controles compacta tipo Reel. */
body[data-page="posts"] .post-lightbox__video-controls {
  position: absolute;
  z-index: 6;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: grid;
  grid-template-columns: 36px minmax(70px, 1fr) auto 36px 36px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: var(--white);
  background: rgba(16,8,12,.54);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body[data-page="posts"] .post-lightbox__video-control {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--white);
  background: rgba(255,255,255,.08);
  transition:
    background .18s ease,
    transform .18s ease;
}

body[data-page="posts"] .post-lightbox__video-control:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
}

body[data-page="posts"] .post-lightbox__video-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="posts"]
.post-lightbox__video-control:first-child svg path:first-child {
  fill: currentColor;
  stroke: currentColor;
}

body[data-page="posts"] .post-lightbox__video-progress {
  width: 100%;
  min-width: 0;
  height: 4px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  outline: none;
  background: rgba(255,255,255,.28);
  accent-color: var(--pink-300);
  cursor: pointer;
}

body[data-page="posts"] .post-lightbox__video-progress::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 3px 9px rgba(0,0,0,.28);
}

body[data-page="posts"] .post-lightbox__video-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
}

body[data-page="posts"] .post-lightbox__video-time {
  color: rgba(255,255,255,.82);
  font-size: .66rem;
  font-weight: 700;
  white-space: nowrap;
}

/*
  Cuando el navegador entra en fullscreen, el marco se adapta
  a toda la pantalla pero el video conserva la relación original.
*/
body[data-page="posts"] .post-lightbox__video-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000;
}

body[data-page="posts"]
.post-lightbox__video-shell:fullscreen
.post-lightbox__reel-video {
  object-fit: contain !important;
}

/* Navegación de la galería más discreta alrededor del Reel. */
body[data-page="posts"] .post-lightbox.is-video .post-lightbox__arrow {
  width: 44px;
  height: 44px;
  background: rgba(75,23,48,.58);
}

body[data-page="posts"] .post-lightbox.is-video .post-lightbox__counter {
  bottom: 6px;
  padding: 5px 9px;
  font-size: .70rem;
  background: rgba(43,20,31,.62);
}

/* ---------------------------------------------------------
   MÓVIL — experiencia casi a pantalla completa
   --------------------------------------------------------- */
@media (max-width: 720px) {
  body[data-page="posts"] .post-lightbox__dialog.is-video {
    width: 100%;
    height: 100%;
  }

  body[data-page="posts"] .post-lightbox__stage.is-video {
    width: 100%;
    height: 100%;
    padding: 4px 8px 56px;
  }

  body[data-page="posts"] .post-lightbox__video-shell {
    width: auto;
    height: min(calc(100vh - 68px), 860px);
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 68px);
    border-radius: 18px;
  }

  body[data-page="posts"] .post-lightbox__video-controls {
    right: 8px;
    bottom: 8px;
    left: 8px;
    grid-template-columns: 34px minmax(50px, 1fr) 34px 34px;
    gap: 6px;
    padding: 6px;
  }

  body[data-page="posts"] .post-lightbox__video-time {
    display: none;
  }

  body[data-page="posts"] .post-lightbox.is-video .post-lightbox__close {
    top: 10px;
    right: 10px;
  }

  body[data-page="posts"] .post-lightbox.is-video .post-lightbox__arrow {
    top: auto;
    bottom: 8px;
    width: 40px;
    height: 40px;
    transform: none;
  }

  body[data-page="posts"] .post-lightbox.is-video .post-lightbox__arrow--prev {
    left: 8px;
  }

  body[data-page="posts"] .post-lightbox.is-video .post-lightbox__arrow--next {
    right: 8px;
  }

  body[data-page="posts"] .post-lightbox.is-video .post-lightbox__counter {
    bottom: 13px;
  }
}

/* =========================================================
   FIN PUBLICACIONES V8
   ========================================================= */

/* =========================================================
   PUBLICACIONES V9 — DESTACADAS PROGRAMADAS
   ========================================================= */

body[data-page="posts"] .social-post-card.is-featured {
  position: relative;
  border-color: rgba(229, 109, 157, .42);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 1),
      rgba(255, 245, 249, .96)
    );
  box-shadow:
    0 25px 62px rgba(88, 25, 52, .15),
    0 0 0 1px rgba(229, 109, 157, .08);
}

body[data-page="posts"] .social-post-card.is-featured::before {
  content: '';
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      var(--lilac-800),
      var(--pink-500),
      var(--pink-300)
    );
  pointer-events: none;
}

body[data-page="posts"]
.social-post-card.is-featured
.social-post-card__header {
  background:
    linear-gradient(
      180deg,
      rgba(255, 242, 247, .76),
      rgba(255, 255, 255, 0)
    );
}

body[data-page="posts"]
.social-post-card__badge--featured {
  padding-inline: 10px 12px;
  box-shadow:
    0 7px 18px rgba(150, 48, 95, .17);
}

body[data-page="posts"]
.social-post-card__badge--featured::before {
  content: '★';
  margin-right: 6px;
  font-size: .72rem;
}

/* ADMIN */
.admin-featured-schedule {
  margin-top: 5px;
  padding: 17px;
  border: 1px solid rgba(229, 109, 157, .18);
  border-radius: 17px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 242, 247, .72),
      rgba(255, 255, 255, .96)
    );
}

.admin-featured-schedule[hidden] {
  display: none !important;
}

.admin-featured-schedule
input[type="datetime-local"] {
  background: var(--white);
}

.admin-chip--featured-expired {
  color: #7b5b16;
  background: #fff3cf;
}

.admin-chip--featured {
  max-width: 230px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

/* =========================================================
   FIN PUBLICACIONES V9
   ========================================================= */

/* =========================================================
   PUBLICACIONES V10 — CATEGORIAS BILINGUES + PUBLICIDAD MODAL
   ========================================================= */

/* ADMIN: ayuda para los dos modos de presentación */
.admin-layout-note {
  margin-top: 17px;
  padding: 16px 18px;
  border: 1px solid rgba(150, 48, 95, .12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,242,247,.82), rgba(255,255,255,.96));
}
.admin-layout-note[hidden] { display: none !important; }
.admin-layout-note strong { display: block; color: var(--lilac-950); }
.admin-layout-note p { margin: 5px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }
.admin-check-card.is-disabled { opacity: .48; cursor: not-allowed; }
.admin-chip--ad { color: var(--white); background: linear-gradient(135deg, #7d244d, #e56d9d); }
.admin-preview-post--ad {
  border-color: rgba(229,109,157,.32);
  box-shadow: 0 24px 58px rgba(88,25,52,.14);
}
.admin-preview-post--ad::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--lilac-800), var(--pink-500), var(--pink-300));
}

/* PUBLICIDAD */
.post-ad-modal[hidden] { display: none !important; }
.post-ad-modal {
  position: fixed;
  z-index: 18000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.post-ad-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 12, 24, .72);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.post-ad-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100vw - 42px));
  max-height: min(760px, calc(100vh - 42px));
  display: grid;
  grid-template-columns: minmax(330px, .96fr) minmax(350px, 1.04fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 42px 120px rgba(27,7,18,.38);
  animation: flgAdIn .32s cubic-bezier(.2,.78,.2,1) both;
}
.post-ad-modal__dialog.is-text-only { grid-template-columns: 1fr; width: min(680px, calc(100vw - 42px)); }
@keyframes flgAdIn {
  from { opacity: 0; transform: translateY(18px) scale(.975); }
  to { opacity: 1; transform: none; }
}
.post-ad-modal__close {
  position: absolute;
  z-index: 8;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(150,48,95,.13);
  border-radius: 50%;
  color: var(--lilac-950);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(49,14,30,.12);
  font-size: 1.45rem;
}
.post-ad-modal__media {
  min-width: 0;
  min-height: 520px;
  padding: 18px;
  background: linear-gradient(145deg, var(--lilac-75), #f8dbe6);
}
.post-ad-modal__media-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 484px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #140a10;
  box-shadow: 0 18px 46px rgba(88,25,52,.13);
}
.post-ad-modal__media-stage img,
.post-ad-modal__media-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #0d080b;
}
.post-ad-modal__media-stage--video video { max-width: 100%; }
.post-ad-modal__media-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: var(--white);
  background: rgba(52,17,34,.64);
  transform: translateY(-50%);
}
.post-ad-modal__media-arrow--prev { left: 10px; }
.post-ad-modal__media-arrow--next { right: 10px; }
.post-ad-modal__media-counter {
  position: absolute;
  z-index: 4;
  bottom: 11px;
  left: 50%;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(43,20,31,.66);
  font-size: .72rem;
  font-weight: 800;
  transform: translateX(-50%);
}
.post-ad-modal__content {
  min-width: 0;
  overflow-y: auto;
  padding: 54px 42px 34px;
}
.post-ad-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lilac-700);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.post-ad-modal__eyebrow::before { content: '✦'; color: var(--pink-500); }
.post-ad-modal__badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 10px; }
.post-ad-modal__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--lilac-900);
  background: var(--lilac-75);
  font-size: .69rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.post-ad-modal__title {
  margin: 8px 0 10px;
  color: var(--lilac-950);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.post-ad-modal__subtitle { margin: 0 0 17px; color: var(--lilac-700); font-size: 1.05rem; font-weight: 800; line-height: 1.45; }
.post-ad-modal__copy { margin: 0; white-space: pre-wrap; color: var(--ink); font-size: .95rem; line-height: 1.68; }
.post-ad-modal__ctas { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.post-ad-modal__cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(150,48,95,.16);
  border-radius: 13px;
  color: var(--lilac-900);
  background: var(--white);
  font-size: .8rem;
  font-weight: 900;
}
.post-ad-modal__cta--primary { color: var(--white); border-color: transparent; background: linear-gradient(135deg, var(--lilac-800), var(--pink-500)); }
.post-ad-modal__contact { margin-top: 14px; }
.post-ad-modal__contact .social-post-card__contact { margin: 0; }

@media (max-width: 820px) {
  .post-ad-modal { padding: 12px; }
  .post-ad-modal__dialog,
  .post-ad-modal__dialog.is-text-only {
    width: min(620px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    overflow-y: auto;
    border-radius: 24px;
  }
  .post-ad-modal__media { min-height: 0; padding: 12px; }
  .post-ad-modal__media-stage { height: min(52vh, 480px); min-height: 300px; border-radius: 16px; }
  .post-ad-modal__content { overflow: visible; padding: 28px 22px 24px; }
  .post-ad-modal__title { font-size: clamp(1.8rem, 8vw, 2.55rem); }
}

@media (max-width: 520px) {
  .post-ad-modal__dialog { border-radius: 20px; }
  .post-ad-modal__media-stage { height: 44vh; min-height: 260px; }
  .post-ad-modal__ctas { display: grid; grid-template-columns: 1fr; }
  .post-ad-modal__cta { width: 100%; }
  .post-ad-modal__contact .social-post-card__contact { grid-template-columns: 1fr; }
}

/* =========================================================
   FIN PUBLICACIONES V10
   ========================================================= */
/* =========================================================
   PUBLICACIONES V11 — MEJORAS FINALES SOLO PARA POSTS
   ---------------------------------------------------------
   Bloque aislado para publicaciones.html.
   No modifica Inicio, Servicios, Contacto ni el panel admin.
   Compatible con el HTML nuevo: flg-posts-hero, toolbar,
   buscador, filtros, feed social, videos y audios/música.
   ========================================================= */

body[data-page="posts"].flg-posts-page,
body[data-page="posts"] {
  background:
    radial-gradient(circle at 7% 7%, rgba(249, 217, 230, .34), transparent 28%),
    radial-gradient(circle at 95% 82%, rgba(246, 143, 183, .16), transparent 27%),
    var(--cream);
}

body[data-page="posts"] .flg-posts-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(255,255,255,.20), transparent 24%),
    radial-gradient(circle at 8% 88%, rgba(246,143,183,.26), transparent 30%),
    linear-gradient(135deg, var(--lilac-950) 0%, var(--lilac-900) 46%, var(--lilac-700) 100%);
}

body[data-page="posts"] .flg-posts-hero::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -260px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  pointer-events: none;
}

body[data-page="posts"] .flg-posts-hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  left: -170px;
  bottom: -230px;
  border-radius: 50%;
  background: rgba(249,217,230,.28);
  pointer-events: none;
}

body[data-page="posts"] .flg-posts-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 360px);
  gap: 28px;
  align-items: center;
}

body[data-page="posts"] .flg-posts-hero h1 {
  max-width: 780px;
}

body[data-page="posts"] .flg-posts-hero__card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 30px;
  color: var(--white);
  background: rgba(255,255,255,.13);
  box-shadow: 0 24px 70px rgba(25,8,15,.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body[data-page="posts"] .flg-posts-hero__card::after {
  content: '✦';
  position: absolute;
  right: 22px;
  top: 15px;
  color: rgba(255,255,255,.22);
  font-size: 4.4rem;
  line-height: 1;
}

body[data-page="posts"] .flg-posts-hero__card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 44px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.17);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="posts"] .flg-posts-hero__card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 260px;
  margin-bottom: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: .98;
  letter-spacing: -.035em;
}

body[data-page="posts"] .flg-posts-hero__card small {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 260px;
  color: rgba(255,255,255,.76);
  line-height: 1.5;
}

body[data-page="posts"] .flg-posts-section {
  padding: 70px 0 96px;
  background: transparent;
}

body[data-page="posts"] .flg-posts-shell {
  width: min(calc(100% - 40px), 1180px);
  display: grid;
  grid-template-columns: minmax(235px, 315px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-inline: auto;
}

body[data-page="posts"] .flg-posts-toolbar {
  position: sticky;
  top: calc(var(--fixed-header-height) + 18px);
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(150,48,95,.11);
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 48px rgba(88,25,52,.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body[data-page="posts"] .flg-posts-toolbar h2 {
  margin: 8px 0 8px;
  color: var(--lilac-950);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

body[data-page="posts"] .flg-posts-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}

body[data-page="posts"] .flg-posts-search {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

body[data-page="posts"] .flg-posts-search span {
  color: var(--lilac-950);
  font-size: .82rem;
  font-weight: 900;
}

body[data-page="posts"] .flg-posts-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(150,48,95,.14);
  border-radius: 15px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

body[data-page="posts"] .flg-posts-search input:focus {
  border-color: rgba(229,109,157,.60);
  box-shadow: 0 0 0 4px rgba(229,109,157,.16);
}

body[data-page="posts"] .flg-posts-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

body[data-page="posts"] .flg-posts-filter button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(150,48,95,.12);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: .78rem;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

body[data-page="posts"] .flg-posts-filter button:hover {
  transform: translateY(-1px);
  border-color: rgba(229,109,157,.30);
  color: var(--lilac-900);
  background: var(--lilac-75);
}

body[data-page="posts"] .flg-posts-filter button.is-active {
  border-color: transparent;
  color: var(--white);
  background: linear-gradient(135deg, var(--lilac-800), var(--pink-500));
  box-shadow: 0 10px 22px rgba(150,48,95,.16);
}

body[data-page="posts"] .flg-posts-content {
  min-width: 0;
}

body[data-page="posts"] .flg-posts-status,
body[data-page="posts"] .posts-feed-status {
  margin: 0 0 18px;
  padding: 12px 15px;
  border: 1px solid rgba(150,48,95,.09);
  border-radius: 16px;
  color: var(--lilac-900);
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(88,25,52,.05);
  text-align: left;
  font-size: .88rem;
  font-weight: 800;
}

body[data-page="posts"] .flg-posts-feed,
body[data-page="posts"] .posts-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

body[data-page="posts"] .social-post-card[hidden] {
  display: none !important;
}

body[data-page="posts"] .social-post-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(150,48,95,.11);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,250,251,.97));
  box-shadow: 0 14px 38px rgba(88,25,52,.075), 0 2px 8px rgba(88,25,52,.035);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

body[data-page="posts"] .social-post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229,109,157,.27);
  box-shadow: 0 24px 54px rgba(88,25,52,.12), 0 3px 10px rgba(88,25,52,.04);
}

body[data-page="posts"] .social-post-card.is-featured {
  border-color: rgba(229,109,157,.34);
  box-shadow: 0 18px 46px rgba(88,25,52,.11), inset 0 3px 0 rgba(229,109,157,.72);
}

body[data-page="posts"] .social-post-card__header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px 12px;
}

body[data-page="posts"] .social-post-card__avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: var(--pink-150);
  box-shadow: 0 7px 18px rgba(88,25,52,.10);
}

body[data-page="posts"] .social-post-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="posts"] .social-post-card__identity {
  min-width: 0;
  line-height: 1.3;
}

body[data-page="posts"] .social-post-card__identity strong {
  display: block;
  overflow: hidden;
  color: var(--lilac-950);
  font-size: .91rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="posts"] .social-post-card__identity time,
body[data-page="posts"] .social-post-card__identity-meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .74rem;
}

body[data-page="posts"] .social-post-card__location {
  color: var(--lilac-700);
  font-weight: 800;
}

body[data-page="posts"] .social-post-card__body {
  padding: 0 20px 18px;
}

body[data-page="posts"] .social-post-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

body[data-page="posts"] .social-post-card__badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(150,48,95,.08);
  border-radius: 999px;
  color: var(--lilac-900);
  background: var(--lilac-75);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body[data-page="posts"] .social-post-card__badge--featured {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lilac-800), var(--pink-500));
}

body[data-page="posts"] .social-post-card__title,
body[data-page="posts"] .social-post-card--feature .social-post-card__title {
  margin: 0 0 7px;
  color: var(--lilac-950);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 1.8vw, 1.72rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

body[data-page="posts"] .social-post-card__subtitle {
  margin: 0 0 11px !important;
  color: var(--lilac-700) !important;
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.45 !important;
}

body[data-page="posts"] .social-post-card__content,
body[data-page="posts"] .social-post-card__body p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .91rem;
  line-height: 1.64;
}

body[data-page="posts"] .social-post-card__media {
  width: 100%;
  display: grid;
  gap: 2px;
  overflow: hidden;
  background: var(--pink-150);
}

body[data-page="posts"] .social-post-card__media[data-count="1"] {
  grid-template-columns: 1fr;
}

body[data-page="posts"] .social-post-card__media[data-count="2"],
body[data-page="posts"] .social-post-card__media[data-count="3"],
body[data-page="posts"] .social-post-card__media[data-count="4"],
body[data-page="posts"] .social-post-card__media[data-count="5"],
body[data-page="posts"] .social-post-card__media[data-count="6"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="posts"] .social-post-card__media[data-count="1"] .social-post-card__media-item {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

body[data-page="posts"] .social-post-card__media[data-count="2"] .social-post-card__media-item {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

body[data-page="posts"] .social-post-card__media[data-count="3"],
body[data-page="posts"] .social-post-card__media[data-count="4"],
body[data-page="posts"] .social-post-card__media[data-count="5"],
body[data-page="posts"] .social-post-card__media[data-count="6"] {
  grid-auto-rows: 145px;
}

body[data-page="posts"] .social-post-card__media-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--lilac-150);
  cursor: zoom-in;
}

body[data-page="posts"] .social-post-card__media[data-count="3"] .social-post-card__media-item:first-child,
body[data-page="posts"] .social-post-card__media[data-count="5"] .social-post-card__media-item:first-child {
  grid-row: span 2;
}

body[data-page="posts"] .social-post-card__media-item img,
body[data-page="posts"] .social-post-card__media-item video {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  background: #170d13;
  transition: transform .38s ease, filter .38s ease;
}

body[data-page="posts"] .social-post-card__media-item:hover img,
body[data-page="posts"] .social-post-card__media-item:hover video {
  transform: scale(1.035);
  filter: saturate(1.03);
}

body[data-page="posts"] .social-post-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(75,23,48,.72);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transform: translate(-50%,-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body[data-page="posts"] .social-post-card__media-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(43,20,31,.52);
  font-size: 1.55rem;
  font-weight: 900;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body[data-page="posts"] .social-post-card__media-item--audio {
  cursor: pointer;
}

body[data-page="posts"] .social-post-card__audio-card,
body[data-page="posts"] .post-lightbox__audio-shell,
body[data-page="posts"] .post-ad-modal__audio-box {
  width: 100%;
  min-height: 145px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.19), transparent 26%),
    linear-gradient(135deg, var(--lilac-950), var(--lilac-800) 55%, var(--pink-500));
}

body[data-page="posts"] .social-post-card__audio-card strong,
body[data-page="posts"] .post-lightbox__audio-shell strong,
body[data-page="posts"] .post-ad-modal__audio-box strong {
  display: block;
  font-size: .95rem;
  font-weight: 900;
}

body[data-page="posts"] .social-post-card__audio-card small {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="posts"] .social-post-card__audio-icon,
body[data-page="posts"] .post-lightbox__audio-icon,
body[data-page="posts"] .post-ad-modal__audio-box > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  font-size: 1.45rem;
  font-weight: 900;
}

body[data-page="posts"] .post-lightbox__audio-shell {
  width: min(560px, 92vw);
  min-height: 245px;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0,0,0,.28);
}

body[data-page="posts"] .post-lightbox__audio-shell audio,
body[data-page="posts"] .post-ad-modal__audio-box audio {
  width: min(100%, 420px);
  accent-color: var(--pink-500);
}

body[data-page="posts"] .post-ad-modal__media-stage--audio {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.15), transparent 28%),
    linear-gradient(135deg, #170d13, var(--lilac-950));
}

body[data-page="posts"] .post-ad-modal__audio-box {
  min-height: 100%;
  border-radius: 0;
  background: transparent;
}

body[data-page="posts"] .social-post-card__actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(150,48,95,.09);
  background: rgba(255,250,251,.72);
}

body[data-page="posts"] .social-post-card__ctas {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body[data-page="posts"] .social-post-card__cta {
  position: relative;
  flex: 1 1 145px;
  min-width: 0;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px 9px 15px;
  overflow: hidden;
  border: 1px solid rgba(150,48,95,.16);
  border-radius: 13px;
  color: var(--lilac-900);
  background: var(--white);
  box-shadow: 0 5px 14px rgba(88,25,52,.045);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

body[data-page="posts"] .social-post-card__cta::after {
  content: '↗';
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--lilac-800);
  background: var(--lilac-75);
  font-size: .82rem;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

body[data-page="posts"] .social-post-card__cta:hover {
  transform: translateY(-2px);
  border-color: rgba(229,109,157,.36);
  background: var(--pink-75);
  box-shadow: 0 9px 22px rgba(88,25,52,.09);
}

body[data-page="posts"] .social-post-card__cta:hover::after {
  transform: translate(2px, -2px);
}

body[data-page="posts"] .social-post-card__cta--primary {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lilac-800), var(--pink-500));
  box-shadow: 0 9px 22px rgba(150,48,95,.17);
}

body[data-page="posts"] .social-post-card__cta--primary::after {
  color: var(--white);
  background: rgba(255,255,255,.17);
}

body[data-page="posts"] .social-post-card__cta--primary:hover {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lilac-900), var(--lilac-700));
  box-shadow: 0 12px 27px rgba(150,48,95,.23);
}

body[data-page="posts"] .social-post-card__share {
  justify-self: end;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(150,48,95,.10);
  border-radius: 10px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 900;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

body[data-page="posts"] .social-post-card__share:hover {
  transform: translateY(-1px);
  color: var(--lilac-900);
  border-color: rgba(150,48,95,.22);
  background: var(--lilac-75);
}

body[data-page="posts"] .post-lightbox__stage {
  background: rgba(17,8,12,.30);
  box-shadow: 0 25px 80px rgba(0,0,0,.28);
}

@media (max-width: 1040px) {
  body[data-page="posts"] .flg-posts-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="posts"] .flg-posts-toolbar {
    position: static;
  }

  body[data-page="posts"] .flg-posts-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body[data-page="posts"] .flg-posts-shell {
    width: min(calc(100% - 32px), 720px);
  }

  body[data-page="posts"] .flg-posts-feed,
  body[data-page="posts"] .posts-feed {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body[data-page="posts"] .social-post-card__media[data-count="3"],
  body[data-page="posts"] .social-post-card__media[data-count="4"],
  body[data-page="posts"] .social-post-card__media[data-count="5"],
  body[data-page="posts"] .social-post-card__media[data-count="6"] {
    grid-auto-rows: 165px;
  }

  body[data-page="posts"] .flg-posts-hero__grid {
    grid-template-columns: 1fr;
  }

  body[data-page="posts"] .flg-posts-hero__card {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  body[data-page="posts"] .flg-posts-hero {
    min-height: 315px;
  }

  body[data-page="posts"] .flg-posts-section {
    padding: 44px 0 70px;
  }

  body[data-page="posts"] .flg-posts-shell {
    width: min(calc(100% - 28px), 720px);
  }

  body[data-page="posts"] .flg-posts-toolbar {
    padding: 18px;
    border-radius: 22px;
  }

  body[data-page="posts"] .flg-posts-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  body[data-page="posts"] .flg-posts-filter button {
    white-space: nowrap;
  }

  body[data-page="posts"] .posts-feed {
    gap: 19px;
  }

  body[data-page="posts"] .social-post-card,
  body[data-page="posts"] .social-post-card--feature {
    border-radius: 20px;
  }

  body[data-page="posts"] .social-post-card:hover {
    transform: none;
  }

  body[data-page="posts"] .social-post-card__header {
    padding: 16px 16px 11px;
  }

  body[data-page="posts"] .social-post-card__body {
    padding: 0 16px 16px;
  }

  body[data-page="posts"] .social-post-card__title,
  body[data-page="posts"] .social-post-card--feature .social-post-card__title {
    font-size: 1.38rem;
  }

  body[data-page="posts"] .social-post-card__content,
  body[data-page="posts"] .social-post-card__body p {
    font-size: .9rem;
  }

  body[data-page="posts"] .social-post-card__media[data-count="1"] .social-post-card__media-item {
    aspect-ratio: 4 / 3;
  }

  body[data-page="posts"] .social-post-card__media[data-count="3"],
  body[data-page="posts"] .social-post-card__media[data-count="4"],
  body[data-page="posts"] .social-post-card__media[data-count="5"],
  body[data-page="posts"] .social-post-card__media[data-count="6"] {
    grid-auto-rows: 115px;
  }

  body[data-page="posts"] .social-post-card__actions {
    padding: 12px 14px 14px;
  }

  body[data-page="posts"] .social-post-card__ctas {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="posts"] .social-post-card__cta {
    width: 100%;
    min-height: 44px;
  }

  body[data-page="posts"] .social-post-card__share {
    justify-self: stretch;
  }
}

/* =========================================================
   FIN PUBLICACIONES V11
   ========================================================= */
