/* ============================================================
   IMMOTEP — PROMOTIONS ALTO STANDING
   Scope: body.single-promotions (CPT)
   Tema: Astra Child + Spectra
   Tipografía: Montserrat
   Paleta: Lujo claro — azul marino, dorado champagne, blanco
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ── Variables globales ───────────────────────────────────── */
body.single-promotions {
  --imm-navy:         #0D1B2A;
  --imm-navy-mid:     #1A2E42;
  --imm-navy-soft:    rgba(13,27,42,0.06);
  --imm-gold:         #C9A96E;
  --imm-gold-light:   #E2C99A;
  --imm-gold-pale:    rgba(201,169,110,0.12);
  --imm-white:        #FFFFFF;
  --imm-off-white:    #F8F6F2;
  --imm-ink:          #0D1B2A;
  --imm-ink-soft:     rgba(13,27,42,0.62);
  --imm-line:         rgba(13,27,42,0.10);
  --imm-line-gold:    rgba(201,169,110,0.28);
  --imm-shadow-sm:    0 4px 16px rgba(13,27,42,0.08);
  --imm-shadow-md:    0 12px 40px rgba(13,27,42,0.10);
  --imm-shadow-lg:    0 24px 64px rgba(13,27,42,0.13);
  --imm-radius:       4px;
  --imm-radius-lg:    8px;
  --imm-transition:   all 0.32s cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'Montserrat', sans-serif;
  color: var(--imm-ink);
  background-color: var(--imm-white);
}

/* ── Tipografía global en páginas de promoción ────────────── */
body.single-promotions h1,
body.single-promotions h2,
body.single-promotions h3,
body.single-promotions h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--imm-navy);
  line-height: 1.15;
}

body.single-promotions h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 300; }
body.single-promotions h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
body.single-promotions h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }

/* ── CAMBIO 1: acotado a #content para no afectar el header ── */
body.single-promotions p,
body.single-promotions li,
body.single-promotions span {
  font-family: 'Montserrat', sans-serif;
}

/* Línea decorativa dorada bajo títulos de sección */
body.single-promotions .imm-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--imm-navy);
  text-align: center;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 32px;
}

body.single-promotions .imm-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--imm-gold);
}

/* ── Hero Band ────────────────────────────────────────────── */
body.single-promotions .immotep-hero-band {
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  background: rgba(13, 27, 42, 0.52);
  border: 1px solid rgba(201, 169, 110, 0.18);
  box-shadow: 0 24px 64px rgba(13, 27, 42, 0.32);
  border-radius: var(--imm-radius-lg);
}

/* ── Botón PDF ────────────────────────────────────────────── */
body.single-promotions .immotep-pdf-btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: var(--imm-radius);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--imm-gold);
  color: var(--imm-navy);
  border: 1px solid var(--imm-gold);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.28);
  transition: var(--imm-transition);
}

body.single-promotions .immotep-pdf-btn:hover {
  background: var(--imm-gold-light);
  color: var(--imm-navy);
  border-color: var(--imm-gold-light);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(201, 169, 110, 0.38);
}

/* ============================================================
   COMMODITÉS / AMENIDADES
   ============================================================ */

body.single-promotions .immotep-amenities {
  position: relative;
  width: 92%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 32px 44px 28px;
  border-radius: var(--imm-radius-lg);
  background: rgba(10, 60, 110, 0.25);
  border: 1px solid var(--imm-line);
  box-shadow: var(--imm-shadow-md);
  overflow: hidden;
}

body.single-promotions .immotep-amenities::before {
  content: '';
  position: absolute;
  top: 0;
  left: 44px;
  right: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--imm-gold-light), transparent);
}

body.single-promotions .immotep-amenities::after {
  content: none;
}

body.single-promotions .immotep-amenities > * {
  position: relative;
  z-index: 1;
}

body.single-promotions .immotep-amenities__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.06em;
  color: var(--imm-navy);
  text-align: center;
  margin: 0 0 24px 0;
  padding-bottom: 18px;
  position: relative;
}

body.single-promotions .immotep-amenities__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 1px;
  background: var(--imm-gold);
}

body.single-promotions .immotep-amenities__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 12px;
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body.single-promotions .immotep-amenities__grid::-webkit-scrollbar {
  display: none;
}

body.single-promotions .immotep-amenities__item {
  flex: 0 0 148px;
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 24px 12px 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  transition: var(--imm-transition);
}

body.single-promotions .immotep-amenities__item:hover {
  transform: translateY(-3px);
}

body.single-promotions .immotep-amenities__icon {
  width: 104px;
  height: 104px;
  min-width: 104px;
  min-height: 104px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 50%;
  background: var(--imm-white);
  box-shadow: var(--imm-shadow-sm);
  border: 1px solid var(--imm-line-gold);
  transition: var(--imm-transition);
}

body.single-promotions .immotep-amenities__item:hover .immotep-amenities__icon {
  background: var(--imm-gold-pale);
  border-color: var(--imm-gold);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.20);
}

body.single-promotions .immotep-icon {
  width: 48px;
  height: 48px;
  color: var(--imm-navy-mid);
  flex-shrink: 0;
  transition: var(--imm-transition);
}

body.single-promotions .immotep-amenities__item:hover .immotep-icon {
  color: var(--imm-gold);
}

body.single-promotions .immotep-amenities__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--imm-ink-soft);
  text-align: center;
  line-height: 1.3;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.single-promotions .immotep-amenities-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 11px 22px;
  color: var(--imm-navy);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid var(--imm-line-gold);
  border-radius: 999px;
  background: transparent;
  transition: var(--imm-transition);
}

body.single-promotions .immotep-amenities-more:hover {
  background: var(--imm-gold);
  border-color: var(--imm-gold);
  color: var(--imm-navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.24);
}

/* ── Responsive 1024px ────────────────────────────────────── */
@media (max-width: 1024px) {
  body.single-promotions .immotep-amenities {
    width: 94%;
    padding: 28px 24px 24px;
  }
  body.single-promotions .immotep-amenities__item {
    flex: 0 0 135px;
    width: 135px;
    min-width: 135px;
    max-width: 135px;
  }
}

/* ── Responsive 640px ─────────────────────────────────────── */
@media (max-width: 640px) {
  body.single-promotions .immotep-amenities {
    width: 100%;
    padding: 24px 20px 20px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  body.single-promotions .immotep-amenities__title { font-size: 18px; }
  body.single-promotions .immotep-amenities__grid { gap: 8px; }
  body.single-promotions .immotep-amenities__item {
    flex: 0 0 130px;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    padding: 18px 10px 14px;
  }
  body.single-promotions .immotep-amenities__icon {
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
  }
  body.single-promotions .immotep-icon { width: 40px; height: 40px; }
  body.single-promotions .immotep-amenities__label { font-size: 11px; }
}

/* ============================================================
   TEMPLATE PROMOTION — prm-
   Sections: Hero · Metrics · Desc+Form · Commodités · Gallery
   ============================================================ */

/* ── 1. HERO ──────────────────────────────────────────────── */
.prm-hero {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.prm-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.prm-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.15) 0%,
    rgba(13, 27, 42, 0.72) 100%
  );
}

.prm-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px -200px;
}

.prm-hero .prm-hero__tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #C9A96E;
  border: 1px solid rgba(201, 169, 110, 0.40);
  padding: 6px 14px;
  margin-bottom: 20px;
}

.prm-hero .prm-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 20px;
}

.prm-hero .prm-hero__location {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ── 2. METRICS BAR ───────────────────────────────────────── */
.prm-metrics {
  background: #0D1B2A;
  padding: 0 48px;
}

.prm-metrics__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prm-metric {
  padding: 36px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prm-metric:last-child {
  border-right: none;
  justify-content: center;
}

.prm-metrics .prm-metric__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.prm-metrics .prm-metric__value {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #C9A96E;
}

.prm-metrics .prm-metric__value--plain {
  color: rgba(255, 255, 255, 0.80);
}

.prm-metrics .prm-metric__pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.50);
  color: #C9A96E;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.28s ease;
}

.prm-metrics .prm-metric__pdf-btn:hover {
  background: #C9A96E;
  color: #0D1B2A;
  border-color: #C9A96E;
  text-decoration: none;
}

/* ── 3. DESCRIPTION + FORM ────────────────────────────────── */
.prm-desc-form {
  background: #ffffff;
  padding: 80px 48px;
}

.prm-desc-form__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 72px;
  align-items: start;
}

.prm-desc .prm-section-eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 14px;
}

.prm-desc .prm-section-line {
  width: 32px;
  height: 1px;
  background: #C9A96E;
  margin-bottom: 22px;
}

.prm-desc .prm-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0D1B2A;
  margin-bottom: 28px;
  line-height: 1.25;
}

.prm-desc .prm-desc__text,
.prm-desc .prm-desc__text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(13, 27, 42, 0.65);
}

.prm-form-wrap {
  background: #0F172A;
  padding: 40px 36px;
}

.prm-form-wrap .prm-form-eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 10px;
}

.prm-form-wrap .prm-form-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
  margin-bottom: 28px;
}

.prm-form-wrap .forminator-custom-form input[type="text"],
.prm-form-wrap .forminator-custom-form input[type="email"],
.prm-form-wrap .forminator-custom-form input[type="tel"],
.prm-form-wrap .forminator-custom-form select,
.prm-form-wrap .forminator-custom-form textarea {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
}

.prm-form-wrap .forminator-custom-form label,
.prm-form-wrap .forminator-custom-form .forminator-label {
  color: rgba(255, 255, 255, 0.50) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
}

.prm-form-wrap .forminator-btn-submit {
  background: #C9A96E !important;
  color: #0D1B2A !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  width: 100% !important;
  transition: background 0.28s ease !important;
}

.prm-form-wrap .forminator-btn-submit:hover {
  background: #E2C99A !important;
}

/* ── 4. COMMODITÉS ────────────────────────────────────────── */
.prm-commodites-wrap {
  background: #F8F6F2;
  padding: 80px 48px;
}

.prm-commodites-wrap .prm-section-eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A96E;
  text-align: center;
  margin-bottom: 14px;
}

.prm-commodites-wrap .prm-section-line {
  width: 32px;
  height: 1px;
  background: #C9A96E;
  margin: 0 auto 22px;
}

.prm-commodites-wrap .prm-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0D1B2A;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.25;
}

.prm-commodites-wrap .immotep-amenities {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto;
}

.prm-commodites-wrap .immotep-amenities::before {
  display: none !important;
}

.prm-commodites-wrap .immotep-amenities__grid {
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: visible;
}

.prm-commodites-wrap .immotep-amenities__item {
  flex: 0 0 160px;
  width: 160px;
  min-width: 160px;
  max-width: 160px;
}

.prm-commodites-wrap .immotep-amenities__icon {
  background: #ffffff;
  border-color: rgba(13, 27, 42, 0.08);
}

.prm-commodites-wrap .immotep-amenities__item:hover .immotep-amenities__icon {
  background: #0D1B2A;
  border-color: #0D1B2A;
  box-shadow: none;
}

.prm-commodites-wrap .immotep-amenities__item:hover .immotep-icon {
  color: #ffffff;
}

/* ── 5. GALLERY ───────────────────────────────────────────── */
.prm-gallery-wrap {
  background: #0D1B2A;
  padding: 80px 48px;
}

.prm-gallery-wrap .prm-section-eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A96E;
  text-align: center;
  margin-bottom: 14px;
}

.prm-gallery-wrap .prm-section-line {
  width: 32px;
  height: 1px;
  background: #C9A96E;
  margin: 0 auto 22px;
}

.prm-gallery-wrap .prm-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.25;
}

.prm-gallery__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6px;
}

.prm-gallery__item {
  overflow: hidden;
  position: relative;
}

.prm-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.prm-gallery__item:hover img {
  transform: scale(1.04);
}

.prm-gallery__item--main {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 540px;
}

.prm-gallery__item--sec {
  min-height: 263px;
}

.prm-gallery__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.prm-gallery__row .prm-gallery__item {
  min-height: 240px;
}

/* ── RESPONSIVE 1024px ────────────────────────────────────── */
@media (max-width: 1024px) {
  .prm-hero__content,
  .prm-desc-form,
  .prm-commodites-wrap,
  .prm-gallery-wrap,
  .prm-metrics {
    padding-left: 28px;
    padding-right: 28px;
  }
  .prm-desc-form__inner { gap: 40px; }
  .prm-metrics__inner { grid-template-columns: repeat(2, 1fr); }
  .prm-metric:nth-child(2) { border-right: none; }
}

/* ── RESPONSIVE 640px ─────────────────────────────────────── */
@media (max-width: 640px) {
  .prm-hero { min-height: 100svh; }
  .prm-hero__content { padding: 0 20px 48px; }
  .prm-hero .prm-hero__title { font-size: 32px; }
  .prm-desc-form { padding: 52px 20px; }
  .prm-desc-form__inner { grid-template-columns: 1fr; gap: 40px; }
  .prm-commodites-wrap,
  .prm-gallery-wrap { padding: 52px 20px; }
  .prm-metrics { padding-left: 20px; padding-right: 20px; }
  .prm-metrics__inner { grid-template-columns: repeat(2, 1fr); }
  .prm-gallery__grid { grid-template-columns: 1fr; }
  .prm-gallery__item--main { grid-row: auto; min-height: 280px; }
  .prm-gallery__item--sec { min-height: 200px; }
  .prm-gallery__row { grid-template-columns: 1fr; }
  .prm-gallery__row .prm-gallery__item { min-height: 200px; }
}

/* ── Fix Astra wrapper promotions ─────────────────── */
body.single-promotions #content,
body.single-promotions #primary,
body.single-promotions #main,
body.single-promotions .ast-article-single,
body.single-promotions .entry-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* ── CAMBIO 2: acotado a #content para no afectar el header ── */
body.single-promotions #content .ast-container {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Hero necesita flex para posicionar el contenido */
body.single-promotions .prm-hero {
  display: flex !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* El resto sí van como block */
body.single-promotions .prm-metrics,
body.single-promotions .prm-desc-form,
body.single-promotions .prm-commodites-wrap,
body.single-promotions .prm-gallery-wrap {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}