/* Socio Farmacenter (templates/socio.php). Colores de marca: naranja #fd6502, celeste #00a3e2. */
body.fc-socio-page .site-content > .ast-container, body.fc-socio-page #content > .ast-container { max-width: none !important; width: 100%; padding: 0 !important; display: block; }
.fc-socio [hidden], .fc-toast[hidden] { display: none !important; }
.fc-socio { font-family: var(--fc-font-body, system-ui, sans-serif); color: var(--fc-ink, #111827); padding-bottom: 24px; }
.fc-socio h1, .fc-socio h2, .fc-socio h3 { font-family: var(--fc-font-head, inherit); color: var(--fc-ink, #111827); }
.fc-socio-muted { color: var(--fc-muted, #6b7280); margin: 0; font-size: 15px; }
.fc-socio-alert { margin: 20px 0 0; padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.fc-socio-alert.is-ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.fc-socio-alert.is-warn { background: #fff4ec; color: #9a3412; border: 1px solid #ffd9bf; margin: 0 0 16px; }
.fc-socio-badge { display: inline-flex; align-items: center; gap: 6px; background: #e6f6fd; color: #0077a8; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; }

/* Botones extra */
.fc-btn--block { width: 100%; justify-content: center; }
.fc-btn--soft { background: #e6f6fd !important; color: #0077a8 !important; border: 1px solid #bfe5f7 !important; }
.fc-btn--soft:hover { background: #d4effb !important; }
.fc-btn.is-loading { opacity: .7; pointer-events: none; }
.fc-link { background: none !important; border: 0 !important; padding: 4px 0 !important; color: var(--fc-blue-700, #00a3e2) !important; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; box-shadow: none !important; min-height: 0 !important; }
.fc-link:hover { text-decoration: underline; }
.fc-link--muted { color: var(--fc-muted, #6b7280) !important; }

/* ---------- Landing */
.fc-socio-hero { background: linear-gradient(160deg, #f2f9fd 0%, #fff 55%, #fff4ec 100%); padding: 48px 0 56px; }
.fc-socio-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 460px); gap: 48px; align-items: start; }
.fc-socio-h1 { font-size: clamp(32px, 4.2vw, 50px) !important; line-height: 1.08 !important; margin: 14px 0 14px !important; font-weight: 800 !important; letter-spacing: -.02em; }
.fc-socio-h1 span { color: var(--fc-primary, #fd6502); }
.fc-socio-lead { font-size: 18px; color: var(--fc-ink-2, #374151); margin: 0 0 26px; max-width: 560px; line-height: 1.55; }
.fc-socio-jump { display: none !important; }
.fc-socio-perks { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 14px; }
.fc-socio-perks li { display: flex; gap: 14px; align-items: flex-start; }
.fc-socio-perks strong { display: block; font-size: 16px; }
.fc-socio-perks small { display: block; color: var(--fc-muted, #6b7280); font-size: 14px; margin-top: 2px; }
.fc-socio-perks__ico { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #e6f6fd; color: #0077a8; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.fc-socio-perks__ico.is-gift { background: var(--fc-primary, #fd6502); color: #fff; }

.fc-socio-card { background: #fff; border: 1px solid var(--fc-line, #eceef2); border-radius: 22px; padding: 26px; box-shadow: 0 18px 48px -18px rgba(16, 24, 40, .22); scroll-margin-top: 110px; }
.fc-socio-card__title { font-size: 22px !important; margin: 0 0 6px !important; font-weight: 800 !important; }
.fc-socio-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f3f5f8; border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.fc-socio-tabs button { background: transparent !important; border: 0 !important; border-radius: 999px !important; padding: 10px 8px !important; font-weight: 700; font-size: 15px; color: var(--fc-ink-2, #374151) !important; cursor: pointer; box-shadow: none !important; }
.fc-socio-tabs button[aria-selected="true"] { background: #fff !important; color: var(--fc-ink, #111827) !important; box-shadow: 0 1px 4px rgba(16, 24, 40, .12) !important; }
.fc-socio-form { display: grid; gap: 14px; }
.fc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fc-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--fc-ink-2, #374151); margin: 0; }
.fc-field small { font-weight: 500; color: var(--fc-muted, #6b7280); }
.fc-field input { width: 100%; min-height: 48px; border: 1px solid #d6dae1 !important; border-radius: 12px !important; padding: 0 14px !important; font-size: 16px !important; background: #fff !important; color: var(--fc-ink, #111827); box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
.fc-field input:focus { border-color: var(--fc-blue-700, #00a3e2) !important; box-shadow: 0 0 0 4px rgba(0, 163, 226, .15) !important; outline: 0; }
.fc-field.has-err input { border-color: #dc2626 !important; }
.fc-field__err { color: #b91c1c; font-size: 13px; font-weight: 600; }
.fc-field--sm input { min-height: 42px; }
.fc-pass { position: relative; display: block; }
.fc-pass input { padding-right: 76px !important; }
.fc-pass__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: #f3f5f8 !important; border: 0 !important; border-radius: 999px !important; padding: 6px 12px !important; font-size: 13px; font-weight: 700; color: var(--fc-ink-2, #374151) !important; cursor: pointer; min-height: 0 !important; }
.fc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fc-ink-2, #374151); line-height: 1.45; margin: 0; cursor: pointer; }
.fc-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--fc-primary, #fd6502); }
.fc-check a { color: var(--fc-blue-700, #00a3e2); font-weight: 700; }
.fc-check.has-err span { color: #b91c1c; }
.fc-socio-fine { font-size: 13px; color: var(--fc-muted, #6b7280); text-align: center; margin: 0; }
.fc-socio-fine a { color: var(--fc-blue-700, #00a3e2); font-weight: 700; }
.fc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fc-socio-h2 { font-size: clamp(24px, 2.6vw, 30px) !important; font-weight: 800 !important; margin: 0 0 6px !important; }
.fc-socio-how { padding-top: 56px; }
.fc-socio-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.fc-socio-steps li { background: #fff; border: 1px solid var(--fc-line, #eceef2); border-radius: 18px; padding: 22px; }
.fc-socio-steps b { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--fc-primary, #fd6502); color: #fff; align-items: center; justify-content: center; font-weight: 800; }
.fc-socio-steps h3 { font-size: 18px !important; margin: 12px 0 6px !important; }
.fc-socio-steps p { margin: 0; color: var(--fc-ink-2, #374151); font-size: 15px; }
.fc-socio-pharma { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #00a3e2; color: #fff; border-radius: 22px; padding: 30px 32px; box-sizing: border-box; }
.fc-wrap.fc-socio-pharma { max-width: calc(1280px - 48px); }
.fc-socio-pharma h2 { color: #fff !important; }
.fc-socio-pharma p { margin: 0; color: rgba(255, 255, 255, .95); max-width: 680px; font-size: 16px; }
.fc-socio-pharma .fc-btn { background: #fff !important; color: #0077a8 !important; white-space: nowrap; }

/* ---------- Panel del socio */
.fc-socio-dash { background: linear-gradient(160deg, #f2f9fd 0%, #fff 70%); padding: 32px 0 26px; border-bottom: 1px solid #e3f2fa; }
.fc-socio-dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.fc-socio-dash__title { font-size: clamp(28px, 3.4vw, 38px) !important; margin: 10px 0 4px !important; font-weight: 800 !important; }
.fc-socio-dash__sub { margin: 0; color: var(--fc-ink-2, #374151); }
.fc-socio-stats { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.fc-socio-stats div { background: #fff; border: 1px solid var(--fc-line, #eceef2); border-radius: 16px; padding: 12px 16px; min-width: 124px; }
.fc-socio-stats dt { font-size: 12px; color: var(--fc-muted, #6b7280); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.fc-socio-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; color: var(--fc-ink, #111827); font-family: var(--fc-font-head, inherit); }
.fc-socio-gift { margin-top: 20px; display: flex; align-items: center; gap: 14px; background: #fff4ec; border: 1px solid #ffd9bf; border-radius: 18px; padding: 14px 18px; flex-wrap: wrap; }
.fc-socio-gift__ico { font-size: 26px; }
.fc-socio-gift p { margin: 0; flex: 1 1 280px; font-size: 15px; color: var(--fc-ink-2, #374151); }
.fc-socio-gift p strong { color: var(--fc-ink, #111827); }
.fc-socio-note { margin: 18px 0 0; color: var(--fc-ink-2, #374151); font-size: 15px; }

.fc-socio-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 30px; align-items: start; }
.fc-socio-sec__head { margin-bottom: 14px; }
.fc-socio-add { position: relative; margin-bottom: 18px; }
.fc-socio-add__box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d6dae1; border-radius: 999px; padding: 0 18px; color: var(--fc-muted, #6b7280); transition: border-color .15s, box-shadow .15s; }
.fc-socio-add__box:focus-within { border-color: var(--fc-blue-700, #00a3e2); box-shadow: 0 0 0 4px rgba(0, 163, 226, .15); }
.fc-socio-add__box input { border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; min-height: 50px; width: 100%; font-size: 16px; padding: 0 !important; }
.fc-socio-add__res { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--fc-line, #eceef2); border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(16, 24, 40, .25); max-height: 360px; overflow: auto; }
.fc-socio-add__res button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: #fff !important; border: 0 !important; border-radius: 12px !important; padding: 8px 10px !important; cursor: pointer; color: var(--fc-ink, #111827) !important; font-size: 14px; font-weight: 600; box-shadow: none !important; }
.fc-socio-add__res button:hover, .fc-socio-add__res button:focus { background: #f2f9fd !important; }
.fc-socio-add__res img, .fc-socio-add__ph { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; border: 1px solid var(--fc-line, #eceef2); flex: none; background: #fff; }
.fc-socio-add__res span { flex: 1; }
.fc-socio-add__res b { color: var(--fc-primary, #fd6502); font-size: 13px; white-space: nowrap; }
.fc-socio-add__msg { padding: 12px; color: var(--fc-muted, #6b7280); font-size: 14px; }

.fc-meds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fc-med { background: #fff; border: 1px solid var(--fc-line, #eceef2); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.fc-med.is-active { border-color: #bfe5f7; box-shadow: 0 6px 18px rgba(0, 163, 226, .08); }
.fc-med.is-busy { opacity: .6; }
.fc-med.is-flash { box-shadow: 0 0 0 4px rgba(253, 101, 2, .18); }
.fc-med__top { display: flex; gap: 14px; }
.fc-med__img { flex: none; width: 76px; height: 76px; border-radius: 12px; border: 1px solid var(--fc-line, #eceef2); overflow: hidden; display: block; background: #fff; }
.fc-med__img img { width: 100%; height: 100%; object-fit: contain; margin: 0 !important; }
.fc-med__info { min-width: 0; }
.fc-med__name { font-size: 15.5px !important; line-height: 1.3 !important; margin: 0 0 4px !important; font-weight: 700 !important; }
.fc-med__name a { color: inherit !important; text-decoration: none; }
.fc-med__meta { margin: 0; font-size: 13px; color: var(--fc-muted, #6b7280); }
.fc-med__price { margin: 4px 0 0; font-weight: 800; font-size: 15px; color: var(--fc-ink, #111827); }
.fc-med__price del { color: var(--fc-muted, #6b7280); font-weight: 500; font-size: 13px; }
.fc-med__price ins { text-decoration: none; }
.fc-med__oos { display: inline-block; font-size: 12px; font-weight: 700; color: #9a3412; background: #fff4ec; border-radius: 999px; padding: 2px 8px; }
.fc-med__rem { display: grid; gap: 6px; }
.fc-med__status { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--fc-ink-2, #374151); background: #f2f9fd; border-radius: 12px; padding: 10px 12px; }
.fc-med__status .fc-ico { color: var(--fc-blue-700, #00a3e2); flex: none; margin-top: 2px; }
.fc-med__status.is-paused { background: #f3f5f8; color: var(--fc-muted, #6b7280); }
.fc-med__links { display: flex; gap: 16px; flex-wrap: wrap; }
.fc-med__cta { width: 100%; justify-content: center; }
.fc-med__form { display: grid; gap: 12px; background: #f9fafb; border-radius: 14px; padding: 14px; }
.fc-med__form fieldset { border: 0; margin: 0; padding: 0; }
.fc-med__form legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.fc-med__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-pill { position: relative; margin: 0; cursor: pointer; }
.fc-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.fc-pill span { display: inline-block; border: 1px solid #d6dae1; background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; color: var(--fc-ink-2, #374151); transition: all .15s; }
.fc-pill input:checked + span { background: var(--fc-blue-700, #00a3e2); border-color: var(--fc-blue-700, #00a3e2); color: #fff; }
.fc-pill input:focus-visible + span { outline: 3px solid rgba(0, 163, 226, .35); outline-offset: 2px; }
.fc-med__custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.fc-med__custom input { width: 84px; min-height: 40px; border: 1px solid #d6dae1 !important; border-radius: 10px !important; padding: 0 10px !important; font-size: 16px !important; }
.fc-med__date { display: grid; gap: 6px; font-weight: 700; font-size: 14px; margin: 0; }
.fc-med__date input { min-height: 42px; border: 1px solid #d6dae1 !important; border-radius: 10px !important; padding: 0 10px !important; font-size: 16px !important; max-width: 220px; background: #fff !important; }
.fc-med__hint { margin: 0; font-size: 13px; color: var(--fc-muted, #6b7280); }
.fc-med__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fc-med__err { margin: 0; color: #b91c1c; font-size: 13px; font-weight: 600; }
.fc-med__buy { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--fc-primary, #fd6502) !important; font-weight: 700; font-size: 14px; text-decoration: none !important; border-top: 1px solid var(--fc-line, #eceef2); padding-top: 12px; }
.fc-med__buy:hover { text-decoration: underline !important; }

.fc-socio-empty { text-align: center; background: #fff; border: 1px dashed #d1d5db; border-radius: 18px; padding: 32px 22px; }
.fc-socio-empty > span { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #e6f6fd; color: #0077a8; align-items: center; justify-content: center; }
.fc-socio-empty h3 { font-size: 19px !important; margin: 14px 0 6px !important; }
.fc-socio-empty p { margin: 0 auto 16px; color: var(--fc-ink-2, #374151); max-width: 460px; }

.fc-socio-side { display: grid; gap: 14px; position: sticky; top: 110px; }
.fc-socio-box { background: #fff; border: 1px solid var(--fc-line, #eceef2); border-radius: 18px; padding: 20px; }
.fc-socio-box h3 { font-size: 17px !important; margin: 0 0 12px !important; font-weight: 800 !important; }
.fc-socio-box--blue { background: #00a3e2; border-color: #00a3e2; color: #fff; }
.fc-socio-box--blue h3 { color: #fff !important; }
.fc-socio-box--blue p { margin: 0 0 14px; color: rgba(255, 255, 255, .95); font-size: 14.5px; }
.fc-socio-box--blue .fc-btn { width: 100%; justify-content: center; background: #fff !important; color: #0077a8 !important; }
.fc-socio-chan { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-weight: 700; font-size: 15px; }
.fc-socio-chan .fc-ico { color: var(--fc-success, #15803d); flex: none; margin-top: 2px; }
.fc-socio-chan small { font-weight: 500; color: var(--fc-muted, #6b7280); font-size: 13px; word-break: break-all; }
.fc-socio-prefs { display: grid; gap: 10px; }
.fc-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 15px; margin: 0; position: relative; }
.fc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fc-switch__ui { flex: none; width: 42px; height: 24px; border-radius: 999px; background: #d6dae1; position: relative; transition: background .2s; }
.fc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.fc-switch input:checked + .fc-switch__ui { background: var(--fc-blue-700, #00a3e2); }
.fc-switch input:checked + .fc-switch__ui::after { transform: translateX(18px); }
.fc-switch input:focus-visible + .fc-switch__ui { outline: 3px solid rgba(0, 163, 226, .35); outline-offset: 2px; }
.fc-soon { font-style: normal; font-size: 11px; font-weight: 800; background: #fff4ec; color: #c2410c; border-radius: 999px; padding: 2px 8px; margin-left: 4px; text-transform: uppercase; letter-spacing: .03em; }
.fc-socio-prefs__msg { font-size: 13px; min-height: 0; }
.fc-socio-side__links { margin: 0; font-size: 14px; color: var(--fc-muted, #6b7280); text-align: center; }
.fc-socio-side__links a { color: var(--fc-ink-2, #374151); font-weight: 600; }

.fc-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: #111827; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600; z-index: 99999; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.fc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1024px) {
	.fc-socio-jump { display: flex !important; width: 100%; justify-content: center; margin: 0 0 24px; }
	.fc-socio-hero__grid { grid-template-columns: 1fr; gap: 28px; }
	.fc-socio-main { grid-template-columns: 1fr; }
	.fc-socio-side { position: static; }
}
@media (max-width: 720px) {
	.fc-socio-hero { padding: 28px 0 36px; }
	.fc-socio-lead { font-size: 16.5px; }
	.fc-socio-card { padding: 20px 16px; border-radius: 18px; }
	.fc-field-row { grid-template-columns: 1fr; }
	.fc-socio-steps { grid-template-columns: 1fr; }
	.fc-socio-pharma { flex-direction: column; align-items: flex-start; padding: 24px 20px; margin-inline: 16px; }
	.fc-wrap.fc-socio-pharma { max-width: none; }
	.fc-socio-pharma .fc-btn { width: 100%; justify-content: center; }
	.fc-meds { grid-template-columns: 1fr; }
	.fc-socio-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
	.fc-socio-stats div { min-width: 0; padding: 10px 12px; }
	.fc-socio-stats dd { font-size: 16px; }
	.fc-socio-stats dt { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { .fc-toast, .fc-med, .fc-switch__ui, .fc-switch__ui::after { transition: none; } }
