:root {
  --emerald-950: #043c32;
  --emerald-900: #064e3b;
  --emerald-800: #05654f;
  --emerald-700: #08785d;
  --emerald-600: #0a9875;
  --emerald-500: #10b981;
  --emerald-100: #dff7ee;
  --emerald-50: #f0fbf7;
  --gold-500: #f4b81e;
  --gold-400: #facc35;
  --gold-100: #fff5ca;
  --ink: #17211e;
  --muted: #60716a;
  --line: #dce7e2;
  --warm: #fbfaf5;
  --white: #ffffff;
  --danger: #b42318;
  --shadow-sm: 0 8px 24px rgba(4, 78, 59, 0.08);
  --shadow: 0 22px 60px rgba(4, 55, 44, 0.15);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  color-scheme: light;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--warm); color: var(--ink); font-size: 16px; line-height: 1.6; }
body.modal-open { overflow: hidden; }
html.modal-open { scroll-behavior: auto; overscroll-behavior-y: none; }
body.native-modal-open { min-height: calc(100vh + 8px); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: var(--emerald-700); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.12; }
h1 { font-size: clamp(2.45rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; background: white; color: var(--ink); padding: .75rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.view { display: none; }
.view.is-active { display: block; }
.section { padding: 88px 0; }
.section--mint { background: linear-gradient(180deg, #f0fbf7 0%, #e9f8f2 100%); }
.section--warm { background: #f8f5ed; }
.section--dark { background: radial-gradient(circle at 86% 10%, rgba(16, 185, 129, .28), transparent 30%), linear-gradient(135deg, #043c32, #062e29); color: white; }

.special-bar { background: var(--emerald-900); color: white; font-size: .82rem; }
.special-bar__inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.special-bar strong { background: var(--gold-400); color: #3b2b00; border-radius: 999px; padding: .18rem .5rem; margin-right: .35rem; font-size: .68rem; }
.special-bar__inner > div { display: flex; gap: .7rem; }
.link-button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: .25rem .35rem; font-weight: 700; }
.link-button:hover, .link-button:focus-visible { text-decoration: underline; }

.app-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(4, 78, 59, .12); }
.app-header__inner { min-height: 76px; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; border: 0; background: none; text-align: left; cursor: pointer; padding: .2rem; min-width: max-content; }
.brand img { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 5px 15px rgba(4, 78, 59, .18); }
.brand b { display: flex; align-items: center; gap: .38rem; font-size: 1.08rem; line-height: 1.1; }
.brand em { font-style: normal; color: var(--emerald-800); background: var(--emerald-100); border: 1px solid #b6ead8; border-radius: 999px; padding: .14rem .38rem; font-size: .62rem; }
.brand small { display: block; color: var(--muted); font-size: .72rem; margin-top: .18rem; }
.main-nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; background: #f2f6f4; padding: .3rem; border-radius: 14px; }
.nav-tab { border: 0; background: transparent; border-radius: 10px; padding: .68rem .9rem; cursor: pointer; font-weight: 800; color: #50625b; }
.nav-tab.is-active { background: white; color: var(--emerald-800); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.currency-control select { border: 1px solid var(--line); border-radius: 11px; padding: .68rem .65rem; background: white; color: var(--ink); font-weight: 800; cursor: pointer; }
.trial-strip { background: var(--gold-100); color: #655014; font-weight: 800; text-align: center; font-size: .75rem; padding: .24rem 1rem; border-top: 1px solid #f3df8d; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 13px; padding: .72rem 1rem; cursor: pointer; font-weight: 800; line-height: 1.15; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(250, 204, 21, .75); outline-offset: 2px; }
.button--green { background: var(--emerald-700); color: white; box-shadow: 0 8px 20px rgba(5, 101, 79, .18); }
.button--green:hover { background: var(--emerald-800); }
.button--soft { background: var(--emerald-50); color: var(--emerald-800); border-color: #cceee1; }
.button--gold { background: linear-gradient(135deg, var(--gold-400), #ffb60d); color: #352600; box-shadow: 0 10px 24px rgba(244, 184, 30, .25); }
.button--dark { background: rgba(2, 27, 23, .78); color: white; border-color: rgba(255,255,255,.12); }
.button--glass { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.26); }
.button--outline { background: white; color: var(--emerald-800); border-color: #b8d8ce; }
.button--large { min-height: 50px; padding-inline: 1.2rem; }
.button--wide { width: 100%; }
.button[disabled] { cursor: not-allowed; opacity: .55; transform: none; }

.hero { color: white; background: radial-gradient(circle at 79% 18%, rgba(16, 185, 129, .38), transparent 32%), linear-gradient(125deg, #043c32 0%, #07543f 58%, #006b52 100%); overflow: hidden; }
.hero__grid { min-height: 485px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: 68px; }
.hero__copy h1 { max-width: 820px; margin: 1.35rem 0 1.3rem; }
.hero__copy h1 span { color: var(--gold-400); }
.hero__copy > p { max-width: 760px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.eyebrow-row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.eyebrow { border-radius: 999px; padding: .48rem .78rem; text-transform: uppercase; letter-spacing: .045em; font-size: .72rem; font-weight: 800; }
button.eyebrow { cursor: pointer; }
.eyebrow--gold { background: var(--gold-400); color: #3c2a00; box-shadow: 0 5px 14px rgba(250,204,21,.23); }
.eyebrow--outline { background: rgba(255,255,255,.06); color: #d9fff1; border: 1px solid rgba(255,255,255,.18); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-card { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.09); padding: 1.45rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.hero-card__title { display: flex; align-items: center; gap: .8rem; }
.hero-card__title strong, .hero-card__title small { display: block; }
.hero-card__title strong { color: var(--gold-400); }
.hero-card__title small { color: white; font-weight: 700; }
.round-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: #0dd3a0; font-size: 1.35rem; }
.hero-card ul { padding: 0; margin: 1.2rem 0; list-style: none; display: grid; gap: .65rem; }
.hero-card li { background: rgba(1, 35, 28, .38); border-radius: 12px; padding: .72rem .8rem; }
.hero-card li::before { content: "✓"; color: #5cf1c4; font-weight: 900; margin-right: .55rem; }
.hero-card > p { color: rgba(255,255,255,.67); margin-bottom: 0; font-size: .84rem; }

.section-heading { margin-bottom: 2.2rem; max-width: 760px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading h2 { margin: .55rem 0 .85rem; }
.section-heading p { color: var(--muted); font-size: 1.02rem; }
.section-heading--light p { color: rgba(255,255,255,.72); }
.kicker { display: inline-block; color: var(--emerald-700); background: var(--emerald-100); border-radius: 999px; padding: .35rem .7rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.kicker--gold { color: #5b4200; background: var(--gold-400); }
.doctor-inline { color: var(--emerald-700); background: transparent; border: 0; border-bottom: 3px solid var(--gold-400); cursor: pointer; font-weight: inherit; font-size: inherit; padding: 0; }
.doctor-inline:disabled { cursor: default; opacity: 1; }

.savings-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
.saving-card { display: flex; flex-direction: column; min-height: 215px; padding: 1.1rem; text-align: left; background: white; border: 2px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: pointer; transition: .18s ease; }
.saving-card:hover { transform: translateY(-4px); border-color: #a8e7d2; }
.saving-card.is-selected { background: #effcf7; border-color: var(--emerald-500); box-shadow: 0 12px 30px rgba(16,185,129,.15); }
.saving-card__top { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.saving-card__icon { font-size: 1.8rem; }
.saving-card__badge { font-size: .66rem; font-weight: 800; background: #ebf5f1; color: #456158; border-radius: 999px; padding: .22rem .46rem; }
.saving-card.is-selected .saving-card__badge { background: #bdf1df; color: #006348; }
.saving-card h3 { font-size: 1rem; margin: .75rem 0 .45rem; letter-spacing: -.02em; }
.saving-card p { color: var(--muted); font-size: .82rem; line-height: 1.45; margin-bottom: auto; }
.saving-card small { color: var(--emerald-700); font-weight: 800; margin-top: .8rem; }
.impact-card { display: grid; grid-template-columns: 1.6fr auto auto; align-items: center; gap: 2rem; margin-top: 1.25rem; background: white; padding: 1.5rem; border: 1px solid #cfe9df; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.impact-card h3 { margin: .55rem 0; }
.impact-card p { color: var(--muted); margin-bottom: 0; max-width: 670px; }
.impact-stats { display: flex; gap: 1.5rem; }
.impact-stats div { min-width: 115px; }
.impact-stats strong, .impact-stats span { display: block; }
.impact-stats strong { color: var(--emerald-800); font-size: 1.35rem; }
.impact-stats span { color: var(--muted); font-size: .72rem; }

.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-bottom: 1.6rem; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; background: white; padding: .55rem .85rem; cursor: pointer; font-weight: 800; color: #52615c; }
.filter-button.is-active { background: var(--emerald-800); color: white; border-color: var(--emerald-800); }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gift-card { background: white; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: .18s ease; }
.gift-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gift-card.is-selected { border-color: var(--emerald-500); }
.gift-card__image { height: 185px; position: relative; background: #e9f3ee; overflow: hidden; }
.gift-card__image img { width: 100%; height: 100%; object-fit: cover; }
.gift-card__badge { position: absolute; top: .75rem; left: .75rem; background: var(--gold-400); color: #3d2c00; font-size: .68rem; font-weight: 900; border-radius: 999px; padding: .3rem .55rem; }
.gift-card__body { padding: 1.05rem; display: flex; flex-direction: column; flex: 1; }
.gift-card__serving { color: var(--emerald-700); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; font-size: .68rem; }
.gift-card h3 { font-size: 1.08rem; margin: .38rem 0; }
.gift-card p { color: var(--muted); font-size: .84rem; line-height: 1.48; }
.gift-card__ideal { font-size: .76rem; background: #f5f7f6; padding: .55rem; border-radius: 10px; margin: auto 0 .85rem; }
.gift-card__price { display: flex; justify-content: space-between; align-items: end; gap: .5rem; margin-bottom: .85rem; }
.gift-card__price strong { display: block; font-size: 1.2rem; }
.gift-card__price small { color: var(--muted); font-size: .68rem; }
.custom-amount-card { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; background: #fff9dd; border: 1px dashed #d8b62d; border-radius: var(--radius); }
.custom-amount-card strong, .custom-amount-card span { display: block; }
.custom-amount-card span { color: #74652c; font-size: .84rem; }

.campaign-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.campaign-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.25rem; backdrop-filter: blur(8px); }
.campaign-card__head { display: flex; gap: .8rem; align-items: center; }
.campaign-card__head img { width: 52px; height: 52px; object-fit: cover; border-radius: 16px; }
.campaign-card__head h3 { font-size: 1rem; margin: .25rem 0 0; }
.campaign-card__head small { color: #a7e7d5; }
.campaign-card > p { color: rgba(255,255,255,.72); font-size: .86rem; margin: 1rem 0; }
.progress-track { height: 10px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-400), #ff9f1a); border-radius: inherit; }
.campaign-card__stats { display: flex; justify-content: space-between; margin: .55rem 0 1rem; font-size: .78rem; color: rgba(255,255,255,.75); }

.customizer-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.4rem; align-items: start; }
.form-card, .preview-column { background: white; border: 1px solid #e4e1d7; border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.selected-doctor { display: flex; align-items: center; gap: .85rem; padding: .9rem; background: var(--emerald-50); border: 1px solid #c9ebdf; border-radius: 16px; margin-bottom: 1rem; }
.selected-doctor img { width: 58px; height: 58px; border-radius: 17px; object-fit: cover; }
.selected-doctor strong, .selected-doctor small { display: block; }
.selected-doctor small { color: var(--muted); }
.selected-doctor .button { margin-left: auto; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
label { display: grid; gap: .38rem; color: #36443f; font-size: .82rem; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid #ccd9d4; background: white; border-radius: 12px; padding: .76rem .82rem; color: var(--ink); }
#test-buyer-ack { width: 1.2rem; height: 1.2rem; margin-right: .5rem; vertical-align: middle; accent-color: var(--green); }
textarea { resize: vertical; min-height: 120px; }
.template-block, .theme-picker { margin: 1rem 0; }
.template-block > span, .theme-picker > span { display: block; font-size: .78rem; font-weight: 800; margin-bottom: .5rem; }
.template-row, .theme-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.template-button, .theme-button { border: 1px solid var(--line); background: #f8faf9; border-radius: 999px; padding: .45rem .68rem; cursor: pointer; font-size: .72rem; font-weight: 800; }
.theme-button.is-active { background: var(--emerald-800); color: white; border-color: var(--emerald-800); }
.preview-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.preview-label span { font-weight: 800; }
.preview-label small { color: var(--muted); }
.digital-card { position: relative; min-height: 440px; overflow: hidden; display: flex; flex-direction: column; border-radius: 26px; padding: 1.4rem; color: white; box-shadow: var(--shadow); }
.digital-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -70px; top: -70px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.05), 0 0 0 58px rgba(255,255,255,.035); }
.theme-classic { background: linear-gradient(145deg, #075c48, #043b32); }
.theme-gold { background: linear-gradient(145deg, #513a08, #8b6110); }
.theme-hero { background: linear-gradient(145deg, #12365f, #071c38); }
.theme-toast { background: linear-gradient(145deg, #6a2427, #35171a); }
.digital-card__top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.digital-card__brand { display: flex; gap: .55rem; align-items: center; font-weight: 800; }
.digital-card__brand img { width: 34px; height: 34px; border-radius: 10px; }
.digital-card__tag { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .28rem .55rem; font-size: .68rem; }
.digital-card__content { position: relative; z-index: 1; margin: auto 0; }
.digital-card__content small { color: var(--gold-400); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.digital-card__content h3 { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; margin: .45rem 0 .9rem; }
.digital-card__content blockquote { margin: 0; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.05rem; line-height: 1.55; }
.digital-card__gift { position: relative; z-index: 1; display: flex; gap: .72rem; align-items: center; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; }
.digital-card__gift img { width: 62px; height: 62px; border-radius: 16px; object-fit: cover; }
.digital-card__gift strong, .digital-card__gift small { display: block; }
.digital-card__gift small { color: rgba(255,255,255,.68); }
.price-summary { margin: .9rem 0; padding: .9rem; border: 1px solid var(--line); border-radius: 15px; background: #fbfdfc; }
.price-summary div { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; padding: .24rem 0; }
.price-summary div:last-child { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .55rem; font-weight: 800; }
.security-note { text-align: center; color: var(--muted); font-size: .74rem; margin: .75rem 0 0; }

.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feed-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem; box-shadow: var(--shadow-sm); }
.feed-card__head { display: flex; gap: .65rem; align-items: center; }
.feed-card__head img { width: 43px; height: 43px; object-fit: cover; border-radius: 13px; }
.feed-card__head strong, .feed-card__head small { display: block; }
.feed-card__head small { color: var(--muted); font-size: .72rem; }
.feed-card h3 { font-size: 1rem; margin: .8rem 0 .45rem; }
.feed-card p { color: #53615c; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: .9rem; }
.feed-card__foot { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }

.doctor-portal-hero { background: radial-gradient(circle at 80% 15%, rgba(16,185,129,.35), transparent 32%), linear-gradient(135deg, #043c32, #06332c); color: white; padding: 2.3rem 0 3rem; }
.doctor-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1.5rem; }
.doctor-switcher::before { content: "Cambiar perfil activo:"; color: rgba(255,255,255,.66); font-size: .76rem; font-weight: 800; margin-right: .25rem; }
.doctor-chip { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.09); color: white; border-radius: 999px; padding: .48rem .72rem; cursor: pointer; font-weight: 800; font-size: .75rem; }
.doctor-chip.is-active { background: white; color: var(--emerald-900); }
.doctor-profile-hero__content { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; }
.doctor-profile-hero__content > img { width: 104px; height: 104px; border-radius: 28px; object-fit: cover; border: 3px solid rgba(255,255,255,.62); }
.doctor-profile-hero__content h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: .2rem 0; }
.doctor-profile-hero__content p { color: rgba(255,255,255,.72); margin: 0; }
.verified { display: inline-flex; align-items: center; gap: .35rem; color: #a8f1da; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.doctor-actions { display: flex; flex-direction: column; gap: .55rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: -62px; position: relative; z-index: 2; }
.stat-card { background: white; border: 1px solid #d9e8e2; border-radius: var(--radius); padding: 1.05rem; box-shadow: var(--shadow-sm); }
.stat-card span, .stat-card strong, .stat-card small { display: block; }
.stat-card span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.stat-card strong { color: var(--emerald-800); font-size: 1.65rem; margin: .25rem 0; }
.stat-card small { color: var(--muted); font-size: .72rem; }
.portal-grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: 1rem; margin-top: 1.1rem; }
.portal-panel { background: white; border: 1px solid #d9e8e2; border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.portal-panel > header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.portal-panel h2, .portal-panel h3 { margin: .5rem 0 .8rem; }
.portal-panel > p { color: var(--muted); }
.portal-panel > .button + .button { margin-top: .7rem; }
.secure-box { background: var(--emerald-50); color: #245346; border: 1px solid #c6ebde; border-radius: 15px; padding: .9rem; margin: 1rem 0; font-size: .84rem; line-height: 1.8; }
.doctor-gifts { display: grid; gap: .7rem; }
.doctor-gift { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: .75rem; padding: .85rem; border: 1px solid var(--line); border-radius: 15px; }
.doctor-gift img { width: 50px; height: 50px; object-fit: cover; border-radius: 13px; }
.doctor-gift strong, .doctor-gift small { display: block; }
.doctor-gift small { color: var(--muted); font-size: .72rem; }
.doctor-gift__amount { color: var(--emerald-700); font-weight: 900; }

.site-footer { background: #071f1b; color: white; padding: 1.5rem 0; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand--footer { cursor: default; }
.brand--footer small { color: rgba(255,255,255,.58); }
.footer-links { display: flex; align-items: center; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .8rem; }

.modal-backdrop { position: fixed; inset: var(--modal-viewport-top, 0px) 0 auto; height: var(--modal-viewport-height, 100dvh); z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(4, 24, 20, .72); backdrop-filter: blur(8px); animation: fade .18s ease; }
.modal { width: min(680px, 100%); max-height: min(calc(var(--modal-viewport-height, 100dvh) - 2rem), 820px); display: flex; flex-direction: column; overflow: hidden; background: white; border-radius: 26px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.modal--wide { width: min(900px, 100%); }
.modal__header { flex-shrink: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700)); color: white; padding: 1rem 1.2rem; }
.modal__header h2 { font-size: 1.35rem; margin: 0; }
.modal__header p { margin: .15rem 0 0; color: rgba(255,255,255,.68); font-size: .78rem; }
.modal__close { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.1); color: white; cursor: pointer; font-size: 1.2rem; }
.modal__body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: 1.2rem; }
.modal__footer { flex-shrink: 0; display: flex; justify-content: flex-end; gap: .65rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); background: #fafcfb; }
.doctor-directory { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.doctor-option { display: flex; gap: .72rem; text-align: left; background: white; border: 1px solid var(--line); border-radius: 16px; padding: .8rem; cursor: pointer; }
.doctor-option:hover { border-color: var(--emerald-500); }
.doctor-option img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; }
.doctor-option strong, .doctor-option small { display: block; }
.doctor-option small { color: var(--muted); font-size: .74rem; }
.date-list { display: grid; gap: .7rem; }
.date-item { display: grid; grid-template-columns: 74px 1fr; gap: .8rem; align-items: center; border: 1px solid var(--line); border-radius: 15px; padding: .8rem; }
.date-item time { background: var(--gold-100); color: #6a510b; border-radius: 13px; padding: .65rem .5rem; text-align: center; font-weight: 900; }
.date-item strong, .date-item small { display: block; }
.date-item small { color: var(--muted); }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.payment-option { border: 2px solid var(--line); border-radius: 16px; padding: .9rem; background: white; text-align: left; cursor: pointer; }
.payment-option.is-active { border-color: var(--emerald-500); background: var(--emerald-50); }
.payment-option:disabled { cursor: not-allowed; opacity: .55; }
.payment-option strong, .payment-option small { display: block; }
.payment-option small { color: var(--muted); font-size: .74rem; margin-top: .25rem; }
.trial-alert { background: #fff8d9; color: #66510e; border: 1px solid #ead474; border-radius: 15px; padding: .9rem; margin: .9rem 0; font-size: .84rem; }
.copy-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #f4f8f6; border: 1px dashed #9bc8b9; border-radius: 14px; padding: .8rem; }
.copy-box strong, .copy-box small { display: block; }
.success-state { text-align: center; padding: 1.5rem .4rem; }
.success-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; background: var(--emerald-100); color: var(--emerald-700); font-size: 2.1rem; }
.modal form { display: grid; gap: .8rem; }
.doctor-photo-editor { display: flex; align-items: center; gap: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: 16px; background: #f8fbfa; }
.doctor-photo-editor > img { width: 88px; height: 88px; flex: 0 0 88px; object-fit: cover; border-radius: 24px; border: 3px solid white; box-shadow: var(--shadow-sm); }
.doctor-photo-editor p { color: var(--muted); font-size: .78rem; margin: .25rem 0 .65rem; }
.doctor-photo-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.button--small { padding: .5rem .65rem; font-size: .74rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.share-options > p { color: var(--muted); margin-top: 0; }
.share-options__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.share-option { display: grid; gap: .25rem; min-height: 128px; border: 1px solid var(--line); border-radius: 16px; padding: .85rem; background: white; text-align: left; cursor: pointer; }
.share-option:hover { border-color: var(--emerald-500); transform: translateY(-1px); }
.share-option > span { font-size: 1.55rem; }
.share-option strong, .share-option small { display: block; }
.share-option small { color: var(--muted); font-size: .72rem; }
.share-option--whatsapp { border-color: #9bd8b9; background: #f1fbf5; }

.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 150; display: grid; gap: .55rem; }
.toast { max-width: 360px; background: #082f27; color: white; border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); animation: slideUp .22s ease; font-weight: 700; font-size: .84rem; }
.empty-state { text-align: center; color: var(--muted); padding: 2rem; border: 1px dashed #bed5cc; border-radius: var(--radius); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .desktop-only { display: none; }
  .hero__grid { grid-template-columns: 1fr .7fr; gap: 2rem; }
  .savings-grid { grid-template-columns: repeat(3, 1fr); }
  .gift-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-card { grid-template-columns: 1fr auto; }
  .impact-card > .button { grid-column: 1 / -1; }
  .customizer-layout { grid-template-columns: 1fr; }
  .preview-column { max-width: 680px; width: 100%; margin-inline: auto; }
}

@media (max-width: 780px) {
  .special-bar__inner > div { display: none; }
  .app-header { position: relative; }
  .app-header__inner { flex-wrap: wrap; padding-block: .65rem; gap: .65rem; }
  .brand { flex: 1; }
  .brand small { display: none; }
  .main-nav { order: 3; width: 100%; }
  .nav-tab { flex: 1; }
  .header-actions .currency-control { display: none; }
  #install-button { padding-inline: .7rem; font-size: .78rem; }
  .hero__grid { grid-template-columns: 1fr; padding-block: 52px; }
  .hero-card { display: none; }
  .hero__copy > p { font-size: 1rem; }
  .section { padding: 62px 0; }
  .savings-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-card { grid-template-columns: 1fr; gap: 1rem; }
  .impact-stats { justify-content: space-between; }
  .gift-grid, .campaign-grid, .feed-grid, .portal-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .doctor-profile-hero__content { grid-template-columns: auto 1fr; }
  .doctor-actions { grid-column: 1 / -1; flex-direction: row; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .doctor-directory { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 22px, 1180px); }
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.85rem; }
  .hero__actions .button { width: 100%; }
  .savings-grid { grid-template-columns: 1fr; }
  .saving-card { min-height: 175px; }
  .filter-row { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .35rem; }
  .filter-button { white-space: nowrap; }
  .custom-amount-card { align-items: flex-start; flex-direction: column; }
  .impact-stats { flex-direction: column; gap: .7rem; }
  .digital-card { min-height: 400px; padding: 1.05rem; }
  .digital-card__content h3 { font-size: 1.65rem; }
  .doctor-profile-hero__content { grid-template-columns: 1fr; text-align: center; }
  .doctor-profile-hero__content > img { margin-inline: auto; }
  .doctor-actions { flex-direction: column; width: 100%; }
  .doctor-photo-editor { align-items: flex-start; flex-direction: column; }
  .share-options__grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .portal-panel > header { align-items: flex-start; flex-direction: column; }
  .doctor-gift { grid-template-columns: 44px 1fr; }
  .doctor-gift__amount { grid-column: 2; }
  .payment-options { grid-template-columns: 1fr; }
  .modal-backdrop { padding: .55rem; }
  .modal { max-height: calc(var(--modal-viewport-height, 100dvh) - 1.1rem); border-radius: 20px; }
  .modal__footer { flex-direction: column-reverse; }
  .modal__footer .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


[hidden] { display: none !important; }

/* v20: moderation, account deletion and terms */
[hidden] { display: none !important; }
.link-button--muted { display: inline-block; margin-top: 6px; padding: 0; font-size: .82rem; color: #6b7c77; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.link-button--danger { display: block; margin: 14px auto 0; padding: 4px; font-size: .9rem; color: #b42318; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.button--danger { background: #b42318; color: #fff; border-color: #b42318; }
.checkbox-row { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; margin-top: 14px; font-weight: 500; }
.checkbox-row input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.footer-links { flex-wrap: wrap; }
.selected-doctor small { display: block; }
button:disabled { opacity: .6; cursor: not-allowed; }

/* v21: dentro de la app instalada (Android / PWA) no se ofrece "Instalar app" */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  [data-action="install-app"] { display: none !important; }
}
html.in-app [data-action="install-app"] { display: none !important; }

.no-doctor-notice { background: var(--gold-100); border-bottom: 1px solid #f0dfa8; }
.no-doctor-notice__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding-block: .9rem; }
.no-doctor-notice__inner > div { flex: 1 1 260px; min-width: 0; }
.no-doctor-notice strong, .no-doctor-notice span { display: block; }
.no-doctor-notice span { color: #5a4a12; font-size: .88rem; line-height: 1.5; }

.doctor-gift__message { margin: .45rem 0 0; padding: .55rem .7rem; background: var(--emerald-50); border-left: 3px solid var(--emerald-500); border-radius: 0 10px 10px 0; font-size: .86rem; line-height: 1.5; color: var(--ink); font-style: italic; overflow-wrap: anywhere; }
.terms-kept { margin-top: 14px; font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) {
  /* Compact gift list: photo on the left, so nine gifts fit in a few screens. */
  .gift-card { flex-direction: row; }
  .gift-card__image { flex: 0 0 104px; height: auto; min-height: 100%; }
  .gift-card__badge { top: .5rem; left: .5rem; font-size: .6rem; }
  .gift-card__body { padding: .8rem; min-width: 0; }
  .gift-card h3 { font-size: .98rem; margin: .2rem 0; }
  .gift-card p { font-size: .78rem; }
  .gift-card__ideal { display: none; }
  .gift-card__price { display: block; margin: .5rem 0 .6rem; }
  .gift-card__price small { display: block; }
  .gift-card .button { padding-block: .55rem; }
}
/* Notices inside the dark profile header keep their own dark text. */
.doctor-profile-hero__content p.trial-alert { color: #4a3a05; font-weight: 700; margin: .9rem 0 0; text-align: left; }

.secure-box--ok { background: #dff7ec; border-color: var(--emerald-500); color: #0b4a39; font-weight: 800; font-size: .92rem; }
.portal-panel .link-button:not(.link-button--danger) { display: block; margin: .2rem auto .9rem; font-size: .86rem; color: var(--emerald-700); text-decoration: underline; }
