@import url("fdr-patient-polish-fernanda-v2.5a090bca0535.css");

/* Página Pacientes FDR — implementación fiel al diseño aprobado por Fernanda (Issue #51).
   Capa exclusivamente visual/editorial. No añade rutas, modelos ni lógica clínica. */

.fdr-patients-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.fdr-patients-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(210, 229, 241, .72), transparent 24rem),
    linear-gradient(135deg, #fff 0%, #f8fbfd 56%, #eef6fb 100%);
}

.fdr-patients-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(360px, .84fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
  min-height: 670px;
  padding-block: 82px;
}

.fdr-patients-eyebrow {
  margin: 0;
  color: #1f6fd3;
  font: 800 .71rem/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fdr-patients-hero h1,
.fdr-patients-heading h2,
.fdr-patients-prevention-copy h2,
.fdr-patients-info-card h2 {
  color: #123a5b;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -.035em;
}

.fdr-patients-hero h1 {
  max-width: 720px;
  margin: 15px 0 0;
  font-size: clamp(3rem, 6.3vw, 5.9rem);
  line-height: .93;
}

.fdr-patients-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #526d81;
  font: 400 clamp(1rem, 1.4vw, 1.16rem)/1.8 ui-sans-serif, system-ui, sans-serif;
}

.fdr-patients-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.fdr-patients-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #244b69;
  font: 700 .86rem/1.45 ui-sans-serif, system-ui, sans-serif;
}

.fdr-patients-line-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #edf6fc;
  color: #1f6fd3;
}

.fdr-patients-line-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fdr-patients-primary,
.fdr-patients-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 22px;
  border-radius: 999px;
  font: 800 .86rem/1 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fdr-patients-primary {
  background: #123f67;
  color: #fff;
  box-shadow: 0 12px 28px rgba(18, 63, 103, .16);
}

.fdr-patients-secondary {
  border: 1px solid #bfd4e4;
  background: #fff;
  color: #123f67;
}

.fdr-patients-primary:hover,
.fdr-patients-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(18, 63, 103, .16);
}

.fdr-patients-primary:focus-visible,
.fdr-patients-secondary:focus-visible,
.fdr-patients-text-link:focus-visible {
  outline: 3px solid rgba(31, 111, 211, .28);
  outline-offset: 3px;
}

.fdr-patients-handwritten {
  margin: 20px 0 0;
  color: #7f7189;
  font: 500 1.05rem/1.4 "Segoe Print", "Bradley Hand", cursive;
  transform: rotate(-1deg);
}

.fdr-patients-hero-media,
.fdr-patients-prevention-media {
  position: relative;
  margin: 0;
}

.fdr-patients-hero-media::before {
  content: "";
  position: absolute;
  inset: 26px -22px -24px 26px;
  border-radius: 44% 56% 48% 52% / 54% 42% 58% 46%;
  background: #ece1d5;
}

.fdr-patients-hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 510px;
  max-height: 620px;
  object-fit: cover;
  border-radius: 46% 54% 44% 56% / 55% 45% 55% 45%;
  box-shadow: 0 30px 70px rgba(19, 59, 90, .14);
}

.fdr-patients-section {
  padding-block: 92px;
  background: #fff;
}

.fdr-patients-soft {
  background: #f3f8fc;
}

.fdr-patients-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 38px;
}

.fdr-patients-heading h2,
.fdr-patients-prevention-copy h2,
.fdr-patients-info-card h2 {
  margin: 10px 0 0;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: .98;
}

.fdr-patients-heading > div > p:last-child,
.fdr-patients-prevention-copy > p:not(.fdr-patients-eyebrow):not(.fdr-patients-handwritten),
.fdr-patients-info-card > p:not(.fdr-patients-eyebrow) {
  max-width: 650px;
  margin: 15px 0 0;
  color: #60758a;
  font: 400 .96rem/1.75 ui-sans-serif, system-ui, sans-serif;
}

.fdr-patients-text-link {
  color: #174f73;
  font: 800 .84rem/1.2 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.fdr-patients-text-link::after { content: "  →"; }
.fdr-patients-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.fdr-patients-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fdr-patients-stage-card {
  overflow: hidden;
  border: 1px solid #e0e9f0;
  border-radius: 28px;
  background: #fff;
}

.fdr-patients-stage-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  background: #edf4f8;
}

.fdr-patients-stage-card > div { padding: 22px 22px 24px; }
.fdr-patients-stage-number { color: #8da4b5; font: 800 .66rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; }
.fdr-patients-stage-card h3 { margin: 8px 0 0; color: #163b59; font: 800 1.22rem/1.2 ui-sans-serif, system-ui, sans-serif; }
.fdr-patients-stage-card p { margin: 8px 0 0; color: #64798b; font: 400 .87rem/1.6 ui-sans-serif, system-ui, sans-serif; }

.fdr-patients-condition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fdr-patients-condition {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dce8f0;
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  color: #244b69;
}

.fdr-patients-condition strong {
  font: 800 .9rem/1.35 ui-sans-serif, system-ui, sans-serif;
}

.fdr-patients-prevention-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.fdr-patients-prevention-media::after {
  content: "";
  position: absolute;
  width: 44%;
  height: 34%;
  right: -18px;
  bottom: -18px;
  z-index: 0;
  border-radius: 36px;
  background: #dcebf4;
}

.fdr-patients-prevention-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 470px;
  max-height: 560px;
  display: block;
  object-fit: cover;
  border-radius: 34px;
}

.fdr-patients-quick-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.fdr-patients-quick-topics li {
  padding: 13px 15px;
  border-radius: 16px;
  background: #f2f7fb;
  color: #274d69;
  font: 700 .84rem/1.35 ui-sans-serif, system-ui, sans-serif;
}

.fdr-patients-resources {
  padding-top: 40px;
  background: linear-gradient(180deg, #fff, #f5f9fc);
}

.fdr-patients-lower-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fdr-patients-info-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid #dde8f0;
  border-radius: 28px;
  background: #fff;
}

.fdr-patients-info-card h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.fdr-patients-info-card .fdr-patients-text-link,
.fdr-patients-info-card .fdr-patients-primary { margin-top: auto; padding-top: 22px; }
.fdr-patients-info-card .fdr-patients-primary { padding-block: 0; }

.fdr-patients-professional-cta {
  border-color: #174f73;
  background: #123f67;
}
.fdr-patients-professional-cta .fdr-patients-eyebrow { color: #9cc9ef; }
.fdr-patients-professional-cta h2 { color: #fff; }
.fdr-patients-professional-cta > p:not(.fdr-patients-eyebrow) { color: rgba(255,255,255,.75); }
.fdr-patients-professional-cta .fdr-patients-primary { background: #fff; color: #123f67; box-shadow: none; }

/* El CSS de Pacientes sólo se carga en esta pantalla, por lo que estas reglas
   transforman el footer compartido sin afectar Home, directorio ni dashboard. */
body > footer {
  background: #0f334f !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #f5f9fc;
}

body > footer .border-slate-200 {
  border-color: rgba(255,255,255,.12) !important;
}

body > footer .text-slate-500,
body > footer .text-slate-600,
body > footer .fdr-descriptor {
  color: rgba(239,247,252,.72) !important;
}

body > footer .fdr-wordmark,
body > footer p[class*="uppercase"] {
  color: #fff !important;
}

body > footer a,
body > footer .fdr-v1-footer-link {
  color: #e9f5fc !important;
}

body > footer a:hover,
body > footer .fdr-v1-footer-link:hover {
  color: #fff !important;
}

body > footer .fdr-brandmark {
  background: #fff;
  color: #123f67;
  box-shadow: none;
}

@media (max-width: 980px) {
  .fdr-patients-hero-grid { grid-template-columns: 1fr; padding-block: 68px; }
  .fdr-patients-hero-copy { max-width: 760px; }
  .fdr-patients-hero-media { max-width: 700px; }
  .fdr-patients-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fdr-patients-condition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fdr-patients-prevention-grid { grid-template-columns: 1fr; }
  .fdr-patients-lower-grid { grid-template-columns: 1fr; }
  .fdr-patients-info-card { min-height: 240px; }
}

@media (max-width: 680px) {
  .fdr-patients-shell { width: min(100% - 28px, 1180px); }
  .fdr-patients-hero-grid { min-height: auto; gap: 42px; padding-block: 54px 66px; }
  .fdr-patients-hero h1 { font-size: clamp(2.65rem, 14vw, 4.25rem); }
  .fdr-patients-benefits { grid-template-columns: 1fr; }
  .fdr-patients-hero-media img { min-height: 390px; }
  .fdr-patients-section { padding-block: 64px; }
  .fdr-patients-heading { align-items: start; flex-direction: column; margin-bottom: 28px; }
  .fdr-patients-stage-grid,
  .fdr-patients-condition-grid,
  .fdr-patients-quick-topics { grid-template-columns: 1fr; }
  .fdr-patients-stage-card img { height: 220px; }
  .fdr-patients-prevention-media img { min-height: 360px; }
  .fdr-patients-info-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .fdr-patients-primary,
  .fdr-patients-secondary { transition: none; }
}
