rf desafios+soluciones

This commit is contained in:
2026-10-18 01:41:02 -03:00
parent 03e9ee401b
commit b15c3e0119
7 changed files with 190 additions and 74 deletions
+77 -38
View File
@@ -4,7 +4,7 @@
/* --- TARJETA BASE --- */
.solucion-card {
background: #ffffff;
background: var(--bg-surface);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
@@ -28,24 +28,38 @@
align-items: center;
justify-content: center;
overflow: hidden;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
transform: translateZ(0);
}
/* Efecto de ola SVG */
/* Franja que tapa cualquier costura subpíxel entre la ola y el body */
.solucion-card__header::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 2px;
background: var(--bg-surface);
z-index: 3;
pointer-events: none;
}
/* Efecto de ola SVG (SVG en línea, se estira al contenedor) */
.solucion-card__wave {
position: absolute;
bottom: -2px;
left: -5%;
width: 110%;
height: 65px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120V85c47.79,15.2,103.59,22,158,19.2,70.36-3.7,136.33-22.8,206.8-25.7C438.64,75.6,512.34,90,583,102.5c69.27,12.3,138.3,17,209.4,9,36.15-4.1,69.85-12.2,104.45-20.1C989.49,73,1113,46.5,1200,91.8V120Z' opacity='.25' fill='%23ffffff'/%3E%3Cpath d='M0,120V60.5c13,14.4,27.64,26.9,47.69,35.3,51.72,26.2,117.31,26,176.89,13.2,31.15-6.9,60.09-17.8,89.67-27.2,40.92-13,84.73-31.5,130.83-34,36.26-1.95,70.9,6.4,98.6,21.5,31.77,17.4,62.32,42.4,103.63,50,40.44,7.4,81.35-4.6,119.13-16.6s75.16-26.7,116.92-29.5c59.73-4,113.28,15.65,168.9,26.6,30.2,5.9,59,4.2,87.09-5.1,22.43-7.45,48-18.4,60.65-33.7V120Z' opacity='.5' fill='%23ffffff'/%3E%3Cpath d='M0,120V54.8C149.93,91.3,314.09,99.6,475.83,80c43-5.2,84.23-13.8,127.61-18.1,59-5.9,112.48,8.4,165.56,24.2C827.93,103.2,886,115.6,951.2,112c86.53-4.8,172.46-31.3,248.8-58V120Z' fill='%23ffffff'/%3E%3C/svg%3E");
background-size: cover;
background-position: bottom;
height: clamp(48px, 5.5vw, 65px);
max-width: none;
display: block;
pointer-events: none;
z-index: 1;
will-change: auto;
transform: translateZ(0);
}
/* La ola toma el color del cuerpo de la tarjeta/modal (acompaña el tema) */
.solucion-card__wave path,
.modal-infografia__wave path {
fill: var(--bg-surface);
}
/* Icono */
@@ -76,7 +90,7 @@
.solucion-card__title {
font-size: 1.1rem;
font-weight: 700;
color: #1a1a2e;
color: var(--text-main);
margin: 0 0 0.5rem;
line-height: 1.3;
min-height: 2.6em;
@@ -94,7 +108,7 @@
/* Texto descriptivo */
.solucion-card__text {
font-size: 0.85rem;
color: #6c757d;
color: var(--text-muted);
line-height: 1.5;
margin: 0 0 1.5rem;
flex: 1;
@@ -105,12 +119,12 @@
width: 44px;
height: 44px;
border-radius: 50%;
border: 2px solid #e0e0e0;
background: #ffffff;
border: 2px solid var(--border-color);
background: var(--bg-surface);
display: flex;
align-items: center;
justify-content: center;
color: #1a1a2e;
color: var(--text-main);
text-decoration: none;
transition: all 0.3s ease;
align-self: flex-start;
@@ -249,7 +263,7 @@
}
.modal-infografia {
background: #ffffff;
background: var(--bg-surface);
border-radius: 20px;
max-width: 1200px;
width: 100%;
@@ -301,15 +315,28 @@
color: #ffffff;
}
/* Franja que tapa la costura subpíxel durante la animación del modal */
.modal-infografia__header::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 2px;
background: var(--bg-surface);
z-index: 3;
pointer-events: none;
}
.modal-infografia__wave {
position: absolute;
bottom: -2px;
left: -5%;
width: 110%;
height: 50px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120V73.71c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,59.43,512.34,80.67,583,99.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,52,1113,13.29,1200,79.47V120Z' opacity='.25' fill='%23ffffff'/%3E%3Cpath d='M0,120V32.81C13,53.92,27.64,73.86,47.69,89.05,99.41,128.27,165,128,224.58,108.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V120Z' opacity='.5' fill='%23ffffff'/%3E%3Cpath d='M0,120V22.63C149.93,76,314.09,88.32,475.83,59.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,94.22,886,112.24,951.2,107c86.53-7,172.46-45.71,248.8-84.81V120Z' fill='%23ffffff'/%3E%3C/svg%3E");
background-size: cover;
background-position: bottom;
height: clamp(40px, 4vw, 50px);
max-width: none;
display: block;
pointer-events: none;
z-index: 1;
}
@@ -347,10 +374,10 @@
.modal-infografia__intro {
font-size: 0.9rem;
line-height: 1.5;
color: #4a5568;
color: var(--text-body);
margin: 0 0 1.5rem;
padding-bottom: 1rem;
border-bottom: 2px solid #e2e8f0;
border-bottom: 2px solid var(--border-color);
text-align: center;
max-width: 800px;
margin-left: auto;
@@ -363,7 +390,7 @@
gap: 0.6rem;
font-size: 1.1rem;
font-weight: 700;
color: #1a1a2e;
color: var(--text-main);
margin: 0 0 1rem;
}
@@ -383,14 +410,14 @@
display: flex;
gap: 0.75rem;
padding: 0.85rem;
background: #f8fafc;
background: var(--bg-muted);
border-radius: 10px;
border-left: 3px solid #1abc9c;
transition: all 0.3s ease;
}
.norma-card:hover {
background: #ffffff;
background: var(--bg-surface-elevated);
box-shadow: 0 4px 12px rgba(26, 188, 156, 0.15);
transform: translateX(3px);
}
@@ -415,7 +442,7 @@
.norma-card__title {
font-size: 0.95rem;
font-weight: 700;
color: #1a1a2e;
color: var(--text-main);
margin: 0 0 0.15rem;
}
@@ -427,7 +454,7 @@
.norma-card__text {
font-size: 0.75rem;
color: #64748b;
color: var(--text-muted);
line-height: 1.4;
margin: 0;
}
@@ -491,14 +518,14 @@
.destacado-card__title {
font-size: 0.95rem;
font-weight: 700;
color: #1a1a2e;
color: var(--text-main);
margin: 0 0 0.35rem;
line-height: 1.3;
}
.destacado-card__text {
font-size: 0.78rem;
color: #475569;
color: var(--text-body);
line-height: 1.4;
margin: 0;
}
@@ -506,8 +533,8 @@
/* --- FOOTER --- */
.modal-infografia__footer {
padding: 1rem 2rem 1.25rem;
background: #f8fafc;
border-top: 1px solid #e2e8f0;
background: var(--bg-muted);
border-top: 1px solid var(--border-color);
display: flex;
justify-content: center;
}
@@ -730,7 +757,7 @@
========================================================= */
.soluciones-relacionadas {
background: #ffffff;
background: var(--bg-surface);
}
/* --- Header --- */
@@ -744,14 +771,14 @@
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #64748b;
color: var(--text-muted);
margin-bottom: 0.75rem;
}
.soluciones-relacionadas__title {
font-size: 2rem;
font-weight: 800;
color: #1a1a2e;
color: var(--text-main);
margin: 0;
line-height: 1.2;
max-width: 700px;
@@ -903,13 +930,13 @@
display: flex;
align-items: center;
padding-left: 1.5rem;
border-left: 2px solid #e2e8f0;
border-left: 2px solid var(--border-color);
}
.soluciones-relacionadas__aside-text {
font-size: 0.95rem;
line-height: 1.6;
color: #4a5568;
color: var(--text-body);
margin: 0;
}
@@ -927,7 +954,7 @@
padding-left: 0;
padding-top: 1.5rem;
border-left: none;
border-top: 2px solid #e2e8f0;
border-top: 2px solid var(--border-color);
margin-top: 0.5rem;
}
}
@@ -1009,4 +1036,16 @@
.modal-infografia__footer {
padding: 1rem 1.25rem 1.25rem;
}
}
/* =========================================================
MODO OSCURO - AJUSTES DE TARJETAS DESTACADAS
========================================================= */
[data-theme="dark"] .destacado-card--integrados {
background: linear-gradient(135deg, rgba(26, 188, 156, 0.14) 0%, rgba(22, 160, 133, 0.2) 100%);
}
[data-theme="dark"] .destacado-card--auditorias {
background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(234, 179, 8, 0.2) 100%);
}