-
Notifications
You must be signed in to change notification settings - Fork 0
/
estilo.css
135 lines (116 loc) · 2.81 KB
/
estilo.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,400&display=swap');
html{
scroll-behavior: smooth;
font-family: Nunito, sans-serif;
}
body{
background-color: #000;
}
#dispositivo{
width: 90% !important;
}
footer{
background-color: #1b2a4e;
min-height: 100px;
}
footer p{
color: #f3f3f3 ;
text-align: center;
}
#iconos i{
font-size: 26px;
padding: 0 8px;
color: #f3f3f3;
}
.hero-section {
position: relative;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #000; /* Fondo negro predeterminado */
background-image: url('222.webp');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
overflow: hidden;
opacity: 0; /* Inicialmente invisible para la animación */
transition: opacity 1.5s ease-in-out; /* Transición suave para la opacidad */
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1;
}
.hero-section > * {
position: relative;
z-index: 2;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 1s ease-out forwards;
}
.hero-section h1 {
animation-delay: 0.5s;
}
.hero-section p {
animation-delay: 0.8s;
}
.hero-section button {
animation-delay: 1.1s;
transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.hero-section button:hover {
background-color: #17a2b8;
color: white;
transform: scale(1.05);
}
/* Carga suave de la imagen de fondo */
body.loading .hero-section {
opacity: 0; /* Mantener invisible mientras se carga */
background-color: #000; /* Asegura fondo negro mientras se carga */
}
body.loaded .hero-section {
opacity: 1; /* Mostrar cuando la imagen esté lista */
transition: opacity 1.5s ease-in-out; /* Transición extendida para el fondo */
}
.benefit-item {
/* border: 2px solid #fff; /* Opcional: añadir borde a cada ítem */ */
padding: 20px;
border-radius: 10px;
background-color: #222; /* Fondo oscuro personalizado */
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
height: 100%;
}
.benefit-item:hover {
transform: translateY(-10px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Estilos para los testimonios */
.testimonial {
height: 100%;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.testimonial blockquote {
border-left: 5px solid #ffc107; /* Línea decorativa en blockquote */
padding-left: 15px;
font-style: italic;
}
.testimonial img {
border: 3px solid #ffc107; /* Añadir borde alrededor de las imágenes */
}