/* ==========================================================================
   ACTIVIDADES PRINCIPALES - TARJETAS INTERACTIVAS Y MODAL (DISEÑO PROFESIONAL)
   COMFACAUCA TECNOLOGÍA
   ========================================================================== */

/* Contenedor superpuesto sobre el banner base */
.actividades-overlay-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 6% 4% 4% 10%;
    box-sizing: border-box;
    z-index: 12;
    pointer-events: auto;
}

/* Encabezado del Slide */
.actividades-header-block {
    margin-bottom: 3%;
    padding-left: 0;
    text-align: right;
}

.actividades-title-text {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #0f2d59;
    letter-spacing: 1.5px;
    margin: 0;
    line-height: 1.1;
}

.actividades-accent-line {
    display: flex;
    width: 150px;
    height: 6px;
    margin-top: 12px;
    margin-left: auto;
    border-radius: 4px;
    overflow: hidden;
}
.accent-segment-cyan {
    flex: 1;
    background: #00D8D8;
}
.accent-segment-yellow {
    flex: 1;
    background: #00D8D8;
}
.accent-segment-blue {
    flex: 1;
    background: #00D8D8;
}

/* Cuadrícula de 6 Tarjetas (3x2) */
.actividades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: clamp(16px, 2vw, 24px);
    flex: 1;
    width: 100%;
    transform: translateX(-20px);
}

/* Tarjeta Individual */
.actividad-card {
    position: relative;
    border-radius: clamp(16px, 2vw, 24px);
    padding: clamp(20px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    overflow: hidden;
    min-height: 200px;
}

/* Colores Temáticos de Fondo */
.actividad-card.theme-cyan {
    background: linear-gradient(135deg, #00a8cc, #008ba8);
    border-top-left-radius: clamp(48px, 5vw, 64px);
}
.actividad-card.theme-yellow {
    background: linear-gradient(135deg, #d4af37, #b8941f);
}
.actividad-card.theme-blue {
    background: linear-gradient(135deg, #0f2d59, #1a3a6e);
    border-bottom-right-radius: clamp(48px, 5vw, 64px);
}

/* Efecto Hover */
.actividad-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

/* Fila Superior: Número y Pastilla */
.card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
}

/* Número de Tarjeta */
.card-number-circle {
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
}

/* Pastilla de Abreviatura */
.card-badge-pill {
    padding: clamp(6px, 0.7vw, 9px) clamp(12px, 1.2vw, 16px);
    border-radius: 50px;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.95);
}
.theme-cyan .card-badge-pill {
    color: #007799;
}
.theme-yellow .card-badge-pill {
    color: #926d05;
}
.theme-blue .card-badge-pill {
    color: #172554;
}

/* Fila Central: Título de la Tarjeta - AUMENTADO SIGNIFICATIVAMENTE */
.card-title-container {
    margin: auto 0;
    padding: clamp(6px, 1vw, 10px) 0;
}

.card-main-title {
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    text-transform: uppercase;
    display: block;
    letter-spacing: 0.5px;
}

/* Fila Inferior: Indicador de acción - AUMENTADO */
.card-action-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.actividad-card:hover .card-action-hint {
    opacity: 1;
    transform: translateX(3px);
    color: #ffffff;
}
.card-action-hint i {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   VENTANA MODAL DE DETALLE
   ========================================================================== */
.actividad-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeInModal 0.25s ease;
}

.actividad-modal-window {
    position: relative;
    width: 92%;
    max-width: 880px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 45, 89, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15);
    animation: zoomInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.actividad-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px;
    background: linear-gradient(135deg, #0f2d59, #172554);
    color: #ffffff;
    border-bottom: 4px solid #d4af37;
}

.actividad-modal-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-header-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d4af37;
    color: #0f2d59;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
    font-size: 1.45rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.modal-header-text h3 {
    font-size: 1.35rem;
    font-weight: 850;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.modal-header-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    color: #d4af37;
    margin-top: 5px;
    letter-spacing: 0.4px;
}

.actividad-modal-close-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.actividad-modal-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg) scale(1.08);
}

.actividad-modal-body {
    padding: 28px 34px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #f8fafc;
}

.abbreviation-meaning-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 26px;
    border: 1px solid rgba(15, 45, 89, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    border-left: 6px solid #00a8cc;
}
.abbreviation-meaning-card.theme-yellow {
    border-left-color: #d4af37;
}
.abbreviation-meaning-card.theme-blue {
    border-left-color: #172554;
}

.abbreviation-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 850;
    color: #0f2d59;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.abbreviation-label i {
    color: #d4af37;
    font-size: 1.15em;
}

.abbreviation-term {
    font-size: 1.35rem;
    font-weight: 850;
    color: #0f2d59;
    line-height: 1.3;
}
.abbreviation-desc {
    font-size: 1.1rem;
    color: #334155;
    margin-top: 6px;
    line-height: 1.55;
    font-weight: 500;
}

.modal-tasks-section h4 {
    font-size: 1.05rem;
    font-weight: 850;
    color: #0f2d59;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-tasks-section h4 i {
    color: #00a8cc;
    font-size: 1.15em;
}

.modal-tasks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-task-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(15, 45, 89, 0.08);
    font-size: 1.08rem;
    color: #1e293b;
    line-height: 1.5;
    font-weight: 550;
}
.modal-task-item i {
    color: #10b981;
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.actividad-modal-footer {
    padding: 18px 34px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 45, 89, 0.08);
    display: flex;
    justify-content: flex-end;
}
.actividad-modal-ok-btn {
    padding: 12px 34px;
    border: none;
    background: #0f2d59;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}
.actividad-modal-ok-btn:hover {
    background: #172554;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 45, 89, 0.3);
}

/* Responsividad */
@media (max-width: 900px) {
    .actividades-overlay-container {
        padding: 8% 5% 6% 8%;
    }
    .actividades-title-text {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }
    .actividades-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: clamp(14px, 2vw, 20px);
    }
    .actividad-card {
        min-height: 180px;
        padding: clamp(16px, 2vw, 22px);
    }
    .card-number-circle {
        font-size: clamp(2.8rem, 4vw, 3.8rem);
    }
    .card-badge-pill {
        font-size: clamp(0.9rem, 1.2vw, 1.1rem);
        padding: clamp(6px, 0.8vw, 10px) clamp(12px, 1.5vw, 18px);
    }
    .card-main-title {
        font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    }
    .card-action-hint {
        font-size: clamp(0.85rem, 1vw, 0.95rem);
    }
    .actividad-modal-window {
        max-width: 95%;
    }
    .actividad-modal-header {
        padding: 16px 22px;
    }
    .actividad-modal-body {
        padding: 20px 22px;
        gap: 18px;
    }
    .abbreviation-term {
        font-size: 1.15rem;
    }
    .abbreviation-desc {
        font-size: 0.98rem;
    }
    .modal-task-item {
        font-size: 0.96rem;
        padding: 13px 16px;
    }
}

@media (max-width: 768px) {
    .actividades-overlay-container {
        padding: 10% 6% 10% 7%;
    }
    .actividades-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 14px;
    }
    .actividad-card {
        min-height: 160px;
        padding: clamp(14px, 1.8vw, 20px);
    }
    .card-number-circle {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    .card-badge-pill {
        font-size: clamp(0.85rem, 1.1vw, 1rem);
        padding: 6px 12px;
    }
    .card-main-title {
        font-size: clamp(1rem, 1.4vw, 1.3rem);
    }
    .card-action-hint {
        font-size: clamp(0.8rem, 1vw, 0.9rem);
    }
}