/* ================================================================
   REDESIGN — Apartamentos Manzano
   Home animations · Drawer v2 · Apartment Detail v2
   ================================================================ */

/* ──────────────────────────────────────────────────────────────
   HOME · Hero entrance animations
   ────────────────────────────────────────────────────────────── */
@keyframes hmHeroBadge {
  from { opacity: 0; letter-spacing: 0.45em; }
  to   { opacity: 1; letter-spacing: 0.22em; }
}
@keyframes hmHeroTitle {
  from { opacity: 0; transform: translateY(22px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}
@keyframes hmBannerRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero__overlay::before {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,0,0,0.38) 0%, transparent 100%);
}
.hero__overlay span {
  animation: hmHeroBadge 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 0 40px rgba(0,0,0,0.35);
}
.hero__overlay h1 {
  animation: hmHeroTitle 1s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 0 40px rgba(0,0,0,0.35);
}
.price-banner__inner {
  animation: hmBannerRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

/* ──────────────────────────────────────────────────────────────
   HOME · Scroll reveal
   ────────────────────────────────────────────────────────────── */
.hm-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.hm-reveal.hm-visible {
  opacity: 1;
  transform: none;
}
.hm-reveal--d1 { transition-delay: 0.07s; }
.hm-reveal--d2 { transition-delay: 0.14s; }
.hm-reveal--d3 { transition-delay: 0.21s; }
.hm-reveal--d4 { transition-delay: 0.28s; }
.hm-reveal--d5 { transition-delay: 0.35s; }

/* ──────────────────────────────────────────────────────────────
   DRAWER v2
   ────────────────────────────────────────────────────────────── */

/* Wrapper layout */
.bdr2 {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
  font-family: inherit;
}

/* ── Date bar ── */
.bdr2__date-bar {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-bottom: 1px solid #e8e4df;
}
.bdr2__date-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 14px;
  background: #f8f6f3;
  gap: 4px;
  border-right: 1px solid #e8e4df;
}
.bdr2__date-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #f8f6f3;
  color: #c5bdb5;
  font-size: 0.85rem;
  border-right: 1px solid #e8e4df;
  flex-shrink: 0;
}
.bdr2__date-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}
.bdr2__date-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
}
.bdr2__date-value--empty {
  color: #c5bdb5;
  font-weight: 400;
  font-size: 0.95rem;
}
.bdr2__date-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #f8f6f3;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 0.95rem;
  transition: color 0.15s;
  flex-shrink: 0;
}
.bdr2__date-reset:hover { color: #555; }

/* ── Scrollable content area ── */
.bdr2__scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ── Calendar embedded directly ── */
.bdr2 .booking-calendar {
  border: none;
  border-bottom: 1px solid #e8e4df;
  border-radius: 0;
  background: transparent;
  padding: 16px 16px 20px;
  margin: 0;
}

/* ── Guests section ── */
.bdr2__guests {
  padding: 0 20px;
  border-bottom: 1px solid #e8e4df;
}
.bdr2__guests-title {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  padding-top: 18px;
  margin-bottom: 4px;
}
.bdr2__guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.bdr2__guest-row + .bdr2__guest-row {
  border-top: 1px solid #f0ece6;
}
.bdr2__guest-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bdr2__guest-type {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}
.bdr2__guest-sub {
  font-size: 0.75rem;
  color: #aaa;
}

/* ── Stepper override for bdr2 ── */
.bdr2 .booking-drawer__stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #e0dcd7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.bdr2 .booking-drawer__stepper button {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  font-weight: 300;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  border-radius: 0;
  padding: 0;
  line-height: 1;
}
.bdr2 .booking-drawer__stepper button:hover { background: #f5f2ee; }
.bdr2 .booking-drawer__stepper span {
  min-width: 42px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  border-left: 1.5px solid #e0dcd7;
  border-right: 1.5px solid #e0dcd7;
  line-height: 38px;
  padding: 0;
}

/* ── Pricing summary strip ── */
.bdr2__summary {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid #e8e4df;
  background: #f8f6f3;
  font-size: 0.88rem;
}
.bdr2__summary--on { display: flex; }
.bdr2__summary-nights { color: #777; }
.bdr2__summary-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}
.bdr2__summary-meta { color: #aaa; font-size: 0.78rem; }

/* ── Results area ── */
.bdr2 .bds__list {
  padding: 16px 20px 8px;
}
.bdr2 .bds__state {
  padding: 32px 20px;
  text-align: center;
  color: #aaa;
}
.bdr2 .bds__state i {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #d0cbc4;
}
.bdr2 .bds__state p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}
.bdr2 .bds__empty {
  padding: 20px 0;
  text-align: center;
  color: #aaa;
  font-size: 0.88rem;
}
.bdr2 .bds__item {
  border-radius: 12px;
  border: 1px solid #e8e4df;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
  margin-bottom: 12px;
}
.bdr2 .bds__item:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

/* ── Footer CTA ── */
.bdr2__footer {
  flex-shrink: 0;
  padding: 16px 20px 22px;
  background: #fff;
  border-top: 1px solid #e8e4df;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
}
.bdr2__cta {
  width: 100%;
  padding: 13px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

/* ── Mobile: panel from bottom ── */
@media (max-width: 767px) {
  .booking-drawer__panel {
    width: 100% !important;
    height: 92vh !important;
    top: auto !important;
    bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    transform: translateY(100%) !important;
  }
  .booking-drawer.is-open .booking-drawer__panel {
    transform: translateY(0) !important;
  }

  .bdr2__footer {
    padding: 12px 14px 16px;
  }

  .bdr2__cta {
    padding: 12px 16px;
    font-size: 0.86rem;
    border-radius: 11px;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.06);
  }
}

/* ──────────────────────────────────────────────────────────────
   APARTMENT DETAIL v2
   ────────────────────────────────────────────────────────────── */
.apt-detail-v2 {
  background: #faf9f7;
  min-height: 100vh;
}

/* ── Hero image ── */
.apt-dv2__hero {
  position: relative;
  height: 62vh;
  min-height: 380px;
  max-height: 660px;
  overflow: hidden;
}
.apt-dv2__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.apt-dv2__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 8, 5, 0.72) 0%,
    rgba(10, 8, 5, 0.18) 40%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 48px 40px;
}
.apt-dv2__hero-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.apt-dv2__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  color: rgba(255,255,255,0.94);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: background 0.3s ease, transform 0.3s ease;
}
.apt-dv2__chip:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.apt-dv2__chip i { font-size: 0.8rem; }
.apt-dv2__hero-title {
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  opacity: 0;
  animation: aptDv2Reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}
.apt-dv2__hero-chips { animation: aptDv2Reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
@keyframes aptDv2Reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Two-column main layout ── */
.apt-dv2__main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 72px;
  align-items: start;
}

/* ── Description ── */
.apt-dv2__desc {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #3d3933;
  margin-bottom: 44px;
  max-width: 62ch;
  animation: aptDv2Reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}
.apt-dv2__desc::first-letter {
  font-size: 2.8rem;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* ── Photo gallery mosaic ── */
.apt-dv2__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  cursor: pointer;
}
.apt-dv2__gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.apt-dv2__gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}
.apt-dv2__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.apt-dv2__gallery:hover .apt-dv2__gallery-item img {
  transform: scale(1.025);
}
.apt-dv2__gallery-item--more {
  position: relative;
}
.apt-dv2__gallery-item--more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 5, 0.52);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.apt-dv2__gallery-cta {
  display: none;
  width: 100%;
  margin: -24px 0 40px;
  padding: 14px 18px;
  border: 1px solid rgba(51, 122, 26, .18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 245, 240, .98) 100%);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.apt-dv2__gallery-cta:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

/* ── Services block ── */
.apt-dv2__services {
  margin-bottom: 40px;
}
.apt-dv2__services-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e4df;
  position: relative;
}
.apt-dv2__services-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--color-primary);
}
.apt-dv2__services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

/* ── Sticky booking sidebar ── */
.apt-dv2__sidebar {
  position: sticky;
  top: 96px;
  animation: aptDv2Reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}
.apt-dv2__card {
  position: relative;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(51, 122, 26, 0.05), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  border: 1px solid rgba(51, 122, 26, 0.14);
  border-radius: 18px;
  padding: 30px 30px 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 60px -20px rgba(51, 122, 26, 0.18),
    0 8px 24px -8px rgba(20, 16, 10, 0.08);
}
/* Esquinas decorativas tipo papel manuscrito */
.apt-dv2__card::before,
.apt-dv2__card::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(51, 122, 26, 0.32);
  pointer-events: none;
}
.apt-dv2__card::before {
  top: 12px; left: 12px;
  border-right: none; border-bottom: none;
  border-top-left-radius: 6px;
}
.apt-dv2__card::after {
  bottom: 12px; right: 12px;
  border-left: none; border-top: none;
  border-bottom-right-radius: 6px;
}
.apt-dv2__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ece6d9;
  flex-wrap: wrap;
}
.apt-dv2__price {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.025em;
  line-height: 1;
}
.apt-dv2__price-sub {
  font-size: 0.78rem;
  color: #8a8278;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.apt-dv2__price-from {
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}
.apt-dv2__quote {
  border: none;
  border-radius: 0;
  padding: 14px 0 16px;
  margin: 0 0 18px;
  background: transparent;
  border-top: 1px dashed rgba(51, 122, 26, 0.22);
  border-bottom: 1px dashed rgba(51, 122, 26, 0.22);
  animation: aptDv2QuoteFade 0.4s ease-out;
}
@keyframes aptDv2QuoteFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.apt-dv2__quote-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.88rem;
  color: #5a5249;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.apt-dv2__quote-line > :last-child {
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}
.apt-dv2__quote-line--total {
  border-top: 1px solid #ece6d9;
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  letter-spacing: -0.005em;
}
.apt-dv2__quote-line--total > :last-child {
  font-size: 1.1rem;
  font-weight: 700;
}
.apt-dv2__fields {
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.apt-dv2__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 14px;
  background: transparent;
  border-bottom: 1px solid #ece6d9;
  position: relative;
  transition: border-color 0.25s ease;
}
.apt-dv2__field + .apt-dv2__field {
  border-top: none;
}
.apt-dv2__field:nth-child(odd) {
  padding-right: 18px;
  border-right: 1px solid #ece6d9;
}
.apt-dv2__field:nth-child(even) {
  padding-left: 18px;
}
.apt-dv2__field::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.apt-dv2__field:focus-within::after { transform: scaleX(1); }
.apt-dv2__field:focus-within { border-bottom-color: transparent; }
.apt-dv2__field-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9b8f7e;
}
.apt-dv2__field input,
.apt-dv2__field select {
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  padding: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}
.apt-dv2__field input:focus,
.apt-dv2__field select:focus { outline: none; }
.apt-dv2__cta {
  position: relative;
  width: 100%;
  padding: 17px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 24px -10px rgba(51, 122, 26, 0.55);
}
.apt-dv2__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.apt-dv2__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -12px rgba(51, 122, 26, 0.6);
}
.apt-dv2__cta:hover::before { transform: translateX(110%); }
.apt-dv2__cta:active { transform: translateY(0); }
.apt-dv2__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.76rem;
  color: #9b8f7e;
  letter-spacing: 0.02em;
}
.apt-dv2__guarantee i { font-size: 0.78rem; color: var(--color-primary); }
.booking-min-stay-note--detail {
  margin: 16px 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(51, 122, 26, 0.06);
  font-size: 0.78rem;
  color: #4a5d3a;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .apt-dv2__main {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    padding: 36px 24px;
  }
  .apt-dv2__card { padding: 24px 22px 20px; }
  .apt-dv2__price { font-size: 2.2rem; }
}
@media (max-width: 900px) {
  .apt-dv2__main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 16px;
  }
  .apt-dv2__sidebar {
    position: static;
    order: -1;
  }
  .apt-dv2__desc::first-letter { font-size: 3rem; }
  .apt-dv2__hero {
    height: 48vw;
    min-height: 240px;
    max-height: 440px;
  }
  .apt-dv2__hero-overlay { padding: 28px 24px 24px; }

  .apt-dv2__gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .apt-dv2__gallery-item {
    aspect-ratio: 4 / 3;
  }

  .apt-dv2__gallery-item:first-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .apt-dv2__gallery-item:not(:first-child) {
    display: none;
  }

  .apt-dv2__gallery-item--more::after {
    content: none;
  }

  .apt-dv2__gallery-cta {
    display: block;
  }
}
@media (max-width: 599px) {
  .apt-dv2__hero { height: 55vw; min-height: 200px; }
  .apt-dv2__hero-overlay { padding: 14px 16px 18px; }
  .apt-dv2__services-grid { grid-template-columns: 1fr; gap: 0; }
  .apt-dv2__fields { grid-template-columns: 1fr; }
  .apt-dv2__field:nth-child(odd) { padding-right: 0; border-right: none; }
  .apt-dv2__field:nth-child(even) { padding-left: 0; }
  .apt-dv2__card { padding: 22px 20px 20px; }
  .apt-dv2__price { font-size: 2rem; }
  .apt-dv2__desc::first-letter { font-size: 2.6rem; padding: 6px 8px 0 0; }
}

/* ──────────────────────────────────────────────────────────────
   APARTMENT DETAIL · Resultado inline de disponibilidad
   ────────────────────────────────────────────────────────────── */
.dv2-result {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.dv2-result--ok {
  background: #f0faf4;
  border: 1px solid #a8ddb8;
  color: #1a5c33;
}
.dv2-result--ok .dv2-result__breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.dv2-result--ok .dv2-result__total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}
.dv2-result--ok .dv2-result__meta {
  font-size: 0.8rem;
  color: #4a7a5e;
}
.dv2-result__cta {
  display: block;
  width: 100%;
  padding: 13px;
  background: #1a5c33;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.dv2-result__cta:hover { background: #154a29; }
.dv2-result--no {
  background: #fff5f5;
  border: 1px solid #f5a8a8;
  color: #8b1a1a;
}
.dv2-result--no p { margin: 0 0 10px; }
.dv2-result__alt {
  display: block;
  width: 100%;
  padding: 9px;
  background: transparent;
  color: #8b1a1a;
  border: 1.5px solid #f5a8a8;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.dv2-result__alt:hover { background: #fff0f0; }
.dv2-result--err {
  background: #fafafa;
  border: 1px solid #ddd;
  color: #555;
}
.dv2-result--warn {
  background: #fffbf0;
  border: 1px solid #f5d87a;
  color: #7a5a00;
  padding: 12px 16px;
}

/* ─────────────────────────────────────────────────────
   PÁGINAS DE CONTENIDO — mejoras visuales compartidas
   ───────────────────────────────────────────────────── */

/* Hero copy: entrada animada al cargar la página */
.city-page__hero-copy h1,
.city-page__hero-copy h2,
.city-page__hero-copy h3 {
  animation: hmHeroTitle 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}

/* Línea decorativa bajo títulos de sección en city/events */
.city-page__stop-copy h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-top: 10px;
  opacity: 0.7;
}

/* City items: transición suave + icon lift */
.city-page__item {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.city-page__item i {
  transition: transform 0.28s ease, color 0.28s ease;
}
.city-page__item:hover i {
  transform: scale(1.2) translateY(-3px);
}

/* ─── Experiences: zoom en imagen al hover ─── */
.experiences-page__media img {
  transition: transform 0.5s ease;
}
.experiences-page__card:hover .experiences-page__media img {
  transform: scale(1.07);
}
.experiences-page__card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.experiences-page__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
}

/* ─── Fiestas: lift al hover de video-item ─── */
.fiestas-page__video-item {
  transition: transform 0.28s ease;
}
.fiestas-page__video-item:hover {
  transform: translateY(-4px);
}
.fiestas-page__video-item h3 {
  position: relative;
  padding-bottom: 10px;
}
.fiestas-page__video-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 0.6;
}

/* ─── Contact: inputs con focus ring ─── */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 49, 0.12);
  outline: none;
}

/* ─── Contact: icon animado al hover ─── */
.contact-info__item .icon {
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.contact-info__item:hover .icon {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
}

/* Contact page: refined editorial layout */
.contact-page {
  --contact-ink: #1f241d;
  --contact-muted: #667060;
  --contact-line: rgba(31, 36, 29, 0.12);
  --contact-panel: rgba(255, 255, 255, 0.94);
  --contact-panel-soft: rgba(255, 255, 255, 0.76);
  --contact-paper: #f7f4ec;
  --contact-green: #2f741d;
  --contact-gold: #b08d3f;
  --contact-focus: rgba(47, 116, 29, 0.22);
  position: relative;
  padding-top: 132px;
  background:
    linear-gradient(180deg, #fbfaf6 0%, #f5f1e8 48%, #ffffff 100%);
  overflow: hidden;
}

.contact-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(47, 116, 29, 0.035) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(176, 141, 63, 0.035) 0 1px, transparent 1px 84px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.contact-page > .container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  justify-items: stretch;
  margin-bottom: 34px;
}

.contact-page__intro {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.contact-page__intro .section__label,
.contact-form__eyebrow,
.contact-map-panel .section__label,
.contact-properties .section__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  color: var(--contact-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-page__intro h2 {
  margin: 0;
  color: var(--contact-ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.85rem;
  font-weight: 500;
  line-height: 1.02;
}

.contact-page__intro p {
  max-width: none;
  margin: 18px 0 0;
  color: var(--contact-muted);
  font-family: 'Geist', var(--font-main);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center;
}

.contact-hero__card,
.contact-form--panel,
.contact-info--panel,
.contact-properties--panel,
.contact-map-panel {
  border: 1px solid var(--contact-line);
  border-radius: 8px;
  background: var(--contact-panel);
  box-shadow: 0 18px 44px rgba(31, 36, 29, 0.09);
}

.contact-hero__card {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  padding: 24px;
  border-top: 4px solid var(--contact-gold);
}

.contact-hero__card p {
  margin: 0 0 18px;
  color: var(--contact-muted);
  font-family: 'Geist', var(--font-main);
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-hero__actions {
  display: grid;
  gap: 10px;
}

.contact-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(47, 116, 29, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--contact-ink);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.contact-action:hover {
  border-color: rgba(47, 116, 29, 0.34);
  background: #fff;
  box-shadow: 0 12px 24px rgba(31, 36, 29, 0.08);
  transform: translateY(-2px);
}

.contact-action:active {
  transform: translateY(0);
}

.contact-action:focus-visible,
.contact-property-card:focus-visible,
.contact-form__footer .btn:focus-visible {
  outline: 3px solid var(--contact-focus);
  outline-offset: 3px;
}

.contact-action i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(47, 116, 29, 0.1);
  color: var(--contact-green);
  font-size: 1.05rem;
}

.contact-action strong,
.contact-action small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-action strong {
  margin-bottom: 2px;
  font-size: 0.86rem;
  color: var(--contact-ink);
}

.contact-action small {
  color: var(--contact-muted);
  font-size: 0.78rem;
}

.contact-page__surface {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: 24px;
  align-items: stretch;
}

.contact-form--panel,
.contact-info--panel,
.contact-properties--panel,
.contact-map-panel {
  position: relative;
  padding: 30px;
}

.contact-form--panel::before,
.contact-info--panel::before,
.contact-properties--panel::before,
.contact-map-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--contact-green), var(--contact-gold));
}

.contact-form--panel {
  border-color: rgba(47, 116, 29, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 241, 0.96) 100%);
  box-shadow:
    0 22px 58px rgba(31, 36, 29, 0.14),
    0 0 0 8px rgba(47, 116, 29, 0.035);
}

.contact-info--panel,
.contact-properties--panel,
.contact-map-panel,
.contact-hero__card {
  box-shadow: 0 12px 32px rgba(31, 36, 29, 0.075);
}

.contact-form__header,
.contact-info__header,
.contact-map-panel__header,
.contact-properties__header {
  position: relative;
  margin-bottom: 22px;
  padding-left: 54px;
  text-align: left;
}

.contact-form__header::before,
.contact-info__header::before,
.contact-properties__header::before,
.contact-map-panel__header::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(47, 116, 29, 0.18);
  background: #fff;
  color: var(--contact-green);
  font-family: 'Geist', var(--font-main);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.contact-form__header::before {
  content: '01';
  background: var(--contact-green);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 116, 29, 0.2);
}

.contact-info__header::before {
  content: '02';
}

.contact-properties__header::before {
  content: '03';
}

.contact-map-panel__header::before {
  content: '04';
}

.contact-form__header h3,
.contact-info__header h3,
.contact-map-panel__header h2,
.contact-properties__header h2 {
  margin: 0;
  color: var(--contact-ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.15;
}

.contact-form__header h3 {
  font-size: 2.08rem;
}

.contact-info__header h3,
.contact-map-panel__header h2,
.contact-properties__header h2 {
  font-size: 1.62rem;
}

.contact-form__header p,
.contact-info__header p,
.contact-map-panel__header p,
.contact-properties__header p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--contact-muted);
  font-family: 'Geist', var(--font-main);
  font-size: 0.94rem;
  line-height: 1.65;
  text-align: left;
}

.contact-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form__field--wide {
  grid-column: 1 / -1;
}

.contact-form .form-group {
  margin: 0;
}

.contact-form .form-group label {
  margin-bottom: 7px;
  color: var(--contact-ink);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 36, 29, 0.14);
  border-radius: 6px;
  background: #fbfaf7;
  color: var(--contact-ink);
  font-family: 'Geist', var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.contact-form input {
  min-height: 48px;
}

.contact-form textarea {
  min-height: 154px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(47, 116, 29, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 116, 29, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
  border-color: rgba(47, 116, 29, 0.38);
  background:
    linear-gradient(90deg, rgba(47, 116, 29, 0.07) 0 4px, #fff 4px 100%);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(181, 65, 46, 0.58);
  box-shadow: 0 0 0 4px rgba(181, 65, 46, 0.08);
}

.contact-form__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.contact-form__footer .btn {
  min-height: 48px;
  min-width: 238px;
  border-radius: 6px;
  background: var(--contact-green);
  border-color: var(--contact-green);
  box-shadow: 0 12px 22px rgba(47, 116, 29, 0.18);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.contact-form__footer .btn:hover {
  background: #245d16;
  border-color: #245d16;
  box-shadow: 0 16px 30px rgba(47, 116, 29, 0.24);
  transform: translateY(-1px);
}

.contact-form__footer .btn:active {
  transform: translateY(0);
}

.contact-form__footer .btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.contact-form .alert--success {
  margin: 0 0 18px;
  border: 1px solid rgba(47, 116, 29, 0.2);
  border-left: 4px solid var(--contact-green);
  border-radius: 8px;
  background: rgba(47, 116, 29, 0.08);
  color: var(--contact-ink);
  font-family: 'Geist', var(--font-main);
  font-weight: 700;
}

.contact-form__footer p {
  margin: 0;
  color: var(--contact-muted);
  font-family: 'Geist', var(--font-main);
  font-size: 0.78rem;
  line-height: 1.45;
}

.contact-info--panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, var(--contact-panel-soft), rgba(247, 244, 236, 0.72));
}

.contact-info__list {
  display: grid;
  gap: 12px;
  flex: 1;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.contact-info__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(31, 36, 29, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.contact-info__item:last-child {
  border-bottom: 1px solid rgba(31, 36, 29, 0.09);
  padding-bottom: 15px;
}

.contact-info__item .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(47, 116, 29, 0.1);
  color: var(--contact-green);
  box-shadow: none;
}

.contact-info__item:hover .icon {
  background: var(--contact-green);
  color: #fff;
  transform: translateY(-2px);
}

.contact-info__item:hover {
  border-color: rgba(47, 116, 29, 0.22);
  background: #fff;
  box-shadow: 0 10px 22px rgba(31, 36, 29, 0.07);
  transform: translateY(-1px);
}

.contact-info__item h4 {
  margin: 0 0 4px;
  color: var(--contact-ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.contact-info__item p,
.contact-info__item a {
  margin: 0;
  color: var(--contact-muted);
  font-family: 'Geist', var(--font-main);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.contact-info__item a:hover {
  color: var(--contact-green);
}

.contact-lower {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 30px;
}

.contact-properties--panel,
.contact-map-panel {
  display: flex;
  flex-direction: column;
}

.contact-properties__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 116px;
  gap: 12px;
  margin-top: auto;
}

.contact-property-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 36, 29, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--contact-ink);
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.contact-property-card:nth-child(5) {
  grid-column: auto;
}

.contact-property-card:hover {
  border-color: rgba(47, 116, 29, 0.35);
  background: #fffef9;
  box-shadow: 0 15px 30px rgba(31, 36, 29, 0.12);
  transform: translateY(-3px);
}

.contact-property-card:active {
  transform: translateY(-1px);
}

.contact-property-card__media {
  display: block;
  height: 100%;
  min-height: 0;
  background: #e7e2d6;
  overflow: hidden;
}

.contact-property-card__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.contact-property-card:hover .contact-property-card__media img {
  transform: scale(1.05);
}

.contact-property-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  overflow: hidden;
}

.contact-property-card__meta {
  flex: 0 0 auto;
  display: block;
  color: var(--contact-green);
  font-family: 'Geist', var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-property-card__meta i {
  margin-right: 6px;
}

.contact-property-card__title {
  flex: 0 0 auto;
  color: var(--contact-ink);
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.52em;
}

.contact-property-card__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--contact-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: auto;
}

.contact-property-card__cta i {
  transition: transform 0.18s ease;
}

.contact-property-card:hover .contact-property-card__cta i {
  transform: translateX(3px);
}

.contact-properties__count {
  margin: 16px 0 0;
  color: var(--contact-muted);
  font-family: 'Geist', var(--font-main);
  font-size: 0.86rem;
  text-align: left;
}

.contact-map {
  flex: 1;
  width: 100%;
  min-height: 560px;
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(31, 36, 29, 0.12);
  border-radius: 8px;
  background: #e7e2d6;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
}

@media (max-width: 992px) {
  .contact-page {
    padding-top: 116px;
  }

  .contact-hero,
  .contact-grid,
  .contact-lower {
    grid-template-columns: 1fr;
  }

  .contact-page__intro h2 {
    font-size: 3rem;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .contact-page {
    padding-top: 100px;
  }

  .contact-page > .container {
    padding-inline: 16px;
  }

  .contact-hero {
    gap: 18px;
    margin-bottom: 18px;
  }

  .contact-page__intro h2 {
    font-size: 2.35rem;
  }

  .contact-page__intro p {
    font-size: 0.98rem;
  }

  .contact-hero__card,
  .contact-form--panel,
  .contact-info--panel,
  .contact-properties--panel,
  .contact-map-panel {
    padding: 20px;
  }

  .contact-form__fields,
  .contact-properties__grid {
    grid-template-columns: 1fr;
  }

  .contact-properties__grid {
    grid-auto-rows: 148px;
  }

  .contact-form__header,
  .contact-info__header,
  .contact-map-panel__header,
  .contact-properties__header {
    padding-left: 48px;
  }

  .contact-property-card:nth-child(5) {
    grid-column: auto;
  }

  .contact-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form__footer .btn {
    width: 100%;
  }

  .contact-info__item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 13px;
  }

  .contact-info__list {
    grid-template-rows: none;
  }

  .contact-info__item .icon {
    width: 40px;
    height: 40px;
  }

  .contact-property-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .contact-property-card__meta {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .contact-property-card__media,
  .contact-property-card__media img {
    height: 100%;
    min-height: 0;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 340px;
  }
}

/* ──────────────────────────────────────────────────────────────
   HOME · Reviews v2 — editorial trust cards
   ────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

.section--reviews {
  position: relative;
  isolation: isolate;
  padding-top: 70px;
  padding-bottom: 90px;
  background:
    radial-gradient(ellipse 55% 70% at 92% 8%, rgba(176, 141, 63, 0.10), transparent 60%),
    radial-gradient(ellipse 45% 65% at 4% 95%, rgba(51, 122, 26, 0.07), transparent 60%),
    #fbf9f5;
}

.section--reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.section--reviews .section__header {
  max-width: 720px;
  margin-bottom: 44px;
}
.section--reviews .section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #003580;
  margin-bottom: 14px;
}
.section--reviews .section__label::before,
.section--reviews .section__label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.section--reviews .section__header h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--color-dark);
}
.section--reviews .section__header p {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--color-gray-500);
  text-align: center;
  text-align-last: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section--reviews .reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 12px;
}

/* Card — overrides legacy .booking-review — DEPRECATED: usar .valoracion-card (Fase 7) */
.booking-review--v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  max-width: none;
  margin: 0;
  padding: 38px 30px 26px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-left: 3px solid var(--color-gold);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.03),
    0 14px 34px -18px rgba(15, 23, 42, 0.18);
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-left-color 0.45s ease;
}

.booking-review--v2::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(176, 141, 63, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

.booking-review--v2:hover {
  transform: translateY(-4px);
  border-left-color: var(--color-primary);
  box-shadow:
    0 2px 0 rgba(15, 23, 42, 0.04),
    0 28px 54px -22px rgba(15, 23, 42, 0.28);
}

.booking-review__quote-mark {
  position: absolute;
  top: -34px;
  right: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 200px;
  line-height: 1;
  color: rgba(51, 122, 26, 0.10);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  transition: color 0.45s ease, transform 0.45s ease;
}
.booking-review--v2:hover .booking-review__quote-mark {
  color: rgba(51, 122, 26, 0.18);
  transform: translateY(-2px) rotate(-2deg);
}

.booking-review__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.booking-review__score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 7px 11px 6px;
  background: linear-gradient(135deg, #003580 0%, #0057b8 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: 6px 14px 6px 6px;
  box-shadow: 0 6px 16px -8px rgba(0, 53, 128, 0.7);
  line-height: 1;
}
.booking-review__score-num { font-size: 1.05rem; }
.booking-review__score-out {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.78;
  margin-left: 1px;
}

.booking-review__stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.booking-review__star {
  width: 14px;
  height: 14px;
  display: block;
  background-color: rgba(176, 141, 63, 0.28);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z'/></svg>") center/contain no-repeat;
}
.booking-review__star.is-filled {
  background-color: var(--color-gold);
}

.booking-review__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--color-dark);
  text-wrap: balance;
}

.booking-review--v2 .booking-review__text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.95rem;
  line-height: 1.72;
  text-align: left;
  text-align-last: left;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.booking-review__foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-review--v2 .booking-review__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: inherit;
  color: inherit;
}

.booking-review__author-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px -4px rgba(51, 122, 26, 0.55);
}

.booking-review__author-name {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-gray-700);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-review--v2 .booking-review__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid rgba(0, 53, 128, 0.20);
  color: #003580;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.booking-review--v2 .booking-review__source img {
  width: 12px;
  height: 12px;
  display: block;
}

@media (max-width: 768px) {
  .section--reviews {
    padding-top: 50px;
    padding-bottom: 60px;
  }
  .section--reviews .reviews-grid {
    gap: 18px;
  }
  .booking-review--v2 {
    padding: 32px 22px 22px;
  }
  .booking-review__quote-mark {
    font-size: 150px;
    top: -24px;
    right: 10px;
  }
  .booking-review__title {
    font-size: 1.06rem;
  }
}

/* ----- Layout responsive segun numero de resenas ----- */
.section--reviews .reviews-grid[data-count="1"] {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
.section--reviews .reviews-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
}
.section--reviews .reviews-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .section--reviews .reviews-grid[data-count="3"],
  .section--reviews .reviews-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .section--reviews .reviews-grid[data-count="1"],
  .section--reviews .reviews-grid[data-count="2"],
  .section--reviews .reviews-grid[data-count="3"] {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----- Estilo Airbnb (coral) ----- */
.booking-review--v2.booking-review--airbnb {
  border-left-color: #FF385C;
}
.booking-review--v2.booking-review--airbnb:hover {
  border-left-color: #FF385C;
}
.booking-review--v2.booking-review--airbnb .booking-review__quote-mark {
  color: rgba(255, 56, 92, 0.10);
}
.booking-review--v2.booking-review--airbnb:hover .booking-review__quote-mark {
  color: rgba(255, 56, 92, 0.18);
}
.booking-review--v2.booking-review--airbnb .booking-review__score {
  background: linear-gradient(135deg, #FF385C 0%, #E61E4D 100%);
  box-shadow: 0 6px 16px -8px rgba(255, 56, 92, 0.7);
}
.booking-review--v2.booking-review--airbnb .booking-review__star.is-filled {
  background-color: #FF385C;
}
.booking-review--v2.booking-review--airbnb .booking-review__author-avatar {
  background: linear-gradient(135deg, #FF385C 0%, #E61E4D 100%);
  box-shadow: 0 4px 10px -4px rgba(255, 56, 92, 0.55);
}
.booking-review--v2.booking-review--airbnb .booking-review__source--clean {
  background: #fff;
  border: 1px solid rgba(255, 56, 92, 0.25);
  color: #E61E4D;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

/* ─── Valoración card — nueva clase Fase 7. Reemplaza .booking-review--v2. ─── */

.valoraciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 12px;
}

.valoracion-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 38px 30px 26px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-left: 3px solid var(--color-gold);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.03),
    0 14px 34px -18px rgba(15, 23, 42, 0.18);
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-left-color 0.45s ease;
}
.valoracion-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(176, 141, 63, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}
.valoracion-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--color-primary);
  box-shadow:
    0 2px 0 rgba(15, 23, 42, 0.04),
    0 28px 54px -22px rgba(15, 23, 42, 0.28);
}

.valoracion-card__quote {
  position: absolute;
  top: -34px;
  right: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 200px;
  line-height: 1;
  color: rgba(51, 122, 26, 0.10);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  transition: color 0.45s ease, transform 0.45s ease;
}
.valoracion-card:hover .valoracion-card__quote {
  color: rgba(51, 122, 26, 0.18);
  transform: translateY(-2px) rotate(-2deg);
}

.valoracion-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.valoracion-card__score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 7px 11px 6px;
  background: linear-gradient(135deg, #003580 0%, #0057b8 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: 6px 14px 6px 6px;
  box-shadow: 0 6px 16px -8px rgba(0, 53, 128, 0.7);
  line-height: 1;
}
.valoracion-card__score-num { font-size: 1.05rem; }
.valoracion-card__score-out {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.78;
  margin-left: 1px;
}

.valoracion-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.valoracion-card__star {
  width: 14px;
  height: 14px;
  display: block;
  background-color: rgba(176, 141, 63, 0.28);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z'/></svg>") center/contain no-repeat;
}
.valoracion-card__star.is-filled {
  background-color: var(--color-gold);
}

.valoracion-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--color-dark);
  text-wrap: balance;
}
.valoracion-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.95rem;
  line-height: 1.72;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.valoracion-card__foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.valoracion-card__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.valoracion-card__avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px -4px rgba(51, 122, 26, 0.55);
}
.valoracion-card__name {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-gray-700);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.valoracion-card__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid rgba(0, 53, 128, 0.20);
  color: #003580;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.valoracion-card--airbnb { border-left-color: #FF385C; }
.valoracion-card--airbnb:hover { border-left-color: #FF385C; }
.valoracion-card--airbnb .valoracion-card__quote { color: rgba(255, 56, 92, 0.10); }
.valoracion-card--airbnb:hover .valoracion-card__quote { color: rgba(255, 56, 92, 0.18); }
.valoracion-card--airbnb .valoracion-card__score {
  background: linear-gradient(135deg, #FF385C 0%, #E61E4D 100%);
  box-shadow: 0 6px 16px -8px rgba(255, 56, 92, 0.7);
}
.valoracion-card--airbnb .valoracion-card__star.is-filled { background-color: #FF385C; }
.valoracion-card--airbnb .valoracion-card__avatar {
  background: linear-gradient(135deg, #FF385C 0%, #E61E4D 100%);
  box-shadow: 0 4px 10px -4px rgba(255, 56, 92, 0.55);
}
.valoracion-card--airbnb .valoracion-card__source {
  border-color: rgba(255, 56, 92, 0.25);
  color: #E61E4D;
}

/* Layout responsive por número de valoraciones */
.valoraciones-grid[data-count="1"] {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
.valoraciones-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
}
.valoraciones-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .valoraciones-grid[data-count="3"],
  .valoraciones-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .valoraciones-grid[data-count="1"],
  .valoraciones-grid[data-count="2"],
  .valoraciones-grid[data-count="3"] {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 768px) {
  .valoraciones-grid { gap: 18px; }
  .valoracion-card {
    padding: 32px 22px 22px;
  }
  .valoracion-card__quote {
    font-size: 150px;
    top: -24px;
    right: 10px;
  }
  .valoracion-card__title { font-size: 1.06rem; }
}
