rf-v4.9-desafios+soluciones

This commit is contained in:
2026-10-08 17:23:44 -03:00
parent a0bd5d5a02
commit d417e0bf3d
24 changed files with 3562 additions and 290 deletions
+392
View File
@@ -0,0 +1,392 @@
/* =========================================================
DESAFÍOS - TARJETAS (NUEVO LAYOUT HORIZONTAL INFERIOR)
========================================================= */
.desafio-card {
position: relative;
background: var(--bg-primary, #ffffff);
border-radius: var(--radius-md, 12px);
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.5);
transition: all 0.3s ease;
cursor: pointer;
display: flex;
flex-direction: column;
}
.desafio-card:hover,
.desafio-card:focus {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.desafio-card:focus-visible {
outline: 3px solid var(--ide-primary, #0066cc);
outline-offset: 2px;
}
/* --- IMAGEN (azul en el esquema) --- */
.desafio-card__image {
position: relative;
width: 100%;
height: 200px; /* Ajustá según necesites */
overflow: hidden;
}
.desafio-card__image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}
.desafio-card:hover .desafio-card__image img {
transform: scale(1.05);
}
.desafio-card__overlay {
position: absolute;
inset: 0;
background: linear-gradient(to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 0.2) 100%);
}
/* --- CONTENIDO (verde en el esquema) --- */
.desafio-card__content {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem 1.25rem;
background: var(--bg-primary, #ffffff);
min-height: 80px;
}
/* Icono (rojo en el esquema) */
.desafio-card__icon {
width: 48px;
height: 48px;
border-radius: 10px;
background: var(--bg-subtle, #f5f5f5);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.35rem;
color: var(--ide-primary, #0066cc);
flex-shrink: 0;
transition: all 0.3s ease;
}
.desafio-card:hover .desafio-card__icon {
background: var(--ide-primary, #0066cc);
color: #ffffff;
transform: scale(1.05);
}
/* Título (negro en el esquema) */
.desafio-card__title {
font-size: 1rem;
font-weight: 600;
line-height: 1.4;
color: var(--text-body, #333);
margin: 0;
flex: 1; /* Ocupa el espacio disponible */
}
/* Botón + (amarillo en el esquema) */
.desafio-card__plus {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--ide-primary, #0066cc);
color: #ffffff;
border: none;
font-size: 1.4rem;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all 0.2s ease;
line-height: 1;
padding: 0;
}
.desafio-card:hover .desafio-card__plus {
background: var(--ide-primary-dark, #0055aa);
transform: scale(1.1);
}
/* =========================================================
RESPONSIVE
========================================================= */
@media (max-width: 768px) {
.desafio-card__image {
height: 160px;
}
.desafio-card__content {
padding: 0.85rem 1rem;
gap: 0.75rem;
}
.desafio-card__icon {
width: 42px;
height: 42px;
font-size: 1.2rem;
}
.desafio-card__title {
font-size: 0.9rem;
}
.desafio-card__plus {
width: 36px;
height: 36px;
font-size: 1.25rem;
}
}
/* =========================================================
MODALES COMPACTOS - 2 COLUMNAS
========================================================= */
.modal-compact {
background: var(--bg-primary, #ffffff);
border-radius: var(--radius-lg, 16px);
max-width: 800px;
width: 90%;
max-height: 85vh;
overflow-y: auto;
position: relative;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
animation: modalCompactSlideIn 0.3s ease;
}
@keyframes modalCompactSlideIn {
from {
opacity: 0;
transform: translateY(20px) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.modal-compact .modal-close-btn {
position: absolute;
top: 1rem;
right: 1rem;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--bg-subtle, #f5f5f5);
border: none;
font-size: 1.1rem;
color: var(--text-muted, #6c757d);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
z-index: 10;
}
.modal-compact .modal-close-btn:hover {
background: var(--text-muted, #6c757d);
color: #ffffff;
transform: rotate(90deg);
}
/* Body: 2 columnas */
.modal-compact__body {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 0;
}
/* Columna 1: Textos */
.modal-compact__col-text {
padding: 2rem 2rem 2rem 2.5rem;
border-right: 1px solid var(--border-color, #e0e0e0);
}
.modal-compact__title {
display: flex;
align-items: flex-start;
gap: 0.75rem;
font-size: 1.35rem;
font-weight: 700;
color: var(--text-body, #333);
margin: 0 0 1.25rem;
line-height: 1.3;
padding-right: 2rem;
}
.modal-compact__title i {
color: var(--ide-primary, #0066cc);
font-size: 1.5rem;
flex-shrink: 0;
margin-top: 0.15rem;
}
.modal-compact__intro {
font-size: 0.95rem;
line-height: 1.6;
color: var(--text-muted, #6c757d);
margin: 0 0 1.5rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--border-color, #e0e0e0);
}
/* Secciones */
.modal-compact__section {
margin-bottom: 1.5rem;
}
.modal-compact__section:last-child {
margin-bottom: 0;
}
.modal-compact__section-title {
font-size: 0.95rem;
font-weight: 700;
color: var(--text-body, #333);
margin: 0 0 0.75rem;
}
/* Lista de preguntas */
.modal-compact__list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.modal-compact__list li {
padding: 0.75rem 1rem;
background: var(--bg-subtle, #f5f5f5);
border-radius: 6px;
border-left: 3px solid var(--ide-primary, #0066cc);
font-size: 0.88rem;
line-height: 1.5;
color: var(--text-body, #333);
transition: all 0.2s ease;
}
.modal-compact__list li:hover {
background: var(--bg-primary, #ffffff);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
transform: translateX(3px);
}
/* Badges */
.modal-compact__badges {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
/* Columna 2: Visual */
.modal-compact__col-visual {
padding: 2rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
background: var(--bg-subtle, #f8f9fa);
border-radius: 0 var(--radius-lg, 16px) var(--radius-lg, 16px) 0;
}
.modal-compact__image {
width: 100%;
border-radius: var(--radius-md, 12px);
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.modal-compact__image img {
width: 100%;
height: auto;
display: block;
}
/* Iconos */
.modal-compact__icons {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.modal-compact__icon-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem;
background: var(--bg-primary, #ffffff);
border-radius: 8px;
transition: all 0.2s ease;
}
.modal-compact__icon-item:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transform: translateX(3px);
}
.modal-compact__icon-item i {
width: 40px;
height: 40px;
border-radius: 8px;
background: linear-gradient(135deg, var(--ide-primary, #0066cc) 0%, var(--ide-accent, #00aa88) 100%);
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
flex-shrink: 0;
}
.modal-compact__icon-item span {
font-size: 0.85rem;
font-weight: 600;
color: var(--text-body, #333);
line-height: 1.3;
}
/* CTA */
.modal-compact__cta {
width: 100%;
justify-content: center;
padding: 0.85rem 1.5rem;
font-size: 0.95rem;
margin-top: auto;
}
/* =========================================================
RESPONSIVE
========================================================= */
@media (max-width: 900px) {
.modal-compact__body {
grid-template-columns: 1fr;
}
.modal-compact__col-text {
padding: 2rem 1.5rem;
border-right: none;
border-bottom: 1px solid var(--border-color, #e0e0e0);
}
.modal-compact__col-visual {
border-radius: 0 0 var(--radius-lg, 16px) var(--radius-lg, 16px);
}
.modal-compact__title {
font-size: 1.2rem;
padding-right: 0;
}
}