/* Writeo — panel de cliente (rediseño App 2026) */
.writeo {
	--w-primary: #0d1f0d;
	--w-primary-dark: #1a3a1a;
	--w-accent: #52b788;
	--w-accent-hover: #45a375;
	--w-accent-tint: rgba( 82, 183, 136, 0.14 );
	--w-bg: #f5f0e8;
	--w-surface: #faf8f3;
	--w-input: #f7f5f1;
	--w-card: #ffffff;
	--w-border: rgba( 0, 0, 0, 0.06 );
	--w-line: #f0ebe3;
	--w-row: #f4efe7;
	--w-text: #1a1a1a;
	--w-heading: #0d1f0d;
	--w-muted: #7a7570;
	--w-muted-2: #9ca3af;
	--w-ok: #2d6a4f;
	--w-warn: #b45309;
	--w-err: #b23b3b;
	--w-shadow: 0 4px 20px rgba( 0, 0, 0, 0.04 );
	color: var(--w-text);
	font-family: 'Plus Jakarta Sans', -apple-system, Segoe UI, Roboto, sans-serif;
}
.writeo *, .writeo *::before, .writeo *::after { box-sizing: border-box; }

.writeo h1, .writeo h2, .writeo h3,
.writeo .writeo-h1 {
	font-family: 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--w-heading);
}
/* El contenido generado y los puntos clave usan sans para legibilidad. */
.writeo-articulo h1, .writeo-articulo h2, .writeo-articulo h3, .writeo-articulo h4,
.writeo-puntos-clave, .writeo-puntos-clave * {
	font-family: 'Plus Jakarta Sans', -apple-system, Segoe UI, Roboto, sans-serif;
	letter-spacing: 0;
}
.writeo [hidden] { display: none !important; }

/* ===== Layout ===== */
.writeo-main {
	max-width: 1240px;
	margin: 0 auto;
	padding: 48px 32px 72px;
	animation: writeo-fade 0.4s ease;
}
@keyframes writeo-fade {
	from { opacity: 0; transform: translateY( 8px ); }
	to { opacity: 1; transform: none; }
}
.writeo-h1 {
	font-size: clamp( 30px, 5vw, 40px );
	line-height: 1.05;
	color: var(--w-heading);
	margin: 0 0 8px;
}
.writeo-h1 > i { display: none; } /* Los títulos de página no llevan icono decorativo (el botón de copiar sí conserva el suyo). */
.writeo-sub {
	color: var(--w-muted);
	font-size: 14.5px;
	margin: 0 0 36px;
}

/* ===== Cards de estadística ===== */
.writeo-stats {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 20px;
	margin-bottom: 28px;
}
.writeo-card {
	background: var(--w-card);
	border: 1px solid var(--w-border);
	border-radius: 20px;
	padding: 28px;
	box-shadow: var(--w-shadow);
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.writeo-card:hover {
	transform: translateY( -3px );
	box-shadow: 0 14px 34px rgba( 13, 31, 13, 0.1 );
}
.writeo-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--w-primary);
	color: var(--w-accent);
	font-size: 19px;
	margin-bottom: 14px;
}
.writeo-card__num {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 44px;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--w-heading);
}
.writeo-card__label {
	color: var(--w-muted-2);
	font-size: 13px;
	font-weight: 500;
}

/* ===== Banner CTA ===== */
.writeo-cta {
	position: relative;
	overflow: hidden;
	background: var(--w-primary);
	color: #f5f0e8;
	border-radius: 22px;
	padding: 44px;
	text-align: center;
	margin-bottom: 28px;
}
.writeo-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient( ellipse 55% 90% at 50% 120%, rgba( 82, 183, 136, 0.16 ), transparent 60% );
	pointer-events: none;
}
.writeo-cta > * { position: relative; z-index: 1; }
.writeo-cta h2 { font-size: 30px; color: #f5f0e8; margin: 0 0 10px; }
.writeo-cta p { margin: 0 0 28px; color: rgba( 245, 240, 232, 0.55 ); font-size: 14.5px; }
.writeo-cta .writeo-btn--primary { background: var(--w-accent); border-color: var(--w-accent); color: var(--w-primary); }
.writeo-cta .writeo-btn--primary:hover { background: var(--w-accent-hover); border-color: var(--w-accent-hover); }
.writeo-cta .writeo-btn--primary i { color: var(--w-primary); }

/* ===== Botones ===== */
.writeo-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--w-card);
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 11px;
	padding: 13px 20px;
	font: inherit;
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
	text-decoration: none;
	color: var(--w-heading);
	transition: all 0.16s ease;
}
.writeo-btn:hover { border-color: var(--w-accent); background: rgba( 82, 183, 136, 0.06 ); color: var(--w-heading); }
.writeo-btn i { color: var(--w-accent); }
.writeo-btn--primary {
	background: var(--w-primary);
	border-color: var(--w-primary);
	color: #f5f0e8;
}
.writeo-btn--primary:hover { background: var(--w-primary-dark); border-color: var(--w-primary-dark); color: #f5f0e8; }
.writeo-btn--primary i { color: var(--w-accent); }
.writeo-btn--accent {
	background: var(--w-accent);
	border-color: var(--w-accent);
	color: var(--w-primary);
	font-weight: 700;
}
.writeo-btn--accent:hover { background: var(--w-accent-hover); border-color: var(--w-accent-hover); color: var(--w-primary); }
.writeo-btn--accent i { color: var(--w-primary); }
.writeo-btn--lg { padding: 16px 30px; font-size: 15px; }
.writeo-btn[ disabled ] { opacity: 0.5; cursor: not-allowed; }

/* ===== Secciones (tarjetas blancas) ===== */
.writeo-section {
	background: var(--w-card);
	border: 1px solid var(--w-border);
	border-radius: 22px;
	padding: 32px;
	box-shadow: var(--w-shadow);
	margin-bottom: 20px;
}
.writeo-section h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	margin: 0 0 22px;
	color: var(--w-heading);
}
.writeo-section h2 i {
	width: 40px;
	height: 40px;
	background: var(--w-primary);
	color: var(--w-accent);
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
	margin: 0;
}

/* ===== Formularios ===== */
.writeo-form {
	background: var(--w-card);
	border: 1px solid var(--w-border);
	border-radius: 22px;
	padding: 32px;
	box-shadow: var(--w-shadow);
	max-width: 720px;
}
.writeo-form--compact { max-width: 560px; }
.writeo-field {
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.writeo-field label { font-weight: 600; font-size: 13px; color: #374151; }
.writeo-field input,
.writeo-field select,
.writeo-field textarea {
	width: 100%;
	background: var(--w-input);
	border: 1px solid rgba( 0, 0, 0, 0.09 );
	border-radius: 11px;
	padding: 14px 16px;
	font: inherit;
	font-size: 14.5px;
	color: var(--w-text);
	outline: none;
	transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.writeo-field input:focus,
.writeo-field select:focus,
.writeo-field textarea:focus {
	border-color: var(--w-accent);
	box-shadow: 0 0 0 3px rgba( 82, 183, 136, 0.16 );
	background: #fff;
}
.writeo-field select { cursor: pointer; }
.writeo-hint { color: var(--w-muted-2); font-size: 13px; }
.writeo-form__actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.writeo-tooltip { color: var(--w-err); font-size: 14px; }

/* Tipo de contenido como tarjetas-radio */
.writeo-radios {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 180px, 1fr ) );
	gap: 12px;
}
.writeo-radios label {
	position: relative;
	cursor: pointer;
	border: 1.5px solid rgba( 0, 0, 0, 0.1 );
	background: #fff;
	border-radius: 14px;
	padding: 16px 18px 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-weight: 700;
	font-size: 15px;
	color: var(--w-heading);
}
.writeo-radios label:has( input:checked ) {
	border-color: var(--w-accent);
	background: rgba( 82, 183, 136, 0.06 );
}
/* Sin transiciones/animaciones ni halo de foco en las tarjetas-radio (evita el efecto de "zoom"). */
.writeo-radios label,
.writeo-radios label *,
.writeo-radios input[ type="radio" ] {
	transition: none !important;
	animation: none !important;
}
.writeo-radios input[ type="radio" ] {
	position: absolute;
	top: 18px;
	right: 16px;
	width: 16px;
	height: 16px;
	accent-color: var(--w-accent);
	cursor: pointer;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}
.writeo-radios small { font-weight: 500; font-size: 12.5px; color: var(--w-muted-2); }

/* ===== Progreso ===== */
.writeo-progress { margin-top: 18px; display: flex; align-items: center; gap: 10px; color: var(--w-muted); }
.writeo-spinner {
	width: 18px;
	height: 18px;
	border: 3px solid var(--w-border);
	border-top-color: var(--w-accent);
	border-radius: 50%;
	animation: writeo-spin 0.8s linear infinite;
}
@keyframes writeo-spin { to { transform: rotate( 360deg ); } }

/* ===== Tablas / listas ===== */
.writeo-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--w-card);
	border: 1px solid var(--w-border);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: var(--w-shadow);
}
.writeo-table th,
.writeo-table td {
	text-align: left;
	padding: 16px 24px;
	border-bottom: 1px solid var(--w-row);
}
.writeo-table th {
	background: var(--w-surface);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--w-muted-2);
	border-bottom: 1px solid var(--w-line);
}
.writeo-table td { font-size: 14px; }
.writeo-table tr:last-child td,
.writeo-table tbody tr:last-child td { border-bottom: 0; }
.writeo-table tbody tr { transition: background 0.12s ease; }
.writeo-table tbody tr:hover { background: var(--w-surface); }
.writeo-table a { color: #1a3a1a; font-weight: 500; text-decoration: none; }
.writeo-table a:hover { color: var(--w-accent); }

/* ===== Badges de estado ===== */
.writeo-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 700;
}
.writeo-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}
.writeo-badge--completado { background: var(--w-accent-tint); color: var(--w-ok); }
.writeo-badge--generando,
.writeo-badge--pendiente { background: #fef3c7; color: var(--w-warn); }
.writeo-badge--error { background: rgba( 220, 80, 80, 0.1 ); color: var(--w-err); }

/* ===== Detalle del artículo ===== */
.writeo-back { display: inline-block; margin-bottom: 14px; color: var(--w-accent); font-weight: 600; text-decoration: none; }
.writeo-articulo {
	background: var(--w-card);
	border: 1px solid var(--w-border);
	border-radius: 22px;
	padding: 36px;
	box-shadow: var(--w-shadow);
	line-height: 1.7;
}
.writeo-articulo h2 { margin: 1.4em 0 0.5em; font-size: 30px; font-weight: 800; color: #0d1f0d; line-height: 1.3; }
.writeo-articulo h3 { margin: 1.2em 0 0.4em; font-size: 22px; }
.writeo-articulo p { margin: 0 0 1em; }
.writeo-articulo img { max-width: 100%; height: auto; border-radius: 12px; }
.writeo-articulo a { color: var(--w-accent); }
.writeo-articulo ul, .writeo-articulo ol { padding-left: 22px; margin: 0 0 1em; }
.writeo-articulo li { margin: 6px 0; }
.writeo-seo,
.writeo-puntos-clave {
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	border-radius: 14px;
	padding: 16px 20px;
	margin-top: 20px;
	margin-bottom: 18px;
	font-size: 14px;
}
.writeo-seo p { margin: 4px 0; }
.writeo-publicado { background: var(--w-accent-tint); color: var(--w-ok); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.writeo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; align-items: center; }
.writeo-publish { display: inline-flex; gap: 8px; align-items: center; }
.writeo-puntos { margin-top: 18px; }
.writeo-box-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--w-accent);
	margin-bottom: 8px;
}
.writeo-puntos-clave ul { margin: 0; padding-left: 18px; }
.writeo-puntos-clave li { margin: 4px 0; }

/* ===== Meta-list ===== */
.writeo-meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.writeo-meta-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	border-radius: 12px;
}
.writeo-meta-list__k { color: var(--w-muted); font-weight: 600; }
.writeo-subhead { display: flex; align-items: center; gap: 8px; margin: 26px 0 14px; font-size: 16px; color: var(--w-heading); }
.writeo-subhead i { color: var(--w-accent); }

/* ===== Webs ===== */
.writeo-cms-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--w-line); color: var(--w-muted-2); font-size: 12.5px; }
.writeo-cms-note a { color: var(--w-accent); font-weight: 600; }
.writeo-webs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.writeo-webs li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	border-radius: 12px;
}
.writeo-webs li::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--w-accent);
	flex-shrink: 0;
}
.writeo-webs li > span { flex: 1; }
.writeo-webs strong { color: var(--w-heading); font-size: 14px; }
.writeo-webs small { display: block; color: var(--w-muted-2); font-size: 12px; }
.writeo-link { color: var(--w-accent); text-decoration: none; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.writeo-link--danger { color: var(--w-err); }

/* ===== Desglose recarga ===== */
.writeo-desglose {
	border: 1px solid rgba( 0, 0, 0, 0.08 );
	border-radius: 14px;
	padding: 20px 22px;
	margin-bottom: 20px;
	background: var(--w-surface);
}
.writeo-desglose div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: #4b5563; }
.writeo-desglose__total {
	border-top: 1px solid rgba( 0, 0, 0, 0.07 );
	margin-top: 4px;
	padding-top: 12px !important;
	font-weight: 700;
	font-size: 16px;
	color: var(--w-heading);
}
.writeo-desglose__total span:last-child { font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; letter-spacing: -0.02em; }

/* ===== Planes / packs ===== */
.writeo-plan-cards { display: grid; grid-template-columns: repeat( auto-fit, minmax( 210px, 1fr ) ); gap: 16px; margin-top: 8px; }
.writeo-plan-card {
	border: 1px solid rgba( 0, 0, 0, 0.08 );
	border-radius: 18px;
	padding: 28px;
	text-align: center;
	background: #fff;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.writeo-plan-card:hover {
	border-color: var(--w-accent);
	box-shadow: 0 8px 28px rgba( 82, 183, 136, 0.12 );
	transform: translateY( -2px );
}
.writeo-plan-card h3 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--w-muted-2); font-family: inherit; margin: 0 0 10px; }
.writeo-plan-card__price { font-family: 'DM Serif Display', Georgia, serif; font-size: 40px; letter-spacing: -0.04em; line-height: 1; color: var(--w-heading); margin: 0 0 4px; }
.writeo-plan-card__price span { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--w-muted-2); font-weight: 500; }
.writeo-plan-card__credits { font-size: 13px; color: var(--w-muted-2); margin: 0 0 18px; }
.writeo-plan-card ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; display: grid; gap: 8px; }
.writeo-plan-card ul li { font-size: 13px; color: #374151; padding-left: 22px; position: relative; }
.writeo-plan-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--w-accent); font-weight: 800; }
.writeo-plan-card .writeo-btn { width: 100%; justify-content: center; margin-top: auto; }

/* ===== Suscripción: tarjeta oscura ===== */
.writeo-section--dark {
	background: var(--w-primary);
	border-color: transparent;
	color: rgba( 245, 240, 232, 0.85 );
}
.writeo-section--dark h2 { color: #f5f0e8; }
.writeo-section--dark h2 i { background: rgba( 82, 183, 136, 0.16 ); color: var(--w-accent); }
.writeo-section--dark .writeo-subhead { color: #f5f0e8; }
.writeo-section--dark .writeo-hint,
.writeo-section--dark .writeo-sub-actual { color: rgba( 245, 240, 232, 0.6 ); }
.writeo-section--dark .writeo-sub-actual strong,
.writeo-section--dark strong { color: var(--w-accent); }
.writeo-section--dark .writeo-link { color: var(--w-accent); }
.writeo-section--dark .writeo-meta-list li {
	background: rgba( 245, 240, 232, 0.06 );
	border-color: rgba( 255, 255, 255, 0.08 );
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
}
.writeo-section--dark .writeo-meta-list__k { color: rgba( 245, 240, 232, 0.5 ); font-weight: 500; font-size: 12.5px; }
.writeo-section--dark .writeo-meta-list li > span:last-child { font-family: 'DM Serif Display', Georgia, serif; font-size: 30px; letter-spacing: -0.04em; color: #f5f0e8; line-height: 1; }
.writeo-section--dark .writeo-meta-list small { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 500; color: rgba( 245, 240, 232, 0.4 ); margin-top: 6px; }
.writeo-section--dark .writeo-cred-list { grid-template-columns: 1fr 1fr; }
.writeo-section--dark .writeo-btn { background: transparent; border-color: rgba( 255, 255, 255, 0.16 ); color: rgba( 245, 240, 232, 0.85 ); }
.writeo-section--dark .writeo-btn:hover { border-color: rgba( 255, 255, 255, 0.35 ); background: rgba( 255, 255, 255, 0.04 ); }
.writeo-section--dark .writeo-btn--primary { background: var(--w-accent); border-color: var(--w-accent); color: var(--w-primary); }
.writeo-section--dark .writeo-btn--primary:hover { background: var(--w-accent-hover); border-color: var(--w-accent-hover); }
.writeo-section--dark .writeo-btn i { color: var(--w-accent); }
.writeo-section--dark .writeo-btn--primary i { color: var(--w-primary); }
.writeo-section--dark select { background: rgba( 245, 240, 232, 0.06 ); border-color: rgba( 255, 255, 255, 0.14 ); color: #f5f0e8; border-radius: 10px; padding: 12px 14px; font: inherit; }
.writeo-section--dark select:focus { background: rgba( 245, 240, 232, 0.06 ); color: #f5f0e8; outline: none; box-shadow: 0 0 0 3px rgba( 82, 183, 136, 0.25 ); }
.writeo-section--dark select option { color: #1a1a1a; }
.writeo-sub-actual { font-size: 14px; margin: 0 0 4px; }
.writeo-sub-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0 4px; }
.writeo-cred-list { margin: 22px 0; }
.writeo-sub-fact { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; }

/* ===== Paginación ===== */
.writeo-pagination { display: flex; gap: 6px; margin-top: 20px; }
.writeo-page {
	padding: 8px 14px;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 10px;
	text-decoration: none;
	color: var(--w-heading);
	background: #fff;
	font-size: 13.5px;
	font-weight: 600;
}
.writeo-page.is-current { background: var(--w-primary); color: #f5f0e8; border-color: var(--w-primary); }

/* ===== Estados vacíos / avisos ===== */
.writeo-empty {
	border: 1.5px dashed rgba( 0, 0, 0, 0.12 );
	border-radius: 16px;
	padding: 48px 32px;
	text-align: center;
	background: var(--w-surface);
	color: var(--w-muted);
}
.writeo-aviso {
	background: var(--w-card);
	border: 1px solid var(--w-border);
	border-radius: 16px;
	padding: 24px;
	color: var(--w-muted);
	box-shadow: var(--w-shadow);
}

/* ===== Editor de avatar ===== */
.writeo-avatar-edit { display: flex; align-items: center; gap: 20px; }
.writeo-avatar-edit img { border-radius: 50%; }

/* ===== Flash ===== */
.writeo-flash { margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: 14px; animation: writeo-fade 0.3s ease; }
.writeo-flash--ok { background: var(--w-accent-tint); color: var(--w-ok); }
.writeo-flash--err { background: rgba( 220, 80, 80, 0.1 ); color: var(--w-err); }

/* ===== Login / registro ===== */
.writeo-login {
	max-width: 420px;
	margin: 48px auto;
	background: var(--w-card);
	border: 1px solid var(--w-border);
	border-radius: 22px;
	padding: 36px;
	box-shadow: 0 24px 60px rgba( 13, 31, 13, 0.1 );
}
.writeo-login--wide { max-width: 500px; }
.writeo-login h1 { margin: 0 0 22px; font-size: 28px; }
.writeo-login label { display: block; font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 8px; }
.writeo-login input[ type="text" ],
.writeo-login input[ type="email" ],
.writeo-login input[ type="password" ],
.writeo-login textarea {
	width: 100%;
	background: var(--w-input);
	border: 1px solid rgba( 0, 0, 0, 0.09 );
	border-radius: 11px;
	padding: 14px 16px;
	font: inherit;
	font-size: 14.5px;
	margin-bottom: 16px;
	outline: none;
	transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.writeo-login input:focus,
.writeo-login textarea:focus {
	border-color: var(--w-accent);
	box-shadow: 0 0 0 3px rgba( 82, 183, 136, 0.16 );
	background: #fff;
}
.writeo-login .login-remember { font-weight: 400; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13.5px; color: #4b5563; }
.writeo-login .button,
.writeo-login input[ type="submit" ],
.writeo-login button[ type="submit" ] {
	background: var(--w-primary);
	color: #f5f0e8;
	border: 0;
	border-radius: 12px;
	padding: 15px 20px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	width: 100%;
	transition: background 0.18s;
}
.writeo-login .button:hover,
.writeo-login input[ type="submit" ]:hover,
.writeo-login button[ type="submit" ]:hover { background: var(--w-primary-dark); }
.writeo-login hr { border: 0; border-top: 1px solid var(--w-line); margin: 20px 0; }
.writeo-login__sub { font-weight: 700; color: var(--w-heading); margin: 6px 0 16px; font-family: 'DM Serif Display', Georgia, serif; }
.writeo-tip { cursor: help; color: var(--w-muted-2); font-weight: 400; }
.writeo-login__error { background: rgba( 220, 80, 80, 0.1 ); color: var(--w-err); border-radius: 11px; padding: 12px 16px; margin-bottom: 16px; }
.writeo-login__links { margin-top: 16px; font-size: 14px; }
.writeo-login__links a { color: var(--w-accent); font-weight: 600; }

/* ===== Acceso / registro: tarjeta partida (marca + formulario) ===== */
.writeo-auth {
	max-width: 940px;
	margin: 8px auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba( 13, 31, 13, 0.16 );
	background: #fff;
}
.writeo-auth__brand {
	background: var(--w-primary);
	padding: 52px 44px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.writeo-auth__brand::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient( ellipse 70% 55% at 20% 100%, rgba( 82, 183, 136, 0.14 ), transparent 60% );
	pointer-events: none;
}
.writeo-auth__brand > * { position: relative; z-index: 1; }
.writeo-auth__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba( 82, 183, 136, 0.12 );
	border: 1px solid rgba( 82, 183, 136, 0.25 );
	border-radius: 100px;
	padding: 6px 14px;
	margin-bottom: 32px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--w-accent);
	width: fit-content;
}
.writeo-auth__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--w-accent); }
.writeo-auth__brand h2 {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 36px;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #f5f0e8;
	margin: 0;
}
.writeo-auth__brand h2 em { color: var(--w-accent); font-style: italic; }
.writeo-auth__brand p { font-size: 14px; color: rgba( 245, 240, 232, 0.5 ); line-height: 1.7; margin: 16px 0 0; max-width: 280px; }
.writeo-auth__stats { display: flex; gap: 28px; margin-top: 40px; }
.writeo-auth__stats b { display: block; font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; color: var(--w-accent); line-height: 1; }
.writeo-auth__stats span { font-size: 11px; color: rgba( 245, 240, 232, 0.4 ); }
/* La columna del formulario reutiliza los estilos de .writeo-login sin su "chrome" de tarjeta. */
.writeo-auth .writeo-login { max-width: none; margin: 0; border: 0; box-shadow: none; border-radius: 0; padding: 48px 44px; }
.writeo-auth .writeo-login h1 { font-size: 28px; margin-bottom: 26px; }
@media ( max-width: 720px ) {
	.writeo-auth { grid-template-columns: 1fr; max-width: 460px; }
	.writeo-auth__brand { display: none; }
}

/* ===== Detalle: copiar, campos SEO, acciones de fila ===== */
.writeo-copy { background: none; border: 0; cursor: pointer; color: var(--w-muted-2); padding: 5px; border-radius: 7px; line-height: 1; transition: color 0.15s, background 0.15s; vertical-align: middle; }
.writeo-copy:hover { color: var(--w-accent); background: var(--w-accent-tint); }
.writeo-h1 .writeo-copy { font-size: 15px; }

.writeo-field-head { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 20px 0 10px; }
.writeo-field-head strong,
.writeo-field-head label { font-size: 13px; font-weight: 700; color: var(--w-heading); }
/* La cabecera "Contenido" reutiliza el estilo de .writeo-box-title (icono + mayúsculas). */
.writeo-field-head .writeo-box-title { margin-bottom: 0; }

/* ===== Tooltip de ayuda ===== */
.writeo-tip { position: relative; display: inline-flex; align-items: center; margin-left: 4px; color: var(--w-accent); cursor: help; outline: none; }
.writeo-tip > i { font-size: 13px; }
.writeo-tip__bubble {
	position: absolute;
	bottom: calc( 100% + 8px );
	left: 50%;
	transform: translateX( -50% ) translateY( 4px );
	width: 270px;
	max-width: 78vw;
	background: #0d1f0d;
	color: #f5f0e8;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.55;
	text-transform: none;
	letter-spacing: 0;
	text-align: left;
	padding: 12px 14px;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba( 0, 0, 0, 0.22 );
	opacity: 0;
	visibility: hidden;
	transition: opacity .16s, transform .16s;
	z-index: 50;
	pointer-events: none;
}
.writeo-tip__bubble::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX( -50% );
	border: 6px solid transparent;
	border-top-color: #0d1f0d;
}
.writeo-tip:hover .writeo-tip__bubble,
.writeo-tip:focus .writeo-tip__bubble,
.writeo-tip:focus-within .writeo-tip__bubble {
	opacity: 1;
	visibility: visible;
	transform: translateX( -50% ) translateY( 0 );
}

.writeo-seo-field { margin-bottom: 14px; }
.writeo-seo-field__head { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-bottom: 7px; }
.writeo-seo-field__head strong,
.writeo-seo-field__head label,
.writeo-seo-field__head span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--w-muted-2); }
.writeo-seo-field__value { background: var(--w-surface); border: 1px solid var(--w-line); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--w-text); line-height: 1.6; }

.writeo-estado-cell { white-space: nowrap; }
.writeo-accion-cell { white-space: nowrap; }
.writeo-cell-action { display: block; width: 100%; box-sizing: border-box; text-align: center; font-size: 13px; font-weight: 600; color: var(--w-accent); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 7px 9px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.writeo-cell-action:hover { background: var(--w-accent-tint); color: var(--w-accent); }

/* ===== Configuración: cabecera de cuenta, campos de solo lectura ===== */
.writeo-account-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--w-line);
}
.writeo-account-head img { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; }
.writeo-account-head__info { flex: 1; min-width: 160px; }
.writeo-account-head__k { font-size: 12px; color: var(--w-muted-2); margin-bottom: 4px; }
/* Seleccionar archivo + botón en su propia línea (todo el ancho). */
.writeo-avatar-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; flex-basis: 100%; }
.writeo-avatar-actions input[ type="file" ] { font-size: 12.5px; color: var(--w-muted); }
.writeo-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.writeo-field-grid > div { min-width: 0; }
.writeo-field-grid label { display: block; font-size: 12.5px; font-weight: 600; color: var(--w-muted-2); margin-bottom: 7px; }
.writeo-readonly {
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	border-radius: 10px;
	padding: 13px 15px;
	font-size: 14px;
	color: var(--w-heading);
	font-weight: 600;
	overflow-wrap: anywhere;
}
@media ( max-width: 560px ) {
	.writeo-field-grid { grid-template-columns: 1fr; }
	.writeo-account-head { flex-wrap: wrap; }
}

/* ===== Estado vacío enriquecido (facturación) ===== */
.writeo-empty__icon {
	width: 56px;
	height: 56px;
	background: var(--w-accent-tint);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	color: var(--w-accent);
	font-size: 22px;
}
.writeo-empty__title { font-size: 15px; color: var(--w-heading); font-weight: 600; margin: 0 0 6px; }
.writeo-empty__text { font-size: 13.5px; color: var(--w-muted-2); margin: 0 0 24px; }
.writeo-empty .writeo-btn { text-decoration: none; }

/* Campos en rejilla dentro de formularios de sección */
.writeo-field-grid .writeo-field { margin-bottom: 0; }
.writeo-field--full { grid-column: 1 / -1; }

/* Anchos de columna por tipo de página (según el diseño) */
.writeo-main--sm { max-width: 800px; }
.writeo-main--md { max-width: 1000px; }

/* La regla de legibilidad de los puntos clave pisaba la fuente de FontAwesome:
   se reasegura para que el icono de copiar (y el de la cabecera) se vean. */
.writeo-puntos-clave .fa-solid,
.writeo-puntos-clave .fa-regular,
.writeo-puntos-clave .fa-brands,
.writeo-puntos-clave [class*="fa-"] {
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* ===== Configuración: labels y textos en #374151 (salvo botones y la sección de suscripción) ===== */
.writeo-config .writeo-account-head__k { color: #374151; font-size: 14px; font-weight: 600; }
.writeo-config .writeo-section:not( .writeo-section--dark ) label,
.writeo-config .writeo-section:not( .writeo-section--dark ) .writeo-hint,
.writeo-config .writeo-section:not( .writeo-section--dark ) .writeo-readonly,
.writeo-config .writeo-section:not( .writeo-section--dark ) .writeo-field-grid label,
.writeo-config .writeo-section:not( .writeo-section--dark ) .writeo-cms-note {
	color: #374151;
}
.writeo-config .writeo-section:not( .writeo-section--dark ) .writeo-cms-note a { color: var(--w-accent); }

/* ===== Buscador de "Mis generaciones" ===== */
/* El "campo" es un contenedor flex: icono | input | botón limpiar (sin position:absolute). */
.writeo-search {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 440px;
	margin-bottom: 24px;
	background: #ffffff;
	border: 1px solid #ffffff;
	border-radius: 12px;
	padding: 0 10px 0 16px;
	box-shadow: var(--w-shadow);
	transition: border-color 0.16s, box-shadow 0.16s;
}
.writeo-search:focus-within { border-color: var(--w-accent); box-shadow: 0 0 0 3px rgba( 82, 183, 136, 0.16 ); }
.writeo-search > i { color: var(--w-muted-2); font-size: 14px; flex-shrink: 0; }
.writeo-search input {
	flex: 1;
	min-width: 0;
	background-color: #ffffff !important;
	border: 1px solid #ffffff !important;
	box-shadow: none;
	outline: none;
	padding: 13px 0;
	font: inherit;
	font-size: 14px;
	color: var(--w-text);
	-webkit-appearance: none;
	appearance: none;
}
.writeo-search input::placeholder { color: var(--w-muted-2); }
.writeo-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.writeo-search__clear {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	color: var(--w-muted-2);
	text-decoration: none;
	font-size: 13px;
	transition: background 0.15s, color 0.15s;
}
.writeo-search__clear:hover { background: var(--w-accent-tint); color: var(--w-accent); }

/* Contenedor con scroll horizontal para tablas anchas (móvil). */
.writeo-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== Ajustes móviles del panel ===== */
@media ( max-width: 768px ) {
	.writeo-main { padding: 28px 16px 48px; }
	.writeo-section { padding: 22px 18px; border-radius: 16px; }
	.writeo-form { padding: 22px 18px; }
	.writeo-search { max-width: none; }
	.writeo-table th, .writeo-table td { padding: 12px 14px; }
	.writeo-table a { display: inline-block; min-width: 160px; }
	/* Acciones de suscripción a lo ancho para no cortarse. */
	.writeo-sub-actions { flex-direction: column; align-items: stretch; }
	.writeo-sub-actions select, .writeo-sub-actions .writeo-btn { width: 100%; }
	/* Formulario de acceso/registro sin cortarse por la derecha. */
	.writeo-auth { box-shadow: 0 12px 40px rgba( 13, 31, 13, 0.1 ); }
	.writeo-auth .writeo-login { padding: 28px 20px; }
	.writeo-account-head__info { flex-basis: 100%; }
}

/* ===== Afiliados (panel del usuario) ===== */
.writeo-af-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin: 24px 0; }
.writeo-af-pay p { color: var(--w-heading); }
.writeo-af-card { display: flex; flex-direction: column; justify-content: center; text-decoration: none; transition: transform .16s, box-shadow .16s; }
.writeo-af-card:hover { transform: translateY( -2px ); box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.08 ); }
.writeo-af-card h2 { margin-top: 0; }
.writeo-af-card p { color: var(--w-accent); font-weight: 600; margin: 0; }
.writeo-af-link { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.writeo-af-link input { flex: 1; min-width: 220px; background: var(--w-surface); border: 1px solid var(--w-line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--w-heading); }
.writeo-pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.writeo-pagination a, .writeo-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--w-line); text-decoration: none; color: var(--w-heading); font-weight: 600; font-size: 14px; }
.writeo-pagination a:hover { border-color: var(--w-accent); }
.writeo-pagination .is-current { background: var(--w-accent); color: #0d1f0d; border-color: var(--w-accent); }
.writeo-af-sub { margin: 22px 0 4px; font-size: 15px; color: var(--w-heading); }
.writeo-af-radios { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 8px; }
.writeo-af-radios label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }

/* Aceptación de términos en el registro. */
.writeo-terms { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 4px; font-size: 13.5px; line-height: 1.5; }
.writeo-terms input { margin-top: 3px; }

@media ( max-width: 720px ) {
	.writeo-af-actions { grid-template-columns: 1fr; }
}

/* ===== Modo "contenido más desarrollado" en /generar/ ===== */
/* Doble clase para ganar a las reglas genéricas .writeo-field label / input. */
.writeo-field .writeo-dev-check {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	border-radius: 14px;
	padding: 16px 18px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--w-heading);
	transition: border-color 0.16s, background 0.16s;
}
.writeo-field .writeo-dev-check:hover { border-color: var(--w-accent); }
.writeo-field .writeo-dev-check input {
	width: 17px;
	height: 17px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	accent-color: var(--w-accent);
	cursor: pointer;
	flex-shrink: 0;
}
.writeo-dev-check > span { display: inline-flex; align-items: center; gap: 6px; }
/* El texto del modo desarrollado es largo: burbuja más ancha y legible. */
.writeo-tip--wide .writeo-tip__bubble { width: 360px; }
.writeo-dev-extra {
	margin-left: auto;
	background: var(--w-accent-tint);
	color: var(--w-ok);
	border-radius: 100px;
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 700;
}
.writeo-dev-extra:empty { display: none; }

/* ===== Aviso de instalación del plugin conector (en /configuracion/) ===== */
.writeo-plugin-note {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	border-left: 4px solid var(--w-accent);
	border-radius: 14px;
	padding: 20px 22px;
	margin: 18px 0 24px;
}
.writeo-plugin-note__ico {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 11px;
	background: var(--w-primary);
	color: var(--w-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}
.writeo-plugin-note__body strong { display: block; font-size: 15px; color: var(--w-heading); margin-bottom: 8px; }
.writeo-plugin-note__body p { font-size: 13.5px; color: var(--w-muted); line-height: 1.65; margin: 0 0 10px; }
.writeo-plugin-note .writeo-btn { margin-top: 4px; }

@media ( max-width: 600px ) {
	.writeo-plugin-note { flex-direction: column; gap: 12px; }
}
