/* ============================================================
   Construcciones MS — Flyer Template Styles
   ============================================================ */

.flyer-wrap {
  width: 612px;
  height: 792px;
  background: #ffffff;
  color: #111111;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Gallery-only pages: flex column so body expands between header and footer */
.flyer-gallery-page {
  width: 612px;
  min-height: 792px;
  background: #ffffff;
  color: #111111;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.flyer-gallery-page .flyer-footer {
  position: static;  /* Override absolute positioning for gallery pages */
  width: 100%;
  margin-top: auto;
}
.flyer-gallery-page .flyer-body {
  flex: 1;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Header */
.flyer-header {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #D4AF37;
}
.flyer-logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flyer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #D4AF37, #F0CE5E);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #080C18;
}
.flyer-logo-text-main {
  font-weight: 700;
  font-size: 0.9rem;
  color: #EEF2F8;
  line-height: 1;
}
.flyer-logo-text-accent {
  font-weight: 900;
  font-size: 1.1rem;
  color: #D4AF37;
  letter-spacing: 2px;
  line-height: 1;
}
.flyer-header-tag {
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.4);
  color: #D4AF37;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* Hero Image */
.flyer-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.flyer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flyer-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8,12,24,0.7) 0%, rgba(8,12,24,0.1) 60%);
}
.flyer-img-info {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
}
.flyer-avail-badge {
  display: inline-block;
  background: rgba(34,197,94,0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.flyer-prop-title {
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.flyer-prop-loc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Gold divider */
.flyer-gold-bar {
  height: 4px;
  background: linear-gradient(to right, #D4AF37, #F0CE5E, #D4AF37);
}

/* Body */
.flyer-body {
  padding: 15px 24px 110px 24px;
}

/* Price row */
.flyer-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f5e8;
  border: 1px solid #e8d87a;
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 12px;
}
.flyer-price-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b5a00;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.flyer-price-val {
  font-weight: 900;
  font-size: 1.6rem;
  color: #8a6f00;
  line-height: 1;
}
.flyer-price-unit {
  font-size: 0.7rem;
  color: #8a6f00;
  font-weight: 600;
}
.flyer-price-total {
  text-align: right;
}
.flyer-price-total-lbl {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.flyer-price-total-val {
  font-weight: 800;
  font-size: 1rem;
  color: #333;
}

/* Description */
.flyer-desc {
  font-size: 0.78rem;
  color: #444;
  line-height: 1.65;
  margin-bottom: 12px;
  border-left: 3px solid #D4AF37;
  padding-left: 10px;
}

/* Specs table */
.flyer-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #080C18;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid #D4AF37;
}
.flyer-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.flyer-spec-box {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
}
.flyer-spec-val {
  font-weight: 800;
  font-size: 1rem;
  color: #080C18;
  display: block;
  line-height: 1;
}
.flyer-spec-lbl {
  font-size: 0.6rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
  display: block;
}

/* Access & Features */
.flyer-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}
.flyer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.flyer-list li {
  font-size: 0.73rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.3;
}
.flyer-list li::before {
  content: '▸';
  color: #D4AF37;
  font-size: 0.8rem;
  flex-shrink: 0;
  line-height: 1.3;
}

/* Footer */
.flyer-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  border-top: 3px solid #D4AF37;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.flyer-contact-col {}
.flyer-contact-col p {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.flyer-contact-col p strong {
  color: #EEF2F8;
}
.flyer-contact-col p span.icon {
  color: #D4AF37;
  font-style: normal;
}
.flyer-disclaimer {
  font-size: 0.55rem;
  color: #4B5E78;
  margin-top: 6px;
}
#flyerQR canvas, #flyerQR img {
  border-radius: 4px;
}
