/*
 * Portal de pacientes v3 — marco de app.
 *
 * Usa las variables de smc-portal.css (v1): papel cálido, tinta con sesgo
 * violeta, dorado profundo para lo que se toca y un color por sección.
 * Todo lo nuevo lleva el prefijo .smcp- para no chocar con la v1 ni con el tema.
 */

:root {
	--smcp-max: 560px;
	--smcp-pad: 16px;
	--smcp-top: 60px;
	--smcp-tabs: 64px;
	--smcp-radius: 20px;
	--smcp-shadow: 0 1px 2px rgba(32, 29, 41, .04), 0 8px 24px -12px rgba(32, 29, 41, .12);
	--smcp-ink: var(--smc-ink, #201D29);
	--smcp-ink-2: var(--smc-ink-2, #4A4557);
	--smcp-ink-3: var(--smc-ink-3, #736D80);
	--smcp-canvas: var(--smc-canvas, #FAF8F5);
	--smcp-line: var(--smc-hairline, #EAE5DE);
	--smcp-gold: var(--smc-gold, #B08340);
	--smcp-gold-deep: var(--smc-gold-deep, #8E6830);
	--smcp-gold-tint: var(--smc-gold-tint, #F7EFE1);
	--smcp-jade: var(--smc-jade, #2E8A72);
	--smcp-jade-tint: var(--smc-jade-tint, #E4F1EC);
	--smcp-clay: var(--smc-clay, #C0614A);
	--smcp-clay-tint: var(--smc-clay-tint, #FAE9E4);
	--smcp-plum: var(--smc-plum, #6B5B95);
	--smcp-serif: 'Cormorant Garamond', Georgia, serif;
	--smcp-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color-scheme: light;
}

/* ── Base ───────────────────────────────────────────────────────── */

body.smcp-body {
	margin: 0;
	background: var(--smcp-canvas);
	color: var(--smcp-ink);
	font-family: var(--smcp-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
}
body.smcp-body * { box-sizing: border-box; }
body.smcp-body a { color: var(--smcp-gold-deep); }
body.smcp-body img { max-width: 100%; height: auto; }

.smcp-main {
	max-width: var(--smcp-max);
	margin: 0 auto;
	padding: calc(var(--smcp-top) + 12px) var(--smcp-pad) calc(var(--smcp-tabs) + 32px + env(safe-area-inset-bottom));
}
.smcp-route-acceso .smcp-main,
.smcp-route-registro .smcp-main { padding-bottom: 40px; }

.smcp-main h1, .smcp-main h2, .smcp-main h3 {
	font-family: var(--smcp-serif);
	font-weight: 600;
	color: var(--smcp-ink);
	letter-spacing: -.01em;
	line-height: 1.15;
}
.smcp-main h1 { font-size: clamp(30px, 8vw, 38px); margin: 0 0 6px; }
.smcp-main h2 { font-size: 24px; margin: 0 0 6px; }
.smcp-page-title { margin-top: 8px !important; }

.smcp-eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--smcp-gold-deep);
}
.smcp-muted { color: var(--smcp-ink-3); font-size: 14px; }
.smcp-lead { color: var(--smcp-ink-2); margin: 6px 0 0; }

/* ── Barra superior ─────────────────────────────────────────────── */

.smcp-top {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: calc(var(--smcp-top) + env(safe-area-inset-top));
	padding: env(safe-area-inset-top) var(--smcp-pad) 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(250, 248, 245, .94);
	border-bottom: 1px solid var(--smcp-line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.smcp-top { background: rgba(250, 248, 245, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
.smcp-top .smcp-top-logo img { display: block; height: 34px; width: auto; max-width: 200px; }
.smcp-cart {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--smcp-ink) !important;
}
.smcp-cart svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.smcp-cart-n {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--smcp-gold-deep);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

/* ── Barra inferior ─────────────────────────────────────────────── */

.smcp-tabs {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 50;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	height: calc(var(--smcp-tabs) + env(safe-area-inset-bottom));
	padding: 0 4px env(safe-area-inset-bottom);
	background: #fff;
	border-top: 1px solid var(--smcp-line);
	box-shadow: 0 -6px 24px -18px rgba(32, 29, 41, .3);
}
.smcp-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--smcp-ink-3) !important;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.smcp-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.smcp-tab.is-on { color: var(--smcp-gold-deep) !important; }
.smcp-tab.is-on svg { stroke-width: 2.1; }
@media (min-width: 720px) {
	.smcp-tabs { max-width: var(--smcp-max); left: 50%; transform: translateX(-50%); bottom: 16px; border-radius: 22px; border: 1px solid var(--smcp-line); height: var(--smcp-tabs); padding-bottom: 0; }
}

/* ── Tarjetas y botones ─────────────────────────────────────────── */

.smcp-card {
	background: #fff;
	border: 1px solid var(--smcp-line);
	border-radius: var(--smcp-radius);
	box-shadow: var(--smcp-shadow);
	padding: 20px 18px;
	margin: 0 0 16px;
}
.smcp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.smcp-card-head h2 { margin: 0; }
.smcp-empty { text-align: center; padding: 32px 22px; }
.smcp-empty p { color: var(--smcp-ink-2); }
.smcp-hello { margin: 8px 2px 20px; }

.smcp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font: 600 15.5px/1.2 var(--smcp-sans);
	text-decoration: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform .12s ease, background-color .15s ease;
}
.smcp-btn:active { transform: scale(.98); }
.smcp-btn--primary { background: var(--smcp-ink); color: #fff !important; }
.smcp-btn--primary:hover { background: #34303f; }
.smcp-btn--ghost { background: #fff; border-color: var(--smcp-line); color: var(--smcp-ink) !important; }
.smcp-btn--block { display: flex; width: 100%; }
.smcp-btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.smcp-btn[disabled] { opacity: .55; cursor: default; }
.smcp-btn:focus-visible, .smcp-tab:focus-visible, .smcp-check:focus-visible, .smcp-add:focus-visible { outline: 3px solid var(--smcp-gold); outline-offset: 2px; }
.smcp-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.smcp-row .smcp-btn { flex: 1 1 auto; }
.smcp-inline { display: inline; margin: 0; }

.smcp-notice {
	display: block;
	padding: 14px 16px;
	margin: 0 0 14px;
	border-radius: 14px;
	background: var(--smcp-gold-tint);
	color: var(--smcp-ink) !important;
	text-decoration: none !important;
	font-size: 15px;
}
.smcp-notice--ok { background: var(--smcp-jade-tint); }
.smcp-notice--warn { background: var(--smcp-clay-tint); }

/* ── Hoy: rutina del momento ────────────────────────────────────── */

.smcp-today-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.smcp-today-head .smcp-muted { margin: 2px 0 0; }
.smcp-ring { width: 62px; height: 62px; }
.smcp-today.is-saving { opacity: .7; }

.smcp-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.smcp-step {
	display: grid;
	grid-template-columns: 44px auto 1fr;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--smc-hairline-soft, #F2EEE8);
}
.smcp-step:first-child { border-top: 0; }
.smcp-step:not(:has(.smcp-step-img)) { grid-template-columns: 44px 1fr; }
.smcp-step.is-off { opacity: .55; }
.smcp-step-img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; background: var(--smc-surface-sunk, #F4F1EC); }
.smcp-step-txt b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.smcp-step-txt span { display: block; font-size: 13.5px; color: var(--smcp-ink-3); line-height: 1.4; margin-top: 2px; }

.smcp-check {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--smcp-line);
	background: #fff;
	color: transparent;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
}
.smcp-check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.smcp-check.is-done { background: var(--smcp-jade); border-color: var(--smcp-jade); color: #fff; }
.smcp-check.is-locked { cursor: default; }
.smcp-check:active { transform: scale(.92); }
.smcp-check.is-rest { color: var(--smcp-ink-3); font-weight: 700; cursor: default; border-style: dashed; }

.smcp-sealed {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--smcp-jade-tint);
}
.smcp-sealed svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--smcp-jade); stroke-width: 2.4; }
.smcp-sealed b { display: block; }
.smcp-sealed span { font-size: 14px; color: var(--smcp-ink-2); }
.smcp-sealed[hidden] { display: none; }

.smcp-streak { margin: 14px 0 6px; font-size: 14px; color: var(--smcp-ink-2); }
.smcp-streak span:first-child { font-weight: 700; color: var(--smcp-ink); }
.smcp-week { display: flex; gap: 6px; }

/* ── Hoy: reposición, nota, instalar ────────────────────────────── */

.smcp-replenish { border-color: #EBD9BC; background: linear-gradient(180deg, #FFFCF6, #fff); }
.smcp-items { list-style: none; margin: 10px 0 16px; padding: 0; }
.smcp-items li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.smcp-items img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; }
.smcp-items div { flex: 1; min-width: 0; }
.smcp-items b { display: block; font-size: 15px; }
.smcp-items span { font-size: 13.5px; color: var(--smcp-gold-deep); }
.smcp-items span.is-late { color: var(--smcp-clay); }
.smcp-items em { font-style: normal; font-weight: 600; }
.smcp-replenish form button { width: 100%; }

.smcp-note blockquote {
	margin: 8px 0 0;
	padding: 0 0 0 14px;
	border-left: 3px solid var(--smcp-gold);
	font-family: var(--smcp-serif);
	font-size: 20px;
	line-height: 1.4;
	color: var(--smcp-ink);
}

.smcp-install { display: flex; gap: 14px; align-items: flex-start; }
.smcp-install-ico img { border-radius: 12px; border: 1px solid var(--smcp-line); }
.smcp-install p { margin: 0 0 12px; color: var(--smcp-ink-2); font-size: 15px; }
.smcp-install ol { margin: 0 0 12px; padding-left: 20px; color: var(--smcp-ink-2); font-size: 15px; }
[data-smcp-install][hidden], [data-smcp-push][hidden] { display: none !important; }

.smcp-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 0; }
.smcp-quick a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 6px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--smcp-line);
	color: var(--smcp-ink) !important;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
}
.smcp-quick svg { width: 24px; height: 24px; fill: none; stroke: var(--smcp-gold-deep); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

/* ── Tienda ─────────────────────────────────────────────────────── */

.smcp-due {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	margin: 0 0 14px;
	border-radius: 14px;
	background: var(--smcp-gold-tint);
}
.smcp-due p { margin: 0; }
.smcp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.smcp-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.smcp-tile-img {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 16px;
	overflow: hidden;
	background: var(--smc-surface-sunk, #F4F1EC);
	font-family: var(--smcp-serif);
	font-size: 40px;
	color: var(--smcp-gold);
	text-decoration: none !important;
}
.smcp-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.smcp-tile-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--smcp-ink) !important; text-decoration: none !important; }
.smcp-chip {
	display: inline-block;
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: var(--smc-surface-sunk, #F4F1EC);
	color: var(--smcp-ink-2);
}
.smcp-chip.is-ok { background: var(--smcp-jade-tint); color: #1F6B57; }
.smcp-chip.is-soon { background: var(--smcp-gold-tint); color: var(--smcp-gold-deep); }
.smcp-chip.is-late { background: var(--smcp-clay-tint); color: #A04A34; }
.smcp-add {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: 4px;
	min-height: 42px;
	padding: 6px 6px 6px 14px;
	border-radius: 999px;
	border: 1.5px solid var(--smcp-line);
	background: #fff;
	font: 600 15px var(--smcp-sans);
	color: var(--smcp-ink);
	cursor: pointer;
}
.smcp-add svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--smcp-ink); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.smcp-add.is-added svg { background: var(--smcp-jade); }
.smcp-add.is-busy { opacity: .6; }
.smcp-soldout { font-size: 13px; color: var(--smcp-ink-3); margin-top: 6px; }

.smcp-back { display: inline-block; margin: 0 0 12px; font-weight: 600; text-decoration: none !important; }
.smcp-product h1 { margin-top: 16px; }
.smcp-product-img { aspect-ratio: 1; border-radius: var(--smcp-radius); overflow: hidden; background: #fff; border: 1px solid var(--smcp-line); }
.smcp-product-img img { width: 100%; height: 100%; object-fit: contain; }
.smcp-price { font-size: 22px; font-weight: 700; margin: 4px 0 12px; }
.smcp-product h2 { margin-top: 24px; font-size: 22px; }
.smcp-product .smcp-btn--block { margin: 16px 0; }
.smcp-details { margin: 16px 0; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--smcp-line); }
.smcp-details summary { font-weight: 600; cursor: pointer; }
.smcp-trust { margin: 24px 0 0; padding: 16px 16px 16px 34px; border-radius: 16px; background: var(--smcp-gold-tint); font-size: 14.5px; color: var(--smcp-ink-2); }
.smcp-trust li + li { margin-top: 6px; }

.smcp-legal { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--smcp-line); font-size: 12.5px; color: var(--smcp-ink-3); }
.smcp-legal p { margin: 0 0 6px; }

/* ── Cuenta ─────────────────────────────────────────────────────── */

.smcp-account h2 { margin-top: 24px; }
.smcp-consents { list-style: none; margin: 12px 0; padding: 0; }
.smcp-consent { margin: 0 0 10px; border-radius: 16px; background: #fff; border: 1px solid var(--smcp-line); }
.smcp-consent summary { display: block; padding: 14px 16px; cursor: pointer; list-style: none; }
.smcp-consent summary::-webkit-details-marker { display: none; }
.smcp-consent summary b { display: block; }
.smcp-consent summary span { font-size: 13.5px; color: var(--smcp-ink-3); }
.smcp-consent.is-firmado summary span { color: #1F6B57; }
.smcp-consent.is-required.is-pendiente summary span, .smcp-consent.is-version_anterior summary span { color: #A04A34; }
.smcp-consent > details > :not(summary) { margin: 0 16px 16px; }
.smcp-doc { font-size: 14.5px; color: var(--smcp-ink-2); }
.smcp-sign canvas { width: 100%; height: 160px; border: 1.5px dashed var(--smcp-gold); border-radius: 14px; background: #fff; touch-action: none; }
.smcp-arco { display: grid; gap: 12px; margin: 16px 0; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--smcp-line); }
.smcp-arco label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.smcp-arco select, .smcp-arco textarea { width: 100%; max-width: 100%; font: 16px var(--smcp-sans); padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--smcp-line); background: #fff; }
.smcp-requests { padding-left: 18px; font-size: 14px; color: var(--smcp-ink-2); }
.smcp-switch { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.smcp-switch input { width: 22px; height: 22px; accent-color: var(--smcp-jade); }

/* WooCommerce "Mi cuenta" dentro del marco */
.smcp-route-cuenta .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.smcp-route-cuenta .woocommerce-MyAccount-navigation li a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--smcp-line); color: var(--smcp-ink) !important; text-decoration: none !important; font-size: 14px; font-weight: 600; }
.smcp-route-cuenta .woocommerce-MyAccount-navigation li.is-active a { background: var(--smcp-ink); color: #fff !important; border-color: var(--smcp-ink); }
.smcp-route-cuenta .woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--smcp-line); border-radius: var(--smcp-radius); padding: 18px; }

/* ── Pantalla de acceso por enlace ──────────────────────────────── */

.smcp-gate { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; background: var(--smcp-canvas); }
.smcp-gate-card { width: 100%; max-width: 420px; padding: 32px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--smcp-line); box-shadow: var(--smcp-shadow); text-align: center; }
.smcp-gate-logo { height: 52px; width: auto; margin: 0 auto 20px; display: block; }
.smcp-gate h1 { font-family: var(--smcp-serif); font-size: 30px; margin: 0 0 8px; }
.smcp-gate p { color: var(--smcp-ink-2); }
.smcp-gate .smcp-btn { margin-top: 12px; }

/* ── Aviso flotante ─────────────────────────────────────────────── */

.smcp-toast {
	position: fixed;
	left: 50%;
	bottom: calc(var(--smcp-tabs) + 20px + env(safe-area-inset-bottom));
	z-index: 60;
	transform: translate(-50%, 12px);
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	border-radius: 14px;
	background: var(--smcp-ink);
	color: #fff;
	font-size: 14.5px;
	font-weight: 500;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.smcp-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.smcp-toast a { color: #F3D9A8 !important; font-weight: 700; margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
	.smcp-btn, .smcp-check, .smcp-toast { transition: none; }
}

/* ── Acceso con código (/acceso/) ───────────────────────────────── */

.smcp-login {
	max-width: 420px;
	margin: 12px auto 0;
	padding: 28px 22px 24px;
	background: #fff;
	border: 1px solid var(--smcp-line);
	border-radius: 24px;
	box-shadow: var(--smcp-shadow);
}
.smcp-login > p { color: var(--smcp-ink-2); margin: 0 0 18px; }
.smcp-login-form { display: grid; gap: 10px; margin: 0 0 6px; }
.smcp-login-form label { font-size: 14px; font-weight: 600; color: var(--smcp-ink-2); }
.smcp-login-form input:not([type="hidden"]) {
	width: 100%;
	min-height: 54px;
	padding: 13px 16px;
	border: 1.5px solid var(--smcp-line);
	border-radius: 14px;
	background: #fff;
	font: 400 17px/1.4 var(--smcp-sans);
	color: var(--smcp-ink);
	-webkit-appearance: none;
	appearance: none;
}
.smcp-login-form input:focus { border-color: var(--smcp-gold); outline: 3px solid var(--smcp-gold-tint); outline-offset: 0; }
.smcp-login-form .smcp-btn { margin-top: 6px; }
.smcp-login-form input.smcp-code {
	text-align: center;
	font: 600 30px/1 var(--smcp-sans);
	letter-spacing: .38em;
	padding-left: calc(16px + .38em);
	font-variant-numeric: tabular-nums;
}
.smcp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.smcp-form-error, .smcp-form-ok {
	margin: 0 0 14px !important;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14.5px;
	font-weight: 500;
}
.smcp-form-error { background: var(--smcp-clay-tint); color: #8F3D2B !important; }
.smcp-form-ok { background: var(--smcp-jade-tint); color: #1F6552 !important; }
.smcp-resend { margin: 8px 0 4px; text-align: center; }
.smcp-link {
	padding: 8px 4px;
	border: 0;
	background: none;
	font: 600 14.5px/1.2 var(--smcp-sans);
	color: var(--smcp-gold-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.smcp-link[disabled] { color: var(--smcp-ink-3); text-decoration: none; cursor: default; }
.smcp-login-alt { margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--smcp-line); }
.smcp-login-alt p { margin: 0 0 10px; font-size: 14.5px; color: var(--smcp-ink-2); }
.smcp-login .smcp-muted { margin: 12px 0 0; text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Envío gratis */
.smcp-ship {
	margin: 4px 0 14px;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--smcp-jade-tint);
	color: #1F6552;
	font-size: 14px;
	line-height: 1.45;
}
.smcp-ship strong { color: #164D3F; }

/* Lada + celular o correo */
.smcp-id-row { display: flex; gap: 8px; }
.smcp-id-row .smcp-cc {
	flex: 0 0 auto;
	width: auto;
	min-height: 54px;
	padding: 0 10px;
	border: 1.5px solid var(--smcp-line);
	border-radius: 14px;
	background: #fff;
	font: 500 16px/1 var(--smcp-sans);
	color: var(--smcp-ink);
}
.smcp-id-row input { flex: 1; min-width: 0; }
.smcp-login .smcp-cc-help { margin: -2px 0 0 !important; text-align: left !important; font-size: 13px; }

/* ══ Botones de WooCommerce con el estilo del portal (todas las pantallas) ══ */

.smcp-body .wc-block-components-button:not(.is-link):not(.wc-block-components-totals-coupon__button),
.smcp-body .wc-block-cart__submit-button,
.smcp-body .wc-block-components-checkout-place-order-button {
	min-height: 54px;
	border: 0;
	border-radius: 999px;
	background: var(--smcp-ink);
	color: #fff !important;
	font: 600 16px/1.2 var(--smcp-sans);
	text-decoration: none !important;
	box-shadow: none;
}
.smcp-body .wc-block-components-button:not(.is-link):hover { background: #34303f; }
.smcp-body .wc-block-components-button .wc-block-components-button__text { color: #fff; }

/* "Mi cuenta": WooCommerce pone menú y contenido flotando a 30/70; aquí van uno arriba del otro. */
.smcp-route-cuenta .woocommerce-MyAccount-navigation,
.smcp-route-cuenta .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.smcp-route-cuenta .woocommerce-MyAccount-navigation ul { align-items: center; }
.smcp-route-cuenta .woocommerce-MyAccount-navigation li { list-style: none; margin: 0; padding: 0; }

/* Elementos solo de escritorio */
.smcp-side-brand, .smcp-side-extra, .smcp-brand { display: none; }

/* ══ Escritorio (≥ 1024 px): el mismo lenguaje que la Cabina ══════════ */

@media (min-width: 1024px) {
	:root { --smcp-side: 260px; --smcp-content: 1080px; }

	/* Con sesión: barra lateral fija y contenido ancho */
	body.smcp-inside .smcp-top { display: none; }
	body.smcp-inside .smcp-main {
		max-width: none;
		margin: 0 0 0 var(--smcp-side);
		padding: 44px max(48px, calc((100vw - var(--smcp-side) - var(--smcp-content)) / 2)) 80px;
	}
	body.smcp-inside .smcp-tabs {
		inset: 0 auto 0 0;
		left: 0;
		bottom: 0;
		transform: none;
		width: var(--smcp-side);
		max-width: none;
		height: 100%;
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 28px 16px 24px;
		border: 0;
		border-right: 1px solid var(--smcp-line);
		border-radius: 0;
		box-shadow: none;
		background: #fff;
		overflow-y: auto;
	}
	body.smcp-inside .smcp-side-brand { display: block; padding: 2px 12px 26px; }
	body.smcp-inside .smcp-side-brand img { display: block; height: 42px; width: auto; }
	body.smcp-inside .smcp-tab {
		flex-direction: row;
		justify-content: flex-start;
		gap: 14px;
		min-height: 46px;
		padding: 10px 14px;
		border-radius: 12px;
		font-size: 15px;
		color: var(--smcp-ink-2) !important;
	}
	body.smcp-inside .smcp-tab:hover { background: #F6F2EC; }
	body.smcp-inside .smcp-tab.is-on { background: var(--smcp-gold-tint); color: var(--smcp-gold-deep) !important; }
	body.smcp-inside .smcp-tab svg { width: 22px; height: 22px; flex: none; }
	body.smcp-inside .smcp-side-extra { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--smcp-line); }
	body.smcp-inside .smcp-tab--quiet { color: var(--smcp-ink-3) !important; }
	.smcp-side-count {
		margin-left: auto;
		min-width: 24px;
		height: 24px;
		padding: 0 7px;
		border-radius: 12px;
		background: var(--smcp-gold-deep);
		color: #fff;
		font-size: 12.5px;
		line-height: 24px;
		text-align: center;
	}
	body.smcp-inside .smcp-main h1 { font-size: 44px; }
	body.smcp-inside .smcp-hello { margin: 0 0 24px; }
	body.smcp-inside .smcp-ship { max-width: none; }

	/* Hoy: rutina a la izquierda; nota, reposición y accesos a la derecha */
	.smcp-day { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
	.smcp-day-main > .smcp-card:last-child, .smcp-day-side > :last-child { margin-bottom: 0; }

	/* Tienda: más productos por fila */
	body.smcp-inside .smcp-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 18px; }

	/* Rutina (marcado de la v1): mañana y noche lado a lado */
	body.smcp-inside .smc-portal { padding: 0; min-height: 0; background: transparent; }
	body.smcp-inside .smc-portal > * { max-width: none; }
	body.smcp-inside .smc-routine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-items: start; }
	body.smcp-inside .smc-routine > * { grid-column: 1 / -1; }
	body.smcp-inside .smc-routine > .smc-routine-section { grid-column: auto; }
	body.smcp-inside .smc-routine > :not(.smc-routine-section) { max-width: none; margin-left: 0; margin-right: 0; }
	body.smcp-inside .smc-routine-section,
	body.smcp-inside .smc-routine-step { max-width: none; margin-left: 0; margin-right: 0; }
	body.smcp-inside .smc-routine > .smc-routine-header { margin-bottom: 26px; }
	body.smcp-inside .smc-routine > .smc-routine-download-btn { justify-self: start; }

	/* Mi cuenta: menú arriba y contenido a lo ancho */
	body.smcp-inside.smcp-route-cuenta .woocommerce { display: block; }

	/* Acceso y registro: panel de marca a la izquierda, formulario a la derecha */
	body.smcp-public .smcp-top { display: none; }
	body.smcp-public .smcp-brand {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 1;
		width: min(42vw, 580px);
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 32px;
		padding: 48px 56px;
		background:
			radial-gradient(120% 70% at 0% 0%, rgba(176, 131, 64, .18), transparent 60%),
			linear-gradient(165deg, #FBF5EA 0%, #F1E6D4 100%);
		border-right: 1px solid var(--smcp-line);
		overflow-y: auto;
	}
	.smcp-brand-logo { width: 240px; height: auto; }
	.smcp-brand-body h2 { font: 600 clamp(40px, 3.6vw, 54px)/1.05 var(--smcp-serif); letter-spacing: -.01em; color: var(--smcp-ink); margin: 10px 0 14px; text-wrap: balance; }
	.smcp-brand-body > p:not(.smcp-eyebrow) { font-size: 17px; color: var(--smcp-ink-2); margin: 0 0 22px; max-width: 34ch; }
	.smcp-brand-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
	.smcp-brand-body li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--smcp-ink); }
	.smcp-brand-body li svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #fff; fill: none; stroke: var(--smcp-gold-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
	.smcp-brand-foot { margin: 0; font-size: 13px; color: var(--smcp-ink-3); }
	body.smcp-public .smcp-main {
		max-width: none;
		min-height: 100vh;
		margin: 0 0 0 min(42vw, 580px);
		padding: 9vh max(40px, calc((100vw - min(42vw, 580px) - 560px) / 2)) 64px;
	}
	body.smcp-public .smcp-login { margin-top: 0; padding: 36px 34px 30px; }
	body.smcp-public .smci-top { top: 0; }
}

@media (min-width: 1440px) {
	body.smcp-inside .smcp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	/* En carrito y pago se marca "Carrito" (abajo), no "Tienda". */
	body.smcp-inside.smcp-route-carrito .smcp-tabs > .smcp-tab.is-on,
	body.smcp-inside.smcp-route-pago .smcp-tabs > .smcp-tab.is-on { background: transparent; color: var(--smcp-ink-2) !important; }
}

/* Campos de carrito y pago con las mismas esquinas que el resto del portal */
.smcp-body .wc-block-components-text-input input,
.smcp-body .wc-blocks-components-select .wc-blocks-components-select__select,
.smcp-body .wc-block-components-textarea,
.smcp-body .wc-block-components-quantity-selector { border-radius: 12px !important; }
.smcp-body .wc-block-checkout__shipping-method-container,
.smcp-body .wc-block-checkout__shipping-method-option { border-radius: 14px !important; }
.smcp-body .wc-block-components-sidebar .wc-block-components-panel,
.smcp-body .wp-block-woocommerce-checkout-order-summary-block { border-radius: 16px; }
@media (min-width: 1024px) {
	/* El panel de marca ya dice el título y los tres puntos de la bienvenida. */
	body.smcp-public .smci-welcome > h1,
	body.smcp-public .smci-facts { display: none; }
	body.smcp-public .smci-welcome .smci-lead { font-size: 18px; margin-top: 4px; }
}

/* ══ Tableta (720–1023 px): columna más ancha, logo alineado al contenido ══ */
@media (min-width: 720px) and (max-width: 1023px) {
	:root { --smcp-max: 720px; }
	.smcp-top { padding-inline: max(var(--smcp-pad), calc((100vw - var(--smcp-max)) / 2 + var(--smcp-pad))); }
	body.smcp-inside .smcp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.smcp-inside .smc-portal { padding: 0; min-height: 0; background: transparent; }
}

/* ══ Rutina (11-oct): las mismas piezas que "Hoy" ═════════════════════ */

.smcp-routine-day .smcp-row { margin-top: 14px; }
.smcp-routine-slot > .smcp-eyebrow + h2 { margin-bottom: 0; }
.smcp-routine-slot > .smcp-muted { margin: 2px 0 0; }
.smcp-steps--full .smcp-step { align-items: start; padding: 14px 0; }
.smcp-steps--full .smcp-check { margin-top: 2px; }
.smcp-step-txt .smcp-step-note { color: var(--smcp-gold-deep); font-weight: 500; }
.smcp-step-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.smcp-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; }
.smcp-step-actions .smcp-link { padding: 6px 0; font-size: 14px; }
.smcp-add--sm { min-height: 36px; margin: 0 0 0 auto; padding: 4px 4px 4px 12px; font-size: 14px; }
.smcp-add--sm svg { width: 26px; height: 26px; padding: 5px; }
.smcp-routine-more h2 { margin-bottom: 2px; }
.smcp-routine-more .smcp-inline { display: contents; }
/* Desglose de la rutina (15-oct): precio a la derecha, total con línea arriba. */
.smcp-desglose .smcp-items { margin-bottom: 4px; }
.smcp-desglose .smcp-items li { align-items: flex-start; border-bottom: 1px solid var(--smcp-line); padding: 10px 0; }
.smcp-desglose .smcp-items span { color: var(--smcp-ink-3); }
.smcp-desglose .smcp-items small { display: block; margin-top: 2px; font-size: 12.5px; }
.smcp-desglose .smcp-items em { white-space: nowrap; padding-top: 1px; }
.smcp-desglose .smcp-items em.is-pending { font-weight: 500; font-size: 13px; color: var(--smcp-ink-3); }
.smcp-desglose-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; font-size: 17px; }
.smcp-desglose-total b { font-size: 22px; }
@media (min-width: 1024px) {
	.smcp-routine-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
	.smcp-routine-cols > .smcp-card { margin: 0; }
	.smcp-routine-cols + * { margin-top: 24px; }
}

/* Tienda: cada cuánto lo usa */
.smcp-tile-freq { font-size: 12.5px; line-height: 1.35; color: var(--smcp-gold-deep); font-weight: 600; }
.smcp-product-freq { margin: -4px 0 8px; }

/* Marca, discreta sobre el nombre, y cantidad recomendada (12-oct) */
.smcp-tile-brand,
.smcp-product-brand {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--smcp-ink-3);
	overflow-wrap: anywhere;
}
.smcp-tile-brand { margin-top: 2px; }
.smcp-tile-brand + .smcp-tile-name { margin-top: -2px; }
.smcp-product-brand { margin: 16px 0 0; font-size: 12.5px; }
.smcp-product-brand + h1 { margin-top: 4px; }
.smcp-step-txt .smcp-step-qty { color: var(--smcp-ink-2); }
.smcp-product-qty { margin-top: 8px; }
.smcp-product-qty b { font-weight: 600; color: var(--smcp-ink); }

/* ══ Mi cuenta (11-oct) ═══════════════════════════════════════════════ */

.smcp-hello--sub { margin: 0 2px 12px; }
.smcp-sub-lead { margin: -4px 2px 16px; }
.smcp-sub-foot { margin: 8px 2px 0; }

.smcp-facts { margin: 0; display: grid; gap: 12px; }
.smcp-facts > div { display: grid; gap: 2px; }
.smcp-facts dt { font-size: 13px; color: var(--smcp-ink-3); font-weight: 500; }
.smcp-facts dd { margin: 0; font-size: 15.5px; color: var(--smcp-ink); overflow-wrap: anywhere; }
.smcp-facts dd ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 2px; }
.smcp-facts dd li span { color: var(--smcp-ink-3); }
.smcp-facts-action { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
.smcp-facts-action dt, .smcp-facts-action dd { grid-column: 1; }
.smcp-facts-action > a { grid-column: 2; grid-row: 1 / span 2; }

.smcp-access .smcp-facts { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.smcp-access-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--smcp-gold-tint); font-size: 14.5px; color: var(--smcp-ink-2); }
.smcp-access-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--smcp-gold-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.smcp-menu { padding: 6px 0; }
.smcp-menu ul { list-style: none; margin: 0; padding: 0; }
.smcp-menu li + li { border-top: 1px solid var(--smc-hairline-soft, #F2EEE8); }
.smcp-menu a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 18px; color: var(--smcp-ink) !important; text-decoration: none !important; }
.smcp-menu a > svg:first-child { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--smcp-gold-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.smcp-menu a > span { flex: 1; min-width: 0; }
.smcp-menu b { display: block; font-size: 15.5px; font-weight: 600; }
.smcp-menu small { display: block; font-size: 13.5px; color: var(--smcp-ink-3); }
.smcp-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--smcp-ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.smcp-menu a:hover { background: #FBF8F3; }
.smcp-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Pedidos */
.smcp-orders { list-style: none; margin: 0; padding: 0; }
.smcp-order { padding: 0; }
.smcp-order > a { display: grid; gap: 4px; padding: 16px 18px; color: var(--smcp-ink) !important; text-decoration: none !important; }
.smcp-order > .smcp-btn { margin: 0 18px 16px; }
.smcp-order-top { display: flex; justify-content: space-between; gap: 12px; }
.smcp-order-top b { font-size: 16px; }
.smcp-order-top em { font-style: normal; font-weight: 700; }
.smcp-order .smcp-chip { margin-top: 4px; }
.smcp-order-date { margin: -6px 2px 8px; }
.smcp-order-status { margin: 0 2px 16px; }
.smcp-order-status .smcp-chip { font-size: 13px; padding: 5px 12px; }
.smcp-order-status p { margin: 6px 0 0; }
.smcp-order-items li { align-items: flex-start; }
.smcp-order-items .smcp-muted { display: block; color: var(--smcp-ink-3) !important; }
.smcp-totals { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--smcp-line); display: grid; gap: 6px; }
.smcp-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.smcp-totals dt { color: var(--smcp-ink-2); }
.smcp-totals dd { margin: 0; text-align: right; }
.smcp-totals .is-total { font-weight: 700; font-size: 17px; padding-top: 6px; }
.smcp-totals .is-total dt { color: var(--smcp-ink); }
.smcp-notes { list-style: none; margin: 0; padding: 0; }
.smcp-notes small { color: var(--smcp-ink-3); }

/* Recoger en cabina */
.smcp-card.smcp-pickup { background: linear-gradient(180deg, #FFFCF6, #fff); border-color: #EBD9BC; }
.smcp-card.smcp-pickup h2 { margin-bottom: 12px; }
.smcp-card.smcp-pickup dd a { font-weight: 600; }

/* Formularios de "Mis datos" y "Mi salud" */
.smcp-form { display: grid; gap: 18px; }
.smcp-form > .smcp-form-error, .smcp-form > .smcp-notice { margin: 0 !important; }
.smcp-form .smcp-row { margin-top: 2px; }
.smcp-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.smcp-field > span, .smcp-field > legend, .smcp-group > legend { font-size: 15px; font-weight: 600; color: var(--smcp-ink); padding: 0; }
.smcp-help { font-size: 13.5px; color: var(--smcp-ink-3); }
.smcp-field input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
.smcp-field select,
.smcp-field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1.5px solid var(--smcp-line);
	border-radius: 14px;
	background: #fff;
	font: 400 16px/1.4 var(--smcp-sans);
	color: var(--smcp-ink);
}
.smcp-field textarea { min-height: 96px; resize: vertical; }
.smcp-field input:focus, .smcp-field select:focus, .smcp-field textarea:focus { border-color: var(--smcp-gold); outline: 3px solid var(--smcp-gold-tint); outline-offset: 0; }
.smcp-group { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--smcp-line); border-radius: 16px; min-width: 0; }
.smcp-group > legend { padding: 0 6px; }
.smcp-group .smcp-field > span { font-weight: 500; font-size: 14px; color: var(--smcp-ink-2); }
.smcp-q[hidden], .smcp-group[hidden] { display: none !important; }
.smcp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.smcp-chip-opt { position: relative; }
.smcp-chip-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.smcp-chip-opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--smcp-line); background: #fff; font-size: 15px; font-weight: 500; color: var(--smcp-ink); }
.smcp-chip-opt input:checked + span { background: var(--smcp-ink); border-color: var(--smcp-ink); color: #fff; }
.smcp-chip-opt input:focus-visible + span { outline: 3px solid var(--smcp-gold); outline-offset: 2px; }
.smcp-scale > span { display: flex; justify-content: space-between; gap: 8px; }
.smcp-scale output { font-weight: 700; color: var(--smcp-gold-deep); }
.smcp-scale input[type="range"] { width: 100%; accent-color: var(--smcp-gold-deep); }
.smcp-scale-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--smcp-ink-3); }
.smcp-form.smcp-login-form { gap: 12px; }
.smcp-form.smcp-login-form > p { margin: 0; }

/* ══ Pago (11-oct): recoger en cabina con solo nombre y celular ══════ */

body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-address-form__country,
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-address-form__address_1,
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-address-form__address_2,
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-address-form__address_2-toggle,
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-address-form__city,
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-address-form__state,
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-address-form__postcode { display: none !important; }
/* El título "Dirección de facturación" no aplica a quien recoge. */
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-checkout-step__title { font-size: 0 !important; }
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-checkout-step__title::after { content: "¿Quién lo recoge?"; font-size: 22px; }
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-address-form__first_name,
body.smcp-is-pickup .wc-block-checkout__billing-fields .wc-block-components-address-form__last_name { flex-basis: 100% !important; }
/* Con envío, la facturación es la misma dirección: el CFDI solo pide C.P. fiscal (en "Quiero factura"). */
.smcp-route-pago .wc-block-checkout__use-address-for-billing { display: none !important; }
.smcp-facts-empty dd { font-size: 14px; color: var(--smcp-ink-3); }
.smcp-facts-empty summary { cursor: pointer; color: var(--smcp-gold-deep); font-weight: 600; }
.smcp-facts-empty ul { margin-top: 6px !important; }
.smcp-order .smcp-chip { justify-self: start; }
.smcp-order-top b { font-weight: 700; }
/* El resumen va abierto arriba (portal.js); abajo, junto al botón, solo los totales. */
.smcp-route-pago .checkout-order-summary-block-fill-wrapper > .wc-block-components-checkout-step__heading,
.smcp-route-pago .checkout-order-summary-block-fill-wrapper .wp-block-woocommerce-checkout-order-summary-cart-items-block,
.smcp-route-pago .checkout-order-summary-block-fill-wrapper .wp-block-woocommerce-checkout-order-summary-coupon-form-block { display: none !important; }
/* Confirmación del pedido */
body.smcp-order-pickup .wc-block-order-confirmation-billing-wrapper,
body.smcp-order-pickup .wp-block-woocommerce-order-confirmation-billing-wrapper,
body.smcp-order-no-invoice .wp-block-woocommerce-order-confirmation-additional-fields-wrapper,
body.smcp-order-no-invoice .wc-block-order-confirmation-additional-fields-wrapper { display: none !important; }
/* Datos de factura en la confirmación: en celular, etiqueta arriba y valor abajo (antes se salía de la pantalla). */
.smcp-body .wc-block-components-additional-fields-list { grid-template-columns: minmax(0, 1fr) !important; }
.smcp-body .wc-block-components-additional-fields-list dt { border-bottom: 0 !important; padding-bottom: 0 !important; }
.smcp-body .wc-block-components-additional-fields-list dd { text-align: left !important; overflow-wrap: anywhere; padding-top: 2px !important; }
@media (min-width: 720px) {
	.smcp-body .wc-block-components-additional-fields-list { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) !important; }
	.smcp-body .wc-block-components-additional-fields-list dt { border-bottom: inherit; }
}

/* Mi cuenta: celular primero el menú… en una columna; en escritorio, datos a la izquierda y menú a la derecha. */
.smcp-account-home { display: flex; flex-direction: column; }
.smcp-account-home .smcp-account-id { display: contents; }
.smcp-account-home .smcp-logout { order: 3; }
.smcp-account-home .smcp-menu { order: 2; }
@media (min-width: 1024px) {
	.smcp-account-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 24px; align-items: start; }
	.smcp-account-home .smcp-account-id { display: block; }
	.smcp-account-home .smcp-menu { margin: 0; }
	.smcp-account-home .smcp-access .smcp-facts { grid-template-columns: 1fr; }
	body.smcp-inside.smcp-route-cuenta .smcp-main > :not(.smcp-account-home):not(.smcp-hello) { max-width: 760px; }
}
@media (min-width: 1024px) {
	.smcp-routine-day .smcp-row .smcp-btn { flex: 0 0 auto; min-width: 280px; }
}
/* Mientras no hay foto real del producto: la inicial, como en la tienda (no un cuadro blanco). */
.smcp-product-img:has(.smcp-product-noimg) { display: grid; place-items: center; background: var(--smc-surface-sunk, #F4F1EC); }
.smcp-product-noimg { font-family: var(--smcp-serif); font-size: 96px; color: var(--smcp-gold); }
/* Confirmación con la plantilla clásica de WooCommerce (la que usa este sitio). */
body.smcp-order-pickup .woocommerce-customer-details > :not(.wc-block-order-confirmation-additional-fields-wrapper) { display: none !important; }
body.smcp-order-pickup.smcp-order-no-invoice .woocommerce-customer-details { display: none !important; }

/* ── Lote 13-oct (H): "Tus visitas con Sara" en Mi progreso ─────── */
/* La galería v1 ocupaba toda la pantalla (min-height: 100vh); ahora sigue el historial. */
.smcp-main--mis-fotos .smc-photos { min-height: 0; padding-top: 8px; padding-bottom: 8px; }
.smcp-visitas { margin-top: 20px; }
.smcp-visitas h2 { margin: 0 0 4px; }
.smcp-visitas > .smcp-muted { margin: 0 0 8px; }
.smcp-visitas-list { list-style: none; margin: 0; padding: 0; }
.smcp-visita { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--smcp-line); }
.smcp-visitas-list > .smcp-visita:first-child { border-top: 0; }
.smcp-visita-main { display: flex; flex-direction: column; min-width: 0; }
.smcp-visita-main b { font-weight: 600; }
.smcp-visita-main span { color: var(--smcp-ink-2); font-size: 14.5px; }
.smcp-visita-act { flex: 0 1 auto; max-width: 100%; }
.smcp-visita-act .smcp-btn { white-space: normal; text-align: center; }
.smcp-visita-nota { margin: 0; font-size: 14px; color: var(--smcp-ink-2); max-width: 34ch; }
.smcp-visitas-mas { margin-top: 4px; border-top: 1px solid var(--smcp-line); }
.smcp-visitas-mas summary { padding: 14px 0 6px; min-height: 44px; font-weight: 600; color: var(--smcp-gold-deep); cursor: pointer; }
.smcp-visitas-mas .smcp-visitas-list > .smcp-visita:first-child { border-top: 1px solid var(--smcp-line); }
@media (max-width: 480px) {
	.smcp-visita-act { flex-basis: 100%; }
	.smcp-visita-act .smcp-btn { width: 100%; }
	.smcp-visita-nota { max-width: none; }
}

/* ── Lote 13-oct (F): firma única ("Antes de empezar", "Firmar todo") ── */

.smcp-firma { padding: 18px 16px 16px; }
.smcp-firma-main, .smcp-firma-row { display: flex; align-items: center; gap: 12px; }
.smcp-firma-main > div, .smcp-firma-row > div { flex: 1; min-width: 0; }
.smcp-firma-main b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.smcp-firma-row b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.smcp-firma-main small, .smcp-firma-row small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--smcp-ink-3); }
.smcp-firma-main small { color: var(--smcp-ink-2); }
.smcp-sw {
	position: relative;
	flex: none;
	width: 50px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: #D6CFC5;
	cursor: pointer;
	transition: background-color .18s ease;
}
.smcp-sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s ease; }
.smcp-sw[aria-checked="true"], .smcp-sw.is-fixed { background: var(--smcp-gold-deep); }
.smcp-sw[aria-checked="true"] i, .smcp-sw.is-fixed i { transform: translateX(20px); }
.smcp-sw.is-fixed { cursor: default; opacity: .9; }
.smcp-sw:focus-visible { outline: 3px solid var(--smcp-gold); outline-offset: 2px; }
.smcp-firma-more { margin-top: 12px; border-top: 1px solid var(--smcp-line); }
.smcp-firma-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 0 4px; list-style: none; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--smcp-gold-deep); }
.smcp-firma-more > summary::-webkit-details-marker { display: none; }
.smcp-firma-more > summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.smcp-firma-more[open] > summary svg { transform: rotate(180deg); }
.smcp-firma-close, .smcp-firma-more[open] .smcp-firma-open { display: none; }
.smcp-firma-more[open] .smcp-firma-close { display: inline; }
.smcp-firma-list { display: grid; gap: 10px; margin: 8px 0 4px; padding: 0; list-style: none; }
.smcp-firma-list > li, .smcp-firma-apart { padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--smcp-line); }
.smcp-firma-apart { margin-top: 12px; border-color: #D9C49E; background: #FFFCF6; }
.smcp-firma-row { flex-wrap: wrap; }
.smcp-firma-read { flex-basis: 100%; }
.smcp-firma-read > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; list-style: none; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--smcp-gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.smcp-firma-read > summary::-webkit-details-marker { display: none; }
.smcp-firma-read[open] > summary { margin-bottom: 4px; }
.smcp-firma-read .smcp-doc { padding-top: 8px; border-top: 1px solid var(--smcp-line); font-size: 14px; }
.smcp-firma-read .smcp-doc p { margin: 0 0 8px; }
@media (min-width: 560px) {
	.smcp-firma-row { flex-wrap: nowrap; }
	.smcp-firma-read { flex-basis: auto; }
	.smcp-firma-read[open] { flex-basis: 100%; }
	.smcp-firma-row:has(.smcp-firma-read[open]) { flex-wrap: wrap; }
}
.smcp-firma-privacy { margin: 14px 0 0; font-size: 13.5px; }
.smcp-firma-signer { display: grid; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 14px; }
.smcp-firma-signer input { width: 100%; min-height: 48px; padding: 10px 14px; font: 16px var(--smcp-sans); border: 1.5px solid var(--smcp-line); border-radius: 12px; background: #fff; color: var(--smcp-ink); }
.smcp-firma-signer input:focus { outline: 0; border-color: var(--smcp-gold); box-shadow: 0 0 0 3px var(--smcp-gold-tint); }
.smcp-firma-pad { margin-top: 12px; }
.smcp-firma-pad canvas {
	display: block;
	width: 100%;
	height: 170px;
	border: 1.5px dashed #CFC6BA;
	border-radius: 16px;
	background: linear-gradient(to top, transparent 44px, #E8E1D6 44px, #E8E1D6 45px, transparent 45px), #fff;
	touch-action: none;
	cursor: crosshair;
}
.smcp-firma-pad-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 13px; color: var(--smcp-ink-3); }
.smcp-firma-pad-foot .smcp-link { min-height: 40px; }
.smcp-firma-note { margin: 10px 0 0; font-size: 13.5px; }

/* "Completa tu ficha" (Hoy y Mi cuenta): suave, no alarma. */
.smcp-notice--soft { background: #fff; border: 1px solid var(--smcp-line); }
.smcp-ficha-falta span { display: block; margin-top: 2px; color: var(--smcp-gold-deep); font-weight: 600; font-size: 14px; }
.smcp-firma-lock { display: grid; place-items: center; flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--smcp-gold-tint); color: var(--smcp-gold-deep); }
.smcp-firma-lock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (min-width: 1024px) {
	.smcp-firma { max-width: 760px; }
}

/* Menores: quien firma declara que es su tutor (revisión 14-oct, M6). */
.smcp-firma-tutor { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; font-size: 15px; line-height: 1.4; min-height: 44px; cursor: pointer; }
.smcp-firma-tutor input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: currentColor; }

/* Revisión del 14-oct: "Pedir mis fotos de esta sesión" a 44 px para el dedo. */
[data-smcp-pedir-fotos] { min-height: 44px; }

/* "Solicitudes sobre tus datos personales": plegado y discreto al final de Privacidad (14-oct). */
.smcp-datos { margin-top: 28px; border-top: 1px solid var(--smcp-line, #e6dfd4); padding-top: 14px; }
.smcp-datos > summary { cursor: pointer; list-style: none; font-size: 14px; color: var(--smcp-ink-2, #6b6474); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.smcp-datos > summary::-webkit-details-marker { display: none; }
.smcp-datos > summary::after { content: "›"; font-size: 18px; transition: transform .15s ease; }
.smcp-datos[open] > summary::after { transform: rotate(90deg); }

/* Etiqueta de sección (14-oct): "Portal de pacientes" en dorado junto al logo. */
.smcp-area { margin-right: auto; margin-left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--smcp-gold-deep); background: var(--smcp-gold-tint); white-space: nowrap; }
@media (max-width: 360px) { .smcp-area { display: none; } }

/* Mis paquetes (16-oct): la libreta vive en citas; aquí solo "te quedan N". */
.smcp-paquetes { border-color: #D9E3DF; background: linear-gradient(180deg, #F6FAF8, #fff); }
.smcp-paquetes .smcp-list { list-style: none; margin: 0 0 14px; padding: 0; }
.smcp-paquetes .smcp-list li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid #ECE7DF; }
.smcp-paquetes .smcp-list li:last-child { border-bottom: 0; }
.smcp-paquetes .smcp-list span { color: #6B655E; font-size: 14px; }
