@@ -29,8 +29,11 @@ body {
2929 background : url ('../img/Fondo_liso.jpg' ) no-repeat center center fixed;
3030 background-size : cover;
3131 padding-top : 70px ; /* This is to make sure the navbar doesn't overlap the content */
32+ overflow-x : hidden;
3233}
3334
35+ /* html, body { overflow-x: hidden; } */
36+
3437/* Scrollable container */
3538.container {
3639 max-width : 1320px ;
5154 background-attachment : scroll;
5255 padding : 5% ;
5356 margin-top : auto;
57+ margin-bottom : 0 ;
5458 filter : drop-shadow (0.1vw 0.1vw 0.1vw var (--bs-dark ));
5559}
5660
@@ -102,12 +106,10 @@ body {
102106 top : 0 ;
103107 left : 0 ;
104108 right : 0 ;
105- z-index : 999 ;
109+ z-index : 1030 ; /* Highest z-index */
106110 background : var (--bs-dark ) !important ;
107- transition : all 0.3s ease;
108- /* width: 100%;
109111 min-height : 70px ;
110- padding: 1rem 0; */
112+ padding : 1rem 0 ;
111113}
112114
113115.navbar-brand {
@@ -156,6 +158,7 @@ body {
156158 color : var (--bs-light );
157159 padding : 0 ; /* Remove default padding */
158160 margin-bottom : 3rem ;
161+ min-width : 100% ;
159162}
160163
161164/* If the image is too large, you might want to constrain its height */
@@ -166,31 +169,54 @@ body {
166169
167170/*** Section Headers ***/
168171.section-header {
169- position : relative;
172+ position : sticky;
173+ top : 70px ;
170174 background : var (--bs-dark );
171175 padding : 2rem ;
172- margin-bottom : 3rem ;
176+ margin : 0 ;
177+ z-index : 1020 ;
178+ width : 100% ;
179+
180+ }
181+
182+ .section-header .container {
183+ position : relative;
173184}
174185
175186.section-header h2 {
176187 color : var (--bs-white );
177188 margin : 0 ;
178189 font-size : 2.25rem ;
179190 font-family : "Special Elite" , system-ui;
191+
180192}
181193
182194.section-header ::before {
183195 content : "" ;
184196 position : absolute;
197+ inset : 0 ;
185198 width : 100vw ;
186- height : 100% ;
187- top : 0 ;
199+ margin-left : -50vw ;
188200 left : 50% ;
189- transform : translateX (-50% );
190201 background : var (--bs-dark );
191202 z-index : -1 ;
192203}
193204
205+ .section-header .is-sticky {
206+ box-shadow : 0 2px 10px rgba (0 , 0 , 0 , 0.1 );
207+ }
208+
209+ /*** Sections ***/
210+ section {
211+ position : relative;
212+ margin : 0 ;
213+ margin-bottom : 0 ;
214+ }
215+
216+ .section-content {
217+ padding : 2rem 0 ;
218+ }
219+
194220/*** Buttons ***/
195221.btn {
196222 font-weight : 600 ;
@@ -689,7 +715,7 @@ body {
689715 background : var (--bs-dark );
690716 padding : 1rem ;
691717 margin-top : 0.5rem ;
692- max-height : cañc (100vh - 70px );
718+ max-height : calc (100vh - 70px );
693719 overflow-y : auto;
694720 }
695721
@@ -738,7 +764,23 @@ body {
738764 }
739765
740766 .section-header {
741- padding : 1.5rem ;
767+ padding : 0.75rem 0 ;
768+ }
769+
770+ .section-header h2 {
771+ font-size : 1.25rem ;
772+ margin : 0 ;
773+ }
774+
775+ .section-content {
776+ padding : 0.75rem 0 ;
777+ }
778+
779+ /* Remove any unexpected margins */
780+ .container , .container-fluid {
781+ padding-left : 15px ;
782+ padding-right : 15px ;
783+ margin : 0 ;
742784 }
743785
744786 .testimonial-carousel .owl-nav {
@@ -748,10 +790,7 @@ body {
748790 .pt-6 , .pb-6 , .ps-6 , .pe-6 {
749791 padding : 2rem ;
750792 }
751- }
752793
753- /* Responsive adjustments */
754- @media (max-width : 767px ) {
755794 .feature-grid {
756795 grid-template-columns : 1fr ;
757796 gap : 1rem ;
0 commit comments