/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47,111,237,0.25);
}

.btn-primary:hover{ background: var(--primary-2); }

.btn-outline{
  background: rgba(255,255,255,0.85);
  border-color: rgba(47,111,237,0.20);
  color: var(--text);
}

.btn-outline:hover{
  border-color: rgba(47,111,237,0.35);
  background: #fff;
}

.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.btn-ghost:hover{
  background: rgba(255,255,255,0.12);
}

.btn-small{
  padding: 9px 12px;
  border-radius: 12px;
}

/* Language switch */
.lang-switch{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
}

.lang-label{
  font-size: 12px;
  color: rgba(15,27,45,0.70);
}

.lang-pill{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(15,27,45,0.80);
  background: rgba(47,111,237,0.08);
}

.lang-pill.active{
  color: #fff;
  background: var(--primary);
}

/* Cards */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-card{
  padding: 14px;
}
.section-photo { display:block; width:100%; height:320px; object-fit:cover; border-radius:18px; }

/* This section uses a landscape original: show both people and their full faces. */
.section-photo[src$="/care-and-trust.webp"]{
  aspect-ratio: 16 / 9;
  height: auto;
  object-position: center;
}

.image-placeholder{
  height: 320px;
  border-radius: 18px;
  background:
    radial-gradient(1200px 500px at 20% 20%, rgba(26,167,255,0.18), transparent 55%),
    radial-gradient(900px 450px at 85% 35%, rgba(47,111,237,0.16), transparent 60%),
    linear-gradient(180deg, rgba(15,27,45,0.05), rgba(15,27,45,0.02));
  border: 1px dashed rgba(47,111,237,0.28);
}

.content h2{
  font-size: 34px;
}

.content p{
  font-size: 15px;
}

.text-link{
  font-weight: 800;
  color: var(--primary);
}

.text-link:hover{
  text-decoration: underline;
}

/* Hero */
.hero{
  position: relative;
  min-height: 520px;
  padding: 86px 0 76px;
  background-color: #f8fbfd;
  background-image:
    linear-gradient(90deg,
      #fff 0%,
      #fff calc(50% - 280px),
      rgba(255,255,255,0.95) calc(50% - 60px),
      rgba(255,255,255,0.05) calc(50% + 320px),
      rgba(255,255,255,0) calc(50% + 700px)),
    url("/assets/images/hero/hero-priority-health-2026.webp");
  /* Keep the subject inside the centered content boundary on desktop and 4K. */
  background-size: 100% 100%, auto 100%;
  background-position: center, calc(50% + clamp(210px, 12vw, 300px)) center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay{
  display: none;
}

.hero-content{
  position: relative;
  z-index: 1;
}

.hero h1{
  font-size: 46px;
  line-height: 1.05;
  margin-bottom: 12px;
  max-width: 680px;
}

.hero .lead{
  color: rgba(15,27,45,0.72);
  margin-bottom: 18px;
  max-width: 590px;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-curve{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 26px;
  background: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

/* Services cards */
.svc-card{
  padding: 16px;
}

.svc-photo{
  display:block;
  width:100%;
  object-fit:cover;
  object-position:center;
  aspect-ratio:16 / 9;
  height:auto;
  border-radius: 16px;
  margin-bottom: 12px;
  background:
    radial-gradient(700px 260px at 25% 25%, rgba(26,167,255,0.22), transparent 65%),
    linear-gradient(180deg, rgba(15,27,45,0.05), rgba(15,27,45,0.02));
  border: 1px solid rgba(47,111,237,0.12);
}

/* Cherry financing: direct link to the official application page. */
.cherry-payment-ready { margin-top:20px; max-width:540px; padding:16px 18px; background:rgba(255,255,255,.95); border:1px solid rgba(47,111,237,.24); border-radius:16px; box-shadow:0 10px 28px rgba(10,46,65,.10); }
.cherry-payment-ready strong { display:block; margin-bottom:10px; color:#16364b; }
.cherry-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.cherry-pay-button { background:var(--primary); color:#fff; border:1px solid var(--primary); white-space:normal; text-decoration:none; }
.cherry-pay-button:hover, .cherry-pay-button:focus-visible { background:var(--primary-2); border-color:var(--primary-2); color:#fff; }
.cherry-details-link { font-size:14px; color:#164f7c; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.cherry-details-link:hover { color:#10364f; }
.cherry-payment-ready p { font-size:12px; line-height:1.5; margin:10px 0 0; color:#3f5968; }
.cherry-floating-direct {
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:9999;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:10px 15px;
  color:#fff;
  background:var(--primary);
  border:1px solid var(--primary-2);
  border-radius:999px;
  box-shadow:0 8px 25px rgba(16,48,72,.27);
  font:700 14px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;
  text-decoration:none;
  transition:background .15s ease,transform .15s ease;
}
.cherry-floating-direct:hover,
.cherry-floating-direct:focus-visible { color:#fff; background:var(--primary-2); transform:translateY(-2px); }
.cherry-floating-direct:focus-visible { outline:3px solid #f0bf40; outline-offset:3px; }
.cherry-floating-brand { font-weight:900; padding-right:9px; border-right:1px solid rgba(255,255,255,.5); }
.cherry-floating-label { white-space:nowrap; }
.cherry-floating-arrow { font-size:19px; line-height:1; }
@media(max-width:480px) {
  .cherry-floating-direct { right:12px; bottom:12px; gap:6px; padding:10px 12px; font-size:12px; }
  .cherry-floating-brand { padding-right:6px; }
}
.cherry-plans-page { padding-top:48px; }
.cherry-plans-heading { max-width:760px; margin:0 auto 34px; text-align:center; }
.cherry-plans-heading h1 { font-size:clamp(30px,4vw,44px); line-height:1.14; margin-bottom:12px; }
.cherry-plans-heading p { margin:0 auto 16px; line-height:1.6; }
.cherry-plans-disclaimer { margin:28px auto 0; max-width:740px; font-size:12px; line-height:1.6; color:#476173; text-align:center; }

.svc-card h3{
  font-size: 18px;
}

.svc-card p{
  font-size: 14px;
}

/* Steps */
.step-card{
  padding: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.30);
}

.step-card h3{ margin-bottom: 8px; }

/* Curves */
.section-curve{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 26px;
  background: var(--bg);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

/* Checklist */
.checklist{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.checklist li{
  position: relative;
  padding-left: 28px;
  color: rgba(15,27,45,0.78);
}

.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47,111,237,0.12);
  color: var(--primary);
  font-weight: 900;
}

/* CTA Band */
.cta-band{
  background: linear-gradient(180deg, #1b4fc8, #2f6fed);
  padding: 46px 0;
}

.cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band h2{
  color: #fff;
  margin-bottom: 8px;
  font-size: 28px;
}

.cta-band p{
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-width: 60ch;
}

.cta-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Legal note */
.legal-note{
  padding: 22px 0 56px 0;
}

.legal-note p{
  font-size: 12px;
  color: rgba(15,27,45,0.60);
  margin: 0;
}

/* Footer */
.site-footer{
  padding: 28px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-inner{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
}

.footer-brand{
  display: grid;
  gap: 2px;
}

.footer-brand strong{
  font-weight: 900;
}

.footer-brand span{
  font-size: 12px;
  color: rgba(15,27,45,0.65);
}

.footer-contact,
.footer-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 13px;
  color: rgba(15,27,45,0.72);
}

.footer-contact a:hover,
.footer-links a:hover{
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 980px){
  .cta-inner{ flex-direction: column; align-items: flex-start; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-contact, .footer-links{ justify-content: flex-start; }
  .hero h1{ font-size: 38px; }
}

/* ===============================
   CTA BAND (Pro, no inline styles)
   =============================== */

.cta-band .cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band .cta-text{
  max-width: 640px;
}

.cta-band .cta-meta{
  margin-top: 12px;
  margin-bottom: 0;
  color: rgba(255,255,255,0.86);
  font-size: 0.98rem;
}

.cta-band .cta-meta a{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-band .cta-dot{
  display: inline-block;
  opacity: 0.85;
  margin: 0 10px;
}

.cta-band .cta-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-band .cta-qr{
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-left: 8px;
}

.cta-band .cta-qr img{
  max-width: 160px;
  height: auto;          /* 🔑 mantiene proporción real */
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.cta-band .cta-qr-caption{
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
}

/* Responsive: stack nicely on mobile */
@media (max-width: 860px){
  .cta-band .cta-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band .cta-actions{
    width: 100%;
    justify-content: flex-start;
  }

  .cta-band .cta-qr{
    margin-left: 0;
  }
}

@media (min-width: 721px) and (max-width: 1100px){
  .hero{
    background-position: center, right center;
  }

  .hero h1{
    max-width: 68%;
  }

  .hero .lead{
    max-width: 64%;
  }
}

/* On phones, show the photograph above the copy instead of behind the text. */
@media (max-width: 720px){
  .hero{
    min-height: 0;
    padding: 300px 0 52px;
    background-color: #fff;
    background-image:
      linear-gradient(to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 70%,
        #fff 100%),
      url("/assets/images/hero/hero-priority-health-2026.webp");
    background-size: 100% 285px, auto 285px;
    background-position: center top, right top;
    background-repeat: no-repeat;
  }

  .hero h1{
    font-size: clamp(29px, 7.2vw, 38px);
    max-width: 100%;
  }

  .hero .lead{
    max-width: 100%;
  }

  .cherry-payment-ready{
    max-width: 100%;
  }
}
