@jjlmoya/utils-textiles 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/package.json +60 -0
  2. package/src/category/i18n/en.ts +76 -0
  3. package/src/category/i18n/es.ts +76 -0
  4. package/src/category/i18n/fr.ts +73 -0
  5. package/src/category/index.ts +17 -0
  6. package/src/category/seo.astro +15 -0
  7. package/src/components/PreviewNavSidebar.astro +116 -0
  8. package/src/components/PreviewToolbar.astro +143 -0
  9. package/src/data.ts +11 -0
  10. package/src/env.d.ts +5 -0
  11. package/src/index.ts +32 -0
  12. package/src/layouts/PreviewLayout.astro +117 -0
  13. package/src/pages/[locale]/[slug].astro +146 -0
  14. package/src/pages/[locale].astro +253 -0
  15. package/src/pages/index.astro +4 -0
  16. package/src/tests/faq_count.test.ts +19 -0
  17. package/src/tests/locale_completeness.test.ts +42 -0
  18. package/src/tests/mocks/astro_mock.js +2 -0
  19. package/src/tests/no_h1_in_components.test.ts +48 -0
  20. package/src/tests/seo_length.test.ts +22 -0
  21. package/src/tests/title_separators.test.ts +40 -0
  22. package/src/tests/tool_validation.test.ts +17 -0
  23. package/src/tool/burnTest/bibliography.astro +34 -0
  24. package/src/tool/burnTest/component.astro +602 -0
  25. package/src/tool/burnTest/i18n/en.ts +225 -0
  26. package/src/tool/burnTest/i18n/es.ts +225 -0
  27. package/src/tool/burnTest/i18n/fr.ts +225 -0
  28. package/src/tool/burnTest/index.ts +34 -0
  29. package/src/tool/burnTest/logic.ts +3 -0
  30. package/src/tool/burnTest/seo.astro +40 -0
  31. package/src/tool/burnTest/ui.ts +36 -0
  32. package/src/tool/clothingSizeConverter/bibliography.astro +34 -0
  33. package/src/tool/clothingSizeConverter/component.astro +1226 -0
  34. package/src/tool/clothingSizeConverter/i18n/en.ts +356 -0
  35. package/src/tool/clothingSizeConverter/i18n/es.ts +356 -0
  36. package/src/tool/clothingSizeConverter/i18n/fr.ts +356 -0
  37. package/src/tool/clothingSizeConverter/index.ts +34 -0
  38. package/src/tool/clothingSizeConverter/logic.ts +30 -0
  39. package/src/tool/clothingSizeConverter/seo.astro +40 -0
  40. package/src/tool/clothingSizeConverter/ui.ts +70 -0
  41. package/src/tool/fabricProjectCalculator/bibliography.astro +19 -0
  42. package/src/tool/fabricProjectCalculator/component.astro +914 -0
  43. package/src/tool/fabricProjectCalculator/i18n/en.ts +250 -0
  44. package/src/tool/fabricProjectCalculator/i18n/es.ts +250 -0
  45. package/src/tool/fabricProjectCalculator/i18n/fr.ts +250 -0
  46. package/src/tool/fabricProjectCalculator/index.ts +34 -0
  47. package/src/tool/fabricProjectCalculator/logic.ts +89 -0
  48. package/src/tool/fabricProjectCalculator/seo.astro +40 -0
  49. package/src/tool/fabricProjectCalculator/ui.ts +57 -0
  50. package/src/tool/fabricTruth/bibliography.astro +40 -0
  51. package/src/tool/fabricTruth/component.astro +708 -0
  52. package/src/tool/fabricTruth/i18n/en.ts +282 -0
  53. package/src/tool/fabricTruth/i18n/es.ts +316 -0
  54. package/src/tool/fabricTruth/i18n/fr.ts +282 -0
  55. package/src/tool/fabricTruth/index.ts +34 -0
  56. package/src/tool/fabricTruth/logic.ts +91 -0
  57. package/src/tool/fabricTruth/seo.astro +40 -0
  58. package/src/tool/fabricTruth/ui.ts +28 -0
  59. package/src/tool/fiberPrep/bibliography.astro +33 -0
  60. package/src/tool/fiberPrep/component.astro +987 -0
  61. package/src/tool/fiberPrep/i18n/en.ts +225 -0
  62. package/src/tool/fiberPrep/i18n/es.ts +225 -0
  63. package/src/tool/fiberPrep/i18n/fr.ts +225 -0
  64. package/src/tool/fiberPrep/index.ts +34 -0
  65. package/src/tool/fiberPrep/logic.ts +36 -0
  66. package/src/tool/fiberPrep/seo.astro +40 -0
  67. package/src/tool/fiberPrep/ui.ts +38 -0
  68. package/src/tool/knittingGauge/bibliography.astro +14 -0
  69. package/src/tool/knittingGauge/component.astro +828 -0
  70. package/src/tool/knittingGauge/i18n/en.ts +234 -0
  71. package/src/tool/knittingGauge/i18n/es.ts +234 -0
  72. package/src/tool/knittingGauge/i18n/fr.ts +234 -0
  73. package/src/tool/knittingGauge/index.ts +34 -0
  74. package/src/tool/knittingGauge/logic.ts +28 -0
  75. package/src/tool/knittingGauge/seo.astro +40 -0
  76. package/src/tool/knittingGauge/ui.ts +41 -0
  77. package/src/tool/laundryGuide/bibliography.astro +33 -0
  78. package/src/tool/laundryGuide/component.astro +486 -0
  79. package/src/tool/laundryGuide/data-en.ts +166 -0
  80. package/src/tool/laundryGuide/data-es.ts +166 -0
  81. package/src/tool/laundryGuide/data-fr.ts +103 -0
  82. package/src/tool/laundryGuide/i18n/en.ts +275 -0
  83. package/src/tool/laundryGuide/i18n/es.ts +275 -0
  84. package/src/tool/laundryGuide/i18n/fr.ts +291 -0
  85. package/src/tool/laundryGuide/index.ts +29 -0
  86. package/src/tool/laundryGuide/logic.ts +19 -0
  87. package/src/tool/laundryGuide/seo.astro +40 -0
  88. package/src/tool/needleConverter/bibliography.astro +14 -0
  89. package/src/tool/needleConverter/component.astro +518 -0
  90. package/src/tool/needleConverter/i18n/en.ts +217 -0
  91. package/src/tool/needleConverter/i18n/es.ts +217 -0
  92. package/src/tool/needleConverter/i18n/fr.ts +217 -0
  93. package/src/tool/needleConverter/index.ts +34 -0
  94. package/src/tool/needleConverter/logic.ts +31 -0
  95. package/src/tool/needleConverter/seo.astro +15 -0
  96. package/src/tool/needleConverter/ui.ts +17 -0
  97. package/src/tool/sewingPatternScaler/bibliography.astro +14 -0
  98. package/src/tool/sewingPatternScaler/component.astro +550 -0
  99. package/src/tool/sewingPatternScaler/i18n/en.ts +196 -0
  100. package/src/tool/sewingPatternScaler/i18n/es.ts +231 -0
  101. package/src/tool/sewingPatternScaler/i18n/fr.ts +187 -0
  102. package/src/tool/sewingPatternScaler/index.ts +34 -0
  103. package/src/tool/sewingPatternScaler/logic.ts +35 -0
  104. package/src/tool/sewingPatternScaler/seo.astro +49 -0
  105. package/src/tool/sewingPatternScaler/ui.ts +29 -0
  106. package/src/tool/shoeSizeConverter/bibliography.astro +34 -0
  107. package/src/tool/shoeSizeConverter/component.astro +437 -0
  108. package/src/tool/shoeSizeConverter/i18n/en.ts +188 -0
  109. package/src/tool/shoeSizeConverter/i18n/es.ts +188 -0
  110. package/src/tool/shoeSizeConverter/i18n/fr.ts +188 -0
  111. package/src/tool/shoeSizeConverter/index.ts +34 -0
  112. package/src/tool/shoeSizeConverter/logic.ts +8 -0
  113. package/src/tool/shoeSizeConverter/seo.astro +40 -0
  114. package/src/tool/shoeSizeConverter/ui.ts +21 -0
  115. package/src/tool/stainChemistry/bibliography.astro +40 -0
  116. package/src/tool/stainChemistry/component.astro +717 -0
  117. package/src/tool/stainChemistry/i18n/en.ts +303 -0
  118. package/src/tool/stainChemistry/i18n/es.ts +300 -0
  119. package/src/tool/stainChemistry/i18n/fr.ts +310 -0
  120. package/src/tool/stainChemistry/index.ts +34 -0
  121. package/src/tool/stainChemistry/logic.ts +11 -0
  122. package/src/tool/stainChemistry/seo.astro +40 -0
  123. package/src/tool/stainChemistry/ui.ts +51 -0
  124. package/src/tool/yarnCalculator/bibliography.astro +19 -0
  125. package/src/tool/yarnCalculator/component.astro +792 -0
  126. package/src/tool/yarnCalculator/i18n/en.ts +310 -0
  127. package/src/tool/yarnCalculator/i18n/es.ts +310 -0
  128. package/src/tool/yarnCalculator/i18n/fr.ts +310 -0
  129. package/src/tool/yarnCalculator/index.ts +34 -0
  130. package/src/tool/yarnCalculator/logic.ts +84 -0
  131. package/src/tool/yarnCalculator/seo.astro +14 -0
  132. package/src/tool/yarnCalculator/ui.ts +42 -0
  133. package/src/tools.ts +16 -0
  134. package/src/types.ts +72 -0
@@ -0,0 +1,303 @@
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { StainChemistryUI } from '../ui';
4
+
5
+ const slug = 'stain-chemical-protocol';
6
+ const title = 'Stain Chemical Protocol for Textiles';
7
+ const description =
8
+ 'Scientific protocols to remove stains based on fiber type and the chemical nature of the stain. Percarbonate, enzymes, solvents: the right method for every case.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'Can I use bleach instead of percarbonate?',
13
+ answer:
14
+ 'Bleach (sodium hypochlorite) is highly corrosive. It degrades fibers, turning them yellow and brittle. Percarbonate bleaches via active oxygen, preserving the natural molecular structure.',
15
+ },
16
+ {
17
+ question: 'Why does vinegar help with odors?',
18
+ answer:
19
+ 'Body odors are typically alkaline. The acetic acid in vinegar neutralizes them, converting them into odorless salts that are completely removed during rinsing.',
20
+ },
21
+ {
22
+ question: 'Should I always use cold water for blood?',
23
+ answer:
24
+ 'Yes. Heat coagulates the proteins in blood, permanently bonding them to the fiber. Cold water keeps the stain in a soluble state and allows enzymatic agents to work effectively.',
25
+ },
26
+ {
27
+ question: 'What happens if I apply acetone to an acetate garment?',
28
+ answer:
29
+ 'Acetone dissolves triacetate and acetate. Acetate fibers are cellulose esterified with acetic acid and are completely soluble in acetone. The result would be irreversible destruction of the fabric.',
30
+ },
31
+ ];
32
+
33
+ const howToData = [
34
+ {
35
+ name: 'Identify the fiber type',
36
+ text: 'Check the inner label of the garment to know if it is a natural, synthetic, or noble fiber (wool, silk, cashmere).',
37
+ },
38
+ {
39
+ name: 'Select the fiber in the tool',
40
+ text: 'Choose the corresponding material in the first selector.',
41
+ },
42
+ {
43
+ name: 'Select the stain type',
44
+ text: 'Indicate whether the stain is organic (wine, fruit), protein-based (blood), greasy, or synthetic (ink).',
45
+ },
46
+ {
47
+ name: 'Apply the indicated protocol',
48
+ text: 'Follow the instructions for agent, temperature, and method. Pay special attention to critical warning notices.',
49
+ },
50
+ ];
51
+
52
+ const faqSchema: WithContext<FAQPage> = {
53
+ '@context': 'https://schema.org',
54
+ '@type': 'FAQPage',
55
+ mainEntity: faqData.map((item) => ({
56
+ '@type': 'Question',
57
+ name: item.question,
58
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
59
+ })),
60
+ };
61
+
62
+ const howToSchema: WithContext<HowTo> = {
63
+ '@context': 'https://schema.org',
64
+ '@type': 'HowTo',
65
+ name: title,
66
+ description,
67
+ step: howToData.map((step) => ({
68
+ '@type': 'HowToStep',
69
+ name: step.name,
70
+ text: step.text,
71
+ })),
72
+ };
73
+
74
+ const appSchema: WithContext<SoftwareApplication> = {
75
+ '@context': 'https://schema.org',
76
+ '@type': 'SoftwareApplication',
77
+ name: title,
78
+ description,
79
+ applicationCategory: 'UtilityApplication',
80
+ operatingSystem: 'All',
81
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
82
+ inLanguage: 'en',
83
+ };
84
+
85
+ export const content: ToolLocaleContent<StainChemistryUI> = {
86
+ slug,
87
+ title,
88
+ description,
89
+ ui: {
90
+ toolTitle: 'Stain Chemical Protocol',
91
+ fiberLabel: '1. Fiber',
92
+ selectFiberPlaceholder: 'Select the fabric...',
93
+ stainLabel: '2. Stain',
94
+ selectStainPlaceholder: 'What happened?',
95
+ molecularDiagnosis: 'Molecular Diagnosis',
96
+ requiredAgent: 'Required Agent',
97
+ thermalCondition: 'Thermal Condition',
98
+ temperature: 'Temperature',
99
+ cleaningInstructions: 'Cleaning Instructions',
100
+ criticalWarning: 'Critical Warning',
101
+ criticalWarningLabel: 'WARNING',
102
+ technicalNote: 'Technical note',
103
+ technicalNoteText:
104
+ 'Always validate dye fastness on a hidden area before proceeding with the full chemical treatment.',
105
+ systemDiagnosis: 'Diagnosis System',
106
+ systemDiagnosisDesc: 'Configure the textile parameters to get the cleaning roadmap',
107
+ delicatePercarbonateWarning:
108
+ 'RISK OF MOLECULAR DEGRADATION. Animal fibers are highly sensitive to percarbonate. Test on a hidden area first.',
109
+ fiberData: {
110
+ cotton: { name: 'Cotton', family: 'natural', isNoble: false },
111
+ linen: { name: 'Linen', family: 'natural', isNoble: true },
112
+ wool: { name: 'Wool / Merino', family: 'natural', isNoble: true },
113
+ silk: { name: 'Silk', family: 'natural', isNoble: true },
114
+ cashmere: { name: 'Cashmere', family: 'natural', isNoble: true },
115
+ mohair: { name: 'Mohair', family: 'natural', isNoble: true },
116
+ angora: { name: 'Angora', family: 'natural', isNoble: true },
117
+ alpaca: { name: 'Alpaca', family: 'natural', isNoble: true },
118
+ polyester: { name: 'Polyester', family: 'synthetic', isNoble: false },
119
+ viscose: { name: 'Viscose / Rayon', family: 'artificial', isNoble: false },
120
+ nylon: { name: 'Nylon (Polyamide)', family: 'synthetic', isNoble: false },
121
+ acrylic: { name: 'Acrylic', family: 'synthetic', isNoble: false },
122
+ },
123
+ agents: {
124
+ percarbonate: {
125
+ name: 'Sodium Percarbonate',
126
+ description: 'Biodegradable oxygen-based bleach. Releases active oxygen when dissolved.',
127
+ warning: 'Avoid on protein fibers (silk, wool) at high concentrations.',
128
+ },
129
+ isopropyl: {
130
+ name: 'Isopropyl Alcohol',
131
+ description: 'Effective solvent for pigments and light grease.',
132
+ warning: 'Can damage the sheen of silk and dissolve some acrylics if not diluted.',
133
+ },
134
+ acetone: {
135
+ name: 'Acetone',
136
+ description: 'Powerful solvent for nail polish and adhesives.',
137
+ warning: 'FORBIDDEN on acetates and triacetates (dissolves the fiber).',
138
+ },
139
+ enzyme: {
140
+ name: 'Enzymatic Detergent',
141
+ description: 'Contains proteases that break down biological stains.',
142
+ warning: 'Use with caution on wool and silk (they are proteins).',
143
+ },
144
+ vinegar: {
145
+ name: 'White Vinegar',
146
+ description: 'Mild acetic acid to neutralize odors and fix colors.',
147
+ },
148
+ },
149
+ stains: [
150
+ {
151
+ id: 'wine',
152
+ name: 'Red Wine / Fruit',
153
+ protocols: {
154
+ natural: { agentId: 'percarbonate', temperature: '40–60°C', method: 'Extended soak' },
155
+ synthetic: { agentId: 'percarbonate', temperature: '40°C', method: 'Direct paste' },
156
+ delicate: {
157
+ agentId: 'vinegar',
158
+ temperature: 'Cold',
159
+ method: 'Rinse with sparkling water and vinegar',
160
+ notes: 'Do not rub',
161
+ },
162
+ },
163
+ },
164
+ {
165
+ id: 'blood',
166
+ name: 'Blood',
167
+ protocols: {
168
+ natural: {
169
+ agentId: 'enzyme',
170
+ temperature: 'Cold',
171
+ method: 'Soak in salted water then apply enzyme',
172
+ },
173
+ synthetic: { agentId: 'enzyme', temperature: 'Cold', method: 'Direct application' },
174
+ delicate: {
175
+ agentId: 'vinegar',
176
+ temperature: 'Cold',
177
+ method: 'Immediate rinse, avoid heat',
178
+ },
179
+ },
180
+ },
181
+ {
182
+ id: 'grease',
183
+ name: 'Grease / Oil',
184
+ protocols: {
185
+ natural: {
186
+ agentId: 'isopropyl',
187
+ temperature: '40°C',
188
+ method: 'Dissolve with alcohol then wash',
189
+ },
190
+ synthetic: {
191
+ agentId: 'isopropyl',
192
+ temperature: '40°C',
193
+ method: 'Place absorbent paper underneath',
194
+ },
195
+ delicate: {
196
+ agentId: 'isopropyl',
197
+ temperature: 'Cold',
198
+ method: 'Dilute alcohol to 50%',
199
+ },
200
+ },
201
+ },
202
+ {
203
+ id: 'ink',
204
+ name: 'Ink / Marker',
205
+ protocols: {
206
+ natural: {
207
+ agentId: 'isopropyl',
208
+ temperature: 'Room temp',
209
+ method: 'Dab from outside inward',
210
+ },
211
+ synthetic: {
212
+ agentId: 'isopropyl',
213
+ temperature: 'Room temp',
214
+ method: 'Caution with spreading',
215
+ },
216
+ delicate: {
217
+ agentId: 'isopropyl',
218
+ temperature: 'Cold',
219
+ method: 'Dilute and test on hidden area',
220
+ },
221
+ },
222
+ },
223
+ ],
224
+ },
225
+ seo: [
226
+ {
227
+ type: 'title',
228
+ text: 'The Chemistry Behind Textile Cleaning',
229
+ level: 2,
230
+ },
231
+ {
232
+ type: 'paragraph',
233
+ html: 'Not all stains are the same, and not all fibers react the same way to the same chemical agents. The difference between saving a garment and ruining it lies in understanding the molecular nature of the stain and the structure of the fiber.',
234
+ },
235
+ {
236
+ type: 'card',
237
+ title: '01 — Controlled Oxidation',
238
+ icon: 'mdi:atom',
239
+ html: '<strong>Sodium percarbonate</strong> releases active oxygen that breaks the double bonds of chromophores (the molecules responsible for the stain\'s color), rendering them colorless and water-soluble. It is the most effective method for organic stains.',
240
+ },
241
+ {
242
+ type: 'card',
243
+ title: '02 — Solubilization by Solvents',
244
+ icon: 'mdi:flask-outline',
245
+ html: 'Stains like oil or ink are not water-soluble. Solvents such as <strong>isopropyl alcohol</strong> or <strong>acetone</strong> reduce surface tension and attract the non-polar molecules of the stain, allowing them to be transferred to a support medium.',
246
+ },
247
+ {
248
+ type: 'title',
249
+ text: 'Fiber Sovereignty: Why Fiber Type Matters',
250
+ level: 2,
251
+ },
252
+ {
253
+ type: 'paragraph',
254
+ html: 'Not all fibers "eat" the same way. <strong>Silk and wool</strong> are proteins (fibroin and keratin). If you apply an enzymatic detergent designed to "eat proteins" (blood or egg stains) without control, the detergent will start to degrade the fiber itself, destroying its sheen and the fabric\'s structure.',
255
+ },
256
+ {
257
+ type: 'title',
258
+ text: 'The Danger of Heat',
259
+ level: 2,
260
+ },
261
+ {
262
+ type: 'paragraph',
263
+ html: 'One of the most common mistakes is using hot water to "soften" a blood stain. Chemically, heat causes the <strong>coagulation of the proteins</strong> in the stain, permanently bonding them to the porous structure of the fiber. Protein stains must always be treated with cold water.',
264
+ },
265
+ {
266
+ type: 'tip',
267
+ title: 'Emergency Protocol: Red Wine',
268
+ html: '<strong>A. Passive absorption:</strong> Blot with absorbent paper, never rub to avoid mechanical spreading.<br><strong>B. Osmotic neutralization:</strong> Cover with fine salt to draw the liquid out from the core of the fiber.<br><strong>C. Chemical action:</strong> Apply a paste of percarbonate and water at 40°C if the fiber is heat-resistant.',
269
+ },
270
+ {
271
+ type: 'title',
272
+ text: 'Specific Solvents and Precautions',
273
+ level: 2,
274
+ },
275
+ {
276
+ type: 'paragraph',
277
+ html: '<strong>Acetone</strong> is an exceptional solvent for nail polish or adhesives, but it is destructive to <strong>acetate</strong> fabric. As fibers derived from cellulose but chemically treated, acetone literally dissolves the fabric.',
278
+ },
279
+ {
280
+ type: 'paragraph',
281
+ html: '<strong>Isopropyl alcohol</strong> is more stable, but on dyed synthetics it can carry away the pigment itself. We always recommend the "hem test" on a hidden area before the main treatment.',
282
+ },
283
+ ],
284
+ faqTitle: 'Frequently Asked Questions',
285
+ faq: faqData,
286
+ bibliographyTitle: 'Bibliography',
287
+ bibliography: [
288
+ {
289
+ name: 'AATCC - Association for Advancing Color Technology and Chemistry',
290
+ url: 'https://www.aatcc.org',
291
+ },
292
+ {
293
+ name: 'Kissa, E. — Textile Auxiliaries',
294
+ url: 'https://www.springer.com/gp/book/9783642057328',
295
+ },
296
+ {
297
+ name: 'ISO 105 — Textiles: Tests for Colour Fastness',
298
+ url: 'https://www.iso.org/standard/72682.html',
299
+ },
300
+ ],
301
+ howTo: howToData,
302
+ schemas: [faqSchema, howToSchema, appSchema],
303
+ };
@@ -0,0 +1,300 @@
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { StainChemistryUI } from '../ui';
4
+
5
+ const slug = 'protocolo-quimico-manchas';
6
+ const title = 'Protocolo Químico de Manchas Textiles';
7
+ const description =
8
+ 'Protocolos científicos para eliminar manchas según el tipo de fibra y la naturaleza química de la mancha. Percarbonato, enzimas, solventes: el método correcto para cada caso.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: '¿Puedo usar lejía en lugar de percarbonato?',
13
+ answer:
14
+ 'La lejía (hipoclorito sódico) es altamente corrosiva. Degrada las fibras volviéndolas amarillentas y quebradizas. El percarbonato blanquea por oxígeno activo, respetando la estructura molecular natural.',
15
+ },
16
+ {
17
+ question: '¿Por qué el vinagre ayuda con los olores?',
18
+ answer:
19
+ 'Los olores corporales suelen ser alcalinos. El ácido acético del vinagre los neutraliza, transformándolos en sales inodoras que se eliminan completamente en el aclarado.',
20
+ },
21
+ {
22
+ question: '¿Siempre debo usar agua fría para la sangre?',
23
+ answer:
24
+ 'Sí. El calor coagula las proteínas de la sangre, fijándola a la fibra de forma permanente. El agua fría mantiene la mancha en estado soluble y permite que los agentes enzimáticos actúen eficazmente.',
25
+ },
26
+ {
27
+ question: '¿Qué pasa si aplico acetona a una prenda de acetato?',
28
+ answer:
29
+ 'La acetona disuelve el triacetato y el acetato. Las fibras de acetato son celulosa esterificada con ácido acético y son completamente solubles en acetona. El resultado sería la destrucción irreversible del tejido.',
30
+ },
31
+ ];
32
+
33
+ const howToData = [
34
+ {
35
+ name: 'Identificar el tipo de fibra',
36
+ text: 'Consulta la etiqueta interior de la prenda para conocer si es fibra natural, sintética o noble (lana, seda, cashmere).',
37
+ },
38
+ {
39
+ name: 'Seleccionar la fibra en la herramienta',
40
+ text: 'Elige el material correspondiente en el primer selector.',
41
+ },
42
+ {
43
+ name: 'Seleccionar el tipo de mancha',
44
+ text: 'Indica si la mancha es orgánica (vino, fruta), proteica (sangre), grasa o sintética (tinta).',
45
+ },
46
+ {
47
+ name: 'Aplicar el protocolo indicado',
48
+ text: 'Sigue las instrucciones de agente, temperatura y método. Presta especial atención a las advertencias de precaución crítica.',
49
+ },
50
+ ];
51
+
52
+ const faqSchema: WithContext<FAQPage> = {
53
+ '@context': 'https://schema.org',
54
+ '@type': 'FAQPage',
55
+ mainEntity: faqData.map((item) => ({
56
+ '@type': 'Question',
57
+ name: item.question,
58
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
59
+ })),
60
+ };
61
+
62
+ const howToSchema: WithContext<HowTo> = {
63
+ '@context': 'https://schema.org',
64
+ '@type': 'HowTo',
65
+ name: title,
66
+ description,
67
+ step: howToData.map((step) => ({
68
+ '@type': 'HowToStep',
69
+ name: step.name,
70
+ text: step.text,
71
+ })),
72
+ };
73
+
74
+ const appSchema: WithContext<SoftwareApplication> = {
75
+ '@context': 'https://schema.org',
76
+ '@type': 'SoftwareApplication',
77
+ name: title,
78
+ description,
79
+ applicationCategory: 'UtilityApplication',
80
+ operatingSystem: 'All',
81
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
82
+ inLanguage: 'es',
83
+ };
84
+
85
+ export const content: ToolLocaleContent<StainChemistryUI> = {
86
+ slug,
87
+ title,
88
+ description,
89
+ ui: {
90
+ toolTitle: 'Protocolo Químico de Manchas',
91
+ fiberLabel: '1. Fibra',
92
+ selectFiberPlaceholder: 'Selecciona el tejido...',
93
+ stainLabel: '2. Mancha',
94
+ selectStainPlaceholder: '¿Qué ha ocurrido?',
95
+ molecularDiagnosis: 'Diagnóstico Molecular',
96
+ requiredAgent: 'Agente Requerido',
97
+ thermalCondition: 'Condición Térmica',
98
+ temperature: 'Temperatura',
99
+ cleaningInstructions: 'Instrucciones de Limpieza',
100
+ criticalWarning: 'Precaución Crítica',
101
+ criticalWarningLabel: 'PRECAUCIÓN',
102
+ technicalNote: 'Nota técnica',
103
+ technicalNoteText:
104
+ 'Valida siempre la solidez del tinte en una zona no visible antes de proceder con el tratamiento químico completo.',
105
+ systemDiagnosis: 'Sistema de Diagnóstico',
106
+ systemDiagnosisDesc:
107
+ 'Configura los parámetros textiles para obtener la hoja de ruta de limpieza',
108
+ delicatePercarbonateWarning:
109
+ 'RIESGO DE DEGRADACIÓN MOLECULAR. Fibras animales altamente sensibles al percarbonato. Realizar test en zona no visible.',
110
+ fiberData: {
111
+ cotton: { name: 'Algodón', family: 'natural', isNoble: false },
112
+ linen: { name: 'Lino', family: 'natural', isNoble: true },
113
+ wool: { name: 'Lana / Merino', family: 'natural', isNoble: true },
114
+ silk: { name: 'Seda', family: 'natural', isNoble: true },
115
+ cashmere: { name: 'Cashmere', family: 'natural', isNoble: true },
116
+ mohair: { name: 'Mohair', family: 'natural', isNoble: true },
117
+ angora: { name: 'Angora', family: 'natural', isNoble: true },
118
+ alpaca: { name: 'Alpaca', family: 'natural', isNoble: true },
119
+ polyester: { name: 'Poliéster', family: 'synthetic', isNoble: false },
120
+ viscose: { name: 'Viscosa / Rayón', family: 'artificial', isNoble: false },
121
+ nylon: { name: 'Nailon (Poliamida)', family: 'synthetic', isNoble: false },
122
+ acrylic: { name: 'Acrílico', family: 'synthetic', isNoble: false },
123
+ },
124
+ agents: {
125
+ percarbonate: {
126
+ name: 'Percarbonato de Sodio',
127
+ description: 'Blanqueador oxigenado biodegradable. Libera oxígeno activo al disolverse.',
128
+ warning: 'Evitar en fibras de proteína (seda, lana) a altas concentraciones.',
129
+ },
130
+ isopropyl: {
131
+ name: 'Alcohol Isopropílico',
132
+ description: 'Solvente eficaz para pigmentos y grasas ligeras.',
133
+ warning: 'Puede dañar el brillo en sedas y disolver algunos acrílicos si no se diluye.',
134
+ },
135
+ acetone: {
136
+ name: 'Acetona',
137
+ description: 'Solvente potente para lacas y pegamentos.',
138
+ warning: 'PROHIBIDO en acetatos y triacetatos (disuelve la fibra).',
139
+ },
140
+ enzyme: {
141
+ name: 'Detergente Enzimático',
142
+ description: 'Contiene proteasas que rompen manchas biológicas.',
143
+ warning: 'Uso con precaución en lana y seda (son proteínas).',
144
+ },
145
+ vinegar: {
146
+ name: 'Vinagre Blanco',
147
+ description: 'Ácido acético suave para neutralizar olores y fijar colores.',
148
+ },
149
+ },
150
+ stains: [
151
+ {
152
+ id: 'wine',
153
+ name: 'Vino Tinto / Fruta',
154
+ protocols: {
155
+ natural: { agentId: 'percarbonate', temperature: '40–60°C', method: 'Remojo prolongado' },
156
+ synthetic: { agentId: 'percarbonate', temperature: '40°C', method: 'Pasta directa' },
157
+ delicate: {
158
+ agentId: 'vinegar',
159
+ temperature: 'Fría',
160
+ method: 'Aclarado con agua con gas y vinagre',
161
+ notes: 'No frotar',
162
+ },
163
+ },
164
+ },
165
+ {
166
+ id: 'blood',
167
+ name: 'Sangre',
168
+ protocols: {
169
+ natural: {
170
+ agentId: 'enzyme',
171
+ temperature: 'Fría',
172
+ method: 'Remojo en agua salada y luego enzima',
173
+ },
174
+ synthetic: { agentId: 'enzyme', temperature: 'Fría', method: 'Aplicación directa' },
175
+ delicate: {
176
+ agentId: 'vinegar',
177
+ temperature: 'Fría',
178
+ method: 'Aclarado inmediato, evitar calor',
179
+ },
180
+ },
181
+ },
182
+ {
183
+ id: 'grease',
184
+ name: 'Grasa / Aceite',
185
+ protocols: {
186
+ natural: {
187
+ agentId: 'isopropyl',
188
+ temperature: '40°C',
189
+ method: 'Disolver con alcohol y luego lavar',
190
+ },
191
+ synthetic: {
192
+ agentId: 'isopropyl',
193
+ temperature: '40°C',
194
+ method: 'Poner papel absorbente debajo',
195
+ },
196
+ delicate: { agentId: 'isopropyl', temperature: 'Fría', method: 'Diluir alcohol al 50%' },
197
+ },
198
+ },
199
+ {
200
+ id: 'ink',
201
+ name: 'Tinta / Marcador',
202
+ protocols: {
203
+ natural: {
204
+ agentId: 'isopropyl',
205
+ temperature: 'Ambiente',
206
+ method: 'Esponjar desde fuera hacia dentro',
207
+ },
208
+ synthetic: {
209
+ agentId: 'isopropyl',
210
+ temperature: 'Ambiente',
211
+ method: 'Precaución con la dispersión',
212
+ },
213
+ delicate: {
214
+ agentId: 'isopropyl',
215
+ temperature: 'Fría',
216
+ method: 'Diluir y probar en zona oculta',
217
+ },
218
+ },
219
+ },
220
+ ],
221
+ },
222
+ seo: [
223
+ {
224
+ type: 'title',
225
+ text: 'La Química Detrás de la Limpieza Textil',
226
+ level: 2,
227
+ },
228
+ {
229
+ type: 'paragraph',
230
+ html: 'No todas las manchas son iguales, y no todas las fibras reaccionan igual ante los mismos agentes químicos. La diferencia entre salvar una prenda y destruirla está en entender la naturaleza molecular de la mancha y la estructura de la fibra.',
231
+ },
232
+ {
233
+ type: 'card',
234
+ title: '01 — Oxidación Controlada',
235
+ icon: 'mdi:atom',
236
+ html: 'El <strong>percarbonato de sodio</strong> libera oxígeno activo que rompe las dobles ligaduras de los cromóforos (las moléculas responsables del color de la mancha), volviéndolas incoloras y solubles en agua. Es el método más eficaz para manchas orgánicas.',
237
+ },
238
+ {
239
+ type: 'card',
240
+ title: '02 — Solubilización por Solventes',
241
+ icon: 'mdi:flask-outline',
242
+ html: 'Manchas como el aceite o la tinta no son solubles en agua. Solventes como el <strong>alcohol isopropílico</strong> o la <strong>acetona</strong> reducen la tensión superficial y atraen las moléculas no polares de la mancha, permitiendo que se transfieran a un medio de soporte.',
243
+ },
244
+ {
245
+ type: 'title',
246
+ text: 'Soberanía sobre las Fibras: Por qué importa el tipo',
247
+ level: 2,
248
+ },
249
+ {
250
+ type: 'paragraph',
251
+ html: 'No todas las fibras "comen" igual. La <strong>seda y la lana</strong> son proteínas (fibroína y queratina). Si aplicas un detergente enzimático diseñado para "comer proteínas" (manchas de sangre o huevo) sin control, el detergente empezará a degradar la propia fibra, destruyendo el brillo y la estructura del tejido.',
252
+ },
253
+ {
254
+ type: 'title',
255
+ text: 'El Peligro del Calor',
256
+ level: 2,
257
+ },
258
+ {
259
+ type: 'paragraph',
260
+ html: 'Uno de los errores más comunes es usar agua caliente para "ablandar" una mancha de sangre. Químicamente, el calor produce la <strong>coagulación de las proteínas</strong> de la mancha, fijándolas permanentemente a la estructura porosa de la fibra. Las manchas de proteínas deben tratarse siempre con agua fría.',
261
+ },
262
+ {
263
+ type: 'tip',
264
+ title: 'Protocolo de Emergencia: Vino Tinto',
265
+ html: '<strong>A. Absorción pasiva:</strong> Tocar con papel absorbente, nunca frotar para evitar la expansión mecánica.<br><strong>B. Neutralización osmótica:</strong> Cubrir con sal fina para atraer el líquido hacia el exterior del núcleo de la fibra.<br><strong>C. Acción química:</strong> Aplicar una pasta de percarbonato y agua a 40°C si la fibra es resistente al calor.',
266
+ },
267
+ {
268
+ type: 'title',
269
+ text: 'Solventes Específicos y Precauciones',
270
+ level: 2,
271
+ },
272
+ {
273
+ type: 'paragraph',
274
+ html: 'La <strong>acetona</strong> es un solvente excepcional para lacas de uñas o pegamentos, pero es destructiva para el <strong>acetato</strong>. Al ser fibras derivadas de la celulosa pero tratadas químicamente, la acetona literalmente disuelve el tejido.',
275
+ },
276
+ {
277
+ type: 'paragraph',
278
+ html: 'El <strong>alcohol isopropílico</strong> es más estable, pero en sintéticos teñidos puede arrastrar el propio pigmento. Recomendamos siempre la "prueba del dobladillo" en una zona no visible antes del tratamiento principal.',
279
+ },
280
+ ],
281
+ faqTitle: 'Preguntas Frecuentes',
282
+ faq: faqData,
283
+ bibliographyTitle: 'Bibliografía',
284
+ bibliography: [
285
+ {
286
+ name: 'AATCC - Association for Advancing Color Technology and Chemistry',
287
+ url: 'https://www.aatcc.org',
288
+ },
289
+ {
290
+ name: 'Kissa, E. — Textile Auxiliaries',
291
+ url: 'https://www.springer.com/gp/book/9783642057328',
292
+ },
293
+ {
294
+ name: 'ISO 105 — Textiles: Tests for Colour Fastness',
295
+ url: 'https://www.iso.org/standard/72682.html',
296
+ },
297
+ ],
298
+ howTo: howToData,
299
+ schemas: [faqSchema, howToSchema, appSchema],
300
+ };