/* Fernanda fidelity pass v2 — public FDR surface only.
   Presentation layer: no booking, auth, clinical, tenancy or business logic. */

:root {
  --fernanda-navy: #0b2f55;
  --fernanda-petrol: #174f73;
  --fernanda-blue: #1f6fd3;
  --fernanda-sky: #f1f7fc;
  --fernanda-paper: #ffffff;
  --fernanda-ink: #17324a;
  --fernanda-muted: #60758a;
  --fernanda-line: #dce7f0;
  --fernanda-coral: #ef8b7a;
  --fernanda-lavender: #9a8bd4;
}

/* Public site must read as health + technology, not as an internal dashboard. */
.fdr-v1-hero {
  background:
    radial-gradient(circle at 82% 14%, rgba(106, 177, 255, .24), transparent 28rem),
    linear-gradient(118deg, #0a2f56 0%, #164f7f 58%, #2679bb 120%);
}

.fdr-v1-hero h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: .94;
}

.fdr-v1-title {
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: 1.02;
}

.fdr-v1-section { padding-block: 76px; }
.fdr-v1-section-soft { background: #f4f9fd; }

/* Reduce generic SaaS/card density. */
.fdr-v1-audience,
.fdr-v1-professional-card,
.fdr-v1-product-card,
.fdr-v1-service-card {
  box-shadow: none;
}

.fdr-v1-product-grid { gap: 16px; }
.fdr-v1-product-card { min-height: 390px; }

/* Explicit Chile map surface. The geographic base is a real regional map, not a fabricated silhouette. */
.fdr-v2-map-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
}

.fdr-v2-map-asset {
  min-height: 350px;
  margin: 12px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fdr-v2-chile-map {
  display: block;
  width: min(170px, 70%);
  height: 318px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(25, 84, 125, .15));
}

.fdr-v2-map-asset figcaption {
  margin-top: 8px;
  color: #7c91a3;
  font-size: .62rem;
  line-height: 1.4;
  text-align: center;
}

.fdr-v2-map-label {
  margin: 0;
  text-align: center;
  color: #5d7589;
  font-size: .75rem;
  line-height: 1.5;
}

.fdr-v1-map-panel::before { display: none; }
.fdr-v1-map-panel { padding: 24px; }
.fdr-v1-map-caption { position: static; margin-top: 4px; }

/* Product card B: real visual language of software in a device. */
.fdr-v2-device {
  position: relative;
  margin: 20px 0 22px;
  padding: 10px 10px 18px;
  border-radius: 18px;
  background: #17324a;
  box-shadow: 0 18px 34px rgba(23, 50, 74, .18);
}

.fdr-v2-device::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -9px;
  height: 9px;
  border-radius: 0 0 10px 10px;
  background: #9cb1c1;
}

.fdr-v2-screen {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: #f7fbfe;
}

.fdr-v2-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border-bottom: 1px solid #dce7f0;
  color: #17324a;
  font-size: .62rem;
  font-weight: 900;
}

.fdr-v2-screen-dot { width: 7px; height: 7px; border-radius: 50%; background: #1f6fd3; }
.fdr-v2-screen-body { display: grid; grid-template-columns: 58px 1fr; min-height: 112px; }
.fdr-v2-screen-nav { padding: 10px 7px; background: #0b2f55; }
.fdr-v2-screen-nav span { display: block; height: 6px; margin-bottom: 8px; border-radius: 999px; background: rgba(255,255,255,.38); }
.fdr-v2-screen-nav span:first-child { background: #7fc3ff; }
.fdr-v2-screen-main { padding: 10px; }
.fdr-v2-screen-title { width: 58%; height: 7px; border-radius: 999px; background: #315d7e; }
.fdr-v2-screen-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 9px; }
.fdr-v2-screen-stats i { display: block; height: 23px; border-radius: 6px; background: #e2eef7; }
.fdr-v2-screen-agenda { display: grid; gap: 5px; margin-top: 8px; }
.fdr-v2-screen-agenda i { display: block; height: 8px; border-radius: 5px; background: #cfe0ee; }
.fdr-v2-screen-agenda i:nth-child(2) { width: 78%; background: #bad7ee; }
.fdr-v2-screen-agenda i:nth-child(3) { width: 62%; background: #dbe7f0; }

/* Editorial strip should read as a publication, not another SaaS module. */
.fdr-v2-news-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #17324a;
}
.fdr-v2-news-heading h2 { margin: 0; color: #17324a; font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.035em; font-weight: 900; }
.fdr-v2-news-heading p { margin: 0; max-width: 470px; color: #60758a; font-size: .86rem; line-height: 1.55; text-align: right; }

/* Territorial close: real Temuco panorama, visually separated from dashboard language. */
.fdr-v2-territory {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  color: white;
  background: #0b2f55;
}
.fdr-v2-territory-media { position: absolute; inset: 0; }
.fdr-v2-territory-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.fdr-v2-territory::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,34,59,.90) 0%, rgba(7,34,59,.64) 50%, rgba(7,34,59,.22) 100%);
}
.fdr-v2-territory-inner { position: relative; z-index: 1; min-height: 390px; display: flex; align-items: center; padding-block: 58px; }
.fdr-v2-territory-copy { max-width: 650px; }
.fdr-v2-territory-copy h2 { margin: 10px 0 0; font-size: clamp(2rem,4vw,3.55rem); line-height: .98; letter-spacing: -.045em; font-weight: 900; }
.fdr-v2-territory-copy > p { margin: 16px 0 0; color: rgba(255,255,255,.78); line-height: 1.7; }
.fdr-v2-territory-credit { position: absolute; z-index: 2; right: 18px; bottom: 14px; margin: 0; font-size: .66rem; color: rgba(255,255,255,.72); }
.fdr-v2-territory-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .fdr-v1-hero h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); }
  .fdr-v2-news-heading { align-items: start; flex-direction: column; }
  .fdr-v2-news-heading p { text-align: left; }
}

@media (max-width: 680px) {
  .fdr-v1-section { padding-block: 60px; }
  .fdr-v2-map-asset { min-height: 300px; }
  .fdr-v2-chile-map { height: 270px; }
  .fdr-v2-territory, .fdr-v2-territory-inner { min-height: 440px; }
  .fdr-v2-territory::after { background: linear-gradient(180deg, rgba(7,34,59,.84), rgba(7,34,59,.64)); }
  .fdr-v2-territory-credit { left: 16px; right: 16px; text-align: left; }
}