/* ==========================================================================
   SMC PWA Onboarding & Independent Manifest Styles
   ========================================================================== */

/* Contenedor principal de PWA en login */
#smc-pwa-module {
    margin-bottom: 1.5rem;
    animation: smcFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes smcFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tarjeta del Manifiesto de Independencia */
.smc-pwa-card {
    background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
    border: 1.5px solid #cfe2ff;
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.07);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.smc-pwa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(13, 110, 253, 0.1);
    color: #0b5ed7;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.smc-pwa-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d3b66;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    text-align: center;
}

.smc-pwa-quote {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 1rem;
    background: #ffffff;
    border-left: 3px solid #0d6efd;
    padding: 0.85rem 1rem;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.smc-pwa-quote p:last-child {
    margin-bottom: 0;
}

/* Botón interactivo de instalación */
.btn-pwa-install {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-pwa-install:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.38);
    color: #ffffff;
}

.btn-pwa-install:active {
    transform: translateY(0);
}

.smc-pwa-subtext {
    text-align: center;
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 0.55rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* Guía visual paso a paso para iOS (Safari) */
.smc-ios-guide {
    background: #ffffff;
    border: 1.5px dashed #93c5fd;
    border-radius: 14px;
    padding: 1rem;
    margin-top: 0.85rem;
    animation: smcFadeIn 0.3s ease;
}

.smc-ios-step {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: #1e293b;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.smc-ios-step:last-child {
    margin-bottom: 0;
}

.smc-ios-step-num {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Tarjeta de Recordatorio: Ya está instalado */
.smc-pwa-reminder-card {
    background: #ffffff;
    border: 1.5px solid #bbf7d0;
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.08);
}

.smc-pwa-icon-installed {
    width: 54px;
    height: 54px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 0.9rem auto;
}

.smc-pwa-reminder-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #14532d;
    margin-bottom: 0.5rem;
}

.smc-pwa-reminder-text {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1.1rem;
}

.smc-pwa-bypass-link {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0.25rem 0.5rem;
}

.smc-pwa-bypass-link:hover {
    color: #111827;
}

/* Tarjeta de Confirmación Inmediata tras instalación */
.smc-pwa-success-card {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    animation: smcFadeIn 0.3s ease;
}

/* Enlace directo a saltar al login en la web */
.smc-pwa-skip-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.smc-pwa-skip-link:hover {
    text-decoration: underline;
    color: #0b5ed7;
}

/* Selector de dispositivo (Android / Apple) */
.smc-device-selection-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-device-install {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    min-height: 68px;
}

.btn-device-android {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.btn-device-android i {
    font-size: 1.5rem;
    line-height: 1;
    color: #10b981;
    transition: transform 0.2s ease;
}

.btn-device-android:hover,
.btn-device-android:active {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.btn-device-android:hover i,
.btn-device-android:active i {
    color: #ffffff;
    transform: scale(1.1);
}

.btn-device-apple {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-device-apple i {
    font-size: 1.5rem;
    line-height: 1;
    color: #0f172a;
    transition: transform 0.2s ease;
}

.btn-device-apple:hover,
.btn-device-apple:active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    transform: translateY(-2px);
}

.btn-device-apple:hover i,
.btn-device-apple:active i {
    color: #ffffff;
    transform: scale(1.1);
}

/* Modales e instrucciones paso a paso */
.pwa-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.smc-step-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.smc-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    color: #1e293b;
    line-height: 1.45;
}

.smc-step-badge {
    background: #0d6efd;
    color: #ffffff;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
}

