10
10
/*--------------------------------------------------------------
11
11
# General
12
12
--------------------------------------------------------------*/
13
+ html {
14
+ height : 100% ;
15
+ }
16
+
13
17
body {
18
+ height : 100vh ; /* Cambiado a vh en lugar de % */
14
19
color : # 1a1919 ;
15
20
background-color : # b5a9b2 ;
21
+ overflow-x : hidden;
22
+ display : flex;
23
+ flex-direction : column;
24
+ margin : 0 ;
25
+ padding : 0 ;
16
26
}
17
27
18
28
.bloque_texto {
@@ -33,18 +43,36 @@ a:hover {
33
43
text-decoration : none;
34
44
}
35
45
36
-
37
46
/*--------------------------------------------------------------
38
47
# Hero Section
39
48
--------------------------------------------------------------*/
40
49
# hero {
41
50
width : 100% ;
42
- height : 70vh ;
43
- margin-top : 30px ;
51
+ flex : 1 ;
52
+ display : flex;
53
+ align-items : flex-start;
54
+ justify-content : center;
55
+ padding : 20px 0 ;
56
+ }
57
+
58
+ @media (min-width : 1024px ) {
59
+ # hero {
60
+ background-attachment : fixed;
61
+ min-height : 0 ; /* Eliminamos min-height en pantallas grandes */
62
+ height : auto; /* Dejamos que se ajuste al contenido */
63
+ }
64
+
65
+ body {
66
+ overflow-y : hidden; /* Prevenimos scroll en pantallas grandes */
67
+ }
68
+ }
69
+
70
+ # hero h1 , # hero h2 {
71
+ margin : 0 ;
72
+ padding : 0 ;
44
73
}
45
74
46
75
# hero h1 {
47
- margin : 0 0 10px 0 ;
48
76
font-size : 48px ;
49
77
font-weight : 700 ;
50
78
line-height : 56px ;
@@ -61,15 +89,9 @@ a:hover {
61
89
animation : up-down 2s ease-in-out infinite alternate-reverse both;
62
90
}
63
91
64
- @media (min-width : 1024px ) {
65
- # hero {
66
- background-attachment : fixed;
67
- }
68
- }
69
-
70
92
@media (max-width : 991px ) {
71
93
# hero {
72
- height : 100 vh ;
94
+ min- height: auto ;
73
95
}
74
96
75
97
# hero .animated {
@@ -82,81 +104,58 @@ a:hover {
82
104
}
83
105
84
106
# hero .hero-img img {
85
- width : 120% ;
86
- }
87
- }
88
-
89
- @media (max-width : 768px ) {
90
- # hero {
91
- margin-top : 20px ;
92
- }
93
-
94
- # hero h1 {
95
- font-size : 28px ;
96
- line-height : 36px ;
97
- }
98
-
99
- # hero h2 {
100
- font-size : 18px ;
101
- line-height : 24px ;
102
- margin-bottom : 30px ;
103
- }
104
-
105
- # hero .hero-img img {
106
- width : 70% ;
107
+ width : 100% ;
107
108
}
108
- }
109
-
110
- @media (max-width : 575px ) {
111
- # hero .hero-img img {
112
- width : 80% ;
113
- }
114
- }
115
-
116
- @-webkit-keyframes up-down {
117
- 0% {
118
- transform : translateY (10px );
119
- }
120
-
121
- 100% {
122
- transform : translateY (-10px );
123
- }
124
- }
125
-
126
- @keyframes up-down {
127
- 0% {
128
- transform : translateY (10px );
129
- }
130
-
131
- 100% {
132
- transform : translateY (-10px );
109
+
110
+ body {
111
+ overflow-y : auto; /* Permitimos scroll en pantallas pequeñas */
133
112
}
134
113
}
135
114
136
-
137
115
/*--------------------------------------------------------------
138
116
# Footer
139
117
--------------------------------------------------------------*/
140
118
footer {
141
- bottom : 0 ;
142
- left : 0 ;
143
- right : 0 ;
144
- width : 100vw ;
145
- display : flex;
146
- flex-flow : row wrap;
147
- padding : 30px 30px 27px 30px ;
119
+ width : 100% ;
148
120
background-color : rgb (43 , 40 , 63 );
149
- margin-bottom : 0 ;
121
+ padding : 20px 30px ;
122
+ display : flex;
123
+ flex-wrap : wrap;
124
+ justify-content : space-between;
125
+ }
150
126
127
+ /* Nuevo contenedor para el logo */
128
+ .footer__logo {
129
+ order : 3 ; /* Mueve el logo al final */
130
+ flex : 1 ;
131
+ display : flex;
132
+ justify-content : flex-end;
133
+ align-items : flex-start;
151
134
}
152
135
153
- footer > * {
154
- flex : 1 100% ;
136
+ .footer__logo img {
137
+ max-width : 150px ; /* Ajusta según el tamaño de tu logo */
138
+ height : auto;
155
139
}
156
140
157
141
.footer__addr {
142
+ order : 1 ;
158
143
margin-right : 1.25em ;
159
- margin-bottom : 10.25em ;
144
+ margin-bottom : 1em ;
145
+ flex : 1 ;
146
+ }
147
+
148
+ .footer__nav {
149
+ order : 2 ;
150
+ display : flex;
151
+ flex-wrap : wrap;
152
+ gap : 20px ;
153
+ flex : 2 ;
154
+ }
155
+
156
+ .footer__nav > * {
157
+ flex : 1 ;
158
+ min-width : 200px ;
160
159
}
161
160
162
161
.nav__title {
@@ -166,72 +165,41 @@ footer > * {
166
165
text-transform : uppercase;
167
166
}
168
167
169
- .footer__btn {
170
- display : flex;
171
- align-items : center;
172
- justify-content : center;
173
- height : 36px ;
174
- max-width : max-content;
175
- background-color : rgb (33 , 33 , 33 , 0.07 );
176
- border-radius : 100px ;
177
- color : # 2f2f2f ;
178
- line-height : 0 ;
179
- margin : 0.6em 0 ;
180
- font-size : 1rem ;
181
- padding : 0 0em ;
182
- }
183
-
184
- footer ul {
168
+ .nav__ul {
185
169
list-style : none;
186
- padding-left : 0 ;
187
- }
188
-
189
- footer li {
190
- line-height : 2em ;
191
- }
192
-
193
- footer a {
194
- text-decoration : none;
195
- }
196
-
197
- .footer__nav {
198
- display : flex;
199
- flex-flow : row wrap;
200
- }
201
-
202
- .footer__nav > * {
203
- flex : 1 50% ;
204
- margin-right : 1.25em ;
170
+ padding : 0 ;
205
171
}
206
172
207
173
.nav__ul li a {
208
174
color : azure;
209
175
font-weight : lighter;
176
+ line-height : 2 ;
210
177
}
211
178
212
179
.legal {
213
- display : inline;
214
- flex-wrap : wrap;
215
180
color : rgb (213 , 212 , 212 );
216
181
text-align : right;
217
- }
218
-
219
- @media screen and (min-width : 24.375em ) {
220
- .legal {
221
- margin-left : auto;
222
- }
182
+ margin-top : 1em ;
183
+ width : 100% ;
184
+ order : 4 ; /* Asegura que el texto legal esté al final */
223
185
}
224
186
225
- @media screen and (min-width : 40.375em ) {
226
- .footer__nav > * {
227
- flex : 1 ;
187
+ @media screen and (max-width : 768px ) {
188
+ footer {
189
+ flex-direction : column;
190
+ }
191
+
192
+ .footer__logo {
193
+ order : 1 ; /* En móvil, ponemos el logo primero */
194
+ justify-content : center;
195
+ margin-bottom : 1em ;
228
196
}
229
197
230
198
.footer__addr {
231
- flex : 1 0 px ;
199
+ order : 2 ;
232
200
}
233
201
234
202
.footer__nav {
235
- flex : 2 0 px ;
203
+ order : 3 ;
236
204
}
237
205
}
0 commit comments