Skip to content

Commit 89684ed

Browse files
committed
Pequeños ajustes de los card
1 parent ebe5fde commit 89684ed

1 file changed

Lines changed: 67 additions & 28 deletions

File tree

assets/css/styles.css

Lines changed: 67 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ html,body{ margin:0; }
2222
html{ scroll-behavior:smooth; }
2323

2424
body{
25-
background: url("../img/bg-hero.png") center/cover fixed no-repeat;
25+
background:#070814;
2626
color: var(--text);
2727
font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
2828
}
@@ -38,10 +38,16 @@ body::before{
3838
inset: 0;
3939
pointer-events: none;
4040
z-index: 0;
41-
background: rgba(5,6,21,.72); /* oscurece para legibilidad */
41+
42+
background:
43+
radial-gradient(900px 700px at 20% 15%, rgba(124,58,237,.32), transparent 60%),
44+
radial-gradient(900px 700px at 80% 25%, rgba(236,72,153,.20), transparent 60%),
45+
radial-gradient(900px 700px at 60% 85%, rgba(34,211,238,.18), transparent 65%),
46+
linear-gradient(180deg, #050615 0%, #07081a 55%, #050615 100%);
4247
}
4348

4449

50+
4551
/* Spotlight reducido (≈ 1/4 del tamaño original) */
4652
body::after{
4753
content:"";
@@ -105,6 +111,17 @@ p{ color: var(--muted); line-height:1.7; }
105111
align-items:center;
106112
}
107113

114+
.nav nav a.btn:hover{
115+
color: #ffffff;
116+
}
117+
118+
.nav nav a.btn{
119+
padding: 10px 14px;
120+
border-radius: 12px;
121+
color: #0b0f14;
122+
font-weight: 800;
123+
}
124+
108125
.nav .nav-btn{
109126
padding: 8px 12px;
110127
font-size: 14px;
@@ -247,48 +264,51 @@ p{ color: var(--muted); line-height:1.7; }
247264
========================= */
248265
.card{
249266
position: relative;
250-
overflow:hidden;
267+
overflow: hidden;
251268

252269
border-radius: var(--radius);
253-
padding:18px;
254-
border:1px solid rgba(255,255,255,.08);
255-
background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
270+
padding: 18px;
271+
272+
/* Fondo menos transparente */
273+
background: rgba(10, 12, 28, 0.82);
274+
275+
/* borde base (fallback) */
276+
border: 1px solid rgba(255,255,255,.14);
256277

257278
transition: transform .2s ease, box-shadow .2s ease;
258279
}
259280

260-
/* Borde glow al hover */
281+
/* Borde gradiente más grueso */
261282
.card::before{
262283
content:"";
263284
position:absolute;
264-
inset:-2px;
285+
inset:-2px; /* grosor del borde */
265286
border-radius: calc(var(--radius) + 2px);
266-
background: linear-gradient(90deg,
267-
rgba(124,58,237,.35),
268-
rgba(34,211,238,.25),
269-
rgba(124,58,237,.35)
270-
);
271-
opacity:0;
272-
transition: opacity .25s ease;
287+
background: linear-gradient(90deg, rgba(124,58,237,.65), rgba(34,211,238,.55), rgba(236,72,153,.55));
288+
opacity: .65;
273289
}
274290

275-
/* Capa interior para “separar” el borde glow */
291+
/* Capa interior para que se vea como “borde” real */
276292
.card::after{
277293
content:"";
278294
position:absolute;
279-
inset:1px;
280-
border-radius: calc(var(--radius) - 1px);
281-
background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
295+
inset: 2px; /* separa el borde (grosor real) */
296+
border-radius: calc(var(--radius) - 2px);
297+
background: rgba(10, 12, 28, 0.86);
282298
}
283299

284-
.card > *{ position: relative; z-index:1; }
300+
.card > *{ position: relative; z-index: 1; }
285301

286-
.card:hover::before{ opacity:1; }
287302
.card:hover{
288303
transform: translateY(-6px);
289304
box-shadow: 0 18px 60px rgba(0,0,0,.45);
290305
}
291306

307+
/* En hover, que el borde “respire” más */
308+
.card:hover::before{
309+
opacity: 1;
310+
}
311+
292312
/* =========================
293313
9) Proyectos
294314
========================= */
@@ -408,7 +428,7 @@ p{ color: var(--muted); line-height:1.7; }
408428
.contact-arrows{
409429
display:flex;
410430
justify-content:center;
411-
gap: 120px;
431+
gap: 90px;
412432
margin: 6px 0 12px;
413433
}
414434

@@ -433,8 +453,8 @@ p{ color: var(--muted); line-height:1.7; }
433453
}
434454

435455
.btn-icon{
436-
width: 1.1em;
437-
height: 1.1em;
456+
width: 22px; /* antes 1.1em */
457+
height: 22px;
438458
object-fit: contain;
439459
transform: translateY(1px);
440460
filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
@@ -484,10 +504,28 @@ p{ color: var(--muted); line-height:1.7; }
484504
grid-template-columns: 1fr;
485505
}
486506

507+
/* El UL no debe meter padding/margin */
487508
#services-list{
488-
list-style: none;
489-
padding: 0;
490-
margin: 0;
509+
list-style:none;
510+
padding:0;
511+
margin:0;
512+
513+
/* y que el grid quede “centrado” en su contenedor */
514+
justify-items: stretch;
515+
}
516+
517+
/* El grid general */
518+
#services-list{
519+
display:grid;
520+
gap:16px;
521+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
522+
}
523+
524+
#services .section,
525+
#services.section{
526+
padding-left: 20px;
527+
padding-right: 20px;
528+
backdrop-filter: blur(0px); /* evita rarezas si tenías filtros */
491529
}
492530

493531
h1{ font-size: clamp(26px, 8vw, 34px); }
@@ -499,7 +537,7 @@ p{ color: var(--muted); line-height:1.7; }
499537
.nav-left{
500538
display:flex;
501539
align-items:center;
502-
gap: 14px;
540+
gap: 26px; /* antes ~14px */
503541
}
504542

505543
.brand img{
@@ -510,6 +548,7 @@ p{ color: var(--muted); line-height:1.7; }
510548
display:flex;
511549
align-items:center;
512550
gap: 10px;
551+
margin-left: 8px;
513552
}
514553

515554
.search{

0 commit comments

Comments
 (0)