/* ToolBeauty: estilos compartidos por todas las herramientas.
   Ajusta las variables para adaptarlo a la marca. */
.tb-tool,
.tb-share,
.tb-directory,
.tb-others {
	--tb-accent: #111111;
	--tb-accent-contrast: #ffffff;
	--tb-text: #1a1a1a;
	--tb-muted: #6b6b6b;
	--tb-border: #e2e2e2;
	--tb-bg: #ffffff;
	--tb-bg-soft: #f7f5f3;
	--tb-radius: 12px;

	--tb-bajo: #7aa7d9;
	--tb-optimo: #5bb58a;
	--tb-medio: #e8c15a;
	--tb-alto: #e07b6a;
}

.tb-tool {
	box-sizing: border-box;
	max-width: 640px;
	margin: 2rem auto;
	padding: 1.5rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-bg);
	color: var(--tb-text);
	font-size: 16px;
	line-height: 1.5;
}
.tb-tool *, .tb-tool *::before, .tb-tool *::after { box-sizing: inherit; }
.tb-tool [hidden] { display: none !important; }

.tb-title { margin: 0 0 .25rem; font-size: 1.4rem; line-height: 1.25; }
.tb-intro { margin: 0 0 1.25rem; color: var(--tb-muted); }

/* Formulario */
.tb-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
.tb-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.tb-field--full { grid-column: 1 / -1; }
.tb-label { display: block; margin-bottom: .35rem; padding: 0; font-weight: 600; font-size: .9rem; }

.tb-input { display: flex; align-items: center; border: 1px solid var(--tb-border); border-radius: 8px; background: var(--tb-bg); }
.tb-input:focus-within { border-color: var(--tb-accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.tb-input input {
	flex: 1; min-width: 0; width: 100%;
	margin: 0; padding: .7rem .8rem;
	border: 0; background: transparent; box-shadow: none; outline: none;
	font: inherit; color: inherit;
	-moz-appearance: textfield;
}
.tb-input input::-webkit-outer-spin-button,
.tb-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tb-input span { padding: 0 .8rem; color: var(--tb-muted); font-size: .9rem; }

.tb-segmented { display: flex; gap: .5rem; }
.tb-segmented label { flex: 1; cursor: pointer; }
.tb-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.tb-segmented span {
	display: block; padding: .65rem; text-align: center;
	border: 1px solid var(--tb-border); border-radius: 8px;
	font-weight: 600; transition: background .15s, color .15s, border-color .15s;
}
.tb-segmented input:checked + span { background: var(--tb-accent); border-color: var(--tb-accent); color: var(--tb-accent-contrast); }
.tb-segmented input:focus-visible + span { outline: 2px solid var(--tb-accent); outline-offset: 2px; }

.tb-help { padding: .75rem 1rem; border-radius: 8px; background: var(--tb-bg-soft); font-size: .9rem; }
.tb-help summary { cursor: pointer; font-weight: 600; }
.tb-help ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.tb-help li { margin: .25rem 0; }

.tb-error { margin: 0; padding: .6rem .8rem; border-radius: 8px; background: #fdecea; color: #a12a1a; font-size: .9rem; }

.tb-button {
	padding: .85rem 1rem; border: 0; border-radius: 999px;
	background: var(--tb-accent); color: var(--tb-accent-contrast);
	font: inherit; font-weight: 700; letter-spacing: .02em; cursor: pointer;
	transition: opacity .15s;
}
.tb-button:hover { opacity: .88; }
.tb-button:focus-visible { outline: 2px solid var(--tb-accent); outline-offset: 3px; }

/* Resultado */
.tb-result { margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--tb-radius); background: var(--tb-bg-soft); }
.tb-result-main { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.tb-result-label { color: var(--tb-muted); font-size: .9rem; }
.tb-result-value { font-size: 2.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }

.tb-badge { display: inline-block; padding: .2rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 700; color: #1a1a1a; }
.tb-tono--bajo   { background: var(--tb-bajo); }
.tb-tono--optimo { background: var(--tb-optimo); }
.tb-tono--medio  { background: var(--tb-medio); }
.tb-tono--alto   { background: var(--tb-alto); }

.tb-gauge { position: relative; margin: 1.25rem 0 .5rem; padding-top: 10px; }
.tb-gauge-track { display: flex; height: 10px; border-radius: 999px; overflow: hidden; }
.tb-gauge-seg { height: 100%; }
.tb-gauge-seg + .tb-gauge-seg { border-left: 2px solid var(--tb-bg-soft); }
.tb-gauge-marker {
	position: absolute; top: 0; width: 0; height: 0;
	border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid var(--tb-text);
	transform: translateX(-50%); transition: left .4s ease;
}

.tb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; }
.tb-stats div { padding: .75rem; border-radius: 8px; background: var(--tb-bg); text-align: center; }
.tb-stats dt { color: var(--tb-muted); font-size: .85rem; }
.tb-stats dd { margin: 0; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.tb-result-text { margin: 0; }
.tb-disclaimer { margin: 1rem 0 0; color: var(--tb-muted); font-size: .8rem; }

@media (max-width: 480px) {
	.tb-tool { padding: 1rem; }
	.tb-form { grid-template-columns: 1fr; }
}

/* Tests / cuestionarios */
.tb-progress { height: 6px; border-radius: 999px; background: var(--tb-bg-soft); overflow: hidden; }
.tb-progress span { display: block; width: 0; height: 100%; background: var(--tb-accent); transition: width .3s ease; }
.tb-step-count { margin: .5rem 0 1rem; color: var(--tb-muted); font-size: .85rem; }

.tb-question { margin: 0; padding: 0; border: 0; min-width: 0; }
.tb-question-title { padding: 0; margin-bottom: 1rem; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.tb-options { display: grid; gap: .6rem; }
.tb-option { display: block; cursor: pointer; }
.tb-option input { position: absolute; opacity: 0; pointer-events: none; }
.tb-option > span {
	display: block; padding: .85rem 1rem;
	border: 1px solid var(--tb-border); border-radius: 10px;
	transition: border-color .15s, background .15s;
}
.tb-option:hover > span { border-color: var(--tb-accent); }
.tb-option input:checked + span { border-color: var(--tb-accent); background: var(--tb-bg-soft); font-weight: 600; box-shadow: inset 0 0 0 1px var(--tb-accent); }
.tb-option input:focus-visible + span { outline: 2px solid var(--tb-accent); outline-offset: 2px; }

.tb-link { margin-top: 1rem; padding: 0; border: 0; background: none; color: var(--tb-muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.tb-link:hover { color: var(--tb-text); }

.tb-result-value--text { font-size: 2rem; }
.tb-result-main + .tb-result-text { margin: 1rem 0; text-align: center; }

.tb-routine { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
.tb-card { padding: 1rem; border-radius: 10px; background: var(--tb-bg); }
.tb-card h4 { margin: 0 0 .5rem; font-size: 1rem; }
.tb-card ol, .tb-card ul { margin: 0; padding-left: 1.2rem; font-size: .92rem; }
.tb-card li { margin: .3rem 0; }
.tb-card p { margin: 0; font-size: .92rem; }
.tb-card--note { margin-top: .75rem; border-left: 4px solid var(--tb-medio); }

.tb-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 !important; list-style: none; }
.tb-chips .tb-chip { margin: 0; padding: .2rem .65rem; border-radius: 999px; background: var(--tb-bg-soft); font-size: .85rem; }

.tb-actions { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin-top: 1.25rem; }
a.tb-button { display: inline-block; text-align: center; text-decoration: none; }
a.tb-button:hover { color: var(--tb-accent-contrast); }

@media (max-width: 480px) {
	.tb-routine { grid-template-columns: 1fr; }
}

/* Muestras de color */
.tb-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.tb-tool a.tb-swatch {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .3rem .75rem .3rem .35rem;
	border: 1px solid var(--tb-border); border-radius: 999px;
	background: var(--tb-bg); color: var(--tb-text);
	font-size: .85rem; text-decoration: none;
	transition: border-color .15s;
}
.tb-tool a.tb-swatch:hover { border-color: var(--tb-accent); }
.tb-swatch-dot { width: 1.25rem; height: 1.25rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }

/* Constructor de rutina */
.tb-hint { color: var(--tb-muted); font-size: .85rem; font-weight: 400; }
.tb-options--grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.tb-options--grid .tb-option > span { height: 100%; padding: .7rem .85rem; font-size: .92rem; }
.tb-option.is-disabled { opacity: .45; cursor: not-allowed; }
.tb-option.is-disabled:hover > span { border-color: var(--tb-border); }

.tb-steps { margin: 0; padding-left: 1.3rem; }
.tb-steps > li { margin: 0 0 .75rem; font-size: .92rem; }
.tb-steps > li:last-child { margin-bottom: 0; }
.tb-steps strong { display: block; }
.tb-step-line { display: block; margin-top: .15rem; color: var(--tb-muted); }
.tb-step-line a { color: var(--tb-text); font-weight: 600; white-space: nowrap; }
.tb-steps--plain { padding-left: 0; list-style: none; }
.tb-card--spaced { margin-top: .75rem; }

.tb-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; margin-top: .75rem; }
.tb-day {
	display: flex; flex-direction: column; align-items: center; gap: .2rem;
	padding: .55rem .2rem; border-radius: 8px; background: var(--tb-bg-soft);
	color: var(--tb-muted); font-size: .72rem; text-align: center; text-decoration: none;
}
.tb-day-name { font-weight: 700; color: var(--tb-text); font-size: .8rem; }
.tb-day-what { line-height: 1.2; overflow-wrap: anywhere; }
.tb-tool a.tb-day { color: #1a1a1a; }
.tb-day--retinol { background: #d9c8ef; }
.tb-day--bha     { background: #bfe3d2; }
.tb-day--aha     { background: #f6d8b0; }

@media (max-width: 480px) {
	.tb-options--grid { grid-template-columns: 1fr 1fr; }
	.tb-week { gap: .2rem; }
	.tb-day { font-size: .65rem; }
}

/* Protector solar */
.tb-options--compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tb-option-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.tb-option-head .tb-swatch-dot { width: 1.1rem; height: 1.1rem; }
.tb-option input:checked + span small { font-weight: 400; }
.tb-option small { display: block; color: var(--tb-muted); font-size: .8rem; line-height: 1.35; font-weight: 400; }
.tb-option > span.tb-uv { border-left-width: 6px; }
.tb-uv--bajo     { border-left-color: #6cbf6c !important; }
.tb-uv--moderado { border-left-color: #f2d23c !important; }
.tb-uv--alto     { border-left-color: #f39a2b !important; }
.tb-uv--muyalto  { border-left-color: #e0443a !important; }
.tb-uv--extremo  { border-left-color: #8e4bb5 !important; }

.tb-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.tb-steps--plain + ul { margin-top: .75rem; }

/* Selects y avisos */
.tb-input select {
	flex: 1; min-width: 0; width: 100%;
	margin: 0; padding: .7rem .8rem;
	border: 0; background: transparent; box-shadow: none; outline: none;
	font: inherit; color: inherit; cursor: pointer;
}
.tb-input--split input { flex: 0 0 38%; }
.tb-input--split select { flex: 1; border-left: 1px solid var(--tb-border); border-radius: 0; }
.tb-card--warn { border-left-color: var(--tb-alto); }
.tb-stats dt { line-height: 1.3; }
.tb-help p { margin: .5rem 0 0; }

/* Calorías */
.tb-option > span > strong { display: block; }
.tb-segmented--wrap { flex-wrap: wrap; }
.tb-segmented--wrap label { flex: 1 1 140px; }
.tb-macros { display: flex; height: 12px; margin: .25rem 0 .75rem; border-radius: 999px; overflow: hidden; }
.tb-macros span { height: 100%; }
.tb-macros span + span { border-left: 2px solid var(--tb-bg); }
.tb-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.tb-stats--3 div { background: var(--tb-bg-soft); }
.tb-stats--3 dt { display: flex; align-items: center; justify-content: center; gap: .3rem; }
.tb-stats dd small { display: block; color: var(--tb-muted); font-size: .8rem; font-weight: 400; }
.tb-swatch-dot--sm { width: .7rem; height: .7rem; }

@media (max-width: 480px) {
	.tb-stats--3 { grid-template-columns: 1fr; }
}

/* Agua */
.tb-glasses { display: flex; flex-wrap: wrap; gap: .35rem; margin: .75rem 0; }
.tb-glass {
	width: 2.4rem; height: 3.1rem; padding: .2rem; margin: 0;
	border: 0; border-radius: 8px; background: transparent; cursor: pointer;
	transition: transform .15s;
}
.tb-glass:hover { transform: translateY(-2px); background: transparent; }
.tb-glass:focus-visible { outline: 2px solid var(--tb-accent); outline-offset: 2px; }
.tb-glass svg { display: block; width: 100%; height: 100%; }
.tb-glass-edge { fill: none; stroke: #8cb8e0; stroke-width: 1.5; stroke-linejoin: round; }
.tb-glass-water { fill: transparent; transition: fill .2s; }
.tb-glass.is-full .tb-glass-water { fill: #7ec0f0; }
.tb-glass.is-full .tb-glass-edge { stroke: #3d8fd1; }
.tb-progress--water { height: 8px; }
.tb-progress--water span { background: #3d8fd1; }

/* Sueño */
.tb-now { display: inline-block; margin-top: .35rem; font-size: .8rem; }
.tb-sleep-options { display: grid; gap: .5rem; }
.tb-sleep-option {
	display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem;
	padding: .65rem .85rem; border: 1px solid var(--tb-border); border-radius: 10px;
}
.tb-sleep-option.is-recommended { border-color: var(--tb-optimo); background: var(--tb-bg-soft); }
.tb-sleep-option strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; min-width: 3.5rem; }
.tb-sleep-option .tb-badge { margin-left: auto; font-size: .75rem; }
.tb-cycles { display: inline-flex; gap: 3px; }
.tb-cycles i { display: block; width: 14px; height: 10px; border-radius: 3px; background: #9b8fd6; }

/* Ciclo menstrual */
.tb-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .25rem 0 .75rem; font-size: .8rem; color: var(--tb-muted); }
.tb-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.tb-legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; }
.tb-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.tb-month-title { margin-bottom: .4rem; font-weight: 700; font-size: .9rem; }
.tb-month-title::first-letter { text-transform: uppercase; }
.tb-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; font-size: .8rem; }
.tb-cal-head { color: var(--tb-muted); font-weight: 700; font-size: .7rem; padding-bottom: .2rem; }
.tb-cal-day { padding: .35rem 0; border-radius: 6px; font-variant-numeric: tabular-nums; }
.tb-cal-regla, .tb-legend .tb-cal-regla { background: #f2a3b3; color: #1a1a1a; }
.tb-cal-fertil, .tb-legend .tb-cal-fertil { background: #c9e7d6; color: #1a1a1a; }
.tb-cal-ovulacion, .tb-legend .tb-cal-ovulacion { background: #5bb58a; color: #fff; font-weight: 700; }
.tb-cal-hoy { box-shadow: inset 0 0 0 2px var(--tb-text); font-weight: 700; }
.tb-legend .tb-cal-hoy { background: transparent; }
.tb-phase { border-left: 4px solid var(--tb-border); }
.tb-phase p + p { margin-top: .5rem; }
.tb-phase--menstrual  { border-left-color: #f2a3b3; }
.tb-phase--folicular  { border-left-color: #9fd3b8; }
.tb-phase--ovulatoria { border-left-color: #5bb58a; }
.tb-phase--lutea      { border-left-color: #b4a6e0; }
.tb-phases { padding-left: 0 !important; list-style: none; }
.tb-phases li { padding: .35rem .5rem; border-radius: 6px; }
.tb-phases li.is-current { background: var(--tb-bg-soft); }

/* ==========================================================================
   Directorio de herramientas
   ========================================================================== */
.tb-directory, .tb-others { box-sizing: border-box; color: var(--tb-text); line-height: 1.5; container-type: inline-size; }
.tb-directory *, .tb-others * { box-sizing: border-box; }
.tb-directory [hidden] { display: none !important; }

.tb-directory__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tb-chip-btn {
	padding: .45rem 1rem; margin: 0;
	border: 1px solid var(--tb-border); border-radius: 999px;
	background: var(--tb-bg); color: var(--tb-text);
	font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.tb-chip-btn:hover { border-color: var(--tb-accent); }
.tb-chip-btn.is-active { background: var(--tb-accent); border-color: var(--tb-accent); color: var(--tb-accent-contrast); }
.tb-chip-btn:focus-visible { outline: 2px solid var(--tb-accent); outline-offset: 2px; }

/* Las columnas dependen del ancho del bloque, no de la pantalla: 1 en móvil, 2 en espacios
   medianos y 3 o 4 cuando hay sitio de verdad (por ejemplo, con el bloque en «ancho amplio»). */
.tb-directory__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@container (min-width: 520px) {
	.tb-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 820px) {
	.tb-directory--cols-3 .tb-directory__grid,
	.tb-directory--cols-4 .tb-directory__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 1080px) {
	.tb-directory--cols-4 .tb-directory__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tb-tool-card {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
	background: var(--tb-bg);
	transition: box-shadow .2s, transform .2s;
}
.tb-tool-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); transform: translateY(-3px); }
.tb-tool-card__media { display: block; aspect-ratio: 4 / 3; background: var(--tb-bg-soft); overflow: hidden; }
.tb-tool-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tb-tool-card:hover .tb-tool-card__media img { transform: scale(1.03); }
.tb-tool-card__body { display: flex; flex-direction: column; flex: 1; gap: .4rem; padding: 1.1rem 1.2rem 1.25rem; }
.tb-tool-card__cat { align-self: flex-start; padding: .15rem .6rem; border-radius: 999px; background: var(--tb-bg-soft); color: var(--tb-muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tb-tool-card__title { margin: .1rem 0 0; font-size: 1.15rem; line-height: 1.3; }
.tb-tool-card__title a { color: inherit; text-decoration: none; }
.tb-tool-card__title a:hover { text-decoration: underline; }
.tb-tool-card__text { margin: 0; color: var(--tb-muted); font-size: .92rem; }
.tb-tool-card__cta {
	align-self: flex-start; margin-top: auto; padding: .6rem 1.1rem;
	border-radius: 999px; background: var(--tb-accent); color: var(--tb-accent-contrast);
	font-size: .9rem; font-weight: 700; text-decoration: none;
	transition: opacity .15s;
}
.tb-tool-card__body > .tb-tool-card__cta { margin-top: auto; }
.tb-tool-card__cta:hover, .tb-tool-card__cta:focus { opacity: .88; color: var(--tb-accent-contrast); }
.tb-tool-card.is-missing { opacity: .55; }
.tb-card-flag { align-self: flex-start; padding: .1rem .5rem; border-radius: 4px; background: #fff3cd; color: #7a5b00; font-size: .72rem; font-weight: 700; }

/* ==========================================================================
   Otras herramientas (acceso rápido)
   ========================================================================== */
.tb-others { margin: 2.5rem auto; }
.tb-others__title { margin: 0 0 1rem; font-size: 1.35rem; }
.tb-others__list { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: 0; padding: 0; list-style: none; }
@container (min-width: 520px) {
	.tb-others__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 900px) {
	.tb-others__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tb-others__list li { margin: 0; }
.tb-mini-card {
	display: flex; align-items: center; gap: .75rem; height: 100%;
	padding: .5rem .85rem .5rem .5rem;
	border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
	background: var(--tb-bg); color: var(--tb-text); text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.tb-mini-card:hover { border-color: var(--tb-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); color: var(--tb-text); }
.tb-mini-card:focus-visible { outline: 2px solid var(--tb-accent); outline-offset: 2px; }
.tb-mini-card img { flex: none; width: 72px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--tb-bg-soft); }
.tb-mini-card__text { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: .1rem; }
.tb-mini-card__text strong { font-size: .95rem; line-height: 1.3; }
.tb-mini-card__text small { color: var(--tb-muted); font-size: .78rem; }
.tb-mini-card__arrow { flex: none; color: var(--tb-muted); transition: transform .15s; }
.tb-mini-card:hover .tb-mini-card__arrow { transform: translateX(3px); color: var(--tb-text); }
.tb-mini-card.is-missing { opacity: .55; }
.tb-others__all { margin: 1rem 0 0; text-align: center; }
.tb-others .tb-link { color: var(--tb-text); font-size: .95rem; font-weight: 600; }

/* Compartir: debajo de cada herramienta, del mismo ancho que ella y pegado a
   su borde de abajo. Los botones son neutros y toman el color de cada red al
   pasar por encima. */
.tb-share {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .5rem 1rem;
	max-width: 640px;
	margin: -1rem auto 2rem;
	padding: 0 1.5rem;
	color: var(--tb-text);
	font-size: 16px;
	line-height: 1.5;
}
.tb-share *, .tb-share *::before, .tb-share *::after { box-sizing: inherit; }

.tb-share-title { margin: 0; color: var(--tb-muted); font-size: .9rem; font-weight: 600; }

.tb-share-list { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tb-share-list li { margin: 0; padding: 0; }
.tb-share-list li::before { content: none; }

.tb-share-btn {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .45rem .85rem;
	border: 1px solid var(--tb-border); border-radius: 999px;
	background: var(--tb-bg); color: var(--tb-text);
	font-size: .85rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; box-shadow: none;
	transition: background .15s, color .15s, border-color .15s;
}
.tb-share-btn svg { flex: none; fill: currentColor; }
.tb-share-btn:hover, .tb-share-btn:focus { text-decoration: none; }
.tb-share-btn:focus-visible { outline: 2px solid var(--tb-accent); outline-offset: 2px; }

/* Solo el logo (X): el texto sigue ahí para los lectores de pantalla, y la
   píldora se queda redonda. */
.tb-share-label--oculto {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tb-share-btn--x { padding-left: .6rem; padding-right: .6rem; }

.tb-share-btn--whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.tb-share-btn--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.tb-share-btn--x:hover { background: #000; border-color: #000; color: #fff; }

/* En móvil solo los iconos: los tres en una fila, con el texto para los
   lectores de pantalla. */
@media (max-width: 480px) {
	.tb-share { padding: 0 1rem; }
	.tb-share-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
	.tb-share-label {
		position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
		overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
}
