index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  1. <template>
  2. <div>
  3. <section
  4. id="quem-somos"
  5. class="relative min-h-screen flex flex-col bg-cover lg:bg-left"
  6. :style="{ backgroundImage: `url(${heroBackground})` }"
  7. >
  8. <div class="absolute inset-0 bg-violet-normal/45"/>
  9. <div class="relative z-10 flex-1 flex items-center">
  10. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full pt-8 pb-20 lg:py-18">
  11. <div class="flex flex-col lg:flex-row gap-4 lg:gap-12">
  12. <div class="max-w-2xl justifyBetween">
  13. <h1
  14. class="reveal text-h2 text-white font-black mb-10"
  15. style="font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 900;"
  16. >
  17. {{ settings.hero_title }}
  18. </h1>
  19. <p class="reveal reveal-delay-1 text-white/90 mb-6 leading-relaxed" style="font-size: clamp(1rem, 1.5vw, 1.125rem); font-weight: 600;">
  20. {{ settings.hero_subtitle }}
  21. </p>
  22. <div class="reveal reveal-delay-2 flex flex-col sm:flex-row gap-4">
  23. <button
  24. class="btn-primary"
  25. @click="scrollTo('associe-se')"
  26. >
  27. ASSOCIE-SE AGORA
  28. </button>
  29. <button
  30. class="btn-outline"
  31. @click="scrollTo('beneficios')"
  32. >
  33. CONHEÇA OS BENEFÍCIOS
  34. </button>
  35. </div>
  36. </div>
  37. <div class="reveal reveal-delay-3 flex flex-row lg:flex-col gap-6 lg:gap-8 shrink-0">
  38. <div
  39. v-for="stat in stats"
  40. :key="stat.key"
  41. class="flex flex-col items-start gap-1"
  42. >
  43. <i :class="`mdi ${stat.icon} text-white/90 text-3xl lg:text-4xl`" />
  44. <span class="text-white font-bold" style="font-size: clamp(1.25rem, 2.5vw, 1.75rem);">{{ stat.value }}</span>
  45. <span class="text-white/80 text-sm">{{ stat.label }}</span>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </section>
  52. <section id="beneficios" class="bg-neutral-light py-16 lg:py-24">
  53. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  54. <div class="reveal text-center mb-12 lg:mb-16">
  55. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  56. Benefícios para você
  57. </h2>
  58. </div>
  59. <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
  60. <div
  61. v-for="(benefit, index) in benefits"
  62. :key="benefit.id"
  63. :class="`reveal reveal-delay-${index + 1}`"
  64. class="benefit-card"
  65. >
  66. <div class="benefit-icon-wrap">
  67. <i :class="`mdi ${benefit.icon} text-violet-normal`" style="font-size: 1.5rem;" />
  68. </div>
  69. <h3 class="text-subtitle-1 font-semibold text-text mt-4 mb-2">
  70. {{ benefit.title }}
  71. </h3>
  72. <p class="text-body-2 text-text-2 leading-relaxed">
  73. {{ benefit.description }}
  74. </p>
  75. </div>
  76. </div>
  77. </div>
  78. </section>
  79. <section v-if="hasAbout" id="sobre-nos" class=" py-16 lg:py-24">
  80. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  81. <div v-if="aboutCards.length" class="reveal text-center mb-12 lg:mb-16">
  82. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  83. Quem somos
  84. </h2>
  85. </div>
  86. <div v-if="aboutCards.length" class="grid grid-cols-1 md:grid-cols-3 gap-6 items-stretch">
  87. <div
  88. v-for="(card, index) in aboutCards"
  89. :key="card.title"
  90. :class="`reveal reveal-delay-${index + 1}`"
  91. class="benefit-card"
  92. >
  93. <div class="flex items-center gap-3 mb-4">
  94. <div class="benefit-icon-wrap shrink-0">
  95. <i :class="`mdi ${card.icon} text-violet-normal`" style="font-size: 1.5rem;" />
  96. </div>
  97. <h3 class="text-subtitle-1 font-semibold text-text">
  98. {{ card.title }}
  99. </h3>
  100. </div>
  101. <p
  102. v-for="(paragraph, paragraphIndex) in card.paragraphs"
  103. :key="paragraphIndex"
  104. lang="pt-BR"
  105. class="text-body-2 text-text-2 text-justify hyphens-auto about-text"
  106. :class="{ 'mt-3': paragraphIndex > 0 }"
  107. >
  108. {{ paragraph }}
  109. </p>
  110. </div>
  111. </div>
  112. <template v-if="settings.about_history">
  113. <div
  114. class="reveal flex items-center justify-center gap-3 mb-10 lg:mb-12"
  115. :class="{ 'mt-16 lg:mt-24': aboutCards.length }"
  116. >
  117. <div class="benefit-icon-wrap shrink-0">
  118. <i class="mdi mdi-book-open-page-variant-outline text-violet-normal" style="font-size: 1.5rem;" />
  119. </div>
  120. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  121. História
  122. </h2>
  123. </div>
  124. <div class="reveal reveal-delay-1 benefit-card history-card">
  125. <p
  126. v-for="(paragraph, index) in historyParagraphs"
  127. :key="index"
  128. lang="pt-BR"
  129. class="text-body-1 text-text-2 text-justify hyphens-auto history-text"
  130. :class="{ 'mt-4': index > 0 }"
  131. >
  132. {{ paragraph }}
  133. </p>
  134. </div>
  135. </template>
  136. </div>
  137. </section>
  138. <section v-if="events.length" id="eventos" class="bg-neutral-light py-16 lg:py-24">
  139. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  140. <div class="reveal flex items-center justify-center gap-3 mb-12 lg:mb-16">
  141. <div class="benefit-icon-wrap shrink-0">
  142. <i class="mdi mdi-calendar-month-outline text-violet-normal" style="font-size: 1.5rem;" />
  143. </div>
  144. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  145. Eventos
  146. </h2>
  147. </div>
  148. <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 items-start">
  149. <EventCard
  150. v-for="(event, index) in events"
  151. :key="event.id"
  152. :class="`reveal reveal-delay-${(index % 2) + 1}`"
  153. :event="event"
  154. />
  155. </div>
  156. </div>
  157. </section>
  158. <section id="associe-se" class="bg-violet-light py-16 lg:py-24">
  159. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  160. <div class="reveal text-center mb-10 lg:mb-12">
  161. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  162. Associe-se
  163. </h2>
  164. </div>
  165. <div class="reveal reveal-delay-1 max-w-3xl mx-auto">
  166. <div class="mb-0">
  167. <button class="tab-active">
  168. NOVA ASSOCIAÇÃO
  169. </button>
  170. </div>
  171. <div class="bg-white rounded-b-2xl rounded-tr-2xl shadow-md p-6 lg:p-10">
  172. <form novalidate @submit.prevent="handleSubmit" >
  173. <div class="grid grid-cols-1 sm:grid-cols-2 gap-5 mb-6">
  174. <div class="field-group">
  175. <label class="field-label">Nome</label>
  176. <div :class="['field-input-wrap', { 'field-error': errors.nome }]">
  177. <span class="material-icons field-icon">person</span>
  178. <input
  179. v-model="form.nome"
  180. type="text"
  181. placeholder="Seu nome"
  182. class="field-input"
  183. @blur="onNameBlur('nome')"
  184. >
  185. </div>
  186. <span v-if="errors.nome" class="field-error-text">{{ errors.nome }}</span>
  187. </div>
  188. <div class="field-group">
  189. <label class="field-label">Sobrenome</label>
  190. <div :class="['field-input-wrap', { 'field-error': errors.sobrenome }]">
  191. <span class="material-icons field-icon">person</span>
  192. <input
  193. v-model="form.sobrenome"
  194. type="text"
  195. placeholder="Seu sobrenome"
  196. class="field-input"
  197. @blur="onNameBlur('sobrenome')"
  198. >
  199. </div>
  200. <span v-if="errors.sobrenome" class="field-error-text">{{ errors.sobrenome }}</span>
  201. </div>
  202. <div class="field-group">
  203. <label class="field-label">CPF</label>
  204. <div :class="['field-input-wrap', { 'field-error': errors.cpf }]">
  205. <span class="material-icons field-icon">badge</span>
  206. <input
  207. :value="form.cpf"
  208. type="text"
  209. placeholder="000.000.000-00"
  210. maxlength="14"
  211. class="field-input"
  212. @input="handleCPF"
  213. @blur="onCPFBlur"
  214. >
  215. </div>
  216. </div>
  217. <div class="field-group">
  218. <label class="field-label">Crachá</label>
  219. <div :class="['field-input-wrap', { 'field-error': errors.cracha }]">
  220. <span class="material-icons field-icon">credit_card</span>
  221. <input
  222. v-model="form.cracha"
  223. type="text"
  224. placeholder="Número do seu crachá"
  225. class="field-input"
  226. >
  227. </div>
  228. </div>
  229. <div class="field-group">
  230. <label class="field-label">E-mail</label>
  231. <div :class="['field-input-wrap', { 'field-error': errors.email }]">
  232. <span class="material-icons field-icon">email</span>
  233. <input
  234. v-model="form.email"
  235. type="email"
  236. placeholder="nome@conta.com"
  237. class="field-input"
  238. @blur="onEmailBlur"
  239. >
  240. </div>
  241. </div>
  242. <div class="field-group">
  243. <label class="field-label">Telefone</label>
  244. <div :class="['field-input-wrap', { 'field-error': errors.telefone }]">
  245. <span class="material-icons field-icon">phone</span>
  246. <input
  247. :value="form.telefone"
  248. type="tel"
  249. placeholder="(00) 00000-0000"
  250. maxlength="15"
  251. class="field-input"
  252. @input="handlePhone"
  253. @blur="onPhoneBlur"
  254. >
  255. </div>
  256. </div>
  257. <div class="field-group">
  258. <label class="field-label">Cargo</label>
  259. <div :class="['field-input-wrap', { 'field-error': errors.cargoId }]">
  260. <span class="material-icons field-icon">work</span>
  261. <select v-model="form.cargoId" class="field-input">
  262. <option :value="null" disabled>Selecione seu cargo</option>
  263. <option v-for="position in positions" :key="position.id" :value="position.id">
  264. {{ position.name }}
  265. </option>
  266. </select>
  267. </div>
  268. </div>
  269. <div class="field-group">
  270. <label class="field-label">Setor</label>
  271. <div :class="['field-input-wrap', { 'field-error': errors.setorId }]">
  272. <span class="material-icons field-icon">business</span>
  273. <select v-model="form.setorId" class="field-input">
  274. <option :value="null" disabled>Selecione seu setor</option>
  275. <option v-for="sector in sectors" :key="sector.id" :value="sector.id">
  276. {{ sector.name }}
  277. </option>
  278. </select>
  279. </div>
  280. </div>
  281. </div>
  282. <div class="flex justify-center">
  283. <button type="submit" class="btn-submit" :disabled="isLoading" :style="isLoading ? 'opacity: 0.7; cursor: not-allowed;' : ''">
  284. {{ isLoading ? 'ENVIANDO...' : 'ENVIAR SOLICITAÇÃO' }}
  285. </button>
  286. </div>
  287. </form>
  288. </div>
  289. </div>
  290. </div>
  291. </section>
  292. <Transition name="toast">
  293. <div
  294. v-if="showSuccess"
  295. class="fixed bottom-6 right-6 z-50 max-w-sm bg-violet-normal text-white px-5 py-4 rounded-xl shadow-xl flex items-start gap-3"
  296. >
  297. <span class="material-icons text-xl">check_circle</span>
  298. <span class="text-sm font-medium">
  299. Solicitação enviada com sucesso! Assim que a administração aprovar seu cadastro,
  300. use a opção "Meu Primeiro Acesso" no login para criar sua senha.
  301. </span>
  302. </div>
  303. </Transition>
  304. <Transition name="toast">
  305. <div
  306. v-if="showError"
  307. class="fixed bottom-6 right-6 z-50 bg-red-600 text-white px-5 py-4 rounded-xl shadow-xl flex items-center gap-3"
  308. >
  309. <span class="material-icons text-xl">error_outline</span>
  310. <span class="text-sm font-medium">{{ errorMessage }}</span>
  311. </div>
  312. </Transition>
  313. </div>
  314. </template>
  315. <script setup lang="ts">
  316. import heroBgFallback from '~/assets/images/imagem_fundo.png'
  317. useHead({ title: 'Serprati' })
  318. definePageMeta({ layout: 'default' })
  319. const { settings, benefits } = useCompanyData()
  320. const { events } = useEvents()
  321. const heroBackground = computed(() => settings.value.hero_background_url ?? heroBgFallback)
  322. const STAT_FALLBACK_ICONS = ['mdi-account-group', 'mdi-handshake', 'mdi-heart-outline']
  323. const stats = computed(() =>
  324. [1, 2, 3].map((n, index) => ({
  325. key: `stat${n}`,
  326. icon: settings.value[`stat${n}_icon` as keyof typeof settings.value] || STAT_FALLBACK_ICONS[index],
  327. value: settings.value[`stat${n}_value` as keyof typeof settings.value],
  328. label: settings.value[`stat${n}_label` as keyof typeof settings.value],
  329. }))
  330. )
  331. const toParagraphs = (raw: string | null): string[] => {
  332. const content = raw?.trim()
  333. if (!content) return []
  334. const paragraphs: string[] = []
  335. let startNewParagraph = true
  336. for (const line of content.split(/\r?\n/)) {
  337. const text = line.trim()
  338. if (!text) {
  339. startNewParagraph = true
  340. continue
  341. }
  342. const previous = paragraphs[paragraphs.length - 1]
  343. const isWrappedLine = !!previous && previous.length >= 60 && !/[.!?:;]$/.test(previous)
  344. if (!startNewParagraph && isWrappedLine) {
  345. paragraphs[paragraphs.length - 1] = `${previous} ${text}`
  346. } else {
  347. paragraphs.push(text)
  348. }
  349. startNewParagraph = false
  350. }
  351. return paragraphs
  352. }
  353. const aboutCards = computed(() =>
  354. [
  355. { title: 'Visão', icon: 'mdi-eye-outline', text: settings.value.about_vision },
  356. { title: 'Missão', icon: 'mdi-bullseye-arrow', text: settings.value.about_mission },
  357. { title: 'Valores', icon: 'mdi-heart-outline', text: settings.value.about_values },
  358. ]
  359. .filter((card) => !!card.text?.trim())
  360. .map((card) => ({ ...card, paragraphs: toParagraphs(card.text) }))
  361. )
  362. const hasAbout = computed(() => aboutCards.value.length > 0 || !!settings.value.about_history?.trim())
  363. const historyParagraphs = computed(() => toParagraphs(settings.value.about_history))
  364. const scrollTo = (id: string) => {
  365. document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' })
  366. }
  367. const form = reactive({
  368. nome: '',
  369. sobrenome: '',
  370. cpf: '',
  371. cracha: '',
  372. email: '',
  373. telefone: '',
  374. cargoId: null as number | null,
  375. setorId: null as number | null,
  376. })
  377. const formatCPF = (value: string): string => {
  378. return value
  379. .replace(/\D/g, '')
  380. .replace(/(\d{3})(\d)/, '$1.$2')
  381. .replace(/(\d{3})(\d)/, '$1.$2')
  382. .replace(/(\d{3})(\d{1,2})$/, '$1-$2')
  383. .slice(0, 14)
  384. }
  385. const validateCPF = (cpf: string): boolean => {
  386. const d = cpf.replace(/\D/g, '')
  387. if (d.length !== 11 || /^(\d)\1{10}$/.test(d)) return false
  388. const calc = (n: number): number => {
  389. let sum = 0
  390. for (let i = 0; i < n; i++) sum += parseInt(d.charAt(i)) * (n + 1 - i)
  391. const rem = sum % 11
  392. return rem < 2 ? 0 : 11 - rem
  393. }
  394. return calc(9) === parseInt(d.charAt(9)) && calc(10) === parseInt(d.charAt(10))
  395. }
  396. const validateEmail = (email: string): boolean =>
  397. /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)
  398. const formatPhone = (value: string): string =>
  399. value
  400. .replace(/\D/g, '')
  401. .replace(/^(\d{2})(\d)/, '($1) $2')
  402. .replace(/(\d{5})(\d{1,4})$/, '$1-$2')
  403. .slice(0, 15)
  404. const errors = reactive({
  405. nome: '',
  406. sobrenome: '',
  407. cpf: '',
  408. cracha: '',
  409. email: '',
  410. telefone: '',
  411. cargoId: '',
  412. setorId: '',
  413. })
  414. const clearErrors = () => {
  415. Object.keys(errors).forEach((key) => { errors[key as keyof typeof errors] = '' })
  416. }
  417. const validateRequired = (): boolean => {
  418. errors.nome = form.nome.trim() ? errors.nome : 'Campo obrigatório'
  419. errors.sobrenome = form.sobrenome.trim() ? errors.sobrenome : 'Campo obrigatório'
  420. errors.cracha = form.cracha.trim() ? '' : 'Campo obrigatório'
  421. errors.cargoId = form.cargoId ? '' : 'Campo obrigatório'
  422. errors.setorId = form.setorId ? '' : 'Campo obrigatório'
  423. errors.cpf = form.cpf.trim() ? errors.cpf : 'Campo obrigatório'
  424. errors.email = form.email.trim() ? errors.email : 'Campo obrigatório'
  425. errors.telefone = form.telefone.trim() ? errors.telefone : 'Campo obrigatório'
  426. return !Object.values(errors).some(Boolean)
  427. }
  428. const handleCPF = (e: Event) => {
  429. form.cpf = formatCPF((e.target as HTMLInputElement).value)
  430. if (errors.cpf) errors.cpf = ''
  431. }
  432. const handlePhone = (e: Event) => {
  433. form.telefone = formatPhone((e.target as HTMLInputElement).value)
  434. if (errors.telefone) errors.telefone = ''
  435. }
  436. const onNameBlur = (field: 'nome' | 'sobrenome') => {
  437. const value = form[field].trim()
  438. errors[field] = value && value.length < 3 ? 'Mínimo de 3 caracteres' : ''
  439. }
  440. const onCPFBlur = () => {
  441. errors.cpf = form.cpf && !validateCPF(form.cpf) ? 'CPF inválido' : ''
  442. }
  443. const onEmailBlur = () => {
  444. errors.email = form.email && !validateEmail(form.email) ? 'E-mail inválido' : ''
  445. }
  446. const onPhoneBlur = () => {
  447. errors.telefone = form.telefone && form.telefone.replace(/\D/g, '').length < 10 ? 'Telefone inválido' : ''
  448. }
  449. watch(() => form.email, () => { if (errors.email) errors.email = '' })
  450. watch(() => form.nome, () => { if (errors.nome) errors.nome = '' })
  451. watch(() => form.sobrenome, () => { if (errors.sobrenome) errors.sobrenome = '' })
  452. watch(() => form.cracha, () => { if (errors.cracha) errors.cracha = '' })
  453. watch(() => form.cargoId, () => { if (errors.cargoId) errors.cargoId = '' })
  454. watch(() => form.setorId, () => { if (errors.setorId) errors.setorId = '' })
  455. const { registerLandingUser, positions, sectors } = useRegisterApi()
  456. const isLoading = ref(false)
  457. const showSuccess = ref(false)
  458. const showError = ref(false)
  459. const errorMessage = ref('')
  460. const resetForm = () => {
  461. Object.assign(form, {
  462. nome: '',
  463. sobrenome: '',
  464. cpf: '',
  465. cracha: '',
  466. email: '',
  467. telefone: '',
  468. cargoId: null,
  469. setorId: null,
  470. })
  471. clearErrors()
  472. }
  473. const handleSubmit = async () => {
  474. onNameBlur('nome')
  475. onNameBlur('sobrenome')
  476. errors.cpf = form.cpf && !validateCPF(form.cpf) ? 'CPF inválido' : ''
  477. errors.email = form.email && !validateEmail(form.email) ? 'E-mail inválido' : ''
  478. errors.telefone = form.telefone && form.telefone.replace(/\D/g, '').length < 10 ? 'Telefone inválido' : ''
  479. if (!validateRequired()) return
  480. isLoading.value = true
  481. showError.value = false
  482. try {
  483. await registerLandingUser({
  484. name: form.nome,
  485. last_name: form.sobrenome,
  486. cpf: form.cpf,
  487. registration: form.cracha,
  488. email: form.email,
  489. phone: form.telefone,
  490. position_id: form.cargoId,
  491. sector_id: form.setorId,
  492. })
  493. showSuccess.value = true
  494. setTimeout(() => { showSuccess.value = false }, 9000)
  495. resetForm()
  496. } catch (err: unknown) {
  497. const error = err as { data?: { errors?: Record<string, string[]>; message?: string } }
  498. const firstError = error?.data?.errors
  499. ? Object.values(error.data.errors)[0]?.[0]
  500. : error?.data?.message
  501. errorMessage.value = firstError || 'Erro ao enviar solicitação. Tente novamente.'
  502. showError.value = true
  503. setTimeout(() => { showError.value = false }, 5000)
  504. } finally {
  505. isLoading.value = false
  506. }
  507. }
  508. onMounted(() => {
  509. const observer = new IntersectionObserver(
  510. (entries) => {
  511. entries.forEach((entry) => {
  512. if (entry.isIntersecting) {
  513. entry.target.classList.add('is-visible')
  514. observer.unobserve(entry.target)
  515. }
  516. })
  517. },
  518. { threshold: 0.1, rootMargin: '0px 0px -40px 0px' }
  519. )
  520. document.querySelectorAll('.reveal').forEach((el) => observer.observe(el))
  521. })
  522. </script>
  523. <style scoped>
  524. @media (max-width: 1023px) {
  525. #quem-somos {
  526. background-position: 8% 65%;
  527. }
  528. }
  529. .btn-primary {
  530. background: linear-gradient(90deg, #4d1658 0%, #8b30a5 100%);
  531. color: #ffffff;
  532. font-family: "Nunito", sans-serif;
  533. font-weight: 800;
  534. font-size: 0.875rem;
  535. letter-spacing: 1px;
  536. padding: 0.75rem 1.75rem;
  537. border-radius: 0.5rem;
  538. transition: opacity 0.2s;
  539. cursor: pointer;
  540. white-space: nowrap;
  541. }
  542. .btn-primary:hover {
  543. opacity: 0.88;
  544. }
  545. .btn-outline {
  546. background-color: rgba(102, 29, 117, 0.18);
  547. color: #ffffff;
  548. font-family: "Nunito", sans-serif;
  549. font-weight: 700;
  550. font-size: 0.875rem;
  551. letter-spacing: 1px;
  552. padding: 0.75rem 1.75rem;
  553. border-radius: 0.5rem;
  554. border: 2px solid #a855c8;
  555. transition: background-color 0.2s, border-color 0.2s;
  556. cursor: pointer;
  557. white-space: nowrap;
  558. }
  559. .btn-outline:hover {
  560. background-color: rgba(102, 29, 117, 0.32);
  561. border-color: #ffffff;
  562. }
  563. .benefit-card {
  564. background-color: #ffffff;
  565. border-radius: 1rem;
  566. padding: 1.75rem;
  567. box-shadow: 0 6px 24px rgba(102, 29, 117, 0.14);
  568. transition: box-shadow 0.2s, transform 0.2s;
  569. }
  570. .benefit-card:hover {
  571. box-shadow: 0 10px 36px rgba(102, 29, 117, 0.22);
  572. transform: translateY(-2px);
  573. }
  574. .history-card {
  575. padding: 2rem 1.75rem;
  576. }
  577. @media (min-width: 1024px) {
  578. .history-card {
  579. padding: 2.5rem 3rem;
  580. }
  581. }
  582. .about-text {
  583. line-height: 1.7;
  584. }
  585. .history-text {
  586. font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  587. line-height: 1.85;
  588. }
  589. .benefit-icon-wrap {
  590. display: inline-flex;
  591. align-items: center;
  592. justify-content: center;
  593. width: 48px;
  594. height: 48px;
  595. background-color: #f0e8f1;
  596. border-radius: 0.75rem;
  597. }
  598. .tab-active {
  599. background-color: #661d75;
  600. color: #ffffff;
  601. font-family: "Nunito", sans-serif;
  602. font-weight: 600;
  603. font-size: 0.75rem;
  604. letter-spacing: 1.25px;
  605. padding: 0.625rem 1.5rem;
  606. border-radius: 0.5rem 0.5rem 0 0;
  607. cursor: default;
  608. }
  609. .field-group {
  610. display: flex;
  611. flex-direction: column;
  612. gap: 0.375rem;
  613. }
  614. .field-label {
  615. font-family: "Nunito", sans-serif;
  616. font-size: 0.8125rem;
  617. font-weight: 600;
  618. color: #505050;
  619. }
  620. .field-input-wrap {
  621. display: flex;
  622. align-items: center;
  623. gap: 0.5rem;
  624. border: 1.5px solid #C0C0C0;
  625. border-radius: 0.5rem;
  626. padding: 0.5rem 0.75rem;
  627. background-color: #fefefe;
  628. transition: border-color 0.2s;
  629. }
  630. .field-input-wrap:focus-within {
  631. border-color: #661d75;
  632. }
  633. .field-input-wrap.field-error {
  634. border-color: #dc2626;
  635. }
  636. .field-error-text {
  637. font-family: "Nunito", sans-serif;
  638. font-size: 0.75rem;
  639. color: #dc2626;
  640. }
  641. .field-icon {
  642. font-size: 1.125rem;
  643. color: #b6b6b6;
  644. flex-shrink: 0;
  645. }
  646. .field-input {
  647. flex: 1;
  648. border: none;
  649. outline: none;
  650. background: transparent;
  651. font-family: "Nunito", sans-serif;
  652. font-size: 0.875rem;
  653. color: #161616;
  654. }
  655. .field-input::placeholder {
  656. color: #b6b6b6;
  657. }
  658. .btn-submit {
  659. background-color: #661d75;
  660. color: #ffffff;
  661. font-family: "Nunito", sans-serif;
  662. font-weight: 600;
  663. font-size: 0.875rem;
  664. letter-spacing: 1.25px;
  665. padding: 0.875rem 3rem;
  666. border-radius: 0.5rem;
  667. transition: background-color 0.2s;
  668. cursor: pointer;
  669. }
  670. .btn-submit:hover {
  671. background-color: #5c1a69;
  672. }
  673. .toast-enter-active,
  674. .toast-leave-active {
  675. transition: opacity 0.4s ease, transform 0.4s ease;
  676. }
  677. .toast-enter-from,
  678. .toast-leave-to {
  679. opacity: 0;
  680. transform: translateY(12px);
  681. }
  682. .justifyBetween {
  683. display: flex;
  684. flex-direction: column;
  685. justify-content: space-between;
  686. }
  687. </style>