libreria-astro-lefebvre 0.2.38 → 0.2.40

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libreria-astro-lefebvre",
3
- "version": "0.2.38",
3
+ "version": "0.2.40",
4
4
  "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
5
  "author": "Equipo web desarrollo Lefebvre",
6
6
  "type": "module",
@@ -4,7 +4,7 @@ export const metadata: ComponentMetadata = {
4
4
  component_name: 'Boton_2026_Elx',
5
5
  category: 'CTA',
6
6
  name: 'Grupo de botones inline primario/secundario con icono opcional 2026',
7
- description: 'Fila de uno o varios botones colocados inline (con salto de línea si no caben). Cada botón puede ser Primario (fondo rojo #d71635, texto blanco) o Secundario (fondo blanco, borde y texto rojo #d71635), ambos de 48px de alto, esquinas de 8px y sombra suave, según el diseño de Figma. Opcionalmente muestra un icono de "abrir" a la derecha del texto. Cada botón puede navegar a una URL o abrir un modal con formulario LF2 (el mismo modal de Contenido_2025_Malaga, compartido por todos los botones marcados como modal). Siempre renderiza al menos un botón',
7
+ description: 'Fila de uno o varios botones colocados inline (con salto de línea si no caben). Cada botón puede ser Primario (fondo neutro oscuro, texto crema), Secundario (contorno y texto neutros) o Cabecera (rojo #d71635, solo para la CTA de cabecera), todos de 48px de alto, esquinas de 8px y sombra suave, según el diseño de Figma. Opcionalmente muestra un icono de "abrir" a la derecha del texto. Cada botón puede navegar a una URL o abrir un modal con formulario LF2 (el mismo modal de Contenido_2025_Malaga, compartido por todos los botones marcados como modal). Siempre renderiza al menos un botón',
8
8
  framework: 'Astro',
9
9
  priority: 1,
10
10
  tags: ['boton', 'cta', 'botones', 'inline', 'primario', 'secundario', 'modal', 'formulario', 'lf2'],
@@ -29,9 +29,9 @@ export const metadata: ComponentMetadata = {
29
29
  name: 'type',
30
30
  type: 'select',
31
31
  label: 'Tipo de botón',
32
- help: 'Primario: fondo rojo y texto blanco. Secundario: fondo blanco con borde y texto rojo',
33
- options: ['primary', 'secondary'],
34
- options_labels: ['Primario', 'Secundario'],
32
+ help: 'Primario: fondo neutro oscuro y texto crema. Secundario: contorno y texto neutros. Cabecera: rojo de marca, usar solo en la CTA de la cabecera',
33
+ options: ['primary', 'secondary', 'header'],
34
+ options_labels: ['Primario', 'Secundario', 'Cabecera (rojo)'],
35
35
  example_value: 'primary'
36
36
  },
37
37
  {
@@ -4,7 +4,7 @@ export const metadata: ComponentMetadata = {
4
4
  component_name: 'CTA_2025_Formentera',
5
5
  category: 'CTA',
6
6
  name: 'Botón CTA con colores de texto y fondo intercambiables en hover 2025',
7
- description: 'Botón Call To Action cuyo color de texto y color de fondo se intercambian automáticamente al hacer hover (p. ej. blanco sobre rojo → rojo sobre blanco). Acepta nombres CSS o códigos hex para los tres colores (texto, fondo, borde). El borde NO cambia en hover. El botón se ajusta al ancho de su contenido (w-fit)',
7
+ description: 'Botón Call To Action cuyo color de texto y color de fondo se intercambian automáticamente al hacer hover (p. ej. crema sobre neutro oscuro → neutro oscuro sobre crema). Por defecto es neutro oscuro (fondo rgba(27,27,27,0.9), texto #fafaf5) y su hover lo oscurece; el rojo #d71635 es solo para la CTA de cabecera. Acepta nombres CSS o códigos hex para los tres colores (texto, fondo, borde). El borde NO cambia en hover. El botón se ajusta al ancho de su contenido (w-fit)',
8
8
  framework: 'Astro',
9
9
  priority: 1,
10
10
  tags: ['boton', 'cta', 'hover', 'personalizable'],
@@ -31,7 +31,7 @@ export const metadata: ComponentMetadata = {
31
31
  help: 'Color del texto en reposo (y del fondo al hacer hover). Acepta nombre CSS (ej. "white", "black") o código hex (ej. "#d71635"). En hover, este valor y "Color de fondo" se intercambian',
32
32
  label: 'Color del texto (frontal)',
33
33
  mandatory: false,
34
- example_value: '#ffffff'
34
+ example_value: '#fafaf5'
35
35
  },
36
36
  {
37
37
  name: 'backColor',
@@ -39,7 +39,7 @@ export const metadata: ComponentMetadata = {
39
39
  help: 'Color de fondo en reposo (y del texto al hacer hover). Acepta nombre CSS o código hex. En hover, este valor y "Color del texto" se intercambian',
40
40
  label: 'Color de fondo',
41
41
  mandatory: false,
42
- example_value: '#d71635'
42
+ example_value: 'rgba(27, 27, 27, 0.9)'
43
43
  },
44
44
  {
45
45
  name: 'borderColor',
@@ -47,7 +47,7 @@ export const metadata: ComponentMetadata = {
47
47
  help: 'Color del borde del botón (1px sólido). Acepta nombre CSS o código hex. NO cambia en hover',
48
48
  label: 'Color del borde',
49
49
  mandatory: false,
50
- example_value: '#d71635'
50
+ example_value: 'rgba(27, 27, 27, 0.9)'
51
51
  },
52
52
  ]
53
53
  };
@@ -3,7 +3,7 @@ import { extractImageUrl } from '../../lib/functions.js';
3
3
 
4
4
  interface ElxButton {
5
5
  text?: string;
6
- type?: 'primary' | 'secondary';
6
+ type?: 'primary' | 'secondary' | 'header';
7
7
  showIco?: boolean | string;
8
8
  openModal?: boolean | string;
9
9
  linkBtn?: string;
@@ -29,10 +29,12 @@ const imageModalUrl = extractImageUrl(imageModal);
29
29
  const randomId = Math.floor(Math.random() * 1000);
30
30
 
31
31
  // Estilos del diseño de Figma (Button / Medium): 48px alto, radio 8px, IBM Plex Sans 16px semibold, sombra "Raised".
32
- const baseClass = 'inline-flex items-center justify-center h-12 px-4 gap-1 rounded-full font-body text-base font-semibold leading-6 no-underline hover:underline transition-all duration-300 cursor-pointer shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)]';
32
+ const baseClass = 'inline-flex items-center justify-center h-12 px-4 gap-1 rounded-lg font-body text-base font-semibold leading-6 no-underline hover:underline transition-all duration-300 cursor-pointer shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)]';
33
33
  const typeClass = {
34
- primary: 'bg-[#d71635] text-white hover:bg-[#71131f]',
35
- secondary: 'bg-[rgba(255,255,255,0.01)] border border-[#d71635] text-[#d71635]',
34
+ primary: 'bg-[rgba(27,27,27,0.9)] text-[#fafaf5] hover:bg-[#1b1b1b]',
35
+ secondary: 'bg-[rgba(255,255,255,0.01)] border border-[rgba(27,27,27,0.9)] text-[#1b1b1b] hover:bg-[rgba(27,27,27,0.06)]',
36
+ // Solo la CTA de cabecera va en rojo de marca.
37
+ header: 'bg-[#d71635] text-white hover:bg-[#71131f] active:bg-[#4b0000]',
36
38
  };
37
39
  ---
38
40
 
@@ -40,7 +42,7 @@ const typeClass = {
40
42
  {items.map((btn) => (
41
43
  <a
42
44
  href={isTrue(btn.openModal) ? '#' : (btn.linkBtn || '#')}
43
- class={`${baseClass} ${typeClass[btn.type === 'secondary' ? 'secondary' : 'primary']} ${isTrue(btn.openModal) ? `js-open-elx-popup-${randomId}` : ''}`}
45
+ class={`${baseClass} ${typeClass[btn.type === 'secondary' || btn.type === 'header' ? btn.type : 'primary']} ${isTrue(btn.openModal) ? `js-open-elx-popup-${randomId}` : ''}`}
44
46
  >
45
47
  <span class="px-1 whitespace-nowrap">{btn.text}</span>
46
48
  {isTrue(btn.showIco) && (
@@ -3,4 +3,4 @@
3
3
  const { label } = Astro.props;
4
4
 
5
5
  ---
6
- <button class="btn bg-[#d71635] text-white p-2 rounded-full shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)] font-bold m-4 cursor-pointer transition-colors duration-300 hover:bg-[#71131f]">{label}</button>
6
+ <button class="btn bg-[rgba(27,27,27,0.9)] text-[#fafaf5] p-2 rounded-lg shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)] font-bold m-4 cursor-pointer transition-colors duration-300 hover:bg-[#1b1b1b]">{label}</button>
@@ -3,20 +3,22 @@
3
3
  const {
4
4
  buttonText = "xxx",
5
5
  buttonUrl = "#",
6
- frontColor = 'white',
7
- backColor = '#d71635',
8
- borderColor = '#d71635',
6
+ frontColor = '#fafaf5',
7
+ backColor = 'rgba(27, 27, 27, 0.9)',
8
+ borderColor = 'rgba(27, 27, 27, 0.9)',
9
9
  } = Astro.props;
10
10
  const isRed = String(backColor).toLowerCase() === '#d71635';
11
- // Rojo de marca: el hover oscurece (#71131f); el resto de colores conserva el intercambio de siempre
12
- const hoverBg = isRed ? '#71131f' : frontColor;
13
- const hoverText = isRed ? frontColor : backColor;
14
- const hoverBorder = isRed ? '#71131f' : borderColor;
11
+ const isNeutral = String(backColor).replace(/\s/g, '') === 'rgba(27,27,27,0.9)';
12
+ const isSolid = isRed || isNeutral;
13
+ // Neutro (por defecto) y rojo de marca: el hover oscurece; el resto de colores conserva el intercambio de siempre
14
+ const hoverBg = isRed ? '#71131f' : isNeutral ? '#1b1b1b' : frontColor;
15
+ const hoverText = isSolid ? frontColor : backColor;
16
+ const hoverBorder = isRed ? '#71131f' : isNeutral ? '#1b1b1b' : borderColor;
15
17
 
16
18
  ---
17
19
  <a
18
20
  href={buttonUrl}
19
- class={`text-base leading-6 font-semibold font-body inline-block mt-6 p-3 px-5 h-12 rounded-full transition-colors duration-300 border border-solid w-fit ${isRed ? 'shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)]' : ''}`}
21
+ class={`text-base leading-6 font-semibold font-body inline-block mt-6 p-3 px-5 h-12 rounded-lg transition-colors duration-300 border border-solid w-fit ${isSolid ? 'shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)]' : ''}`}
20
22
  style={`border-color: ${borderColor}; background-color: ${backColor}; color: ${frontColor};`}
21
23
  data-bg={backColor}
22
24
  data-fg={frontColor}
@@ -48,8 +48,8 @@ const {
48
48
 
49
49
  ---
50
50
 
51
- <nav class="w-full flex bg-[#F2EEE1]">
52
- <div class="font-body max-w-7xl w-full mx-auto flex gap-2 text-[#403830] px-6 md:px-2 py-2 text-sm items-center">
51
+ <nav class="w-full flex bg-[#FAFAF5]">
52
+ <div class="font-body max-w-[1616px] w-full mx-auto flex gap-2 text-[#403830] px-8 lg:px-[120px] py-2 text-sm items-center">
53
53
  <a href={subdirectory + '/'} class="flex items-center gap-2 underline">
54
54
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
55
55
  <path fill-rule="evenodd" clip-rule="evenodd" d="M11.607 2.26475C11.1639 2.32582 10.6509 2.48899 10.1624 2.72428C9.60055 2.99492 9.00859 3.34706 6.66084 4.80718C4.31852 6.26394 3.93572 6.53182 3.40193 7.08788C2.90464 7.60592 2.64374 8.07514 2.46575 8.77158C2.28122 9.49354 2.26758 9.74391 2.2535 12.6665C2.24172 15.1104 2.25893 16.3111 2.31649 17.061C2.44485 18.7333 2.80188 19.7175 3.55237 20.4678C4.28974 21.2051 5.2235 21.5501 6.83418 21.6806C7.50612 21.735 8.61888 21.75 11.9999 21.75C15.3809 21.75 16.4937 21.735 17.1656 21.6806C18.7575 21.5516 19.699 21.2081 20.4254 20.4911C20.9976 19.9264 21.341 19.2288 21.5307 18.2464C21.724 17.2457 21.7637 16.2126 21.7463 12.6447C21.7321 9.7458 21.7182 9.49232 21.534 8.77158C21.356 8.07514 21.0951 7.60592 20.5979 7.08788C20.0641 6.53182 19.6813 6.26394 17.3389 4.80718C14.9942 3.34893 14.4021 2.99663 13.8362 2.72324C13.4707 2.54669 13.003 2.3831 12.6586 2.3114C12.3947 2.25643 11.8444 2.23204 11.607 2.26475ZM11.6269 3.73267C11.5426 3.74947 11.3777 3.79614 11.2605 3.83636C10.6997 4.02896 10.2326 4.29571 7.66624 5.88901C5.52292 7.21964 5.04514 7.53681 4.65608 7.88712C3.98123 8.49478 3.78607 9.00003 3.72514 10.2972C3.69616 10.9139 3.69657 15.5359 3.72565 16.2378C3.80342 18.1147 4.03097 18.9336 4.63227 19.501C5.0201 19.867 5.59984 20.0807 6.49905 20.189C7.24869 20.2793 7.46553 20.283 11.9999 20.283C16.5343 20.283 16.7511 20.2793 17.5007 20.189C19.2668 19.9762 19.925 19.3378 20.1684 17.6016C20.2815 16.7945 20.3028 15.9639 20.291 12.8283C20.284 10.9976 20.272 10.0331 20.254 9.86956C20.1456 8.88351 19.9347 8.41609 19.3684 7.90674C18.9506 7.53089 18.535 7.25522 16.2312 5.82558C13.7693 4.29779 13.2896 4.02434 12.7476 3.83985C12.3354 3.69954 11.9691 3.6645 11.6269 3.73267Z" fill="#403830"/>
@@ -342,6 +342,6 @@ const {
342
342
  : tipo === "h6" ? <h6>{title}</h6>
343
343
  : <span class="text-[#403830] font-body">{title}</span>
344
344
  }
345
- <p class="text-[#403830] font-body" set:html={description}></p>
345
+ <div class="text-[#403830] font-body" set:html={description}></div>
346
346
  </div>
347
347
  </div>
@@ -43,7 +43,7 @@ const imageSkyscraper = crops['skyscraper'] || ''; // Disponible para uso en el
43
43
  const imageUrl = imageBase || extractImageUrl(image);
44
44
  ---
45
45
 
46
- <div class="w-full py-16 bg-[#F2EEE1]">
46
+ <div class="w-full py-16 bg-transparent">
47
47
  <section class="w-full max-w-[1200px] mx-auto flex items-center justify-center px-8 md:px-0">
48
48
  {showImage ? (
49
49
  <article class={`w-full flex flex-col items-center justify-center py-6`}>
@@ -51,7 +51,7 @@ const structuredData = !noSchema && items.length > 0 ? `<script type="applicatio
51
51
  <path d="M3.19505 7.7455C3.47368 7.43901 3.94802 7.41642 4.25451 7.69505L12 14.7364L19.7455 7.69505C20.052 7.41642 20.5263 7.43901 20.805 7.7455C21.0836 8.05199 21.061 8.52633 20.7545 8.80496L12.5045 16.305C12.2184 16.565 11.7816 16.565 11.4955 16.305L3.2455 8.80496C2.93901 8.52633 2.91642 8.05199 3.19505 7.7455Z" fill-rule="evenodd" clip-rule="evenodd" fill="#403830"/>
52
52
  </svg>
53
53
  <svg class="faq-arrow-up shrink-0" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
54
- <path d="M11.8185 3.77095C11.762 3.78793 11.6806 3.82518 11.6377 3.85371C11.5273 3.92711 6.11211 9.69283 6.07137 9.78031C6.01054 9.91092 5.98452 10.1056 6.00932 10.2446C6.04187 10.4271 6.095 10.533 6.21813 10.6612C6.41351 10.8645 6.6888 10.9249 6.95296 10.8224C7.07784 10.7739 7.17979 10.6698 9.19161 8.53509L11.2994 6.29856L11.3052 13.0113L11.311 19.724L11.3714 19.8456C11.5004 20.1053 11.7256 20.25 12.0005 20.25C12.2754 20.25 12.5006 20.1053 12.6296 19.8456L12.69 19.724L12.6958 13.0111L12.7016 6.29832L14.8094 8.53504C16.8221 10.6709 16.9231 10.7741 17.048 10.8225C17.3123 10.9248 17.5875 10.8644 17.7829 10.6612C17.9048 10.5342 17.9591 10.427 17.9905 10.2509C18.0179 10.0977 17.9843 9.88743 17.9115 9.75629C17.8822 9.70345 16.6293 8.3555 15.1272 6.76089C12.9192 4.41687 12.3759 3.85215 12.2908 3.81247C12.1555 3.7494 11.9503 3.73134 11.8185 3.77095Z" fill-rule="evenodd" clip-rule="evenodd" fill="#262626"/>
54
+ <path d="M11.8185 3.77095C11.762 3.78793 11.6806 3.82518 11.6377 3.85371C11.5273 3.92711 6.11211 9.69283 6.07137 9.78031C6.01054 9.91092 5.98452 10.1056 6.00932 10.2446C6.04187 10.4271 6.095 10.533 6.21813 10.6612C6.41351 10.8645 6.6888 10.9249 6.95296 10.8224C7.07784 10.7739 7.17979 10.6698 9.19161 8.53509L11.2994 6.29856L11.3052 13.0113L11.311 19.724L11.3714 19.8456C11.5004 20.1053 11.7256 20.25 12.0005 20.25C12.2754 20.25 12.5006 20.1053 12.6296 19.8456L12.69 19.724L12.6958 13.0111L12.7016 6.29832L14.8094 8.53504C16.8221 10.6709 16.9231 10.7741 17.048 10.8225C17.3123 10.9248 17.5875 10.8644 17.7829 10.6612C17.9048 10.5342 17.9591 10.427 17.9905 10.2509C18.0179 10.0977 17.9843 9.88743 17.9115 9.75629C17.8822 9.70345 16.6293 8.3555 15.1272 6.76089C12.9192 4.41687 12.3759 3.85215 12.2908 3.81247C12.1555 3.7494 11.9503 3.73134 11.8185 3.77095Z" fill-rule="evenodd" clip-rule="evenodd" fill="#403830"/>
55
55
  </svg>
56
56
  )}
57
57
  </button>
@@ -95,7 +95,7 @@ const categories = [
95
95
  <footer class="w-full">
96
96
  {showPrefooter && (
97
97
  <div class="bg-[#1b1b1b] text-[#f2eee1] py-10 border-t border-white/20">
98
- <nav aria-label="Enlaces corporativos" class="max-w-7xl flex-wrap md:flex-nowrap w-full px-4 md:px-0 flex items-start mx-auto">
98
+ <nav aria-label="Enlaces corporativos" class="max-w-[1616px] flex-wrap md:flex-nowrap w-full px-6 lg:px-[104px] flex items-start mx-auto">
99
99
  {categories.map(category => (
100
100
  <div class="w-1/2 flex-nowrap px-2 md:px-4 mb-4 flex-1">
101
101
  <p class="font-body font-semibold text-xl leading-7 text-[#fafaf5] mb-4">{category.name}</p>
@@ -143,7 +143,7 @@ const categories = [
143
143
  </div>
144
144
  )}
145
145
  <div class="bg-[#1b1b1b] text-[#fafaf5] border-t border-white/20">
146
- <div class="flex flex-col md:flex-row gap-8 max-w-7xl mx-auto p-8 md:px-2">
146
+ <div class="flex flex-col md:flex-row gap-8 max-w-[1616px] mx-auto py-8 px-8 lg:px-[120px]">
147
147
  <div class="flex flex-col flex-[4_4_0%]">
148
148
  <div class="mb-8">
149
149
  <img src="https://assets.lefebvre.es/media/logos-2/svg/lefebvre.svg" alt="Lefebvre" width="160" height="40" class="h-10 brightness-0 invert" loading="lazy" />
@@ -36,13 +36,14 @@ const structuredData = `<script type="application/ld+json">
36
36
 
37
37
  ---
38
38
 
39
- <div class="w-full max-w-[1200px] flex flex-col md:flex-row p-6 md:py-6 md:px-0 gap-12">
39
+ <div class="w-full bg-[#ebe7da] px-8 lg:px-[120px] py-20">
40
+ <div class="w-full max-w-[1376px] mx-auto flex flex-col md:flex-row gap-12">
40
41
  <div class="w-full flex flex-col">
41
42
  {categoria?.trim() && <span class="self-start inline-flex items-center gap-2 px-2 py-1 mb-4 rounded bg-black/[0.04] text-center font-mono text-sm font-normal leading-5 tracking-[0.84px] uppercase text-[#403830] [font-feature-settings:'liga'_off,'clig'_off]"><span class="size-1.5 rounded-full bg-[#d71635]" aria-hidden="true"></span>{categoria}</span>}
42
43
  <h2 class="font-heading text-[28px] leading-9 md:text-[32px] md:leading-10 font-semibold text-[#1b1b1b] mb-4">{title}</h2>
43
44
  <p class="font-heading text-xl leading-7 font-normal text-[#403830]">{description}</p>
44
45
  </div>
45
- <div class="w-full flex flex-col md:flex-row items-start md:items-center gap-4">
46
+ <div class="w-full flex flex-col md:flex-row items-start md:items-center gap-4 p-6 md:p-10 rounded-2xl border border-[#e1c8b4] bg-white shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)]">
46
47
  {forceSkeleton ? (
47
48
  <div class="w-full flex flex-col mt-4 mx-auto gap-6 animate-pulse">
48
49
  <div class="h-6 w-2/3 bg-[#ebe7da] rounded"></div>
@@ -58,6 +59,7 @@ const structuredData = `<script type="application/ld+json">
58
59
  )}
59
60
  </div>
60
61
  </div>
62
+ </div>
61
63
 
62
64
  {!forceSkeleton && (
63
65
  <script is:client define:vars={{ idTargetLf2, lf2FormTitle, businessAction}}>
@@ -43,12 +43,12 @@ const structuredData = `<script type="application/ld+json">
43
43
 
44
44
 
45
45
 
46
- <div class="w-full flex flex-col md:flex-row px-6 md:px-4 lg:px-0 py-12 md:py-20 gap-8">
47
- <div class="max-w-7xl w-full mx-auto flex justify-start flex-col">
46
+ <div class="w-full flex flex-col md:flex-row bg-[#ebe7da] px-8 lg:px-[120px] py-20 gap-8">
47
+ <div class="max-w-[1376px] w-full mx-auto flex justify-start flex-col">
48
48
  {showImage ? (
49
49
  <article class="flex flex-col items-center justify-center">
50
50
  <div class={`flex-col md:flex ${orientation === 'left' ? 'flex-row' : 'flex-row-reverse'} w-full items-start gap-4 justify-between`}>
51
- <div class="w-full flex justify-start mb-8 flex-col p-4 rounded-2xl border border-[#e1c8b4] bg-white shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)]">
51
+ <div class="w-full flex justify-start mb-8 flex-col p-6 md:p-10 rounded-2xl border border-[#e1c8b4] bg-white shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)]">
52
52
  {forceSkeleton ? (
53
53
  <div class="w-full flex flex-col mt-4 mx-auto gap-6 animate-pulse">
54
54
  <div class="h-6 w-2/3 bg-[#ebe7da] rounded"></div>
@@ -77,7 +77,7 @@ const structuredData = `<script type="application/ld+json">
77
77
  <h2 class="w-[300px] sm:w-auto font-heading text-[#1b1b1b] text-[28px] leading-9 md:text-[32px] md:leading-10 font-semibold text-left mb-4 text-wrap">{title}</h2>
78
78
  <p class="text-[#403830] font-heading text-xl leading-7">{description}</p>
79
79
  </div>
80
- <div class={`w-full md:w-1/2 p-4 flex items-center rounded-2xl border border-[#e1c8b4] bg-white shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)] ${orientation === 'left' ? 'justify-end' : 'justify-start'}`}>
80
+ <div class={`w-full md:w-1/2 p-6 md:p-10 flex items-center rounded-2xl border border-[#e1c8b4] bg-white shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)] ${orientation === 'left' ? 'justify-end' : 'justify-start'}`}>
81
81
  {forceSkeleton ? (
82
82
  <div class="w-full flex flex-col mt-4 mx-auto gap-6 animate-pulse">
83
83
  <div class="h-6 w-2/3 bg-[#ebe7da] rounded"></div>
@@ -50,10 +50,10 @@ const forceSkeleton = !lf2FormTitle;
50
50
  set:html={description}
51
51
  />
52
52
  {showBtn && linkBtn && (
53
- <a href={linkBtn} target="_self" class="inline-block w-fit h-11 md:h-12 text-white font-body font-semibold bg-[#d71635] px-3.5 md:px-5 py-2.5 md:py-3 border border-[#d71635] rounded-full shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)] hover:bg-[#71131f] hover:border-[#71131f] transition-all duration-300 text-sm md:text-base mt-4">{txtBtn}</a>
53
+ <a href={linkBtn} target="_self" class="inline-block w-fit h-11 md:h-12 text-[#fafaf5] font-body font-semibold bg-[rgba(27,27,27,0.9)] px-3.5 md:px-5 py-2.5 md:py-3 border border-[rgba(27,27,27,0.9)] rounded-lg shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)] hover:bg-[#1b1b1b] hover:border-[#1b1b1b] transition-all duration-300 text-sm md:text-base mt-4">{txtBtn}</a>
54
54
  )}
55
55
  {showBtnModal && (
56
- <button id={`js-open-teruel-popup-${randomId}`} class={`popup-modal-trigger-${randomId} inline-block w-fit h-11 md:h-12 text-white font-body font-semibold bg-[#d71635] px-3.5 md:px-5 py-2.5 md:py-3 mt-4 md:mt-0 border border-[#d71635] rounded-full shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)] hover:bg-[#71131f] hover:border-[#71131f] transition-all duration-300 text-sm md:text-base cursor-pointer`}>{txtBtnModal}</button>
56
+ <button id={`js-open-teruel-popup-${randomId}`} class={`popup-modal-trigger-${randomId} inline-block w-fit h-11 md:h-12 text-[#fafaf5] font-body font-semibold bg-[rgba(27,27,27,0.9)] px-3.5 md:px-5 py-2.5 md:py-3 mt-4 md:mt-0 border border-[rgba(27,27,27,0.9)] rounded-lg shadow-[0_2px_4px_-2px_rgba(107,58,8,0.08),0_4px_8px_-2px_rgba(107,58,8,0.04)] hover:bg-[#1b1b1b] hover:border-[#1b1b1b] transition-all duration-300 text-sm md:text-base cursor-pointer`}>{txtBtnModal}</button>
57
57
  )}
58
58
  </div>
59
59
  <div class={`w-full md:w-1/2 p-4 flex items-center ${orientation === 'left' ? 'justify-end' : 'justify-start'}`}>